hyla 1.0.7.pre.3 → 1.0.7.pre.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +8 -8
  2. data/Rakefile +15 -12
  3. data/lib/hyla/commands/generate.rb +35 -32
  4. data/lib/hyla/configuration.rb +3 -1
  5. data/lib/hyla/project.rb +1 -1
  6. data/lib/resources/assets/cover/cover.slim +1 -1
  7. data/lib/resources/assets/revealjs-redhat/lib/css/gpe.css +176 -214
  8. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/agate.min.css +17 -0
  9. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/androidstudio.min.css +1 -0
  10. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/arta.min.css +1 -0
  11. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/ascetic.min.css +1 -0
  12. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/atelier-dune.dark.min.css +1 -0
  13. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/atelier-dune.light.min.css +1 -0
  14. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/atelier-forest.dark.min.css +1 -0
  15. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/atelier-forest.light.min.css +1 -0
  16. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/atelier-heath.dark.min.css +1 -0
  17. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/atelier-heath.light.min.css +1 -0
  18. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/atelier-lakeside.dark.min.css +1 -0
  19. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/atelier-lakeside.light.min.css +1 -0
  20. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/atelier-seaside.dark.min.css +1 -0
  21. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/atelier-seaside.light.min.css +1 -0
  22. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/brown_paper.min.css +1 -0
  23. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/codepen-embed.min.css +1 -0
  24. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/color-brewer.min.css +1 -0
  25. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/dark.min.css +1 -0
  26. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/darkula.min.css +1 -0
  27. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/default.min.css +1 -0
  28. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/docco.min.css +1 -0
  29. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/far.min.css +1 -0
  30. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/foundation.min.css +1 -0
  31. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/github.min.css +1 -0
  32. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/googlecode.min.css +1 -0
  33. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/hybrid.min.css +1 -0
  34. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/idea.min.css +1 -0
  35. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/ir_black.min.css +1 -0
  36. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/kimbie.dark.min.css +1 -0
  37. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/kimbie.light.min.css +1 -0
  38. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/magula.min.css +1 -0
  39. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/mono-blue.min.css +1 -0
  40. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/monokai.min.css +1 -0
  41. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/monokai_sublime.min.css +1 -0
  42. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/obsidian.min.css +1 -0
  43. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/paraiso.dark.min.css +1 -0
  44. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/paraiso.light.min.css +1 -0
  45. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/pojoaque.min.css +1 -0
  46. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/railscasts.min.css +1 -0
  47. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/rainbow.min.css +1 -0
  48. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/school_book.min.css +1 -0
  49. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/solarized_dark.min.css +1 -0
  50. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/solarized_light.min.css +1 -0
  51. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/sunburst.min.css +1 -0
  52. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/tomorrow-night-blue.min.css +1 -0
  53. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/tomorrow-night-bright.min.css +1 -0
  54. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/tomorrow-night-eighties.min.css +1 -0
  55. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/tomorrow-night.min.css +1 -0
  56. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/tomorrow.min.css +1 -0
  57. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/vs.min.css +1 -0
  58. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/xcode.min.css +1 -0
  59. data/lib/resources/assets/revealjs-redhat/lib/css/highlightjs/zenburn.min.css +1 -0
  60. data/lib/resources/assets/revealjs-redhat/lib/css/theme-output.css +817 -663
  61. data/lib/resources/assets/revealjs-redhat/lib/css/theme-v2-liberation.css +4346 -0
  62. data/lib/resources/assets/revealjs-redhat/lib/css/theme-v2-overpass.css +4334 -0
  63. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Bold-webfont.eot +0 -0
  64. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Bold-webfont.svg +351 -0
  65. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Bold-webfont.ttf +0 -0
  66. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Bold-webfont.woff +0 -0
  67. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-BoldItalic-webfont.eot +0 -0
  68. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-BoldItalic-webfont.svg +347 -0
  69. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-BoldItalic-webfont.ttf +0 -0
  70. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-BoldItalic-webfont.woff +0 -0
  71. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Italic-webfont.eot +0 -0
  72. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Italic-webfont.svg +348 -0
  73. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Italic-webfont.ttf +0 -0
  74. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Italic-webfont.woff +0 -0
  75. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Regular-webfont.eot +0 -0
  76. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Regular-webfont.svg +354 -0
  77. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Regular-webfont.ttf +0 -0
  78. data/lib/resources/assets/revealjs-redhat/lib/font/liberation/LiberationSans-Regular-webfont.woff +0 -0
  79. data/lib/resources/assets/revealjs-redhat/lib/js/debug/head.js +131 -0
  80. data/lib/resources/assets/revealjs-redhat/lib/js/debug/reveal.js +1280 -0
  81. data/lib/resources/assets/revealjs-redhat/lib/js/gpe.js +11 -0
  82. data/lib/resources/assets/revealjs-redhat/lib/js/head.min.js +1 -131
  83. data/lib/resources/assets/revealjs-redhat/lib/js/jquery-1.11.2.min.js +4 -0
  84. data/lib/resources/assets/revealjs-redhat/lib/js/reveal.min.js +2 -1279
  85. data/lib/resources/assets/revealjs/css/theme/gpe.css +4 -4
  86. data/lib/resources/assets/revealjs/lib/css/highlightjs/agate.min.css +17 -0
  87. data/lib/resources/assets/revealjs/lib/css/highlightjs/androidstudio.min.css +1 -0
  88. data/lib/resources/assets/revealjs/lib/css/highlightjs/arta.min.css +1 -0
  89. data/lib/resources/assets/revealjs/lib/css/highlightjs/ascetic.min.css +1 -0
  90. data/lib/resources/assets/revealjs/lib/css/highlightjs/atelier-dune.dark.min.css +1 -0
  91. data/lib/resources/assets/revealjs/lib/css/highlightjs/atelier-dune.light.min.css +1 -0
  92. data/lib/resources/assets/revealjs/lib/css/highlightjs/atelier-forest.dark.min.css +1 -0
  93. data/lib/resources/assets/revealjs/lib/css/highlightjs/atelier-forest.light.min.css +1 -0
  94. data/lib/resources/assets/revealjs/lib/css/highlightjs/atelier-heath.dark.min.css +1 -0
  95. data/lib/resources/assets/revealjs/lib/css/highlightjs/atelier-heath.light.min.css +1 -0
  96. data/lib/resources/assets/revealjs/lib/css/highlightjs/atelier-lakeside.dark.min.css +1 -0
  97. data/lib/resources/assets/revealjs/lib/css/highlightjs/atelier-lakeside.light.min.css +1 -0
  98. data/lib/resources/assets/revealjs/lib/css/highlightjs/atelier-seaside.dark.min.css +1 -0
  99. data/lib/resources/assets/revealjs/lib/css/highlightjs/atelier-seaside.light.min.css +1 -0
  100. data/lib/resources/assets/revealjs/lib/css/highlightjs/brown_paper.min.css +1 -0
  101. data/lib/resources/assets/revealjs/lib/css/highlightjs/codepen-embed.min.css +1 -0
  102. data/lib/resources/assets/revealjs/lib/css/highlightjs/color-brewer.min.css +1 -0
  103. data/lib/resources/assets/revealjs/lib/css/highlightjs/dark.min.css +1 -0
  104. data/lib/resources/assets/revealjs/lib/css/highlightjs/darkula.min.css +1 -0
  105. data/lib/resources/assets/revealjs/lib/css/highlightjs/default.min.css +1 -0
  106. data/lib/resources/assets/revealjs/lib/css/highlightjs/docco.min.css +1 -0
  107. data/lib/resources/assets/revealjs/lib/css/highlightjs/far.min.css +1 -0
  108. data/lib/resources/assets/revealjs/lib/css/highlightjs/foundation.min.css +1 -0
  109. data/lib/resources/assets/revealjs/lib/css/highlightjs/github.min.css +1 -0
  110. data/lib/resources/assets/revealjs/lib/css/highlightjs/googlecode.min.css +1 -0
  111. data/lib/resources/assets/revealjs/lib/css/highlightjs/hybrid.min.css +1 -0
  112. data/lib/resources/assets/revealjs/lib/css/highlightjs/idea.min.css +1 -0
  113. data/lib/resources/assets/revealjs/lib/css/highlightjs/ir_black.min.css +1 -0
  114. data/lib/resources/assets/revealjs/lib/css/highlightjs/kimbie.dark.min.css +1 -0
  115. data/lib/resources/assets/revealjs/lib/css/highlightjs/kimbie.light.min.css +1 -0
  116. data/lib/resources/assets/revealjs/lib/css/highlightjs/magula.min.css +1 -0
  117. data/lib/resources/assets/revealjs/lib/css/highlightjs/mono-blue.min.css +1 -0
  118. data/lib/resources/assets/revealjs/lib/css/highlightjs/monokai.min.css +1 -0
  119. data/lib/resources/assets/revealjs/lib/css/highlightjs/monokai_sublime.min.css +1 -0
  120. data/lib/resources/assets/revealjs/lib/css/highlightjs/obsidian.min.css +1 -0
  121. data/lib/resources/assets/revealjs/lib/css/highlightjs/paraiso.dark.min.css +1 -0
  122. data/lib/resources/assets/revealjs/lib/css/highlightjs/paraiso.light.min.css +1 -0
  123. data/lib/resources/assets/revealjs/lib/css/highlightjs/pojoaque.min.css +1 -0
  124. data/lib/resources/assets/revealjs/lib/css/highlightjs/railscasts.min.css +1 -0
  125. data/lib/resources/assets/revealjs/lib/css/highlightjs/rainbow.min.css +1 -0
  126. data/lib/resources/assets/revealjs/lib/css/highlightjs/school_book.min.css +1 -0
  127. data/lib/resources/assets/revealjs/lib/css/highlightjs/solarized_dark.min.css +1 -0
  128. data/lib/resources/assets/revealjs/lib/css/highlightjs/solarized_light.min.css +1 -0
  129. data/lib/resources/assets/revealjs/lib/css/highlightjs/sunburst.min.css +1 -0
  130. data/lib/resources/assets/revealjs/lib/css/highlightjs/tomorrow-night-blue.min.css +1 -0
  131. data/lib/resources/assets/revealjs/lib/css/highlightjs/tomorrow-night-bright.min.css +1 -0
  132. data/lib/resources/assets/revealjs/lib/css/highlightjs/tomorrow-night-eighties.min.css +1 -0
  133. data/lib/resources/assets/revealjs/lib/css/highlightjs/tomorrow-night.min.css +1 -0
  134. data/lib/resources/assets/revealjs/lib/css/highlightjs/tomorrow.min.css +1 -0
  135. data/lib/resources/assets/revealjs/lib/css/highlightjs/vs.min.css +1 -0
  136. data/lib/resources/assets/revealjs/lib/css/highlightjs/xcode.min.css +1 -0
  137. data/lib/resources/assets/revealjs/lib/css/highlightjs/zenburn.min.css +1 -0
  138. data/lib/resources/assets/sass/_liberation.scss +16 -16
  139. data/lib/resources/assets/sass/_liberation2.scss +43 -0
  140. data/lib/resources/assets/sass/{overpass.scss → _overpass.scss} +0 -0
  141. data/lib/resources/assets/sass/gpe2.scss +92 -99
  142. data/lib/resources/assets/sass/theme-output.scss +1359 -0
  143. data/lib/resources/assets/sass/theme-v2-liberation.scss +3646 -0
  144. data/lib/resources/assets/{revealjs-redhat/lib/css/offline-v2.css → sass/theme-v2-overpass.scss} +1 -1
  145. data/lib/resources/backends/slim/revealjs-redhat/block_image.html.slim +1 -1
  146. data/lib/resources/backends/slim/revealjs-redhat/block_paragraph.html.slim +2 -2
  147. data/lib/resources/backends/slim/revealjs-redhat/document.html.slim +21 -13
  148. data/lib/resources/backends/slim/revealjs/document.html.slim +55 -31
  149. data/lib/templates/_config.yaml +26 -6
  150. metadata +133 -5
  151. data/lib/resources/assets/revealjs/lib/css/zenburn.css +0 -114
@@ -0,0 +1,11 @@
1
+ /* Selection audioblock under a section tag and move it before the title */
2
+ var $sections = $('section');
3
+ $sections.each(function () {
4
+ var $this = $(this);
5
+ var $audio = $this.find('.audioblock');
6
+ var $audioHtml = $audio.html();
7
+ if ($audioHtml != null) {
8
+ $this.removeData($audioHtml);
9
+ $audio.prependTo($this);
10
+ }
11
+ });
@@ -1,131 +1 @@
1
- !function (n) {
2
- function t() {
3
- p || (p = !0, u(y, function (n) {
4
- f(n)
5
- }))
6
- }
7
-
8
- function e(t, e) {
9
- var a = n.createElement("script");
10
- a.type = "text/" + (t.type || "javascript"), a.src = t.src || t, a.async = !1, a.onreadystatechange = a.onload = function () {
11
- var n = a.readyState;
12
- !e.done && (!n || /loaded|complete/.test(n)) && (e.done = !0, e())
13
- }, (n.body || v).appendChild(a)
14
- }
15
-
16
- function a(n, t) {
17
- return n.state == O ? t && t() : n.state == b ? E.ready(n.name, t) : n.state == S ? n.onpreload.push(function () {
18
- a(n, t)
19
- }) : (n.state = b, void e(n.url, function () {
20
- n.state = O, t && t(), u(h[n.name], function (n) {
21
- f(n)
22
- }), c() && p && u(h.ALL, function (n) {
23
- f(n)
24
- })
25
- }))
26
- }
27
-
28
- function o(n) {
29
- void 0 === n.state && (n.state = S, n.onpreload = [], e({src: n.url, type: "cache"}, function () {
30
- r(n)
31
- }))
32
- }
33
-
34
- function r(n) {
35
- n.state = j, u(n.onpreload, function (n) {
36
- n.call()
37
- })
38
- }
39
-
40
- function c(n) {
41
- n = n || w;
42
- var t;
43
- for (var e in n) {
44
- if (n.hasOwnProperty(e) && n[e].state != O)return !1;
45
- t = !0
46
- }
47
- return t
48
- }
49
-
50
- function i(n) {
51
- return "[object Function]" == Object.prototype.toString.call(n)
52
- }
53
-
54
- function u(n, t) {
55
- if (n) {
56
- "object" == typeof n && (n = [].slice.call(n));
57
- for (var e = 0; e < n.length; e++)t.call(n, n[e], e)
58
- }
59
- }
60
-
61
- function d(n) {
62
- var t;
63
- if ("object" == typeof n)for (var e in n)n[e] && (t = {name: e, url: n[e]}); else t = {name: l(n), url: n};
64
- var a = w[t.name];
65
- return a && a.url === t.url ? a : (w[t.name] = t, t)
66
- }
67
-
68
- function l(n) {
69
- var t = n.split("/"), e = t[t.length - 1], a = e.indexOf("?");
70
- return -1 != a ? e.substring(0, a) : e
71
- }
72
-
73
- function f(n) {
74
- n._done || (n(), n._done = 1)
75
- }
76
-
77
- var s, p, v = n.documentElement, y = [], m = [], h = {}, w = {}, L = n.createElement("script").async === !0 || "MozAppearance"in n.documentElement.style || window.opera, g = window.head_conf && head_conf.head || "head", E = window[g] = window[g] || function () {
78
- E.ready.apply(null, arguments)
79
- }, j = 1, S = 2, b = 3, O = 4;
80
- if (E.js = L ? function () {
81
- var n = arguments, t = n[n.length - 1], e = {};
82
- return i(t) || (t = null), u(n, function (o, r) {
83
- o != t && (o = d(o), e[o.name] = o, a(o, t && r == n.length - 2 ? function () {
84
- c(e) && f(t)
85
- } : null))
86
- }), E
87
- } : function () {
88
- var n = arguments, t = [].slice.call(n, 1), e = t[0];
89
- return s ? (e ? (u(t, function (n) {
90
- i(n) || o(d(n))
91
- }), a(d(n[0]), i(e) ? e : function () {
92
- E.js.apply(null, t)
93
- })) : a(d(n[0])), E) : (m.push(function () {
94
- E.js.apply(null, n)
95
- }), E)
96
- }, E.ready = function (t, e) {
97
- if (t == n)return p ? f(e) : y.push(e), E;
98
- if (i(t) && (e = t, t = "ALL"), "string" != typeof t || !i(e))return E;
99
- var a = w[t];
100
- if (a && a.state == O || "ALL" == t && c() && p)return f(e), E;
101
- var o = h[t];
102
- return o ? o.push(e) : o = h[t] = [e], E
103
- }, E.ready(n, function () {
104
- c() && u(h.ALL, function (n) {
105
- f(n)
106
- }), E.feature && E.feature("domloaded", !0)
107
- }), window.addEventListener)n.addEventListener("DOMContentLoaded", t, !1), window.addEventListener("load", t, !1); else if (window.attachEvent) {
108
- n.attachEvent("onreadystatechange", function () {
109
- "complete" === n.readyState && t()
110
- });
111
- var A = 1;
112
- try {
113
- A = window.frameElement
114
- } catch (C) {
115
- }
116
- !A && v.doScroll && function () {
117
- try {
118
- v.doScroll("left"), t()
119
- } catch (n) {
120
- return void setTimeout(arguments.callee, 1)
121
- }
122
- }(), window.attachEvent("onload", t)
123
- }
124
- !n.readyState && n.addEventListener && (n.readyState = "loading", n.addEventListener("DOMContentLoaded", handler = function () {
125
- n.removeEventListener("DOMContentLoaded", handler, !1), n.readyState = "complete"
126
- }, !1)), setTimeout(function () {
127
- s = !0, u(m, function (n) {
128
- n()
129
- })
130
- }, 300)
131
- }(document);
1
+ !function(n){function t(){p||(p=!0,u(y,function(n){f(n)}))}function e(t,e){var a=n.createElement("script");a.type="text/"+(t.type||"javascript"),a.src=t.src||t,a.async=!1,a.onreadystatechange=a.onload=function(){var n=a.readyState;!e.done&&(!n||/loaded|complete/.test(n))&&(e.done=!0,e())},(n.body||v).appendChild(a)}function a(n,t){return n.state==O?t&&t():n.state==b?E.ready(n.name,t):n.state==S?n.onpreload.push(function(){a(n,t)}):(n.state=b,void e(n.url,function(){n.state=O,t&&t(),u(h[n.name],function(n){f(n)}),c()&&p&&u(h.ALL,function(n){f(n)})}))}function o(n){void 0===n.state&&(n.state=S,n.onpreload=[],e({src:n.url,type:"cache"},function(){r(n)}))}function r(n){n.state=j,u(n.onpreload,function(n){n.call()})}function c(n){n=n||w;var t;for(var e in n){if(n.hasOwnProperty(e)&&n[e].state!=O)return!1;t=!0}return t}function i(n){return"[object Function]"==Object.prototype.toString.call(n)}function u(n,t){if(n){"object"==typeof n&&(n=[].slice.call(n));for(var e=0;e<n.length;e++)t.call(n,n[e],e)}}function d(n){var t;if("object"==typeof n)for(var e in n)n[e]&&(t={name:e,url:n[e]});else t={name:l(n),url:n};var a=w[t.name];return a&&a.url===t.url?a:(w[t.name]=t,t)}function l(n){var t=n.split("/"),e=t[t.length-1],a=e.indexOf("?");return-1!=a?e.substring(0,a):e}function f(n){n._done||(n(),n._done=1)}var s,p,v=n.documentElement,y=[],m=[],h={},w={},L=n.createElement("script").async===!0||"MozAppearance"in n.documentElement.style||window.opera,g=window.head_conf&&head_conf.head||"head",E=window[g]=window[g]||function(){E.ready.apply(null,arguments)},j=1,S=2,b=3,O=4;if(E.js=L?function(){var n=arguments,t=n[n.length-1],e={};return i(t)||(t=null),u(n,function(o,r){o!=t&&(o=d(o),e[o.name]=o,a(o,t&&r==n.length-2?function(){c(e)&&f(t)}:null))}),E}:function(){var n=arguments,t=[].slice.call(n,1),e=t[0];return s?(e?(u(t,function(n){i(n)||o(d(n))}),a(d(n[0]),i(e)?e:function(){E.js.apply(null,t)})):a(d(n[0])),E):(m.push(function(){E.js.apply(null,n)}),E)},E.ready=function(t,e){if(t==n)return p?f(e):y.push(e),E;if(i(t)&&(e=t,t="ALL"),"string"!=typeof t||!i(e))return E;var a=w[t];if(a&&a.state==O||"ALL"==t&&c()&&p)return f(e),E;var o=h[t];return o?o.push(e):o=h[t]=[e],E},E.ready(n,function(){c()&&u(h.ALL,function(n){f(n)}),E.feature&&E.feature("domloaded",!0)}),window.addEventListener)n.addEventListener("DOMContentLoaded",t,!1),window.addEventListener("load",t,!1);else if(window.attachEvent){n.attachEvent("onreadystatechange",function(){"complete"===n.readyState&&t()});var A=1;try{A=window.frameElement}catch(C){}!A&&v.doScroll&&function(){try{v.doScroll("left"),t()}catch(n){return void setTimeout(arguments.callee,1)}}(),window.attachEvent("onload",t)}!n.readyState&&n.addEventListener&&(n.readyState="loading",n.addEventListener("DOMContentLoaded",handler=function(){n.removeEventListener("DOMContentLoaded",handler,!1),n.readyState="complete"},!1)),setTimeout(function(){s=!0,u(m,function(n){n()})},300)}(document);
@@ -0,0 +1,4 @@
1
+ /*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
+ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.2",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b=a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=hb(),z=hb(),A=hb(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},eb=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fb){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function gb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+rb(o[l]);w=ab.test(a)&&pb(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function hb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ib(a){return a[u]=!0,a}function jb(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function kb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function lb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function nb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function ob(a){return ib(function(b){return b=+b,ib(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pb(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=gb.support={},f=gb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=gb.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",eb,!1):e.attachEvent&&e.attachEvent("onunload",eb)),p=!f(g),c.attributes=jb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=jb(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=jb(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(jb(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),jb(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&jb(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return lb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?lb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},gb.matches=function(a,b){return gb(a,null,null,b)},gb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return gb(b,n,null,[a]).length>0},gb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},gb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},gb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},gb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=gb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=gb.selectors={cacheLength:50,createPseudo:ib,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||gb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&gb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=gb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||gb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ib(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ib(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ib(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ib(function(a){return function(b){return gb(a,b).length>0}}),contains:ib(function(a){return a=a.replace(cb,db),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ib(function(a){return W.test(a||"")||gb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:ob(function(){return[0]}),last:ob(function(a,b){return[b-1]}),eq:ob(function(a,b,c){return[0>c?c+b:c]}),even:ob(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:ob(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:ob(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:ob(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=mb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=nb(b);function qb(){}qb.prototype=d.filters=d.pseudos,d.setFilters=new qb,g=gb.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?gb.error(a):z(a,i).slice(0)};function rb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function tb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ub(a,b,c){for(var d=0,e=b.length;e>d;d++)gb(a,b[d],c);return c}function vb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wb(a,b,c,d,e,f){return d&&!d[u]&&(d=wb(d)),e&&!e[u]&&(e=wb(e,f)),ib(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ub(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:vb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=vb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=vb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sb(function(a){return a===b},h,!0),l=sb(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sb(tb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wb(i>1&&tb(m),i>1&&rb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xb(a.slice(i,e)),f>e&&xb(a=a.slice(e)),f>e&&rb(a))}m.push(c)}return tb(m)}function yb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=vb(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&gb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ib(f):f}return h=gb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,yb(e,d)),f.selector=a}return f},i=gb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&pb(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&rb(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&pb(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=jb(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),jb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||kb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&jb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||kb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),jb(function(a){return null==a.getAttribute("disabled")})||kb(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),gb}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;
3
+ return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function ab(){return!0}function bb(){return!1}function cb(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"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){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.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||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cb()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===cb()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ab:bb):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:bb,isPropagationStopped:bb,isImmediatePropagationStopped:bb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ab,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ab,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ab,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=bb;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=bb),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function db(a){var b=eb.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var eb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fb=/ jQuery\d+="(?:null|\d+)"/g,gb=new RegExp("<(?:"+eb+")[\\s/>]","i"),hb=/^\s+/,ib=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,jb=/<([\w:]+)/,kb=/<tbody/i,lb=/<|&#?\w+;/,mb=/<(?:script|style|link)/i,nb=/checked\s*(?:[^=]|=\s*.checked.)/i,ob=/^$|\/(?:java|ecma)script/i,pb=/^true\/(.*)/,qb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,rb={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sb=db(y),tb=sb.appendChild(y.createElement("div"));rb.optgroup=rb.option,rb.tbody=rb.tfoot=rb.colgroup=rb.caption=rb.thead,rb.th=rb.td;function ub(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ub(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function vb(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wb(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xb(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function yb(a){var b=pb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function zb(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Ab(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Bb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xb(b).text=a.text,yb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!gb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(tb.innerHTML=a.outerHTML,tb.removeChild(f=tb.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ub(f),h=ub(a),g=0;null!=(e=h[g]);++g)d[g]&&Bb(e,d[g]);if(b)if(c)for(h=h||ub(a),d=d||ub(f),g=0;null!=(e=h[g]);g++)Ab(e,d[g]);else Ab(a,f);return d=ub(f,"script"),d.length>0&&zb(d,!i&&ub(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=db(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(lb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(jb.exec(f)||["",""])[1].toLowerCase(),l=rb[i]||rb._default,h.innerHTML=l[1]+f.replace(ib,"<$1></$2>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&hb.test(f)&&p.push(b.createTextNode(hb.exec(f)[0])),!k.tbody){f="table"!==i||kb.test(f)?"<table>"!==l[1]||kb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ub(p,"input"),vb),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ub(o.appendChild(f),"script"),g&&zb(h),c)){e=0;while(f=h[e++])ob.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ub(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&zb(ub(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ub(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fb,""):void 0;if(!("string"!=typeof a||mb.test(a)||!k.htmlSerialize&&gb.test(a)||!k.leadingWhitespace&&hb.test(a)||rb[(jb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ib,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ub(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ub(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&nb.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ub(i,"script"),xb),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ub(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,yb),j=0;f>j;j++)d=g[j],ob.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qb,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Cb,Db={};function Eb(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fb(a){var b=y,c=Db[a];return c||(c=Eb(a,b),"none"!==c&&c||(Cb=(Cb||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Cb[0].contentWindow||Cb[0].contentDocument).document,b.write(),b.close(),c=Eb(a,b),Cb.detach()),Db[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Gb=/^margin/,Hb=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ib,Jb,Kb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ib=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Jb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ib(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Hb.test(g)&&Gb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ib=function(a){return a.currentStyle},Jb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ib(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Hb.test(g)&&!Kb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Lb(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Mb=/alpha\([^)]*\)/i,Nb=/opacity\s*=\s*([^)]*)/,Ob=/^(none|table(?!-c[ea]).+)/,Pb=new RegExp("^("+S+")(.*)$","i"),Qb=new RegExp("^([+-])=("+S+")","i"),Rb={position:"absolute",visibility:"hidden",display:"block"},Sb={letterSpacing:"0",fontWeight:"400"},Tb=["Webkit","O","Moz","ms"];function Ub(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Tb.length;while(e--)if(b=Tb[e]+c,b in a)return b;return d}function Vb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fb(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wb(a,b,c){var d=Pb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Yb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ib(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Jb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Hb.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xb(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Jb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ub(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ub(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Jb(a,b,d)),"normal"===f&&b in Sb&&(f=Sb[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Ob.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Rb,function(){return Yb(a,b,d)}):Yb(a,b,d):void 0},set:function(a,c,d){var e=d&&Ib(a);return Wb(a,c,d?Xb(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Nb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Mb,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Mb.test(f)?f.replace(Mb,e):f+" "+e)}}),m.cssHooks.marginRight=Lb(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Jb,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Gb.test(a)||(m.cssHooks[a+b].set=Wb)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ib(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Vb(this,!0)},hide:function(){return Vb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Zb(a,b,c,d,e){return new Zb.prototype.init(a,b,c,d,e)
4
+ }m.Tween=Zb,Zb.prototype={constructor:Zb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this):Zb.propHooks._default.get(this)},run:function(a){var b,c=Zb.propHooks[this.prop];return this.pos=b=this.options.duration?m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Zb.propHooks._default.set(this),this}},Zb.prototype.init.prototype=Zb.prototype,Zb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Zb.propHooks.scrollTop=Zb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Zb.prototype.init,m.fx.step={};var $b,_b,ac=/^(?:toggle|show|hide)$/,bc=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cc=/queueHooks$/,dc=[ic],ec={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bc.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bc.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fc(){return setTimeout(function(){$b=void 0}),$b=m.now()}function gc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hc(a,b,c){for(var d,e=(ec[b]||[]).concat(ec["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ic(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fb(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fb(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ac.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fb(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hc(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jc(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kc(a,b,c){var d,e,f=0,g=dc.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$b||fc(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$b||fc(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jc(k,j.opts.specialEasing);g>f;f++)if(d=dc[f].call(j,a,k,j.opts))return d;return m.map(k,hc,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kc,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],ec[c]=ec[c]||[],ec[c].unshift(b)},prefilter:function(a,b){b?dc.unshift(a):dc.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kc(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cc.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gc(b,!0),a,d,e)}}),m.each({slideDown:gc("show"),slideUp:gc("hide"),slideToggle:gc("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($b=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$b=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_b||(_b=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_b),_b=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lc=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lc,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mc,nc,oc=m.expr.attrHandle,pc=/^(?:checked|selected)$/i,qc=k.getSetAttribute,rc=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nc:mc)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rc&&qc||!pc.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qc?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nc={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rc&&qc||!pc.test(c)?a.setAttribute(!qc&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=oc[b]||m.find.attr;oc[b]=rc&&qc||!pc.test(b)?function(a,b,d){var e,f;return d||(f=oc[b],oc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,oc[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rc&&qc||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mc&&mc.set(a,b,c)}}),qc||(mc={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},oc.id=oc.name=oc.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mc.set},m.attrHooks.contenteditable={set:function(a,b,c){mc.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sc=/^(?:input|select|textarea|button|object)$/i,tc=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sc.test(a.nodeName)||tc.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var uc=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(uc," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(uc," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(uc," ").indexOf(b)>=0)return!0;return!1}}),m.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(" "),function(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vc=m.now(),wc=/\?/,xc=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xc,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yc,zc,Ac=/#.*$/,Bc=/([?&])_=[^&]*/,Cc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Dc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ec=/^(?:GET|HEAD)$/,Fc=/^\/\//,Gc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hc={},Ic={},Jc="*/".concat("*");try{zc=location.href}catch(Kc){zc=y.createElement("a"),zc.href="",zc=zc.href}yc=Gc.exec(zc.toLowerCase())||[];function Lc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mc(a,b,c,d){var e={},f=a===Ic;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nc(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Oc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zc,type:"GET",isLocal:Dc.test(yc[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nc(Nc(a,m.ajaxSettings),b):Nc(m.ajaxSettings,a)},ajaxPrefilter:Lc(Hc),ajaxTransport:Lc(Ic),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cc.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zc)+"").replace(Ac,"").replace(Fc,yc[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gc.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yc[1]&&c[2]===yc[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yc[3]||("http:"===yc[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mc(Hc,k,b,v),2===t)return v;h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Ec.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wc.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bc.test(e)?e.replace(Bc,"$1_="+vc++):e+(wc.test(e)?"&":"?")+"_="+vc++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jc+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mc(Ic,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Oc(k,v,c)),u=Pc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qc=/%20/g,Rc=/\[\]$/,Sc=/\r?\n/g,Tc=/^(?:submit|button|image|reset|file)$/i,Uc=/^(?:input|select|textarea|keygen)/i;function Vc(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rc.test(a)?d(a,e):Vc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vc(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vc(c,a[c],b,e);return d.join("&").replace(Qc,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Uc.test(this.nodeName)&&!Tc.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sc,"\r\n")}}):{name:b.name,value:c.replace(Sc,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zc()||$c()}:Zc;var Wc=0,Xc={},Yc=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xc)Xc[a](void 0,!0)}),k.cors=!!Yc&&"withCredentials"in Yc,Yc=k.ajax=!!Yc,Yc&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xc[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xc[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zc(){try{return new a.XMLHttpRequest}catch(b){}}function $c(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _c=[],ad=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_c.pop()||m.expando+"_"+vc++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ad.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ad.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ad,"$1"+e):b.jsonp!==!1&&(b.url+=(wc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_c.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bd=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bd)return bd.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cd=a.document.documentElement;function dd(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dd(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cd;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cd})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dd(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=Lb(k.pixelPosition,function(a,c){return c?(c=Jb(a,b),Hb.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ed=a.jQuery,fd=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fd),b&&a.jQuery===m&&(a.jQuery=ed),m},typeof b===K&&(a.jQuery=a.$=m),m});
@@ -1,1279 +1,2 @@
1
- !function (e, t) {
2
- "function" == typeof define && define.amd ? define(function () {
3
- return e.Reveal = t(), e.Reveal
4
- }) : "object" == typeof exports ? module.exports = t() : e.Reveal = t()
5
- }(this, function () {
6
- "use strict";
7
- function e(e) {
8
- if (t(), Pr.transforms2d || Pr.transforms3d) {
9
- Cr.wrapper = document.querySelector(".reveal"), Cr.slides = document.querySelector(".reveal .slides"), window.addEventListener("load", W, !1);
10
- var n = vr.getQueryHash();
11
- "undefined" != typeof n.dependencies && delete n.dependencies, h(xr, e), h(xr, n), q(), r()
12
- } else {
13
- document.body.setAttribute("class", "no-transforms");
14
- for (var a = document.getElementsByTagName("img"), i = 0, o = a.length; o > i; i++) {
15
- var s = a[i];
16
- s.getAttribute("data-src") && (s.setAttribute("src", s.getAttribute("data-src")), s.removeAttribute("data-src"))
17
- }
18
- }
19
- }
20
-
21
- function t() {
22
- Pr.transforms3d = "WebkitPerspective"in document.body.style || "MozPerspective"in document.body.style || "msPerspective"in document.body.style || "OPerspective"in document.body.style || "perspective"in document.body.style, Pr.transforms2d = "WebkitTransform"in document.body.style || "MozTransform"in document.body.style || "msTransform"in document.body.style || "OTransform"in document.body.style || "transform"in document.body.style, Pr.requestAnimationFrameMethod = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame, Pr.requestAnimationFrame = "function" == typeof Pr.requestAnimationFrameMethod, Pr.canvas = !!document.createElement("canvas").getContext, Pr.touch = !!("ontouchstart"in window), Pr.overviewTransitions = !/Version\/[\d\.]+.*Safari/.test(navigator.userAgent), wr = /(iphone|ipod|ipad|android)/gi.test(navigator.userAgent)
23
- }
24
-
25
- function r() {
26
- function e() {
27
- a.length && head.js.apply(null, a), n()
28
- }
29
-
30
- function t(t) {
31
- head.ready(t.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0], function () {
32
- "function" == typeof t.callback && t.callback.apply(this), 0 === --i && e()
33
- })
34
- }
35
-
36
- for (var r = [], a = [], i = 0, o = 0, s = xr.dependencies.length; s > o; o++) {
37
- var c = xr.dependencies[o];
38
- (!c.condition || c.condition()) && (c.async ? a.push(c.src) : r.push(c.src), t(c))
39
- }
40
- r.length ? (i = r.length, head.js.apply(null, r)) : e()
41
- }
42
-
43
- function n() {
44
- a(), u(), s(), at(), p(), kt(), ut(!0), setTimeout(function () {
45
- Cr.slides.classList.remove("no-transition"), qr = !0, T("ready", {indexh: hr, indexv: gr, currentSlide: yr})
46
- }, 1), x() && (v(), "complete" === document.readyState ? o() : window.addEventListener("load", o))
47
- }
48
-
49
- function a() {
50
- Cr.slides.classList.add("no-transition"), Cr.background = c(Cr.wrapper, "div", "backgrounds", null), Cr.progress = c(Cr.wrapper, "div", "progress", "<span></span>"), Cr.progressbar = Cr.progress.querySelector("span"), c(Cr.wrapper, "aside", "controls", '<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>'), Cr.slideNumber = c(Cr.wrapper, "div", "slide-number", ""), c(Cr.wrapper, "div", "pause-overlay", null), Cr.controls = document.querySelector(".reveal .controls"), Cr.theme = document.querySelector("#theme"), Cr.wrapper.setAttribute("role", "application"), Cr.controlsLeft = g(document.querySelectorAll(".navigate-left")), Cr.controlsRight = g(document.querySelectorAll(".navigate-right")), Cr.controlsUp = g(document.querySelectorAll(".navigate-up")), Cr.controlsDown = g(document.querySelectorAll(".navigate-down")), Cr.controlsPrev = g(document.querySelectorAll(".navigate-prev")), Cr.controlsNext = g(document.querySelectorAll(".navigate-next")), Cr.statusDiv = i()
51
- }
52
-
53
- function i() {
54
- var e = document.getElementById("aria-status-div");
55
- return e || (e = document.createElement("div"), e.style.position = "absolute", e.style.height = "1px", e.style.width = "1px", e.style.overflow = "hidden", e.style.clip = "rect( 1px, 1px, 1px, 1px )", e.setAttribute("id", "aria-status-div"), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), Cr.wrapper.appendChild(e)), e
56
- }
57
-
58
- function o() {
59
- var e = z(window.innerWidth, window.innerHeight), t = Math.floor(e.width * (1 + xr.margin)), r = Math.floor(e.height * (1 + xr.margin)), n = e.width, a = e.height;
60
- L("@page{size:" + t + "px " + r + "px; margin: 0;}"), L(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: " + n + "px; max-height:" + a + "px}"), document.body.classList.add("print-pdf"), document.body.style.width = t + "px", document.body.style.height = r + "px", g(Cr.wrapper.querySelectorAll(kr)).forEach(function (e) {
61
- if (e.classList.contains("stack") === !1) {
62
- var i = (t - n) / 2, o = (r - a) / 2, s = E(e), c = Math.max(Math.ceil(s / r), 1);
63
- (1 === c && xr.center || e.classList.contains("center")) && (o = Math.max((r - s) / 2, 0)), e.style.left = i + "px", e.style.top = o + "px", e.style.width = n + "px";
64
- var l = e.querySelector(".slide-background");
65
- l && (l.style.width = t + "px", l.style.height = r * c + "px", l.style.top = -o + "px", l.style.left = -i + "px")
66
- }
67
- }), g(Cr.wrapper.querySelectorAll(kr + " .fragment")).forEach(function (e) {
68
- e.classList.add("visible")
69
- })
70
- }
71
-
72
- function s() {
73
- Cr.slides.querySelector("iframe") && setInterval(function () {
74
- (0 !== Cr.wrapper.scrollTop || 0 !== Cr.wrapper.scrollLeft) && (Cr.wrapper.scrollTop = 0, Cr.wrapper.scrollLeft = 0)
75
- }, 500)
76
- }
77
-
78
- function c(e, t, r, n) {
79
- for (var a = e.querySelectorAll("." + r), i = 0; i < a.length; i++) {
80
- var o = a[i];
81
- if (o.parentNode === e)return o
82
- }
83
- var s = document.createElement(t);
84
- return s.classList.add(r), "string" == typeof n && (s.innerHTML = n), e.appendChild(s), s
85
- }
86
-
87
- function l() {
88
- var e = x();
89
- Cr.background.innerHTML = "", Cr.background.classList.add("no-transition"), g(Cr.wrapper.querySelectorAll(Ar)).forEach(function (t) {
90
- var r;
91
- r = e ? d(t, t) : d(t, Cr.background), g(t.querySelectorAll("section")).forEach(function (t) {
92
- e ? d(t, t) : d(t, r), r.classList.add("stack")
93
- })
94
- }), xr.parallaxBackgroundImage ? (Cr.background.style.backgroundImage = 'url("' + xr.parallaxBackgroundImage + '")', Cr.background.style.backgroundSize = xr.parallaxBackgroundSize, setTimeout(function () {
95
- Cr.wrapper.classList.add("has-parallax-background")
96
- }, 1)) : (Cr.background.style.backgroundImage = "", Cr.wrapper.classList.remove("has-parallax-background"))
97
- }
98
-
99
- function d(e, t) {
100
- var r = {
101
- background: e.getAttribute("data-background"),
102
- backgroundSize: e.getAttribute("data-background-size"),
103
- backgroundImage: e.getAttribute("data-background-image"),
104
- backgroundVideo: e.getAttribute("data-background-video"),
105
- backgroundIframe: e.getAttribute("data-background-iframe"),
106
- backgroundColor: e.getAttribute("data-background-color"),
107
- backgroundRepeat: e.getAttribute("data-background-repeat"),
108
- backgroundPosition: e.getAttribute("data-background-position"),
109
- backgroundTransition: e.getAttribute("data-background-transition")
110
- }, n = document.createElement("div");
111
- n.className = "slide-background " + e.className.replace(/present|past|future/, ""), r.background && (/^(http|file|\/\/)/gi.test(r.background) || /\.(svg|png|jpg|jpeg|gif|bmp)$/gi.test(r.background) ? e.setAttribute("data-background-image", r.background) : n.style.background = r.background), (r.background || r.backgroundColor || r.backgroundImage || r.backgroundVideo || r.backgroundIframe) && n.setAttribute("data-background-hash", r.background + r.backgroundSize + r.backgroundImage + r.backgroundVideo + r.backgroundIframe + r.backgroundColor + r.backgroundRepeat + r.backgroundPosition + r.backgroundTransition), r.backgroundSize && (n.style.backgroundSize = r.backgroundSize), r.backgroundColor && (n.style.backgroundColor = r.backgroundColor), r.backgroundRepeat && (n.style.backgroundRepeat = r.backgroundRepeat), r.backgroundPosition && (n.style.backgroundPosition = r.backgroundPosition), r.backgroundTransition && n.setAttribute("data-background-transition", r.backgroundTransition), t.appendChild(n), e.classList.remove("has-dark-background"), e.classList.remove("has-light-background");
112
- var a = window.getComputedStyle(n).backgroundColor;
113
- if (a) {
114
- var i = k(a);
115
- i && 0 !== i.a && e.classList.add(A(a) < 128 ? "has-dark-background" : "has-light-background")
116
- }
117
- return n
118
- }
119
-
120
- function u() {
121
- xr.postMessage && window.addEventListener("message", function (e) {
122
- var t = e.data;
123
- "{" === t.charAt(0) && "}" === t.charAt(t.length - 1) && (t = JSON.parse(t), t.method && "function" == typeof vr[t.method] && vr[t.method].apply(vr, t.args))
124
- }, !1)
125
- }
126
-
127
- function p(e) {
128
- var t = Cr.wrapper.querySelectorAll(kr).length;
129
- Cr.wrapper.classList.remove(xr.transition), "object" == typeof e && h(xr, e), Pr.transforms3d === !1 && (xr.transition = "linear"), Cr.wrapper.classList.add(xr.transition), Cr.wrapper.setAttribute("data-transition-speed", xr.transitionSpeed), Cr.wrapper.setAttribute("data-background-transition", xr.backgroundTransition), Cr.controls.style.display = xr.controls ? "block" : "none", Cr.progress.style.display = xr.progress ? "block" : "none", xr.rtl ? Cr.wrapper.classList.add("rtl") : Cr.wrapper.classList.remove("rtl"), xr.center ? Cr.wrapper.classList.add("center") : Cr.wrapper.classList.remove("center"), xr.pause === !1 && J(), xr.mouseWheel ? (document.addEventListener("DOMMouseScroll", Gt, !1), document.addEventListener("mousewheel", Gt, !1)) : (document.removeEventListener("DOMMouseScroll", Gt, !1), document.removeEventListener("mousewheel", Gt, !1)), xr.rollingLinks ? N() : I(), xr.previewLinks ? C() : (P(), C("[data-preview-link]")), Lr && (Lr.destroy(), Lr = null), t > 1 && xr.autoSlide && xr.autoSlideStoppable && Pr.canvas && Pr.requestAnimationFrame && (Lr = new fr(Cr.wrapper, function () {
130
- return Math.min(Math.max((Date.now() - zr) / Wr, 0), 1)
131
- }), Lr.on("click", pr), Fr = !1), xr.fragments === !1 && g(Cr.slides.querySelectorAll(".fragment")).forEach(function (e) {
132
- e.classList.add("visible"), e.classList.remove("current-fragment")
133
- }), nt()
134
- }
135
-
136
- function f() {
137
- if (Rr = !0, window.addEventListener("hashchange", sr, !1), window.addEventListener("resize", cr, !1), xr.touch && (Cr.wrapper.addEventListener("touchstart", _t, !1), Cr.wrapper.addEventListener("touchmove", Kt, !1), Cr.wrapper.addEventListener("touchend", Vt, !1), window.navigator.pointerEnabled ? (Cr.wrapper.addEventListener("pointerdown", Zt, !1), Cr.wrapper.addEventListener("pointermove", Jt, !1), Cr.wrapper.addEventListener("pointerup", Qt, !1)) : window.navigator.msPointerEnabled && (Cr.wrapper.addEventListener("MSPointerDown", Zt, !1), Cr.wrapper.addEventListener("MSPointerMove", Jt, !1), Cr.wrapper.addEventListener("MSPointerUp", Qt, !1))), xr.keyboard && (document.addEventListener("keydown", $t, !1), document.addEventListener("keypress", Ut, !1)), xr.progress && Cr.progress && Cr.progress.addEventListener("click", er, !1), xr.focusBodyOnPageVisibilityChange) {
138
- var e;
139
- "hidden"in document ? e = "visibilitychange" : "msHidden"in document ? e = "msvisibilitychange" : "webkitHidden"in document && (e = "webkitvisibilitychange"), e && document.addEventListener(e, lr, !1)
140
- }
141
- var t = ["touchstart", "click"];
142
- navigator.userAgent.match(/android/gi) && (t = ["touchstart"]), t.forEach(function (e) {
143
- Cr.controlsLeft.forEach(function (t) {
144
- t.addEventListener(e, tr, !1)
145
- }), Cr.controlsRight.forEach(function (t) {
146
- t.addEventListener(e, rr, !1)
147
- }), Cr.controlsUp.forEach(function (t) {
148
- t.addEventListener(e, nr, !1)
149
- }), Cr.controlsDown.forEach(function (t) {
150
- t.addEventListener(e, ar, !1)
151
- }), Cr.controlsPrev.forEach(function (t) {
152
- t.addEventListener(e, ir, !1)
153
- }), Cr.controlsNext.forEach(function (t) {
154
- t.addEventListener(e, or, !1)
155
- })
156
- })
157
- }
158
-
159
- function v() {
160
- Rr = !1, document.removeEventListener("keydown", $t, !1), document.removeEventListener("keypress", Ut, !1), window.removeEventListener("hashchange", sr, !1), window.removeEventListener("resize", cr, !1), Cr.wrapper.removeEventListener("touchstart", _t, !1), Cr.wrapper.removeEventListener("touchmove", Kt, !1), Cr.wrapper.removeEventListener("touchend", Vt, !1), window.navigator.pointerEnabled ? (Cr.wrapper.removeEventListener("pointerdown", Zt, !1), Cr.wrapper.removeEventListener("pointermove", Jt, !1), Cr.wrapper.removeEventListener("pointerup", Qt, !1)) : window.navigator.msPointerEnabled && (Cr.wrapper.removeEventListener("MSPointerDown", Zt, !1), Cr.wrapper.removeEventListener("MSPointerMove", Jt, !1), Cr.wrapper.removeEventListener("MSPointerUp", Qt, !1)), xr.progress && Cr.progress && Cr.progress.removeEventListener("click", er, !1), ["touchstart", "click"].forEach(function (e) {
161
- Cr.controlsLeft.forEach(function (t) {
162
- t.removeEventListener(e, tr, !1)
163
- }), Cr.controlsRight.forEach(function (t) {
164
- t.removeEventListener(e, rr, !1)
165
- }), Cr.controlsUp.forEach(function (t) {
166
- t.removeEventListener(e, nr, !1)
167
- }), Cr.controlsDown.forEach(function (t) {
168
- t.removeEventListener(e, ar, !1)
169
- }), Cr.controlsPrev.forEach(function (t) {
170
- t.removeEventListener(e, ir, !1)
171
- }), Cr.controlsNext.forEach(function (t) {
172
- t.removeEventListener(e, or, !1)
173
- })
174
- })
175
- }
176
-
177
- function h(e, t) {
178
- for (var r in t)e[r] = t[r]
179
- }
180
-
181
- function g(e) {
182
- return Array.prototype.slice.call(e)
183
- }
184
-
185
- function m(e) {
186
- if ("string" == typeof e) {
187
- if ("null" === e)return null;
188
- if ("true" === e)return !0;
189
- if ("false" === e)return !1;
190
- if (e.match(/^\d+$/))return parseFloat(e)
191
- }
192
- return e
193
- }
194
-
195
- function y(e, t) {
196
- var r = e.x - t.x, n = e.y - t.y;
197
- return Math.sqrt(r * r + n * n)
198
- }
199
-
200
- function b(e, t) {
201
- e.style.WebkitTransform = t, e.style.MozTransform = t, e.style.msTransform = t, e.style.transform = t
202
- }
203
-
204
- function w(e) {
205
- "string" == typeof e.layout && (Ir.layout = e.layout), "string" == typeof e.overview && (Ir.overview = e.overview), Ir.layout ? b(Cr.slides, Ir.layout + " " + Ir.overview) : b(Cr.slides, Ir.overview)
206
- }
207
-
208
- function L(e) {
209
- var t = document.createElement("style");
210
- t.type = "text/css", t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e)), document.getElementsByTagName("head")[0].appendChild(t)
211
- }
212
-
213
- function k(e) {
214
- var t = e.match(/^#([0-9a-f]{3})$/i);
215
- if (t && t[1])return t = t[1], {
216
- r: 17 * parseInt(t.charAt(0), 16),
217
- g: 17 * parseInt(t.charAt(1), 16),
218
- b: 17 * parseInt(t.charAt(2), 16)
219
- };
220
- var r = e.match(/^#([0-9a-f]{6})$/i);
221
- if (r && r[1])return r = r[1], {
222
- r: parseInt(r.substr(0, 2), 16),
223
- g: parseInt(r.substr(2, 2), 16),
224
- b: parseInt(r.substr(4, 2), 16)
225
- };
226
- var n = e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);
227
- if (n)return {r: parseInt(n[1], 10), g: parseInt(n[2], 10), b: parseInt(n[3], 10)};
228
- var a = e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);
229
- return a ? {r: parseInt(a[1], 10), g: parseInt(a[2], 10), b: parseInt(a[3], 10), a: parseFloat(a[4])} : null
230
- }
231
-
232
- function A(e) {
233
- return "string" == typeof e && (e = k(e)), e ? (299 * e.r + 587 * e.g + 114 * e.b) / 1e3 : null
234
- }
235
-
236
- function E(e) {
237
- var t = 0;
238
- if (e) {
239
- var r = 0;
240
- g(e.childNodes).forEach(function (e) {
241
- "number" == typeof e.offsetTop && e.style && ("absolute" === window.getComputedStyle(e).position && (r += 1), t = Math.max(t, e.offsetTop + e.offsetHeight))
242
- }), 0 === r && (t = e.offsetHeight)
243
- }
244
- return t
245
- }
246
-
247
- function S(e, t) {
248
- if (t = t || 0, e) {
249
- var r, n = e.style.height;
250
- return e.style.height = "0px", r = t - e.parentNode.offsetHeight, e.style.height = n + "px", r
251
- }
252
- return t
253
- }
254
-
255
- function x() {
256
- return /print-pdf/gi.test(window.location.search)
257
- }
258
-
259
- function q() {
260
- xr.hideAddressBar && wr && (window.addEventListener("load", M, !1), window.addEventListener("orientationchange", M, !1))
261
- }
262
-
263
- function M() {
264
- setTimeout(function () {
265
- window.scrollTo(0, 1)
266
- }, 10)
267
- }
268
-
269
- function T(e, t) {
270
- var r = document.createEvent("HTMLEvents", 1, 2);
271
- r.initEvent(e, !0, !0), h(r, t), Cr.wrapper.dispatchEvent(r), xr.postMessageEvents && window.parent !== window.self && window.parent.postMessage(JSON.stringify({
272
- namespace: "reveal",
273
- eventName: e,
274
- state: Mt()
275
- }), "*")
276
- }
277
-
278
- function N() {
279
- if (Pr.transforms3d && !("msPerspective"in document.body.style))for (var e = Cr.wrapper.querySelectorAll(kr + " a"), t = 0, r = e.length; r > t; t++) {
280
- var n = e[t];
281
- if (!(!n.textContent || n.querySelector("*") || n.className && n.classList.contains(n, "roll"))) {
282
- var a = document.createElement("span");
283
- a.setAttribute("data-title", n.text), a.innerHTML = n.innerHTML, n.classList.add("roll"), n.innerHTML = "", n.appendChild(a)
284
- }
285
- }
286
- }
287
-
288
- function I() {
289
- for (var e = Cr.wrapper.querySelectorAll(kr + " a.roll"), t = 0, r = e.length; r > t; t++) {
290
- var n = e[t], a = n.querySelector("span");
291
- a && (n.classList.remove("roll"), n.innerHTML = a.innerHTML)
292
- }
293
- }
294
-
295
- function C(e) {
296
- var t = g(document.querySelectorAll(e ? e : "a"));
297
- t.forEach(function (e) {
298
- /^(http|www)/gi.test(e.getAttribute("href")) && e.addEventListener("click", ur, !1)
299
- })
300
- }
301
-
302
- function P() {
303
- var e = g(document.querySelectorAll("a"));
304
- e.forEach(function (e) {
305
- /^(http|www)/gi.test(e.getAttribute("href")) && e.removeEventListener("click", ur, !1)
306
- })
307
- }
308
-
309
- function D(e) {
310
- R(), Cr.overlay = document.createElement("div"), Cr.overlay.classList.add("overlay"), Cr.overlay.classList.add("overlay-preview"), Cr.wrapper.appendChild(Cr.overlay), Cr.overlay.innerHTML = ["<header>", '<a class="close" href="#"><span class="icon"></span></a>', '<a class="external" href="' + e + '" target="_blank"><span class="icon"></span></a>', "</header>", '<div class="spinner"></div>', '<div class="viewport">', '<iframe src="' + e + '"></iframe>', "</div>"].join(""), Cr.overlay.querySelector("iframe").addEventListener("load", function () {
311
- Cr.overlay.classList.add("loaded")
312
- }, !1), Cr.overlay.querySelector(".close").addEventListener("click", function (e) {
313
- R(), e.preventDefault()
314
- }, !1), Cr.overlay.querySelector(".external").addEventListener("click", function () {
315
- R()
316
- }, !1), setTimeout(function () {
317
- Cr.overlay.classList.add("visible")
318
- }, 1)
319
- }
320
-
321
- function H() {
322
- if (xr.help) {
323
- R(), Cr.overlay = document.createElement("div"), Cr.overlay.classList.add("overlay"), Cr.overlay.classList.add("overlay-help"), Cr.wrapper.appendChild(Cr.overlay);
324
- var e = '<p class="title">Keyboard Shortcuts</p><br/>';
325
- e += "<table><th>KEY</th><th>ACTION</th>";
326
- for (var t in Xr)e += "<tr><td>" + t + "</td><td>" + Xr[t] + "</td></tr>";
327
- e += "</table>", Cr.overlay.innerHTML = ["<header>", '<a class="close" href="#"><span class="icon"></span></a>', "</header>", '<div class="viewport">', '<div class="viewport-inner">' + e + "</div>", "</div>"].join(""), Cr.overlay.querySelector(".close").addEventListener("click", function (e) {
328
- R(), e.preventDefault()
329
- }, !1), setTimeout(function () {
330
- Cr.overlay.classList.add("visible")
331
- }, 1)
332
- }
333
- }
334
-
335
- function R() {
336
- Cr.overlay && (Cr.overlay.parentNode.removeChild(Cr.overlay), Cr.overlay = null)
337
- }
338
-
339
- function W() {
340
- if (Cr.wrapper && !x()) {
341
- var e = z(), t = 20;
342
- O(xr.width, xr.height, t), Cr.slides.style.width = e.width + "px", Cr.slides.style.height = e.height + "px", Nr = Math.min(e.presentationWidth / e.width, e.presentationHeight / e.height), Nr = Math.max(Nr, xr.minScale), Nr = Math.min(Nr, xr.maxScale), 1 === Nr ? (Cr.slides.style.zoom = "", Cr.slides.style.left = "", Cr.slides.style.top = "", Cr.slides.style.bottom = "", Cr.slides.style.right = "", w({layout: ""})) : !wr && /chrome/i.test(navigator.userAgent) && "undefined" != typeof Cr.slides.style.zoom ? (Cr.slides.style.zoom = Nr, w({layout: ""})) : (Cr.slides.style.left = "50%", Cr.slides.style.top = "50%", Cr.slides.style.bottom = "auto", Cr.slides.style.right = "auto", w({layout: "translate(-50%, -50%) scale(" + Nr + ")"}));
343
- for (var r = g(Cr.wrapper.querySelectorAll(kr)), n = 0, a = r.length; a > n; n++) {
344
- var i = r[n];
345
- "none" !== i.style.display && (i.style.top = xr.center || i.classList.contains("center") ? i.classList.contains("stack") ? 0 : Math.max((e.height - E(i)) / 2 - t, 0) + "px" : "")
346
- }
347
- ct(), pt()
348
- }
349
- }
350
-
351
- function O(e, t) {
352
- g(Cr.slides.querySelectorAll("section > .stretch")).forEach(function (r) {
353
- var n = S(r, t);
354
- if (/(img|video)/gi.test(r.nodeName)) {
355
- var a = r.naturalWidth || r.videoWidth, i = r.naturalHeight || r.videoHeight, o = Math.min(e / a, n / i);
356
- r.style.width = a * o + "px", r.style.height = i * o + "px"
357
- } else r.style.width = e + "px", r.style.height = n + "px"
358
- })
359
- }
360
-
361
- function z(e, t) {
362
- var r = {
363
- width: xr.width,
364
- height: xr.height,
365
- presentationWidth: e || Cr.wrapper.offsetWidth,
366
- presentationHeight: t || Cr.wrapper.offsetHeight
367
- };
368
- return r.presentationWidth -= r.presentationHeight * xr.margin, r.presentationHeight -= r.presentationHeight * xr.margin, "string" == typeof r.width && /%$/.test(r.width) && (r.width = parseInt(r.width, 10) / 100 * r.presentationWidth), "string" == typeof r.height && /%$/.test(r.height) && (r.height = parseInt(r.height, 10) / 100 * r.presentationHeight), r
369
- }
370
-
371
- function F(e, t) {
372
- "object" == typeof e && "function" == typeof e.setAttribute && e.setAttribute("data-previous-indexv", t || 0)
373
- }
374
-
375
- function Y(e) {
376
- if ("object" == typeof e && "function" == typeof e.setAttribute && e.classList.contains("stack")) {
377
- var t = e.hasAttribute("data-start-indexv") ? "data-start-indexv" : "data-previous-indexv";
378
- return parseInt(e.getAttribute(t) || 0, 10)
379
- }
380
- return 0
381
- }
382
-
383
- function X() {
384
- xr.overview && !_() && (Mr = !0, Cr.wrapper.classList.add("overview"), Cr.wrapper.classList.remove("overview-deactivating"), Pr.overviewTransitions && setTimeout(function () {
385
- Cr.wrapper.classList.add("overview-animated")
386
- }, 1), Ht(), Cr.slides.appendChild(Cr.background), g(Cr.wrapper.querySelectorAll(kr)).forEach(function (e) {
387
- e.classList.contains("stack") || e.addEventListener("click", dr, !0)
388
- }), st(), j(), B(), W(), T("overviewshown", {indexh: hr, indexv: gr, currentSlide: yr}))
389
- }
390
-
391
- function j() {
392
- var e = 70, t = xr.width + e, r = xr.height + e;
393
- xr.rtl && (t = -t), g(Cr.wrapper.querySelectorAll(Ar)).forEach(function (e, n) {
394
- e.setAttribute("data-index-h", n), b(e, "translate3d(" + n * t + "px, 0, 0)"), e.classList.contains("stack") && g(e.querySelectorAll("section")).forEach(function (e, t) {
395
- e.setAttribute("data-index-h", n), e.setAttribute("data-index-v", t), b(e, "translate3d(0, " + t * r + "px, 0)")
396
- })
397
- }), g(Cr.background.childNodes).forEach(function (e, n) {
398
- b(e, "translate3d(" + n * t + "px, 0, 0)"), g(e.querySelectorAll(".slide-background")).forEach(function (e, t) {
399
- b(e, "translate3d(0, " + t * r + "px, 0)")
400
- })
401
- })
402
- }
403
-
404
- function B() {
405
- var e = 70, t = xr.width + e, r = xr.height + e;
406
- xr.rtl && (t = -t), w({overview: ["translateX(" + -hr * t + "px)", "translateY(" + -gr * r + "px)", "translateZ(" + (window.innerWidth < 400 ? -1e3 : -2500) + "px)"].join(" ")})
407
- }
408
-
409
- function U() {
410
- xr.overview && (Mr = !1, Cr.wrapper.classList.remove("overview"), Cr.wrapper.classList.remove("overview-animated"), Cr.wrapper.classList.add("overview-deactivating"), setTimeout(function () {
411
- Cr.wrapper.classList.remove("overview-deactivating")
412
- }, 1), Cr.wrapper.appendChild(Cr.background), g(Cr.wrapper.querySelectorAll(kr)).forEach(function (e) {
413
- b(e, ""), e.removeEventListener("click", dr, !0)
414
- }), g(Cr.background.querySelectorAll(".slide-background")).forEach(function (e) {
415
- b(e, "")
416
- }), w({overview: ""}), rt(hr, gr), W(), Dt(), T("overviewhidden", {indexh: hr, indexv: gr, currentSlide: yr}))
417
- }
418
-
419
- function $(e) {
420
- "boolean" == typeof e ? e ? X() : U() : _() ? U() : X()
421
- }
422
-
423
- function _() {
424
- return Mr
425
- }
426
-
427
- function K(e) {
428
- return e = e ? e : yr, e && e.parentNode && !!e.parentNode.nodeName.match(/section/i)
429
- }
430
-
431
- function V() {
432
- var e = document.body, t = e.requestFullScreen || e.webkitRequestFullscreen || e.webkitRequestFullScreen || e.mozRequestFullScreen || e.msRequestFullscreen;
433
- t && t.apply(e)
434
- }
435
-
436
- function Z() {
437
- if (xr.pause) {
438
- var e = Cr.wrapper.classList.contains("paused");
439
- Ht(), Cr.wrapper.classList.add("paused"), e === !1 && T("paused")
440
- }
441
- }
442
-
443
- function J() {
444
- var e = Cr.wrapper.classList.contains("paused");
445
- Cr.wrapper.classList.remove("paused"), Dt(), e && T("resumed")
446
- }
447
-
448
- function Q(e) {
449
- "boolean" == typeof e ? e ? Z() : J() : G() ? J() : Z()
450
- }
451
-
452
- function G() {
453
- return Cr.wrapper.classList.contains("paused")
454
- }
455
-
456
- function et(e) {
457
- "boolean" == typeof e ? e ? Wt() : Rt() : Fr ? Wt() : Rt()
458
- }
459
-
460
- function tt() {
461
- return !(!Wr || Fr)
462
- }
463
-
464
- function rt(e, t, r, n) {
465
- mr = yr;
466
- var a = Cr.wrapper.querySelectorAll(Ar);
467
- void 0 !== t || _() || (t = Y(a[e])), mr && mr.parentNode && mr.parentNode.classList.contains("stack") && F(mr.parentNode, gr);
468
- var i = Tr.concat();
469
- Tr.length = 0;
470
- var o = hr || 0, s = gr || 0;
471
- hr = ot(Ar, void 0 === e ? hr : e), gr = ot(Er, void 0 === t ? gr : t), st(), W();
472
- e:for (var c = 0, l = Tr.length; l > c; c++) {
473
- for (var d = 0; d < i.length; d++)if (i[d] === Tr[c]) {
474
- i.splice(d, 1);
475
- continue e
476
- }
477
- document.documentElement.classList.add(Tr[c]), T(Tr[c])
478
- }
479
- for (; i.length;)document.documentElement.classList.remove(i.pop());
480
- _() && B();
481
- var u = a[hr], p = u.querySelectorAll("section");
482
- yr = p[gr] || u, "undefined" != typeof r && It(r);
483
- var f = hr !== o || gr !== s;
484
- f ? T("slidechanged", {
485
- indexh: hr,
486
- indexv: gr,
487
- previousSlide: mr,
488
- currentSlide: yr,
489
- origin: n
490
- }) : mr = null, mr && (mr.classList.remove("present"), mr.setAttribute("aria-hidden", "true"), Cr.wrapper.querySelector(Sr).classList.contains("present") && setTimeout(function () {
491
- var e, t = g(Cr.wrapper.querySelectorAll(Ar + ".stack"));
492
- for (e in t)t[e] && F(t[e], 0)
493
- }, 0)), (f || !mr) && (bt(mr), yt(yr)), Cr.statusDiv.textContent = yr.textContent, dt(), ct(), ut(), pt(), lt(), At(), Dt()
494
- }
495
-
496
- function nt() {
497
- v(), f(), W(), Wr = xr.autoSlide, Dt(), l(), At(), it(), dt(), ct(), ut(!0), lt(), st(), mt(), _() && j()
498
- }
499
-
500
- function at() {
501
- var e = g(Cr.wrapper.querySelectorAll(Ar));
502
- e.forEach(function (e) {
503
- var t = g(e.querySelectorAll("section"));
504
- t.forEach(function (e, t) {
505
- t > 0 && (e.classList.remove("present"), e.classList.remove("past"), e.classList.add("future"), e.setAttribute("aria-hidden", "true"))
506
- })
507
- })
508
- }
509
-
510
- function it() {
511
- var e = g(Cr.wrapper.querySelectorAll(Ar));
512
- e.forEach(function (e) {
513
- var t = g(e.querySelectorAll("section"));
514
- t.forEach(function (e) {
515
- Nt(e.querySelectorAll(".fragment"))
516
- }), 0 === t.length && Nt(e.querySelectorAll(".fragment"))
517
- })
518
- }
519
-
520
- function ot(e, t) {
521
- var r = g(Cr.wrapper.querySelectorAll(e)), n = r.length, a = x();
522
- if (n) {
523
- xr.loop && (t %= n, 0 > t && (t = n + t)), t = Math.max(Math.min(t, n - 1), 0);
524
- for (var i = 0; n > i; i++) {
525
- var o = r[i], s = xr.rtl && !K(o);
526
- if (o.classList.remove("past"), o.classList.remove("present"), o.classList.remove("future"), o.setAttribute("hidden", ""), o.setAttribute("aria-hidden", "true"), o.querySelector("section") && o.classList.add("stack"), a)o.classList.add("present"); else if (t > i) {
527
- if (o.classList.add(s ? "future" : "past"), xr.fragments)for (var c = g(o.querySelectorAll(".fragment")); c.length;) {
528
- var l = c.pop();
529
- l.classList.add("visible"), l.classList.remove("current-fragment")
530
- }
531
- } else if (i > t && (o.classList.add(s ? "past" : "future"), xr.fragments))for (var d = g(o.querySelectorAll(".fragment.visible")); d.length;) {
532
- var u = d.pop();
533
- u.classList.remove("visible"), u.classList.remove("current-fragment")
534
- }
535
- }
536
- r[t].classList.add("present"), r[t].removeAttribute("hidden"), r[t].removeAttribute("aria-hidden");
537
- var p = r[t].getAttribute("data-state");
538
- p && (Tr = Tr.concat(p.split(" ")))
539
- } else t = 0;
540
- return t
541
- }
542
-
543
- function st() {
544
- var e, t, r = g(Cr.wrapper.querySelectorAll(Ar)), n = r.length;
545
- if (n && "undefined" != typeof hr) {
546
- var a = _() ? 10 : xr.viewDistance;
547
- wr && (a = _() ? 6 : 2), x() && (a = Number.MAX_VALUE);
548
- for (var i = 0; n > i; i++) {
549
- var o = r[i], s = g(o.querySelectorAll("section")), c = s.length;
550
- if (e = Math.abs((hr || 0) - i) || 0, xr.loop && (e = Math.abs(((hr || 0) - i) % (n - a)) || 0), a > e ? ft(o) : vt(o), c)for (var l = Y(o), d = 0; c > d; d++) {
551
- var u = s[d];
552
- t = Math.abs(i === (hr || 0) ? (gr || 0) - d : d - l), a > e + t ? ft(u) : vt(u)
553
- }
554
- }
555
- }
556
- }
557
-
558
- function ct() {
559
- xr.progress && Cr.progressbar && (Cr.progressbar.style.width = wt() * Cr.wrapper.offsetWidth + "px")
560
- }
561
-
562
- function lt() {
563
- if (xr.slideNumber && Cr.slideNumber) {
564
- var e = "c";
565
- "string" == typeof xr.slideNumber && (e = xr.slideNumber);
566
- var t = St();
567
- Cr.slideNumber.innerHTML = e.replace(/h/g, hr).replace(/v/g, gr).replace(/c/g, Math.round(wt() * t) + 1).replace(/t/g, t + 1)
568
- }
569
- }
570
-
571
- function dt() {
572
- var e = ht(), t = gt();
573
- Cr.controlsLeft.concat(Cr.controlsRight).concat(Cr.controlsUp).concat(Cr.controlsDown).concat(Cr.controlsPrev).concat(Cr.controlsNext).forEach(function (e) {
574
- e.classList.remove("enabled"), e.classList.remove("fragmented")
575
- }), e.left && Cr.controlsLeft.forEach(function (e) {
576
- e.classList.add("enabled")
577
- }), e.right && Cr.controlsRight.forEach(function (e) {
578
- e.classList.add("enabled")
579
- }), e.up && Cr.controlsUp.forEach(function (e) {
580
- e.classList.add("enabled")
581
- }), e.down && Cr.controlsDown.forEach(function (e) {
582
- e.classList.add("enabled")
583
- }), (e.left || e.up) && Cr.controlsPrev.forEach(function (e) {
584
- e.classList.add("enabled")
585
- }), (e.right || e.down) && Cr.controlsNext.forEach(function (e) {
586
- e.classList.add("enabled")
587
- }), yr && (t.prev && Cr.controlsPrev.forEach(function (e) {
588
- e.classList.add("fragmented", "enabled")
589
- }), t.next && Cr.controlsNext.forEach(function (e) {
590
- e.classList.add("fragmented", "enabled")
591
- }), K(yr) ? (t.prev && Cr.controlsUp.forEach(function (e) {
592
- e.classList.add("fragmented", "enabled")
593
- }), t.next && Cr.controlsDown.forEach(function (e) {
594
- e.classList.add("fragmented", "enabled")
595
- })) : (t.prev && Cr.controlsLeft.forEach(function (e) {
596
- e.classList.add("fragmented", "enabled")
597
- }), t.next && Cr.controlsRight.forEach(function (e) {
598
- e.classList.add("fragmented", "enabled")
599
- })))
600
- }
601
-
602
- function ut(e) {
603
- var t = null, r = xr.rtl ? "future" : "past", n = xr.rtl ? "past" : "future";
604
- if (g(Cr.background.childNodes).forEach(function (a, i) {
605
- a.classList.remove("past"), a.classList.remove("present"), a.classList.remove("future"), hr > i ? a.classList.add(r) : i > hr ? a.classList.add(n) : (a.classList.add("present"), t = a), (e || i === hr) && g(a.querySelectorAll(".slide-background")).forEach(function (e, r) {
606
- e.classList.remove("past"), e.classList.remove("present"), e.classList.remove("future"), gr > r ? e.classList.add("past") : r > gr ? e.classList.add("future") : (e.classList.add("present"), i === hr && (t = e))
607
- })
608
- }), br) {
609
- var a = br.querySelector("video");
610
- a && a.pause()
611
- }
612
- if (t) {
613
- var i = t.querySelector("video");
614
- i && (i.currentTime = 0, i.play());
615
- var o = t.style.backgroundImage || "";
616
- /\.gif/i.test(o) && (t.style.backgroundImage = "", window.getComputedStyle(t).opacity, t.style.backgroundImage = o);
617
- var s = br ? br.getAttribute("data-background-hash") : null, c = t.getAttribute("data-background-hash");
618
- c && c === s && t !== br && Cr.background.classList.add("no-transition"), br = t
619
- }
620
- yr && ["has-light-background", "has-dark-background"].forEach(function (e) {
621
- yr.classList.contains(e) ? Cr.wrapper.classList.add(e) : Cr.wrapper.classList.remove(e)
622
- }), setTimeout(function () {
623
- Cr.background.classList.remove("no-transition")
624
- }, 1)
625
- }
626
-
627
- function pt() {
628
- if (xr.parallaxBackgroundImage) {
629
- var e, t, r = Cr.wrapper.querySelectorAll(Ar), n = Cr.wrapper.querySelectorAll(Er), a = Cr.background.style.backgroundSize.split(" ");
630
- 1 === a.length ? e = t = parseInt(a[0], 10) : (e = parseInt(a[0], 10), t = parseInt(a[1], 10));
631
- var i = Cr.background.offsetWidth, o = r.length, s = -(e - i) / (o - 1) * hr, c = Cr.background.offsetHeight, l = n.length, d = l > 1 ? -(t - c) / (l - 1) * gr : 0;
632
- Cr.background.style.backgroundPosition = s + "px " + d + "px"
633
- }
634
- }
635
-
636
- function ft(e) {
637
- e.style.display = "block", g(e.querySelectorAll("img[data-src], video[data-src], audio[data-src], iframe[data-src]")).forEach(function (e) {
638
- e.setAttribute("src", e.getAttribute("data-src")), e.removeAttribute("data-src")
639
- }), g(e.querySelectorAll("video, audio")).forEach(function (e) {
640
- var t = 0;
641
- g(e.querySelectorAll("source[data-src]")).forEach(function (e) {
642
- e.setAttribute("src", e.getAttribute("data-src")), e.removeAttribute("data-src"), t += 1
643
- }), t > 0 && e.load()
644
- });
645
- var t = Et(e), r = qt(t.h, t.v);
646
- if (r && (r.style.display = "block", r.hasAttribute("data-loaded") === !1)) {
647
- r.setAttribute("data-loaded", "true");
648
- var n = e.getAttribute("data-background-image"), a = e.getAttribute("data-background-video"), i = e.getAttribute("data-background-iframe");
649
- if (n)r.style.backgroundImage = "url(" + n + ")"; else if (a && !Lt()) {
650
- var o = document.createElement("video");
651
- a.split(",").forEach(function (e) {
652
- o.innerHTML += '<source src="' + e + '">'
653
- }), r.appendChild(o)
654
- } else if (i) {
655
- var s = document.createElement("iframe");
656
- s.setAttribute("src", i), s.style.width = "100%", s.style.height = "100%", s.style.maxHeight = "100%", s.style.maxWidth = "100%", r.appendChild(s)
657
- }
658
- }
659
- }
660
-
661
- function vt(e) {
662
- e.style.display = "none";
663
- var t = Et(e), r = qt(t.h, t.v);
664
- r && (r.style.display = "none")
665
- }
666
-
667
- function ht() {
668
- var e = Cr.wrapper.querySelectorAll(Ar), t = Cr.wrapper.querySelectorAll(Er), r = {
669
- left: hr > 0 || xr.loop,
670
- right: hr < e.length - 1 || xr.loop,
671
- up: gr > 0,
672
- down: gr < t.length - 1
673
- };
674
- if (xr.rtl) {
675
- var n = r.left;
676
- r.left = r.right, r.right = n
677
- }
678
- return r
679
- }
680
-
681
- function gt() {
682
- if (yr && xr.fragments) {
683
- var e = yr.querySelectorAll(".fragment"), t = yr.querySelectorAll(".fragment:not(.visible)");
684
- return {prev: e.length - t.length > 0, next: !!t.length}
685
- }
686
- return {prev: !1, next: !1}
687
- }
688
-
689
- function mt() {
690
- g(Cr.slides.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function (e) {
691
- var t = e.getAttribute("src");
692
- /enablejsapi\=1/gi.test(t) || e.setAttribute("src", t + (/\?/.test(t) ? "&" : "?") + "enablejsapi=1")
693
- }), g(Cr.slides.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(function (e) {
694
- var t = e.getAttribute("src");
695
- /api\=1/gi.test(t) || e.setAttribute("src", t + (/\?/.test(t) ? "&" : "?") + "api=1")
696
- })
697
- }
698
-
699
- function yt(e) {
700
- e && !Lt() && (g(e.querySelectorAll('img[src$=".gif"]')).forEach(function (e) {
701
- e.setAttribute("src", e.getAttribute("src"))
702
- }), g(e.querySelectorAll("video, audio")).forEach(function (e) {
703
- e.hasAttribute("data-autoplay") && e.play()
704
- }), g(e.querySelectorAll("iframe")).forEach(function (e) {
705
- e.contentWindow.postMessage("slide:start", "*")
706
- }), g(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function (e) {
707
- e.hasAttribute("data-autoplay") && e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', "*")
708
- }), g(e.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(function (e) {
709
- e.hasAttribute("data-autoplay") && e.contentWindow.postMessage('{"method":"play"}', "*")
710
- }))
711
- }
712
-
713
- function bt(e) {
714
- e && e.parentNode && (g(e.querySelectorAll("video, audio")).forEach(function (e) {
715
- e.hasAttribute("data-ignore") || e.pause()
716
- }), g(e.querySelectorAll("iframe")).forEach(function (e) {
717
- e.contentWindow.postMessage("slide:stop", "*")
718
- }), g(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function (e) {
719
- e.hasAttribute("data-ignore") || "function" != typeof e.contentWindow.postMessage || e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', "*")
720
- }), g(e.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(function (e) {
721
- e.hasAttribute("data-ignore") || "function" != typeof e.contentWindow.postMessage || e.contentWindow.postMessage('{"method":"pause"}', "*")
722
- }))
723
- }
724
-
725
- function wt() {
726
- var e = g(Cr.wrapper.querySelectorAll(Ar)), t = St(), r = 0;
727
- e:for (var n = 0; n < e.length; n++) {
728
- for (var a = e[n], i = g(a.querySelectorAll("section")), o = 0; o < i.length; o++) {
729
- if (i[o].classList.contains("present"))break e;
730
- r++
731
- }
732
- if (a.classList.contains("present"))break;
733
- a.classList.contains("stack") === !1 && r++
734
- }
735
- if (yr) {
736
- var s = yr.querySelectorAll(".fragment");
737
- if (s.length > 0) {
738
- var c = yr.querySelectorAll(".fragment.visible"), l = .9;
739
- r += c.length / s.length * l
740
- }
741
- }
742
- return r / (t - 1)
743
- }
744
-
745
- function Lt() {
746
- return !!window.location.search.match(/receiver/gi)
747
- }
748
-
749
- function kt() {
750
- var e = window.location.hash, t = e.slice(2).split("/"), r = e.replace(/#|\//gi, "");
751
- if (isNaN(parseInt(t[0], 10)) && r.length) {
752
- var n;
753
- if (/^[a-zA-Z][\w:.-]*$/.test(r) && (n = document.getElementById(r)), n) {
754
- var a = vr.getIndices(n);
755
- rt(a.h, a.v)
756
- } else rt(hr || 0, gr || 0)
757
- } else {
758
- var i = parseInt(t[0], 10) || 0, o = parseInt(t[1], 10) || 0;
759
- (i !== hr || o !== gr) && rt(i, o)
760
- }
761
- }
762
-
763
- function At(e) {
764
- if (xr.history)if (clearTimeout(Hr), "number" == typeof e)Hr = setTimeout(At, e); else if (yr) {
765
- var t = "/", r = yr.getAttribute("id");
766
- r && (r = r.toLowerCase(), r = r.replace(/[^a-zA-Z0-9\-\_\:\.]/g, "")), "string" == typeof r && r.length ? t = "/" + r : ((hr > 0 || gr > 0) && (t += hr), gr > 0 && (t += "/" + gr)), window.location.hash = t
767
- }
768
- }
769
-
770
- function Et(e) {
771
- var t, r = hr, n = gr;
772
- if (e) {
773
- var a = K(e), i = a ? e.parentNode : e, o = g(Cr.wrapper.querySelectorAll(Ar));
774
- r = Math.max(o.indexOf(i), 0), n = void 0, a && (n = Math.max(g(e.parentNode.querySelectorAll("section")).indexOf(e), 0))
775
- }
776
- if (!e && yr) {
777
- var s = yr.querySelectorAll(".fragment").length > 0;
778
- if (s) {
779
- var c = yr.querySelector(".current-fragment");
780
- t = c && c.hasAttribute("data-fragment-index") ? parseInt(c.getAttribute("data-fragment-index"), 10) : yr.querySelectorAll(".fragment.visible").length - 1
781
- }
782
- }
783
- return {h: r, v: n, f: t}
784
- }
785
-
786
- function St() {
787
- return Cr.wrapper.querySelectorAll(kr + ":not(.stack)").length
788
- }
789
-
790
- function xt(e, t) {
791
- var r = Cr.wrapper.querySelectorAll(Ar)[e], n = r && r.querySelectorAll("section");
792
- return n && n.length && "number" == typeof t ? n ? n[t] : void 0 : r
793
- }
794
-
795
- function qt(e, t) {
796
- if (x()) {
797
- var r = xt(e, t);
798
- if (r) {
799
- var n = r.querySelector(".slide-background");
800
- if (n && n.parentNode === r)return n
801
- }
802
- return void 0
803
- }
804
- var a = Cr.wrapper.querySelectorAll(".backgrounds>.slide-background")[e], i = a && a.querySelectorAll(".slide-background");
805
- return i && i.length && "number" == typeof t ? i ? i[t] : void 0 : a
806
- }
807
-
808
- function Mt() {
809
- var e = Et();
810
- return {indexh: e.h, indexv: e.v, indexf: e.f, paused: G(), overview: _()}
811
- }
812
-
813
- function Tt(e) {
814
- if ("object" == typeof e) {
815
- rt(m(e.indexh), m(e.indexv), m(e.indexf));
816
- var t = m(e.paused), r = m(e.overview);
817
- "boolean" == typeof t && t !== G() && Q(t), "boolean" == typeof r && r !== _() && $(r)
818
- }
819
- }
820
-
821
- function Nt(e) {
822
- e = g(e);
823
- var t = [], r = [], n = [];
824
- e.forEach(function (e) {
825
- if (e.hasAttribute("data-fragment-index")) {
826
- var n = parseInt(e.getAttribute("data-fragment-index"), 10);
827
- t[n] || (t[n] = []), t[n].push(e)
828
- } else r.push([e])
829
- }), t = t.concat(r);
830
- var a = 0;
831
- return t.forEach(function (e) {
832
- e.forEach(function (e) {
833
- n.push(e), e.setAttribute("data-fragment-index", a)
834
- }), a++
835
- }), n
836
- }
837
-
838
- function It(e, t) {
839
- if (yr && xr.fragments) {
840
- var r = Nt(yr.querySelectorAll(".fragment"));
841
- if (r.length) {
842
- if ("number" != typeof e) {
843
- var n = Nt(yr.querySelectorAll(".fragment.visible")).pop();
844
- e = n ? parseInt(n.getAttribute("data-fragment-index") || 0, 10) : -1
845
- }
846
- "number" == typeof t && (e += t);
847
- var a = [], i = [];
848
- return g(r).forEach(function (t, r) {
849
- t.hasAttribute("data-fragment-index") && (r = parseInt(t.getAttribute("data-fragment-index"), 10)), e >= r ? (t.classList.contains("visible") || a.push(t), t.classList.add("visible"), t.classList.remove("current-fragment"), Cr.statusDiv.textContent = t.textContent, r === e && t.classList.add("current-fragment")) : (t.classList.contains("visible") && i.push(t), t.classList.remove("visible"), t.classList.remove("current-fragment"))
850
- }), i.length && T("fragmenthidden", {
851
- fragment: i[0],
852
- fragments: i
853
- }), a.length && T("fragmentshown", {
854
- fragment: a[0],
855
- fragments: a
856
- }), dt(), ct(), !(!a.length && !i.length)
857
- }
858
- }
859
- return !1
860
- }
861
-
862
- function Ct() {
863
- return It(null, 1)
864
- }
865
-
866
- function Pt() {
867
- return It(null, -1)
868
- }
869
-
870
- function Dt() {
871
- if (Ht(), yr) {
872
- var e = yr.querySelector(".current-fragment"), t = e ? e.getAttribute("data-autoslide") : null, r = yr.parentNode ? yr.parentNode.getAttribute("data-autoslide") : null, n = yr.getAttribute("data-autoslide");
873
- Wr = t ? parseInt(t, 10) : n ? parseInt(n, 10) : r ? parseInt(r, 10) : xr.autoSlide, g(yr.querySelectorAll("video, audio")).forEach(function (e) {
874
- e.hasAttribute("data-autoplay") && Wr && 1e3 * e.duration > Wr && (Wr = 1e3 * e.duration + 1e3)
875
- }), !Wr || Fr || G() || _() || vr.isLastSlide() && !gt().next && xr.loop !== !0 || (Or = setTimeout(jt, Wr), zr = Date.now()), Lr && Lr.setPlaying(-1 !== Or)
876
- }
877
- }
878
-
879
- function Ht() {
880
- clearTimeout(Or), Or = -1
881
- }
882
-
883
- function Rt() {
884
- Wr && !Fr && (Fr = !0, T("autoslidepaused"), clearTimeout(Or), Lr && Lr.setPlaying(!1))
885
- }
886
-
887
- function Wt() {
888
- Wr && Fr && (Fr = !1, T("autoslideresumed"), Dt())
889
- }
890
-
891
- function Ot() {
892
- xr.rtl ? (_() || Ct() === !1) && ht().left && rt(hr + 1) : (_() || Pt() === !1) && ht().left && rt(hr - 1)
893
- }
894
-
895
- function zt() {
896
- xr.rtl ? (_() || Pt() === !1) && ht().right && rt(hr - 1) : (_() || Ct() === !1) && ht().right && rt(hr + 1)
897
- }
898
-
899
- function Ft() {
900
- (_() || Pt() === !1) && ht().up && rt(hr, gr - 1)
901
- }
902
-
903
- function Yt() {
904
- (_() || Ct() === !1) && ht().down && rt(hr, gr + 1)
905
- }
906
-
907
- function Xt() {
908
- if (Pt() === !1)if (ht().up)Ft(); else {
909
- var e;
910
- if (e = xr.rtl ? g(Cr.wrapper.querySelectorAll(Ar + ".future")).pop() : g(Cr.wrapper.querySelectorAll(Ar + ".past")).pop()) {
911
- var t = e.querySelectorAll("section").length - 1 || void 0, r = hr - 1;
912
- rt(r, t)
913
- }
914
- }
915
- }
916
-
917
- function jt() {
918
- Ct() === !1 && (ht().down ? Yt() : xr.rtl ? Ot() : zt()), Dt()
919
- }
920
-
921
- function Bt() {
922
- xr.autoSlideStoppable && Rt()
923
- }
924
-
925
- function Ut(e) {
926
- e.shiftKey && 63 === e.charCode && (Cr.overlay ? R() : H(!0))
927
- }
928
-
929
- function $t(e) {
930
- if ("function" == typeof xr.keyboardCondition && xr.keyboardCondition() === !1)return !0;
931
- var t = Fr;
932
- Bt(e);
933
- var r = document.activeElement && "inherit" !== document.activeElement.contentEditable, n = document.activeElement && document.activeElement.tagName && /input|textarea/i.test(document.activeElement.tagName);
934
- if (!(r || n || e.shiftKey && 32 !== e.keyCode || e.altKey || e.ctrlKey || e.metaKey)) {
935
- if (G() && -1 === [66, 190, 191].indexOf(e.keyCode))return !1;
936
- var a = !1;
937
- if ("object" == typeof xr.keyboard)for (var i in xr.keyboard)if (parseInt(i, 10) === e.keyCode) {
938
- var o = xr.keyboard[i];
939
- "function" == typeof o ? o.apply(null, [e]) : "string" == typeof o && "function" == typeof vr[o] && vr[o].call(), a = !0
940
- }
941
- if (a === !1)switch (a = !0, e.keyCode) {
942
- case 80:
943
- case 33:
944
- Xt();
945
- break;
946
- case 78:
947
- case 34:
948
- jt();
949
- break;
950
- case 72:
951
- case 37:
952
- Ot();
953
- break;
954
- case 76:
955
- case 39:
956
- zt();
957
- break;
958
- case 75:
959
- case 38:
960
- Ft();
961
- break;
962
- case 74:
963
- case 40:
964
- Yt();
965
- break;
966
- case 36:
967
- rt(0);
968
- break;
969
- case 35:
970
- rt(Number.MAX_VALUE);
971
- break;
972
- case 32:
973
- _() ? U() : e.shiftKey ? Xt() : jt();
974
- break;
975
- case 13:
976
- _() ? U() : a = !1;
977
- break;
978
- case 58:
979
- case 59:
980
- case 66:
981
- case 190:
982
- case 191:
983
- Q();
984
- break;
985
- case 70:
986
- V();
987
- break;
988
- case 65:
989
- xr.autoSlideStoppable && et(t);
990
- break;
991
- default:
992
- a = !1
993
- }
994
- a ? e.preventDefault && e.preventDefault() : 27 !== e.keyCode && 79 !== e.keyCode || !Pr.transforms3d || (Cr.overlay ? R() : $(), e.preventDefault && e.preventDefault()), Dt()
995
- }
996
- }
997
-
998
- function _t(e) {
999
- Yr.startX = e.touches[0].clientX, Yr.startY = e.touches[0].clientY, Yr.startCount = e.touches.length, 2 === e.touches.length && xr.overview && (Yr.startSpan = y({
1000
- x: e.touches[1].clientX,
1001
- y: e.touches[1].clientY
1002
- }, {x: Yr.startX, y: Yr.startY}))
1003
- }
1004
-
1005
- function Kt(e) {
1006
- if (Yr.captured)navigator.userAgent.match(/android/gi) && e.preventDefault(); else {
1007
- Bt(e);
1008
- var t = e.touches[0].clientX, r = e.touches[0].clientY;
1009
- if (2 === e.touches.length && 2 === Yr.startCount && xr.overview) {
1010
- var n = y({x: e.touches[1].clientX, y: e.touches[1].clientY}, {x: Yr.startX, y: Yr.startY});
1011
- Math.abs(Yr.startSpan - n) > Yr.threshold && (Yr.captured = !0, n < Yr.startSpan ? X() : U()), e.preventDefault()
1012
- } else if (1 === e.touches.length && 2 !== Yr.startCount) {
1013
- var a = t - Yr.startX, i = r - Yr.startY;
1014
- a > Yr.threshold && Math.abs(a) > Math.abs(i) ? (Yr.captured = !0, Ot()) : a < -Yr.threshold && Math.abs(a) > Math.abs(i) ? (Yr.captured = !0, zt()) : i > Yr.threshold ? (Yr.captured = !0, Ft()) : i < -Yr.threshold && (Yr.captured = !0, Yt()), xr.embedded ? (Yr.captured || K(yr)) && e.preventDefault() : e.preventDefault()
1015
- }
1016
- }
1017
- }
1018
-
1019
- function Vt() {
1020
- Yr.captured = !1
1021
- }
1022
-
1023
- function Zt(e) {
1024
- (e.pointerType === e.MSPOINTER_TYPE_TOUCH || "touch" === e.pointerType) && (e.touches = [{
1025
- clientX: e.clientX,
1026
- clientY: e.clientY
1027
- }], _t(e))
1028
- }
1029
-
1030
- function Jt(e) {
1031
- (e.pointerType === e.MSPOINTER_TYPE_TOUCH || "touch" === e.pointerType) && (e.touches = [{
1032
- clientX: e.clientX,
1033
- clientY: e.clientY
1034
- }], Kt(e))
1035
- }
1036
-
1037
- function Qt(e) {
1038
- (e.pointerType === e.MSPOINTER_TYPE_TOUCH || "touch" === e.pointerType) && (e.touches = [{
1039
- clientX: e.clientX,
1040
- clientY: e.clientY
1041
- }], Vt(e))
1042
- }
1043
-
1044
- function Gt(e) {
1045
- if (Date.now() - Dr > 600) {
1046
- Dr = Date.now();
1047
- var t = e.detail || -e.wheelDelta;
1048
- t > 0 ? jt() : Xt()
1049
- }
1050
- }
1051
-
1052
- function er(e) {
1053
- Bt(e), e.preventDefault();
1054
- var t = g(Cr.wrapper.querySelectorAll(Ar)).length, r = Math.floor(e.clientX / Cr.wrapper.offsetWidth * t);
1055
- rt(r)
1056
- }
1057
-
1058
- function tr(e) {
1059
- e.preventDefault(), Bt(), Ot()
1060
- }
1061
-
1062
- function rr(e) {
1063
- e.preventDefault(), Bt(), zt()
1064
- }
1065
-
1066
- function nr(e) {
1067
- e.preventDefault(), Bt(), Ft()
1068
- }
1069
-
1070
- function ar(e) {
1071
- e.preventDefault(), Bt(), Yt()
1072
- }
1073
-
1074
- function ir(e) {
1075
- e.preventDefault(), Bt(), Xt()
1076
- }
1077
-
1078
- function or(e) {
1079
- e.preventDefault(), Bt(), jt()
1080
- }
1081
-
1082
- function sr() {
1083
- kt()
1084
- }
1085
-
1086
- function cr() {
1087
- W()
1088
- }
1089
-
1090
- function lr() {
1091
- var e = document.webkitHidden || document.msHidden || document.hidden;
1092
- e === !1 && document.activeElement !== document.body && (document.activeElement.blur(), document.body.focus())
1093
- }
1094
-
1095
- function dr(e) {
1096
- if (Rr && _()) {
1097
- e.preventDefault();
1098
- for (var t = e.target; t && !t.nodeName.match(/section/gi);)t = t.parentNode;
1099
- if (t && !t.classList.contains("disabled") && (U(), t.nodeName.match(/section/gi))) {
1100
- var r = parseInt(t.getAttribute("data-index-h"), 10), n = parseInt(t.getAttribute("data-index-v"), 10);
1101
- rt(r, n)
1102
- }
1103
- }
1104
- }
1105
-
1106
- function ur(e) {
1107
- if (e.currentTarget && e.currentTarget.hasAttribute("href")) {
1108
- var t = e.currentTarget.getAttribute("href");
1109
- t && (D(t), e.preventDefault())
1110
- }
1111
- }
1112
-
1113
- function pr() {
1114
- vr.isLastSlide() && xr.loop === !1 ? (rt(0, 0), Wt()) : Fr ? Wt() : Rt()
1115
- }
1116
-
1117
- function fr(e, t) {
1118
- this.diameter = 50, this.thickness = 3, this.playing = !1, this.progress = 0, this.progressOffset = 1, this.container = e, this.progressCheck = t, this.canvas = document.createElement("canvas"), this.canvas.className = "playback", this.canvas.width = this.diameter, this.canvas.height = this.diameter, this.context = this.canvas.getContext("2d"), this.container.appendChild(this.canvas), this.render()
1119
- }
1120
-
1121
- var vr, hr, gr, mr, yr, br, wr, Lr, kr = ".slides section", Ar = ".slides>section", Er = ".slides>section.present>section", Sr = ".slides>section:first-of-type", xr = {
1122
- width: 960,
1123
- height: 700,
1124
- margin: .1,
1125
- minScale: .2,
1126
- maxScale: 1,
1127
- controls: !0,
1128
- progress: !0,
1129
- slideNumber: !1,
1130
- history: !1,
1131
- keyboard: !0,
1132
- keyboardCondition: null,
1133
- overview: !0,
1134
- center: !0,
1135
- touch: !0,
1136
- loop: !1,
1137
- rtl: !1,
1138
- fragments: !0,
1139
- embedded: !1,
1140
- help: !0,
1141
- pause: !0,
1142
- autoSlide: 0,
1143
- autoSlideStoppable: !0,
1144
- mouseWheel: !1,
1145
- rollingLinks: !1,
1146
- hideAddressBar: !0,
1147
- previewLinks: !1,
1148
- postMessage: !0,
1149
- postMessageEvents: !1,
1150
- focusBodyOnPageVisibilityChange: !0,
1151
- transition: "default",
1152
- transitionSpeed: "default",
1153
- backgroundTransition: "default",
1154
- parallaxBackgroundImage: "",
1155
- parallaxBackgroundSize: "",
1156
- viewDistance: 3,
1157
- dependencies: []
1158
- }, qr = !1, Mr = !1, Tr = [], Nr = 1, Ir = {
1159
- layout: "",
1160
- overview: ""
1161
- }, Cr = {}, Pr = {}, Dr = 0, Hr = 0, Rr = !1, Wr = 0, Or = 0, zr = -1, Fr = !1, Yr = {
1162
- startX: 0,
1163
- startY: 0,
1164
- startSpan: 0,
1165
- startCount: 0,
1166
- captured: !1,
1167
- threshold: 40
1168
- }, Xr = {
1169
- "N , SPACE": "Next slide",
1170
- P: "Previous slide",
1171
- "&#8592; , H": "Navigate left",
1172
- "&#8594; , L": "Navigate right",
1173
- "&#8593; , K": "Navigate up",
1174
- "&#8595; , J": "Navigate down",
1175
- Home: "First slide",
1176
- End: "Last slide",
1177
- "B , .": "Pause",
1178
- F: "Fullscreen",
1179
- "ESC, O": "Slide overview"
1180
- };
1181
- return fr.prototype.setPlaying = function (e) {
1182
- var t = this.playing;
1183
- this.playing = e, !t && this.playing ? this.animate() : this.render()
1184
- }, fr.prototype.animate = function () {
1185
- var e = this.progress;
1186
- this.progress = this.progressCheck(), e > .8 && this.progress < .2 && (this.progressOffset = this.progress), this.render(), this.playing && Pr.requestAnimationFrameMethod.call(window, this.animate.bind(this))
1187
- }, fr.prototype.render = function () {
1188
- var e = this.playing ? this.progress : 0, t = this.diameter / 2 - this.thickness, r = this.diameter / 2, n = this.diameter / 2, a = 14;
1189
- this.progressOffset += .1 * (1 - this.progressOffset);
1190
- var i = -Math.PI / 2 + 2 * e * Math.PI, o = -Math.PI / 2 + 2 * this.progressOffset * Math.PI;
1191
- this.context.save(), this.context.clearRect(0, 0, this.diameter, this.diameter), this.context.beginPath(), this.context.arc(r, n, t + 2, 0, 2 * Math.PI, !1), this.context.fillStyle = "rgba( 0, 0, 0, 0.4 )", this.context.fill(), this.context.beginPath(), this.context.arc(r, n, t, 0, 2 * Math.PI, !1), this.context.lineWidth = this.thickness, this.context.strokeStyle = "#666", this.context.stroke(), this.playing && (this.context.beginPath(), this.context.arc(r, n, t, o, i, !1), this.context.lineWidth = this.thickness, this.context.strokeStyle = "#fff", this.context.stroke()), this.context.translate(r - a / 2, n - a / 2), this.playing ? (this.context.fillStyle = "#fff", this.context.fillRect(0, 0, a / 2 - 2, a), this.context.fillRect(a / 2 + 2, 0, a / 2 - 2, a)) : (this.context.beginPath(), this.context.translate(2, 0), this.context.moveTo(0, 0), this.context.lineTo(a - 2, a / 2), this.context.lineTo(0, a), this.context.fillStyle = "#fff", this.context.fill()), this.context.restore()
1192
- }, fr.prototype.on = function (e, t) {
1193
- this.canvas.addEventListener(e, t, !1)
1194
- }, fr.prototype.off = function (e, t) {
1195
- this.canvas.removeEventListener(e, t, !1)
1196
- }, fr.prototype.destroy = function () {
1197
- this.playing = !1, this.canvas.parentNode && this.container.removeChild(this.canvas)
1198
- }, vr = {
1199
- initialize: e,
1200
- configure: p,
1201
- sync: nt,
1202
- slide: rt,
1203
- left: Ot,
1204
- right: zt,
1205
- up: Ft,
1206
- down: Yt,
1207
- prev: Xt,
1208
- next: jt,
1209
- navigateFragment: It,
1210
- prevFragment: Pt,
1211
- nextFragment: Ct,
1212
- navigateTo: rt,
1213
- navigateLeft: Ot,
1214
- navigateRight: zt,
1215
- navigateUp: Ft,
1216
- navigateDown: Yt,
1217
- navigatePrev: Xt,
1218
- navigateNext: jt,
1219
- layout: W,
1220
- availableRoutes: ht,
1221
- availableFragments: gt,
1222
- toggleOverview: $,
1223
- togglePause: Q,
1224
- toggleAutoSlide: et,
1225
- isOverview: _,
1226
- isPaused: G,
1227
- isAutoSliding: tt,
1228
- addEventListeners: f,
1229
- removeEventListeners: v,
1230
- getState: Mt,
1231
- setState: Tt,
1232
- getProgress: wt,
1233
- getIndices: Et,
1234
- getTotalSlides: St,
1235
- getSlide: xt,
1236
- getSlideBackground: qt,
1237
- getPreviousSlide: function () {
1238
- return mr
1239
- },
1240
- getCurrentSlide: function () {
1241
- return yr
1242
- },
1243
- getScale: function () {
1244
- return Nr
1245
- },
1246
- getConfig: function () {
1247
- return xr
1248
- },
1249
- getQueryHash: function () {
1250
- var e = {};
1251
- location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi, function (t) {
1252
- e[t.split("=").shift()] = t.split("=").pop()
1253
- });
1254
- for (var t in e) {
1255
- var r = e[t];
1256
- e[t] = m(unescape(r))
1257
- }
1258
- return e
1259
- },
1260
- isFirstSlide: function () {
1261
- return 0 === hr && 0 === gr
1262
- },
1263
- isLastSlide: function () {
1264
- return yr ? yr.nextElementSibling ? !1 : K(yr) && yr.parentNode.nextElementSibling ? !1 : !0 : !1
1265
- },
1266
- isReady: function () {
1267
- return qr
1268
- },
1269
- addEventListener: function (e, t, r) {
1270
- "addEventListener"in window && (Cr.wrapper || document.querySelector(".reveal")).addEventListener(e, t, r)
1271
- },
1272
- removeEventListener: function (e, t, r) {
1273
- "addEventListener"in window && (Cr.wrapper || document.querySelector(".reveal")).removeEventListener(e, t, r)
1274
- },
1275
- triggerKey: function (e) {
1276
- $t({keyCode: e})
1277
- }
1278
- }
1279
- });
1
+ !function(e,t){"function"==typeof define&&define.amd?define(function(){return e.Reveal=t(),e.Reveal}):"object"==typeof exports?module.exports=t():e.Reveal=t()}(this,function(){"use strict";function e(e){if(t(),Pr.transforms2d||Pr.transforms3d){Cr.wrapper=document.querySelector(".reveal"),Cr.slides=document.querySelector(".reveal .slides"),window.addEventListener("load",W,!1);var n=vr.getQueryHash();"undefined"!=typeof n.dependencies&&delete n.dependencies,h(xr,e),h(xr,n),q(),r()}else{document.body.setAttribute("class","no-transforms");for(var a=document.getElementsByTagName("img"),i=0,o=a.length;o>i;i++){var s=a[i];s.getAttribute("data-src")&&(s.setAttribute("src",s.getAttribute("data-src")),s.removeAttribute("data-src"))}}}function t(){Pr.transforms3d="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Pr.transforms2d="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Pr.requestAnimationFrameMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,Pr.requestAnimationFrame="function"==typeof Pr.requestAnimationFrameMethod,Pr.canvas=!!document.createElement("canvas").getContext,Pr.touch=!!("ontouchstart"in window),Pr.overviewTransitions=!/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),wr=/(iphone|ipod|ipad|android)/gi.test(navigator.userAgent)}function r(){function e(){a.length&&head.js.apply(null,a),n()}function t(t){head.ready(t.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],function(){"function"==typeof t.callback&&t.callback.apply(this),0===--i&&e()})}for(var r=[],a=[],i=0,o=0,s=xr.dependencies.length;s>o;o++){var c=xr.dependencies[o];(!c.condition||c.condition())&&(c.async?a.push(c.src):r.push(c.src),t(c))}r.length?(i=r.length,head.js.apply(null,r)):e()}function n(){a(),u(),s(),at(),p(),kt(),ut(!0),setTimeout(function(){Cr.slides.classList.remove("no-transition"),qr=!0,T("ready",{indexh:hr,indexv:gr,currentSlide:yr})},1),x()&&(v(),"complete"===document.readyState?o():window.addEventListener("load",o))}function a(){Cr.slides.classList.add("no-transition"),Cr.background=c(Cr.wrapper,"div","backgrounds",null),Cr.progress=c(Cr.wrapper,"div","progress","<span></span>"),Cr.progressbar=Cr.progress.querySelector("span"),c(Cr.wrapper,"aside","controls",'<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>'),Cr.slideNumber=c(Cr.wrapper,"div","slide-number",""),c(Cr.wrapper,"div","pause-overlay",null),Cr.controls=document.querySelector(".reveal .controls"),Cr.theme=document.querySelector("#theme"),Cr.wrapper.setAttribute("role","application"),Cr.controlsLeft=g(document.querySelectorAll(".navigate-left")),Cr.controlsRight=g(document.querySelectorAll(".navigate-right")),Cr.controlsUp=g(document.querySelectorAll(".navigate-up")),Cr.controlsDown=g(document.querySelectorAll(".navigate-down")),Cr.controlsPrev=g(document.querySelectorAll(".navigate-prev")),Cr.controlsNext=g(document.querySelectorAll(".navigate-next")),Cr.statusDiv=i()}function i(){var e=document.getElementById("aria-status-div");return e||(e=document.createElement("div"),e.style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.setAttribute("id","aria-status-div"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),Cr.wrapper.appendChild(e)),e}function o(){var e=z(window.innerWidth,window.innerHeight),t=Math.floor(e.width*(1+xr.margin)),r=Math.floor(e.height*(1+xr.margin)),n=e.width,a=e.height;L("@page{size:"+t+"px "+r+"px; margin: 0;}"),L(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+n+"px; max-height:"+a+"px}"),document.body.classList.add("print-pdf"),document.body.style.width=t+"px",document.body.style.height=r+"px",g(Cr.wrapper.querySelectorAll(kr)).forEach(function(e){if(e.classList.contains("stack")===!1){var i=(t-n)/2,o=(r-a)/2,s=E(e),c=Math.max(Math.ceil(s/r),1);(1===c&&xr.center||e.classList.contains("center"))&&(o=Math.max((r-s)/2,0)),e.style.left=i+"px",e.style.top=o+"px",e.style.width=n+"px";var l=e.querySelector(".slide-background");l&&(l.style.width=t+"px",l.style.height=r*c+"px",l.style.top=-o+"px",l.style.left=-i+"px")}}),g(Cr.wrapper.querySelectorAll(kr+" .fragment")).forEach(function(e){e.classList.add("visible")})}function s(){Cr.slides.querySelector("iframe")&&setInterval(function(){(0!==Cr.wrapper.scrollTop||0!==Cr.wrapper.scrollLeft)&&(Cr.wrapper.scrollTop=0,Cr.wrapper.scrollLeft=0)},500)}function c(e,t,r,n){for(var a=e.querySelectorAll("."+r),i=0;i<a.length;i++){var o=a[i];if(o.parentNode===e)return o}var s=document.createElement(t);return s.classList.add(r),"string"==typeof n&&(s.innerHTML=n),e.appendChild(s),s}function l(){var e=x();Cr.background.innerHTML="",Cr.background.classList.add("no-transition"),g(Cr.wrapper.querySelectorAll(Ar)).forEach(function(t){var r;r=e?d(t,t):d(t,Cr.background),g(t.querySelectorAll("section")).forEach(function(t){e?d(t,t):d(t,r),r.classList.add("stack")})}),xr.parallaxBackgroundImage?(Cr.background.style.backgroundImage='url("'+xr.parallaxBackgroundImage+'")',Cr.background.style.backgroundSize=xr.parallaxBackgroundSize,setTimeout(function(){Cr.wrapper.classList.add("has-parallax-background")},1)):(Cr.background.style.backgroundImage="",Cr.wrapper.classList.remove("has-parallax-background"))}function d(e,t){var r={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundVideo:e.getAttribute("data-background-video"),backgroundIframe:e.getAttribute("data-background-iframe"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},n=document.createElement("div");n.className="slide-background "+e.className.replace(/present|past|future/,""),r.background&&(/^(http|file|\/\/)/gi.test(r.background)||/\.(svg|png|jpg|jpeg|gif|bmp)$/gi.test(r.background)?e.setAttribute("data-background-image",r.background):n.style.background=r.background),(r.background||r.backgroundColor||r.backgroundImage||r.backgroundVideo||r.backgroundIframe)&&n.setAttribute("data-background-hash",r.background+r.backgroundSize+r.backgroundImage+r.backgroundVideo+r.backgroundIframe+r.backgroundColor+r.backgroundRepeat+r.backgroundPosition+r.backgroundTransition),r.backgroundSize&&(n.style.backgroundSize=r.backgroundSize),r.backgroundColor&&(n.style.backgroundColor=r.backgroundColor),r.backgroundRepeat&&(n.style.backgroundRepeat=r.backgroundRepeat),r.backgroundPosition&&(n.style.backgroundPosition=r.backgroundPosition),r.backgroundTransition&&n.setAttribute("data-background-transition",r.backgroundTransition),t.appendChild(n),e.classList.remove("has-dark-background"),e.classList.remove("has-light-background");var a=window.getComputedStyle(n).backgroundColor;if(a){var i=k(a);i&&0!==i.a&&e.classList.add(A(a)<128?"has-dark-background":"has-light-background")}return n}function u(){xr.postMessage&&window.addEventListener("message",function(e){var t=e.data;"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t),t.method&&"function"==typeof vr[t.method]&&vr[t.method].apply(vr,t.args))},!1)}function p(e){var t=Cr.wrapper.querySelectorAll(kr).length;Cr.wrapper.classList.remove(xr.transition),"object"==typeof e&&h(xr,e),Pr.transforms3d===!1&&(xr.transition="linear"),Cr.wrapper.classList.add(xr.transition),Cr.wrapper.setAttribute("data-transition-speed",xr.transitionSpeed),Cr.wrapper.setAttribute("data-background-transition",xr.backgroundTransition),Cr.controls.style.display=xr.controls?"block":"none",Cr.progress.style.display=xr.progress?"block":"none",xr.rtl?Cr.wrapper.classList.add("rtl"):Cr.wrapper.classList.remove("rtl"),xr.center?Cr.wrapper.classList.add("center"):Cr.wrapper.classList.remove("center"),xr.pause===!1&&J(),xr.mouseWheel?(document.addEventListener("DOMMouseScroll",Gt,!1),document.addEventListener("mousewheel",Gt,!1)):(document.removeEventListener("DOMMouseScroll",Gt,!1),document.removeEventListener("mousewheel",Gt,!1)),xr.rollingLinks?N():I(),xr.previewLinks?C():(P(),C("[data-preview-link]")),Lr&&(Lr.destroy(),Lr=null),t>1&&xr.autoSlide&&xr.autoSlideStoppable&&Pr.canvas&&Pr.requestAnimationFrame&&(Lr=new fr(Cr.wrapper,function(){return Math.min(Math.max((Date.now()-zr)/Wr,0),1)}),Lr.on("click",pr),Fr=!1),xr.fragments===!1&&g(Cr.slides.querySelectorAll(".fragment")).forEach(function(e){e.classList.add("visible"),e.classList.remove("current-fragment")}),nt()}function f(){if(Rr=!0,window.addEventListener("hashchange",sr,!1),window.addEventListener("resize",cr,!1),xr.touch&&(Cr.wrapper.addEventListener("touchstart",_t,!1),Cr.wrapper.addEventListener("touchmove",Kt,!1),Cr.wrapper.addEventListener("touchend",Vt,!1),window.navigator.pointerEnabled?(Cr.wrapper.addEventListener("pointerdown",Zt,!1),Cr.wrapper.addEventListener("pointermove",Jt,!1),Cr.wrapper.addEventListener("pointerup",Qt,!1)):window.navigator.msPointerEnabled&&(Cr.wrapper.addEventListener("MSPointerDown",Zt,!1),Cr.wrapper.addEventListener("MSPointerMove",Jt,!1),Cr.wrapper.addEventListener("MSPointerUp",Qt,!1))),xr.keyboard&&(document.addEventListener("keydown",$t,!1),document.addEventListener("keypress",Ut,!1)),xr.progress&&Cr.progress&&Cr.progress.addEventListener("click",er,!1),xr.focusBodyOnPageVisibilityChange){var e;"hidden"in document?e="visibilitychange":"msHidden"in document?e="msvisibilitychange":"webkitHidden"in document&&(e="webkitvisibilitychange"),e&&document.addEventListener(e,lr,!1)}var t=["touchstart","click"];navigator.userAgent.match(/android/gi)&&(t=["touchstart"]),t.forEach(function(e){Cr.controlsLeft.forEach(function(t){t.addEventListener(e,tr,!1)}),Cr.controlsRight.forEach(function(t){t.addEventListener(e,rr,!1)}),Cr.controlsUp.forEach(function(t){t.addEventListener(e,nr,!1)}),Cr.controlsDown.forEach(function(t){t.addEventListener(e,ar,!1)}),Cr.controlsPrev.forEach(function(t){t.addEventListener(e,ir,!1)}),Cr.controlsNext.forEach(function(t){t.addEventListener(e,or,!1)})})}function v(){Rr=!1,document.removeEventListener("keydown",$t,!1),document.removeEventListener("keypress",Ut,!1),window.removeEventListener("hashchange",sr,!1),window.removeEventListener("resize",cr,!1),Cr.wrapper.removeEventListener("touchstart",_t,!1),Cr.wrapper.removeEventListener("touchmove",Kt,!1),Cr.wrapper.removeEventListener("touchend",Vt,!1),window.navigator.pointerEnabled?(Cr.wrapper.removeEventListener("pointerdown",Zt,!1),Cr.wrapper.removeEventListener("pointermove",Jt,!1),Cr.wrapper.removeEventListener("pointerup",Qt,!1)):window.navigator.msPointerEnabled&&(Cr.wrapper.removeEventListener("MSPointerDown",Zt,!1),Cr.wrapper.removeEventListener("MSPointerMove",Jt,!1),Cr.wrapper.removeEventListener("MSPointerUp",Qt,!1)),xr.progress&&Cr.progress&&Cr.progress.removeEventListener("click",er,!1),["touchstart","click"].forEach(function(e){Cr.controlsLeft.forEach(function(t){t.removeEventListener(e,tr,!1)}),Cr.controlsRight.forEach(function(t){t.removeEventListener(e,rr,!1)}),Cr.controlsUp.forEach(function(t){t.removeEventListener(e,nr,!1)}),Cr.controlsDown.forEach(function(t){t.removeEventListener(e,ar,!1)}),Cr.controlsPrev.forEach(function(t){t.removeEventListener(e,ir,!1)}),Cr.controlsNext.forEach(function(t){t.removeEventListener(e,or,!1)})})}function h(e,t){for(var r in t)e[r]=t[r]}function g(e){return Array.prototype.slice.call(e)}function m(e){if("string"==typeof e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(e.match(/^\d+$/))return parseFloat(e)}return e}function y(e,t){var r=e.x-t.x,n=e.y-t.y;return Math.sqrt(r*r+n*n)}function b(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.transform=t}function w(e){"string"==typeof e.layout&&(Ir.layout=e.layout),"string"==typeof e.overview&&(Ir.overview=e.overview),Ir.layout?b(Cr.slides,Ir.layout+" "+Ir.overview):b(Cr.slides,Ir.overview)}function L(e){var t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t)}function k(e){var t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};var r=e.match(/^#([0-9a-f]{6})$/i);if(r&&r[1])return r=r[1],{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16)};var n=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(n)return{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10)};var a=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return a?{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10),a:parseFloat(a[4])}:null}function A(e){return"string"==typeof e&&(e=k(e)),e?(299*e.r+587*e.g+114*e.b)/1e3:null}function E(e){var t=0;if(e){var r=0;g(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===window.getComputedStyle(e).position&&(r+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===r&&(t=e.offsetHeight)}return t}function S(e,t){if(t=t||0,e){var r,n=e.style.height;return e.style.height="0px",r=t-e.parentNode.offsetHeight,e.style.height=n+"px",r}return t}function x(){return/print-pdf/gi.test(window.location.search)}function q(){xr.hideAddressBar&&wr&&(window.addEventListener("load",M,!1),window.addEventListener("orientationchange",M,!1))}function M(){setTimeout(function(){window.scrollTo(0,1)},10)}function T(e,t){var r=document.createEvent("HTMLEvents",1,2);r.initEvent(e,!0,!0),h(r,t),Cr.wrapper.dispatchEvent(r),xr.postMessageEvents&&window.parent!==window.self&&window.parent.postMessage(JSON.stringify({namespace:"reveal",eventName:e,state:Mt()}),"*")}function N(){if(Pr.transforms3d&&!("msPerspective"in document.body.style))for(var e=Cr.wrapper.querySelectorAll(kr+" a"),t=0,r=e.length;r>t;t++){var n=e[t];if(!(!n.textContent||n.querySelector("*")||n.className&&n.classList.contains(n,"roll"))){var a=document.createElement("span");a.setAttribute("data-title",n.text),a.innerHTML=n.innerHTML,n.classList.add("roll"),n.innerHTML="",n.appendChild(a)}}}function I(){for(var e=Cr.wrapper.querySelectorAll(kr+" a.roll"),t=0,r=e.length;r>t;t++){var n=e[t],a=n.querySelector("span");a&&(n.classList.remove("roll"),n.innerHTML=a.innerHTML)}}function C(e){var t=g(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",ur,!1)})}function P(){var e=g(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",ur,!1)})}function D(e){R(),Cr.overlay=document.createElement("div"),Cr.overlay.classList.add("overlay"),Cr.overlay.classList.add("overlay-preview"),Cr.wrapper.appendChild(Cr.overlay),Cr.overlay.innerHTML=["<header>",'<a class="close" href="#"><span class="icon"></span></a>','<a class="external" href="'+e+'" target="_blank"><span class="icon"></span></a>',"</header>",'<div class="spinner"></div>','<div class="viewport">','<iframe src="'+e+'"></iframe>',"</div>"].join(""),Cr.overlay.querySelector("iframe").addEventListener("load",function(){Cr.overlay.classList.add("loaded")},!1),Cr.overlay.querySelector(".close").addEventListener("click",function(e){R(),e.preventDefault()},!1),Cr.overlay.querySelector(".external").addEventListener("click",function(){R()},!1),setTimeout(function(){Cr.overlay.classList.add("visible")},1)}function H(){if(xr.help){R(),Cr.overlay=document.createElement("div"),Cr.overlay.classList.add("overlay"),Cr.overlay.classList.add("overlay-help"),Cr.wrapper.appendChild(Cr.overlay);var e='<p class="title">Keyboard Shortcuts</p><br/>';e+="<table><th>KEY</th><th>ACTION</th>";for(var t in Xr)e+="<tr><td>"+t+"</td><td>"+Xr[t]+"</td></tr>";e+="</table>",Cr.overlay.innerHTML=["<header>",'<a class="close" href="#"><span class="icon"></span></a>',"</header>",'<div class="viewport">','<div class="viewport-inner">'+e+"</div>","</div>"].join(""),Cr.overlay.querySelector(".close").addEventListener("click",function(e){R(),e.preventDefault()},!1),setTimeout(function(){Cr.overlay.classList.add("visible")},1)}}function R(){Cr.overlay&&(Cr.overlay.parentNode.removeChild(Cr.overlay),Cr.overlay=null)}function W(){if(Cr.wrapper&&!x()){var e=z(),t=20;O(xr.width,xr.height,t),Cr.slides.style.width=e.width+"px",Cr.slides.style.height=e.height+"px",Nr=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),Nr=Math.max(Nr,xr.minScale),Nr=Math.min(Nr,xr.maxScale),1===Nr?(Cr.slides.style.zoom="",Cr.slides.style.left="",Cr.slides.style.top="",Cr.slides.style.bottom="",Cr.slides.style.right="",w({layout:""})):!wr&&/chrome/i.test(navigator.userAgent)&&"undefined"!=typeof Cr.slides.style.zoom?(Cr.slides.style.zoom=Nr,w({layout:""})):(Cr.slides.style.left="50%",Cr.slides.style.top="50%",Cr.slides.style.bottom="auto",Cr.slides.style.right="auto",w({layout:"translate(-50%, -50%) scale("+Nr+")"}));for(var r=g(Cr.wrapper.querySelectorAll(kr)),n=0,a=r.length;a>n;n++){var i=r[n];"none"!==i.style.display&&(i.style.top=xr.center||i.classList.contains("center")?i.classList.contains("stack")?0:Math.max((e.height-E(i))/2-t,0)+"px":"")}ct(),pt()}}function O(e,t){g(Cr.slides.querySelectorAll("section > .stretch")).forEach(function(r){var n=S(r,t);if(/(img|video)/gi.test(r.nodeName)){var a=r.naturalWidth||r.videoWidth,i=r.naturalHeight||r.videoHeight,o=Math.min(e/a,n/i);r.style.width=a*o+"px",r.style.height=i*o+"px"}else r.style.width=e+"px",r.style.height=n+"px"})}function z(e,t){var r={width:xr.width,height:xr.height,presentationWidth:e||Cr.wrapper.offsetWidth,presentationHeight:t||Cr.wrapper.offsetHeight};return r.presentationWidth-=r.presentationHeight*xr.margin,r.presentationHeight-=r.presentationHeight*xr.margin,"string"==typeof r.width&&/%$/.test(r.width)&&(r.width=parseInt(r.width,10)/100*r.presentationWidth),"string"==typeof r.height&&/%$/.test(r.height)&&(r.height=parseInt(r.height,10)/100*r.presentationHeight),r}function F(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function Y(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function X(){xr.overview&&!_()&&(Mr=!0,Cr.wrapper.classList.add("overview"),Cr.wrapper.classList.remove("overview-deactivating"),Pr.overviewTransitions&&setTimeout(function(){Cr.wrapper.classList.add("overview-animated")},1),Ht(),Cr.slides.appendChild(Cr.background),g(Cr.wrapper.querySelectorAll(kr)).forEach(function(e){e.classList.contains("stack")||e.addEventListener("click",dr,!0)}),st(),j(),B(),W(),T("overviewshown",{indexh:hr,indexv:gr,currentSlide:yr}))}function j(){var e=70,t=xr.width+e,r=xr.height+e;xr.rtl&&(t=-t),g(Cr.wrapper.querySelectorAll(Ar)).forEach(function(e,n){e.setAttribute("data-index-h",n),b(e,"translate3d("+n*t+"px, 0, 0)"),e.classList.contains("stack")&&g(e.querySelectorAll("section")).forEach(function(e,t){e.setAttribute("data-index-h",n),e.setAttribute("data-index-v",t),b(e,"translate3d(0, "+t*r+"px, 0)")})}),g(Cr.background.childNodes).forEach(function(e,n){b(e,"translate3d("+n*t+"px, 0, 0)"),g(e.querySelectorAll(".slide-background")).forEach(function(e,t){b(e,"translate3d(0, "+t*r+"px, 0)")})})}function B(){var e=70,t=xr.width+e,r=xr.height+e;xr.rtl&&(t=-t),w({overview:["translateX("+-hr*t+"px)","translateY("+-gr*r+"px)","translateZ("+(window.innerWidth<400?-1e3:-2500)+"px)"].join(" ")})}function U(){xr.overview&&(Mr=!1,Cr.wrapper.classList.remove("overview"),Cr.wrapper.classList.remove("overview-animated"),Cr.wrapper.classList.add("overview-deactivating"),setTimeout(function(){Cr.wrapper.classList.remove("overview-deactivating")},1),Cr.wrapper.appendChild(Cr.background),g(Cr.wrapper.querySelectorAll(kr)).forEach(function(e){b(e,""),e.removeEventListener("click",dr,!0)}),g(Cr.background.querySelectorAll(".slide-background")).forEach(function(e){b(e,"")}),w({overview:""}),rt(hr,gr),W(),Dt(),T("overviewhidden",{indexh:hr,indexv:gr,currentSlide:yr}))}function $(e){"boolean"==typeof e?e?X():U():_()?U():X()}function _(){return Mr}function K(e){return e=e?e:yr,e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function V(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)}function Z(){if(xr.pause){var e=Cr.wrapper.classList.contains("paused");Ht(),Cr.wrapper.classList.add("paused"),e===!1&&T("paused")}}function J(){var e=Cr.wrapper.classList.contains("paused");Cr.wrapper.classList.remove("paused"),Dt(),e&&T("resumed")}function Q(e){"boolean"==typeof e?e?Z():J():G()?J():Z()}function G(){return Cr.wrapper.classList.contains("paused")}function et(e){"boolean"==typeof e?e?Wt():Rt():Fr?Wt():Rt()}function tt(){return!(!Wr||Fr)}function rt(e,t,r,n){mr=yr;var a=Cr.wrapper.querySelectorAll(Ar);void 0!==t||_()||(t=Y(a[e])),mr&&mr.parentNode&&mr.parentNode.classList.contains("stack")&&F(mr.parentNode,gr);var i=Tr.concat();Tr.length=0;var o=hr||0,s=gr||0;hr=ot(Ar,void 0===e?hr:e),gr=ot(Er,void 0===t?gr:t),st(),W();e:for(var c=0,l=Tr.length;l>c;c++){for(var d=0;d<i.length;d++)if(i[d]===Tr[c]){i.splice(d,1);continue e}document.documentElement.classList.add(Tr[c]),T(Tr[c])}for(;i.length;)document.documentElement.classList.remove(i.pop());_()&&B();var u=a[hr],p=u.querySelectorAll("section");yr=p[gr]||u,"undefined"!=typeof r&&It(r);var f=hr!==o||gr!==s;f?T("slidechanged",{indexh:hr,indexv:gr,previousSlide:mr,currentSlide:yr,origin:n}):mr=null,mr&&(mr.classList.remove("present"),mr.setAttribute("aria-hidden","true"),Cr.wrapper.querySelector(Sr).classList.contains("present")&&setTimeout(function(){var e,t=g(Cr.wrapper.querySelectorAll(Ar+".stack"));for(e in t)t[e]&&F(t[e],0)},0)),(f||!mr)&&(bt(mr),yt(yr)),Cr.statusDiv.textContent=yr.textContent,dt(),ct(),ut(),pt(),lt(),At(),Dt()}function nt(){v(),f(),W(),Wr=xr.autoSlide,Dt(),l(),At(),it(),dt(),ct(),ut(!0),lt(),st(),mt(),_()&&j()}function at(){var e=g(Cr.wrapper.querySelectorAll(Ar));e.forEach(function(e){var t=g(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))})})}function it(){var e=g(Cr.wrapper.querySelectorAll(Ar));e.forEach(function(e){var t=g(e.querySelectorAll("section"));t.forEach(function(e){Nt(e.querySelectorAll(".fragment"))}),0===t.length&&Nt(e.querySelectorAll(".fragment"))})}function ot(e,t){var r=g(Cr.wrapper.querySelectorAll(e)),n=r.length,a=x();if(n){xr.loop&&(t%=n,0>t&&(t=n+t)),t=Math.max(Math.min(t,n-1),0);for(var i=0;n>i;i++){var o=r[i],s=xr.rtl&&!K(o);if(o.classList.remove("past"),o.classList.remove("present"),o.classList.remove("future"),o.setAttribute("hidden",""),o.setAttribute("aria-hidden","true"),o.querySelector("section")&&o.classList.add("stack"),a)o.classList.add("present");else if(t>i){if(o.classList.add(s?"future":"past"),xr.fragments)for(var c=g(o.querySelectorAll(".fragment"));c.length;){var l=c.pop();l.classList.add("visible"),l.classList.remove("current-fragment")}}else if(i>t&&(o.classList.add(s?"past":"future"),xr.fragments))for(var d=g(o.querySelectorAll(".fragment.visible"));d.length;){var u=d.pop();u.classList.remove("visible"),u.classList.remove("current-fragment")}}r[t].classList.add("present"),r[t].removeAttribute("hidden"),r[t].removeAttribute("aria-hidden");var p=r[t].getAttribute("data-state");p&&(Tr=Tr.concat(p.split(" ")))}else t=0;return t}function st(){var e,t,r=g(Cr.wrapper.querySelectorAll(Ar)),n=r.length;if(n&&"undefined"!=typeof hr){var a=_()?10:xr.viewDistance;wr&&(a=_()?6:2),x()&&(a=Number.MAX_VALUE);for(var i=0;n>i;i++){var o=r[i],s=g(o.querySelectorAll("section")),c=s.length;if(e=Math.abs((hr||0)-i)||0,xr.loop&&(e=Math.abs(((hr||0)-i)%(n-a))||0),a>e?ft(o):vt(o),c)for(var l=Y(o),d=0;c>d;d++){var u=s[d];t=Math.abs(i===(hr||0)?(gr||0)-d:d-l),a>e+t?ft(u):vt(u)}}}}function ct(){xr.progress&&Cr.progressbar&&(Cr.progressbar.style.width=wt()*Cr.wrapper.offsetWidth+"px")}function lt(){if(xr.slideNumber&&Cr.slideNumber){var e="c";"string"==typeof xr.slideNumber&&(e=xr.slideNumber);var t=St();Cr.slideNumber.innerHTML=e.replace(/h/g,hr).replace(/v/g,gr).replace(/c/g,Math.round(wt()*t)+1).replace(/t/g,t+1)}}function dt(){var e=ht(),t=gt();Cr.controlsLeft.concat(Cr.controlsRight).concat(Cr.controlsUp).concat(Cr.controlsDown).concat(Cr.controlsPrev).concat(Cr.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Cr.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Cr.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Cr.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Cr.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Cr.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Cr.controlsNext.forEach(function(e){e.classList.add("enabled")}),yr&&(t.prev&&Cr.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Cr.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),K(yr)?(t.prev&&Cr.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Cr.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Cr.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Cr.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}function ut(e){var t=null,r=xr.rtl?"future":"past",n=xr.rtl?"past":"future";if(g(Cr.background.childNodes).forEach(function(a,i){a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),hr>i?a.classList.add(r):i>hr?a.classList.add(n):(a.classList.add("present"),t=a),(e||i===hr)&&g(a.querySelectorAll(".slide-background")).forEach(function(e,r){e.classList.remove("past"),e.classList.remove("present"),e.classList.remove("future"),gr>r?e.classList.add("past"):r>gr?e.classList.add("future"):(e.classList.add("present"),i===hr&&(t=e))})}),br){var a=br.querySelector("video");a&&a.pause()}if(t){var i=t.querySelector("video");i&&(i.currentTime=0,i.play());var o=t.style.backgroundImage||"";/\.gif/i.test(o)&&(t.style.backgroundImage="",window.getComputedStyle(t).opacity,t.style.backgroundImage=o);var s=br?br.getAttribute("data-background-hash"):null,c=t.getAttribute("data-background-hash");c&&c===s&&t!==br&&Cr.background.classList.add("no-transition"),br=t}yr&&["has-light-background","has-dark-background"].forEach(function(e){yr.classList.contains(e)?Cr.wrapper.classList.add(e):Cr.wrapper.classList.remove(e)}),setTimeout(function(){Cr.background.classList.remove("no-transition")},1)}function pt(){if(xr.parallaxBackgroundImage){var e,t,r=Cr.wrapper.querySelectorAll(Ar),n=Cr.wrapper.querySelectorAll(Er),a=Cr.background.style.backgroundSize.split(" ");1===a.length?e=t=parseInt(a[0],10):(e=parseInt(a[0],10),t=parseInt(a[1],10));var i=Cr.background.offsetWidth,o=r.length,s=-(e-i)/(o-1)*hr,c=Cr.background.offsetHeight,l=n.length,d=l>1?-(t-c)/(l-1)*gr:0;Cr.background.style.backgroundPosition=s+"px "+d+"px"}}function ft(e){e.style.display="block",g(e.querySelectorAll("img[data-src], video[data-src], audio[data-src], iframe[data-src]")).forEach(function(e){e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src")}),g(e.querySelectorAll("video, audio")).forEach(function(e){var t=0;g(e.querySelectorAll("source[data-src]")).forEach(function(e){e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),t+=1}),t>0&&e.load()});var t=Et(e),r=qt(t.h,t.v);if(r&&(r.style.display="block",r.hasAttribute("data-loaded")===!1)){r.setAttribute("data-loaded","true");var n=e.getAttribute("data-background-image"),a=e.getAttribute("data-background-video"),i=e.getAttribute("data-background-iframe");if(n)r.style.backgroundImage="url("+n+")";else if(a&&!Lt()){var o=document.createElement("video");a.split(",").forEach(function(e){o.innerHTML+='<source src="'+e+'">'}),r.appendChild(o)}else if(i){var s=document.createElement("iframe");s.setAttribute("src",i),s.style.width="100%",s.style.height="100%",s.style.maxHeight="100%",s.style.maxWidth="100%",r.appendChild(s)}}}function vt(e){e.style.display="none";var t=Et(e),r=qt(t.h,t.v);r&&(r.style.display="none")}function ht(){var e=Cr.wrapper.querySelectorAll(Ar),t=Cr.wrapper.querySelectorAll(Er),r={left:hr>0||xr.loop,right:hr<e.length-1||xr.loop,up:gr>0,down:gr<t.length-1};if(xr.rtl){var n=r.left;r.left=r.right,r.right=n}return r}function gt(){if(yr&&xr.fragments){var e=yr.querySelectorAll(".fragment"),t=yr.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function mt(){g(Cr.slides.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){var t=e.getAttribute("src");/enablejsapi\=1/gi.test(t)||e.setAttribute("src",t+(/\?/.test(t)?"&":"?")+"enablejsapi=1")}),g(Cr.slides.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(function(e){var t=e.getAttribute("src");/api\=1/gi.test(t)||e.setAttribute("src",t+(/\?/.test(t)?"&":"?")+"api=1")})}function yt(e){e&&!Lt()&&(g(e.querySelectorAll('img[src$=".gif"]')).forEach(function(e){e.setAttribute("src",e.getAttribute("src"))}),g(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),g(e.querySelectorAll("iframe")).forEach(function(e){e.contentWindow.postMessage("slide:start","*")}),g(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}),g(e.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"method":"play"}',"*")}))}function bt(e){e&&e.parentNode&&(g(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),g(e.querySelectorAll("iframe")).forEach(function(e){e.contentWindow.postMessage("slide:stop","*")}),g(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),g(e.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"method":"pause"}',"*")}))}function wt(){var e=g(Cr.wrapper.querySelectorAll(Ar)),t=St(),r=0;e:for(var n=0;n<e.length;n++){for(var a=e[n],i=g(a.querySelectorAll("section")),o=0;o<i.length;o++){if(i[o].classList.contains("present"))break e;r++}if(a.classList.contains("present"))break;a.classList.contains("stack")===!1&&r++}if(yr){var s=yr.querySelectorAll(".fragment");if(s.length>0){var c=yr.querySelectorAll(".fragment.visible"),l=.9;r+=c.length/s.length*l}}return r/(t-1)}function Lt(){return!!window.location.search.match(/receiver/gi)}function kt(){var e=window.location.hash,t=e.slice(2).split("/"),r=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&r.length){var n;if(/^[a-zA-Z][\w:.-]*$/.test(r)&&(n=document.getElementById(r)),n){var a=vr.getIndices(n);rt(a.h,a.v)}else rt(hr||0,gr||0)}else{var i=parseInt(t[0],10)||0,o=parseInt(t[1],10)||0;(i!==hr||o!==gr)&&rt(i,o)}}function At(e){if(xr.history)if(clearTimeout(Hr),"number"==typeof e)Hr=setTimeout(At,e);
2
+ else if(yr){var t="/",r=yr.getAttribute("id");r&&(r=r.toLowerCase(),r=r.replace(/[^a-zA-Z0-9\-\_\:\.]/g,"")),"string"==typeof r&&r.length?t="/"+r:((hr>0||gr>0)&&(t+=hr),gr>0&&(t+="/"+gr)),window.location.hash=t}}function Et(e){var t,r=hr,n=gr;if(e){var a=K(e),i=a?e.parentNode:e,o=g(Cr.wrapper.querySelectorAll(Ar));r=Math.max(o.indexOf(i),0),n=void 0,a&&(n=Math.max(g(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&yr){var s=yr.querySelectorAll(".fragment").length>0;if(s){var c=yr.querySelector(".current-fragment");t=c&&c.hasAttribute("data-fragment-index")?parseInt(c.getAttribute("data-fragment-index"),10):yr.querySelectorAll(".fragment.visible").length-1}}return{h:r,v:n,f:t}}function St(){return Cr.wrapper.querySelectorAll(kr+":not(.stack)").length}function xt(e,t){var r=Cr.wrapper.querySelectorAll(Ar)[e],n=r&&r.querySelectorAll("section");return n&&n.length&&"number"==typeof t?n?n[t]:void 0:r}function qt(e,t){if(x()){var r=xt(e,t);if(r){var n=r.querySelector(".slide-background");if(n&&n.parentNode===r)return n}return void 0}var a=Cr.wrapper.querySelectorAll(".backgrounds>.slide-background")[e],i=a&&a.querySelectorAll(".slide-background");return i&&i.length&&"number"==typeof t?i?i[t]:void 0:a}function Mt(){var e=Et();return{indexh:e.h,indexv:e.v,indexf:e.f,paused:G(),overview:_()}}function Tt(e){if("object"==typeof e){rt(m(e.indexh),m(e.indexv),m(e.indexf));var t=m(e.paused),r=m(e.overview);"boolean"==typeof t&&t!==G()&&Q(t),"boolean"==typeof r&&r!==_()&&$(r)}}function Nt(e){e=g(e);var t=[],r=[],n=[];e.forEach(function(e){if(e.hasAttribute("data-fragment-index")){var n=parseInt(e.getAttribute("data-fragment-index"),10);t[n]||(t[n]=[]),t[n].push(e)}else r.push([e])}),t=t.concat(r);var a=0;return t.forEach(function(e){e.forEach(function(e){n.push(e),e.setAttribute("data-fragment-index",a)}),a++}),n}function It(e,t){if(yr&&xr.fragments){var r=Nt(yr.querySelectorAll(".fragment"));if(r.length){if("number"!=typeof e){var n=Nt(yr.querySelectorAll(".fragment.visible")).pop();e=n?parseInt(n.getAttribute("data-fragment-index")||0,10):-1}"number"==typeof t&&(e+=t);var a=[],i=[];return g(r).forEach(function(t,r){t.hasAttribute("data-fragment-index")&&(r=parseInt(t.getAttribute("data-fragment-index"),10)),e>=r?(t.classList.contains("visible")||a.push(t),t.classList.add("visible"),t.classList.remove("current-fragment"),Cr.statusDiv.textContent=t.textContent,r===e&&t.classList.add("current-fragment")):(t.classList.contains("visible")&&i.push(t),t.classList.remove("visible"),t.classList.remove("current-fragment"))}),i.length&&T("fragmenthidden",{fragment:i[0],fragments:i}),a.length&&T("fragmentshown",{fragment:a[0],fragments:a}),dt(),ct(),!(!a.length&&!i.length)}}return!1}function Ct(){return It(null,1)}function Pt(){return It(null,-1)}function Dt(){if(Ht(),yr){var e=yr.querySelector(".current-fragment"),t=e?e.getAttribute("data-autoslide"):null,r=yr.parentNode?yr.parentNode.getAttribute("data-autoslide"):null,n=yr.getAttribute("data-autoslide");Wr=t?parseInt(t,10):n?parseInt(n,10):r?parseInt(r,10):xr.autoSlide,g(yr.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&Wr&&1e3*e.duration>Wr&&(Wr=1e3*e.duration+1e3)}),!Wr||Fr||G()||_()||vr.isLastSlide()&&!gt().next&&xr.loop!==!0||(Or=setTimeout(jt,Wr),zr=Date.now()),Lr&&Lr.setPlaying(-1!==Or)}}function Ht(){clearTimeout(Or),Or=-1}function Rt(){Wr&&!Fr&&(Fr=!0,T("autoslidepaused"),clearTimeout(Or),Lr&&Lr.setPlaying(!1))}function Wt(){Wr&&Fr&&(Fr=!1,T("autoslideresumed"),Dt())}function Ot(){xr.rtl?(_()||Ct()===!1)&&ht().left&&rt(hr+1):(_()||Pt()===!1)&&ht().left&&rt(hr-1)}function zt(){xr.rtl?(_()||Pt()===!1)&&ht().right&&rt(hr-1):(_()||Ct()===!1)&&ht().right&&rt(hr+1)}function Ft(){(_()||Pt()===!1)&&ht().up&&rt(hr,gr-1)}function Yt(){(_()||Ct()===!1)&&ht().down&&rt(hr,gr+1)}function Xt(){if(Pt()===!1)if(ht().up)Ft();else{var e;if(e=xr.rtl?g(Cr.wrapper.querySelectorAll(Ar+".future")).pop():g(Cr.wrapper.querySelectorAll(Ar+".past")).pop()){var t=e.querySelectorAll("section").length-1||void 0,r=hr-1;rt(r,t)}}}function jt(){Ct()===!1&&(ht().down?Yt():xr.rtl?Ot():zt()),Dt()}function Bt(){xr.autoSlideStoppable&&Rt()}function Ut(e){e.shiftKey&&63===e.charCode&&(Cr.overlay?R():H(!0))}function $t(e){if("function"==typeof xr.keyboardCondition&&xr.keyboardCondition()===!1)return!0;var t=Fr;Bt(e);var r=document.activeElement&&"inherit"!==document.activeElement.contentEditable,n=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName);if(!(r||n||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(G()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var a=!1;if("object"==typeof xr.keyboard)for(var i in xr.keyboard)if(parseInt(i,10)===e.keyCode){var o=xr.keyboard[i];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof vr[o]&&vr[o].call(),a=!0}if(a===!1)switch(a=!0,e.keyCode){case 80:case 33:Xt();break;case 78:case 34:jt();break;case 72:case 37:Ot();break;case 76:case 39:zt();break;case 75:case 38:Ft();break;case 74:case 40:Yt();break;case 36:rt(0);break;case 35:rt(Number.MAX_VALUE);break;case 32:_()?U():e.shiftKey?Xt():jt();break;case 13:_()?U():a=!1;break;case 58:case 59:case 66:case 190:case 191:Q();break;case 70:V();break;case 65:xr.autoSlideStoppable&&et(t);break;default:a=!1}a?e.preventDefault&&e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pr.transforms3d||(Cr.overlay?R():$(),e.preventDefault&&e.preventDefault()),Dt()}}function _t(e){Yr.startX=e.touches[0].clientX,Yr.startY=e.touches[0].clientY,Yr.startCount=e.touches.length,2===e.touches.length&&xr.overview&&(Yr.startSpan=y({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Yr.startX,y:Yr.startY}))}function Kt(e){if(Yr.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{Bt(e);var t=e.touches[0].clientX,r=e.touches[0].clientY;if(2===e.touches.length&&2===Yr.startCount&&xr.overview){var n=y({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Yr.startX,y:Yr.startY});Math.abs(Yr.startSpan-n)>Yr.threshold&&(Yr.captured=!0,n<Yr.startSpan?X():U()),e.preventDefault()}else if(1===e.touches.length&&2!==Yr.startCount){var a=t-Yr.startX,i=r-Yr.startY;a>Yr.threshold&&Math.abs(a)>Math.abs(i)?(Yr.captured=!0,Ot()):a<-Yr.threshold&&Math.abs(a)>Math.abs(i)?(Yr.captured=!0,zt()):i>Yr.threshold?(Yr.captured=!0,Ft()):i<-Yr.threshold&&(Yr.captured=!0,Yt()),xr.embedded?(Yr.captured||K(yr))&&e.preventDefault():e.preventDefault()}}}function Vt(){Yr.captured=!1}function Zt(e){(e.pointerType===e.MSPOINTER_TYPE_TOUCH||"touch"===e.pointerType)&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],_t(e))}function Jt(e){(e.pointerType===e.MSPOINTER_TYPE_TOUCH||"touch"===e.pointerType)&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Kt(e))}function Qt(e){(e.pointerType===e.MSPOINTER_TYPE_TOUCH||"touch"===e.pointerType)&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Vt(e))}function Gt(e){if(Date.now()-Dr>600){Dr=Date.now();var t=e.detail||-e.wheelDelta;t>0?jt():Xt()}}function er(e){Bt(e),e.preventDefault();var t=g(Cr.wrapper.querySelectorAll(Ar)).length,r=Math.floor(e.clientX/Cr.wrapper.offsetWidth*t);rt(r)}function tr(e){e.preventDefault(),Bt(),Ot()}function rr(e){e.preventDefault(),Bt(),zt()}function nr(e){e.preventDefault(),Bt(),Ft()}function ar(e){e.preventDefault(),Bt(),Yt()}function ir(e){e.preventDefault(),Bt(),Xt()}function or(e){e.preventDefault(),Bt(),jt()}function sr(){kt()}function cr(){W()}function lr(){var e=document.webkitHidden||document.msHidden||document.hidden;e===!1&&document.activeElement!==document.body&&(document.activeElement.blur(),document.body.focus())}function dr(e){if(Rr&&_()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(U(),t.nodeName.match(/section/gi))){var r=parseInt(t.getAttribute("data-index-h"),10),n=parseInt(t.getAttribute("data-index-v"),10);rt(r,n)}}}function ur(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){var t=e.currentTarget.getAttribute("href");t&&(D(t),e.preventDefault())}}function pr(){vr.isLastSlide()&&xr.loop===!1?(rt(0,0),Wt()):Fr?Wt():Rt()}function fr(e,t){this.diameter=50,this.thickness=3,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=e,this.progressCheck=t,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}var vr,hr,gr,mr,yr,br,wr,Lr,kr=".slides section",Ar=".slides>section",Er=".slides>section.present>section",Sr=".slides>section:first-of-type",xr={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,slideNumber:!1,history:!1,keyboard:!0,keyboardCondition:null,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,help:!0,pause:!0,autoSlide:0,autoSlideStoppable:!0,mouseWheel:!1,rollingLinks:!1,hideAddressBar:!0,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"default",transitionSpeed:"default",backgroundTransition:"default",parallaxBackgroundImage:"",parallaxBackgroundSize:"",viewDistance:3,dependencies:[]},qr=!1,Mr=!1,Tr=[],Nr=1,Ir={layout:"",overview:""},Cr={},Pr={},Dr=0,Hr=0,Rr=!1,Wr=0,Or=0,zr=-1,Fr=!1,Yr={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40},Xr={"N , SPACE":"Next slide",P:"Previous slide","&#8592; , H":"Navigate left","&#8594; , L":"Navigate right","&#8593; , K":"Navigate up","&#8595; , J":"Navigate down",Home:"First slide",End:"Last slide","B , .":"Pause",F:"Fullscreen","ESC, O":"Slide overview"};return fr.prototype.setPlaying=function(e){var t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()},fr.prototype.animate=function(){var e=this.progress;this.progress=this.progressCheck(),e>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&Pr.requestAnimationFrameMethod.call(window,this.animate.bind(this))},fr.prototype.render=function(){var e=this.playing?this.progress:0,t=this.diameter/2-this.thickness,r=this.diameter/2,n=this.diameter/2,a=14;this.progressOffset+=.1*(1-this.progressOffset);var i=-Math.PI/2+2*e*Math.PI,o=-Math.PI/2+2*this.progressOffset*Math.PI;this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(r,n,t+2,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(r,n,t,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#666",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(r,n,t,o,i,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(r-a/2,n-a/2),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,a/2-2,a),this.context.fillRect(a/2+2,0,a/2-2,a)):(this.context.beginPath(),this.context.translate(2,0),this.context.moveTo(0,0),this.context.lineTo(a-2,a/2),this.context.lineTo(0,a),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()},fr.prototype.on=function(e,t){this.canvas.addEventListener(e,t,!1)},fr.prototype.off=function(e,t){this.canvas.removeEventListener(e,t,!1)},fr.prototype.destroy=function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)},vr={initialize:e,configure:p,sync:nt,slide:rt,left:Ot,right:zt,up:Ft,down:Yt,prev:Xt,next:jt,navigateFragment:It,prevFragment:Pt,nextFragment:Ct,navigateTo:rt,navigateLeft:Ot,navigateRight:zt,navigateUp:Ft,navigateDown:Yt,navigatePrev:Xt,navigateNext:jt,layout:W,availableRoutes:ht,availableFragments:gt,toggleOverview:$,togglePause:Q,toggleAutoSlide:et,isOverview:_,isPaused:G,isAutoSliding:tt,addEventListeners:f,removeEventListeners:v,getState:Mt,setState:Tt,getProgress:wt,getIndices:Et,getTotalSlides:St,getSlide:xt,getSlideBackground:qt,getPreviousSlide:function(){return mr},getCurrentSlide:function(){return yr},getScale:function(){return Nr},getConfig:function(){return xr},getQueryHash:function(){var e={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()});for(var t in e){var r=e[t];e[t]=m(unescape(r))}return e},isFirstSlide:function(){return 0===hr&&0===gr},isLastSlide:function(){return yr?yr.nextElementSibling?!1:K(yr)&&yr.parentNode.nextElementSibling?!1:!0:!1},isReady:function(){return qr},addEventListener:function(e,t,r){"addEventListener"in window&&(Cr.wrapper||document.querySelector(".reveal")).addEventListener(e,t,r)},removeEventListener:function(e,t,r){"addEventListener"in window&&(Cr.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,r)},triggerKey:function(e){$t({keyCode:e})}}});