diff --git a/bower.json b/bower.json
index 1ef53ea2..6cef1c34 100644
--- a/bower.json
+++ b/bower.json
@@ -19,7 +19,7 @@
"requirejs-text": "~2.0.10",
"bootstrap-tour": "~0.6.0",
"ace": "4bbe5346f2ae5ad35c0c47defa244ab27aedd451",
- "pagedown-ace": "git@github.com:benweet/pagedown-ace.git#7805f240f343b5b2a05a5b9c0d4a3f5091e7a49b",
+ "pagedown-ace": "https://github.com/benweet/pagedown-ace.git#72a27932f6f4f78e93a186aa2947d1f15c1cd7d5",
"pagedown-extra": "git@github.com:jmcmanus/pagedown-extra.git#ae1547d1662e07d6530137bd3dff3a6e6c8aec3b",
"crel": "git@github.com:KoryNunn/crel.git#8dbda04b129fc0aec01a2a080d1cab26816e11c1",
"waitForImages": "git@github.com:alexanderdickson/waitForImages.git#~1.4.2",
@@ -30,6 +30,7 @@
"lz-string": "git@github.com:pieroxy/lz-string.git"
},
"resolutions": {
- "jquery": "2.0.3"
+ "jquery": "2.0.3",
+ "pagedown-ace": "252130af110132fd5e36f66e5e91a55ca2a9584d"
}
}
diff --git a/public/cache.manifest b/public/cache.manifest
index 4149061c..0c708148 100644
--- a/public/cache.manifest
+++ b/public/cache.manifest
@@ -1,5 +1,5 @@
CACHE MANIFEST
-#Date Sat Nov 16 2013 18:10:31
+#Date Tue Nov 19 2013 00:39:24
CACHE:
res/worker.js
@@ -34,6 +34,7 @@ res-min/themes/blue-gray.css
res-min/themes/default.css
res-min/themes/night.css
res-min/themes/school.css
+libs/dictionaries/.DS_Store
libs/dictionaries/de_DE.aff.lz
libs/dictionaries/de_DE.dic.lz
libs/dictionaries/en_US.aff.lz
diff --git a/public/res-min/main.js b/public/res-min/main.js
index 63246969..1b8a0fcf 100644
--- a/public/res-min/main.js
+++ b/public/res-min/main.js
@@ -307,6 +307,20 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
+// Copyright (C) 2006 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
/*
* to-markdown - an HTML to Markdown converter
*
@@ -455,20 +469,6 @@ THE SOFTWARE.
* - Namespaced all events
*/
-// Copyright (C) 2006 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
/**
* bootstrap.js v3.0.0 by @fat and @mdo
* Copyright 2013 Twitter Inc.
@@ -1004,38 +1004,38 @@ function printStackTrace(e) {
function w(t) {
return e.getComputedStyle(t, null);
}
- function C(e, t) {
+ function x(e, t) {
for (var n, i, o, r = [], s = 0, a = e.length; a > s; s++) i = e[s], i.style && (r[s] = mt.get(i, "olddisplay"),
- n = i.style.display, t ? (r[s] || "none" !== n || (i.style.display = ""), "" === i.style.display && y(i) && (r[s] = mt.access(i, "olddisplay", A(i.nodeName)))) : r[s] || (o = y(i),
+ n = i.style.display, t ? (r[s] || "none" !== n || (i.style.display = ""), "" === i.style.display && y(i) && (r[s] = mt.access(i, "olddisplay", S(i.nodeName)))) : r[s] || (o = y(i),
(n && "none" !== n || !o) && mt.set(i, "olddisplay", o ? n : rt.css(i, "display"))));
for (s = 0; a > s; s++) i = e[s], i.style && (t && "none" !== i.style.display && "" !== i.style.display || (i.style.display = t ? r[s] || "" : "none"));
return e;
}
- function x(e, t, n) {
+ function C(e, t, n) {
var i = Gt.exec(t);
return i ? Math.max(0, i[1] - (n || 0)) + (i[2] || "px") : t;
}
- function E(e, t, n, i, o) {
+ function k(e, t, n, i, o) {
for (var r = n === (i ? "border" : "content") ? 4 : "width" === t ? 1 : 0, s = 0; 4 > r; r += 2) "margin" === n && (s += rt.css(e, n + Jt[r], !0, o)),
i ? ("content" === n && (s -= rt.css(e, "padding" + Jt[r], !0, o)), "margin" !== n && (s -= rt.css(e, "border" + Jt[r] + "Width", !0, o))) : (s += rt.css(e, "padding" + Jt[r], !0, o),
"padding" !== n && (s += rt.css(e, "border" + Jt[r] + "Width", !0, o)));
return s;
}
- function S(e, t, n) {
+ function E(e, t, n) {
var i = !0, o = "width" === t ? e.offsetWidth : e.offsetHeight, r = w(e), s = rt.support.boxSizing && "border-box" === rt.css(e, "boxSizing", !1, r);
if (0 >= o || null == o) {
if (o = Ht(e, t, r), (0 > o || null == o) && (o = e.style[t]), Vt.test(o)) return o;
i = s && (rt.support.boxSizingReliable || o === e.style[t]), o = parseFloat(o) || 0;
}
- return o + E(e, t, n || (s ? "border" : "content"), i, r) + "px";
+ return o + k(e, t, n || (s ? "border" : "content"), i, r) + "px";
}
- function A(e) {
+ function S(e) {
var t = U, n = Xt[e];
- return n || (n = k(e, t), "none" !== n && n || (Wt = (Wt || rt("").css("cssText", "display:block !important")).appendTo(t.documentElement),
- t = (Wt[0].contentWindow || Wt[0].contentDocument).document, t.write("
"),
- t.close(), n = k(e, t), Wt.detach()), Xt[e] = n), n;
+ return n || (n = A(e, t), "none" !== n && n || (qt = (qt || rt("").css("cssText", "display:block !important")).appendTo(t.documentElement),
+ t = (qt[0].contentWindow || qt[0].contentDocument).document, t.write(""),
+ t.close(), n = A(e, t), qt.detach()), Xt[e] = n), n;
}
- function k(e, t) {
+ function A(e, t) {
var n = rt(t.createElement(e)).appendTo(t.body), i = rt.css(n[0], "display");
return n.remove(), i;
}
@@ -1213,7 +1213,7 @@ function printStackTrace(e) {
function z(e) {
return rt.isWindow(e) ? e : 9 === e.nodeType && e.defaultView;
}
- var j, H, W = typeof t, q = e.location, U = e.document, G = U.documentElement, V = e.jQuery, K = e.$, X = {}, Y = [], Z = "2.0.3", J = Y.concat, Q = Y.push, et = Y.slice, tt = Y.indexOf, nt = X.toString, it = X.hasOwnProperty, ot = Z.trim, rt = function(e, t) {
+ var j, H, q = typeof t, W = e.location, U = e.document, G = U.documentElement, V = e.jQuery, K = e.$, X = {}, Y = [], Z = "2.0.3", J = Y.concat, Q = Y.push, et = Y.slice, tt = Y.indexOf, nt = X.toString, it = X.hasOwnProperty, ot = Z.trim, rt = function(e, t) {
return new rt.fn.init(e, t, j);
}, st = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, at = /\S+/g, lt = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, ct = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, ut = /^-ms-/, dt = /-([\da-z])/gi, ht = function(e, t) {
return t.toUpperCase();
@@ -1447,12 +1447,12 @@ function printStackTrace(e) {
n;
} else {
if (o[2]) return et.apply(n, t.getElementsByTagName(e)), n;
- if ((s = o[3]) && E.getElementsByClassName && t.getElementsByClassName) return et.apply(n, t.getElementsByClassName(s)),
+ if ((s = o[3]) && k.getElementsByClassName && t.getElementsByClassName) return et.apply(n, t.getElementsByClassName(s)),
n;
}
- if (E.qsa && (!M || !M.test(e))) {
+ if (k.qsa && (!M || !M.test(e))) {
if (d = u = O, f = t, g = 9 === a && e, 1 === a && "object" !== t.nodeName.toLowerCase()) {
- for (c = h(e), (u = t.getAttribute("id")) ? d = u.replace(xt, "\\$&") : t.setAttribute("id", d),
+ for (c = h(e), (u = t.getAttribute("id")) ? d = u.replace(Ct, "\\$&") : t.setAttribute("id", d),
d = "[id='" + d + "'] ", l = c.length; l--; ) c[l] = d + p(c[l]);
f = pt.test(e) && t.parentNode || t, g = c.join(",");
}
@@ -1463,11 +1463,11 @@ function printStackTrace(e) {
}
}
}
- return C(e.replace(ut, "$1"), t, n, i);
+ return x(e.replace(ut, "$1"), t, n, i);
}
function i() {
function e(n, i) {
- return t.push(n += " ") > A.cacheLength && delete e[t.shift()], e[n] = i;
+ return t.push(n += " ") > S.cacheLength && delete e[t.shift()], e[n] = i;
}
var t = [];
return e;
@@ -1486,7 +1486,7 @@ function printStackTrace(e) {
}
}
function s(e, t) {
- for (var n = e.split("|"), i = e.length; i--; ) A.attrHandle[n[i]] = t;
+ for (var n = e.split("|"), i = e.length; i--; ) S.attrHandle[n[i]] = t;
}
function a(e, t) {
var n = t && e, i = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || X) - (~e.sourceIndex || X);
@@ -1515,15 +1515,15 @@ function printStackTrace(e) {
}
function d() {}
function h(e, t) {
- var i, o, r, s, a, l, c, u = q[e + " "];
+ var i, o, r, s, a, l, c, u = W[e + " "];
if (u) return t ? 0 : u.slice(0);
- for (a = e, l = [], c = A.preFilter; a; ) {
+ for (a = e, l = [], c = S.preFilter; a; ) {
(!i || (o = dt.exec(a))) && (o && (a = a.slice(o[0].length) || a), l.push(r = [])),
i = !1, (o = ht.exec(a)) && (i = o.shift(), r.push({
value: i,
type: o[0].replace(ut, " ")
}), a = a.slice(i.length));
- for (s in A.filter) !(o = vt[s].exec(a)) || c[s] && !(o = c[s](o)) || (i = o.shift(),
+ for (s in S.filter) !(o = vt[s].exec(a)) || c[s] && !(o = c[s](o)) || (i = o.shift(),
r.push({
value: i,
type: s,
@@ -1531,7 +1531,7 @@ function printStackTrace(e) {
}), a = a.slice(i.length));
if (!i) break;
}
- return t ? a.length : a ? n.error(e) : q(e, l).slice(0);
+ return t ? a.length : a ? n.error(e) : W(e, l).slice(0);
}
function p(e) {
for (var t = 0, n = e.length, i = ""; n > t; t++) i += e[t].value;
@@ -1547,8 +1547,8 @@ function printStackTrace(e) {
for (;t = t[i]; ) if ((1 === t.nodeType || o) && e(t, n, s)) return !0;
} else for (;t = t[i]; ) if (1 === t.nodeType || o) if (c = t[O] || (t[O] = {}),
(l = c[i]) && l[0] === u) {
- if ((a = l[1]) === !0 || a === S) return a === !0;
- } else if (l = c[i] = [ u ], l[1] = e(t, n, s) || S, l[1] === !0) return !0;
+ if ((a = l[1]) === !0 || a === E) return a === !0;
+ } else if (l = c[i] = [ u ], l[1] = e(t, n, s) || E, l[1] === !0) return !0;
};
}
function g(e) {
@@ -1578,15 +1578,15 @@ function printStackTrace(e) {
});
}
function b(e) {
- for (var t, n, i, o = e.length, r = A.relative[e[0].type], s = r || A.relative[" "], a = r ? 1 : 0, l = f(function(e) {
+ for (var t, n, i, o = e.length, r = S.relative[e[0].type], s = r || S.relative[" "], a = r ? 1 : 0, l = f(function(e) {
return e === t;
}, s, !0), c = f(function(e) {
return nt.call(t, e) > -1;
}, s, !0), u = [ function(e, n, i) {
return !r && (i || n !== T) || ((t = n).nodeType ? l(e, n, i) : c(e, n, i));
- } ]; o > a; a++) if (n = A.relative[e[a].type]) u = [ f(g(u), n) ]; else {
- if (n = A.filter[e[a].type].apply(null, e[a].matches), n[O]) {
- for (i = ++a; o > i && !A.relative[e[i].type]; i++) ;
+ } ]; o > a; a++) if (n = S.relative[e[a].type]) u = [ f(g(u), n) ]; else {
+ if (n = S.filter[e[a].type].apply(null, e[a].matches), n[O]) {
+ for (i = ++a; o > i && !S.relative[e[i].type]; i++) ;
return v(a > 1 && g(u), a > 1 && p(e.slice(0, a - 1).concat({
value: " " === e[a - 2].type ? "*" : ""
})).replace(ut, "$1"), n, i > a && b(e.slice(a, i)), o > i && b(e = e.slice(i)), o > i && p(e));
@@ -1597,14 +1597,14 @@ function printStackTrace(e) {
}
function y(e, t) {
var i = 0, r = t.length > 0, s = e.length > 0, a = function(o, a, l, c, u) {
- var d, h, p, f = [], g = 0, v = "0", b = o && [], y = null != u, w = T, C = o || s && A.find.TAG("*", u && a.parentNode || a), x = j += null == w ? 1 : Math.random() || .1;
- for (y && (T = a !== L && a, S = i); null != (d = C[v]); v++) {
+ var d, h, p, f = [], g = 0, v = "0", b = o && [], y = null != u, w = T, x = o || s && S.find.TAG("*", u && a.parentNode || a), C = j += null == w ? 1 : Math.random() || .1;
+ for (y && (T = a !== L && a, E = i); null != (d = x[v]); v++) {
if (s && d) {
for (h = 0; p = e[h++]; ) if (p(d, a, l)) {
c.push(d);
break;
}
- y && (j = x, S = ++i);
+ y && (j = C, E = ++i);
}
r && ((d = !p && d) && g--, o && b.push(d));
}
@@ -1616,7 +1616,7 @@ function printStackTrace(e) {
}
et.apply(c, f), y && !o && f.length > 0 && g + t.length > 1 && n.uniqueSort(c);
}
- return y && (j = x, T = w), b;
+ return y && (j = C, T = w), b;
};
return r ? o(a) : a;
}
@@ -1624,21 +1624,21 @@ function printStackTrace(e) {
for (var o = 0, r = t.length; r > o; o++) n(e, t[o], i);
return i;
}
- function C(e, t, n, i) {
+ function x(e, t, n, i) {
var o, r, s, a, l, c = h(e);
if (!i && 1 === c.length) {
- if (r = c[0] = c[0].slice(0), r.length > 2 && "ID" === (s = r[0]).type && E.getById && 9 === t.nodeType && I && A.relative[r[1].type]) {
- if (t = (A.find.ID(s.matches[0].replace(Et, St), t) || [])[0], !t) return n;
+ if (r = c[0] = c[0].slice(0), r.length > 2 && "ID" === (s = r[0]).type && k.getById && 9 === t.nodeType && I && S.relative[r[1].type]) {
+ if (t = (S.find.ID(s.matches[0].replace(kt, Et), t) || [])[0], !t) return n;
e = e.slice(r.shift().value.length);
}
- for (o = vt.needsContext.test(e) ? 0 : r.length; o-- && (s = r[o], !A.relative[a = s.type]); ) if ((l = A.find[a]) && (i = l(s.matches[0].replace(Et, St), pt.test(r[0].type) && t.parentNode || t))) {
+ for (o = vt.needsContext.test(e) ? 0 : r.length; o-- && (s = r[o], !S.relative[a = s.type]); ) if ((l = S.find[a]) && (i = l(s.matches[0].replace(kt, Et), pt.test(r[0].type) && t.parentNode || t))) {
if (r.splice(o, 1), e = i.length && p(r), !e) return et.apply(n, i), n;
break;
}
}
return F(e, c)(i, t, !I, n, pt.test(e)), n;
}
- var x, E, S, A, k, _, F, T, $, D, L, B, I, M, R, P, N, O = "sizzle" + -new Date(), z = e.document, j = 0, H = 0, W = i(), q = i(), U = i(), G = !1, V = function(e, t) {
+ var C, k, E, S, A, _, F, T, $, D, L, B, I, M, R, P, N, O = "sizzle" + -new Date(), z = e.document, j = 0, H = 0, q = i(), W = i(), U = i(), G = !1, V = function(e, t) {
return e === t ? (G = !0, 0) : 0;
}, K = typeof t, X = 1 << 31, Y = {}.hasOwnProperty, Z = [], J = Z.pop, Q = Z.push, et = Z.push, tt = Z.slice, nt = Z.indexOf || function(e) {
for (var t = 0, n = this.length; n > t; t++) if (this[t] === e) return t;
@@ -1652,13 +1652,13 @@ function printStackTrace(e) {
CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + ot + "*(even|odd|(([+-]|)(\\d*)n|)" + ot + "*(?:([+-]|)" + ot + "*(\\d+)|))" + ot + "*\\)|)", "i"),
bool: new RegExp("^(?:" + it + ")$", "i"),
needsContext: new RegExp("^" + ot + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + ot + "*((?:-\\d)?\\d*)" + ot + "*\\)|)(?=[^-]|$)", "i")
- }, bt = /^[^{]+\{\s*\[native \w/, yt = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, wt = /^(?:input|select|textarea|button)$/i, Ct = /^h\d$/i, xt = /'|\\/g, Et = new RegExp("\\\\([\\da-f]{1,6}" + ot + "?|(" + ot + ")|.)", "ig"), St = function(e, t, n) {
+ }, bt = /^[^{]+\{\s*\[native \w/, yt = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, wt = /^(?:input|select|textarea|button)$/i, xt = /^h\d$/i, Ct = /'|\\/g, kt = new RegExp("\\\\([\\da-f]{1,6}" + ot + "?|(" + ot + ")|.)", "ig"), Et = function(e, t, n) {
var i = "0x" + t - 65536;
return i !== i || n ? t : 0 > i ? String.fromCharCode(i + 65536) : String.fromCharCode(55296 | i >> 10, 56320 | 1023 & i);
};
try {
et.apply(Z = tt.call(z.childNodes), z.childNodes), Z[z.childNodes.length].nodeType;
- } catch (At) {
+ } catch (St) {
et = {
apply: Z.length ? function(e, t) {
Q.apply(e, tt.call(t));
@@ -1671,37 +1671,37 @@ function printStackTrace(e) {
_ = n.isXML = function(e) {
var t = e && (e.ownerDocument || e).documentElement;
return t ? "HTML" !== t.nodeName : !1;
- }, E = n.support = {}, D = n.setDocument = function(e) {
+ }, k = n.support = {}, D = n.setDocument = function(e) {
var t = e ? e.ownerDocument || e : z, n = t.defaultView;
return t !== L && 9 === t.nodeType && t.documentElement ? (L = t, B = t.documentElement,
I = !_(t), n && n.attachEvent && n !== n.top && n.attachEvent("onbeforeunload", function() {
D();
- }), E.attributes = r(function(e) {
+ }), k.attributes = r(function(e) {
return e.className = "i", !e.getAttribute("className");
- }), E.getElementsByTagName = r(function(e) {
+ }), k.getElementsByTagName = r(function(e) {
return e.appendChild(t.createComment("")), !e.getElementsByTagName("*").length;
- }), E.getElementsByClassName = r(function(e) {
+ }), k.getElementsByClassName = r(function(e) {
return e.innerHTML = "", e.firstChild.className = "i",
2 === e.getElementsByClassName("i").length;
- }), E.getById = r(function(e) {
+ }), k.getById = r(function(e) {
return B.appendChild(e).id = O, !t.getElementsByName || !t.getElementsByName(O).length;
- }), E.getById ? (A.find.ID = function(e, t) {
+ }), k.getById ? (S.find.ID = function(e, t) {
if (typeof t.getElementById !== K && I) {
var n = t.getElementById(e);
return n && n.parentNode ? [ n ] : [];
}
- }, A.filter.ID = function(e) {
- var t = e.replace(Et, St);
+ }, S.filter.ID = function(e) {
+ var t = e.replace(kt, Et);
return function(e) {
return e.getAttribute("id") === t;
};
- }) : (delete A.find.ID, A.filter.ID = function(e) {
- var t = e.replace(Et, St);
+ }) : (delete S.find.ID, S.filter.ID = function(e) {
+ var t = e.replace(kt, Et);
return function(e) {
var n = typeof e.getAttributeNode !== K && e.getAttributeNode("id");
return n && n.value === t;
};
- }), A.find.TAG = E.getElementsByTagName ? function(e, t) {
+ }), S.find.TAG = k.getElementsByTagName ? function(e, t) {
return typeof t.getElementsByTagName !== K ? t.getElementsByTagName(e) : void 0;
} : function(e, t) {
var n, i = [], o = 0, r = t.getElementsByTagName(e);
@@ -1710,9 +1710,9 @@ function printStackTrace(e) {
return i;
}
return r;
- }, A.find.CLASS = E.getElementsByClassName && function(e, t) {
+ }, S.find.CLASS = k.getElementsByClassName && function(e, t) {
return typeof t.getElementsByClassName !== K && I ? t.getElementsByClassName(e) : void 0;
- }, R = [], M = [], (E.qsa = bt.test(t.querySelectorAll)) && (r(function(e) {
+ }, R = [], M = [], (k.qsa = bt.test(t.querySelectorAll)) && (r(function(e) {
e.innerHTML = "", e.querySelectorAll("[selected]").length || M.push("\\[" + ot + "*(?:value|" + it + ")"),
e.querySelectorAll(":checked").length || M.push(":checked");
}), r(function(e) {
@@ -1720,8 +1720,8 @@ function printStackTrace(e) {
n.setAttribute("type", "hidden"), e.appendChild(n).setAttribute("t", ""), e.querySelectorAll("[t^='']").length && M.push("[*^$]=" + ot + "*(?:''|\"\")"),
e.querySelectorAll(":enabled").length || M.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"),
M.push(",.*:");
- })), (E.matchesSelector = bt.test(P = B.webkitMatchesSelector || B.mozMatchesSelector || B.oMatchesSelector || B.msMatchesSelector)) && r(function(e) {
- E.disconnectedMatch = P.call(e, "div"), P.call(e, "[s!='']:x"), R.push("!=", ct);
+ })), (k.matchesSelector = bt.test(P = B.webkitMatchesSelector || B.mozMatchesSelector || B.oMatchesSelector || B.msMatchesSelector)) && r(function(e) {
+ k.disconnectedMatch = P.call(e, "div"), P.call(e, "[s!='']:x"), R.push("!=", ct);
}), M = M.length && new RegExp(M.join("|")), R = R.length && new RegExp(R.join("|")),
N = bt.test(B.contains) || B.compareDocumentPosition ? function(e, t) {
var n = 9 === e.nodeType ? e.documentElement : e, i = t && t.parentNode;
@@ -1732,7 +1732,7 @@ function printStackTrace(e) {
}, V = B.compareDocumentPosition ? function(e, n) {
if (e === n) return G = !0, 0;
var i = n.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(n);
- return i ? 1 & i || !E.sortDetached && n.compareDocumentPosition(e) === i ? e === t || N(z, e) ? -1 : n === t || N(z, n) ? 1 : $ ? nt.call($, e) - nt.call($, n) : 0 : 4 & i ? -1 : 1 : e.compareDocumentPosition ? -1 : 1;
+ return i ? 1 & i || !k.sortDetached && n.compareDocumentPosition(e) === i ? e === t || N(z, e) ? -1 : n === t || N(z, n) ? 1 : $ ? nt.call($, e) - nt.call($, n) : 0 : 4 & i ? -1 : 1 : e.compareDocumentPosition ? -1 : 1;
} : function(e, n) {
var i, o = 0, r = e.parentNode, s = n.parentNode, l = [ e ], c = [ n ];
if (e === n) return G = !0, 0;
@@ -1746,36 +1746,36 @@ function printStackTrace(e) {
}, n.matches = function(e, t) {
return n(e, null, null, t);
}, n.matchesSelector = function(e, t) {
- if ((e.ownerDocument || e) !== L && D(e), t = t.replace(ft, "='$1']"), !(!E.matchesSelector || !I || R && R.test(t) || M && M.test(t))) try {
+ if ((e.ownerDocument || e) !== L && D(e), t = t.replace(ft, "='$1']"), !(!k.matchesSelector || !I || R && R.test(t) || M && M.test(t))) try {
var i = P.call(e, t);
- if (i || E.disconnectedMatch || e.document && 11 !== e.document.nodeType) return i;
+ if (i || k.disconnectedMatch || e.document && 11 !== e.document.nodeType) return i;
} catch (o) {}
return n(t, L, null, [ e ]).length > 0;
}, n.contains = function(e, t) {
return (e.ownerDocument || e) !== L && D(e), N(e, t);
}, n.attr = function(e, n) {
(e.ownerDocument || e) !== L && D(e);
- var i = A.attrHandle[n.toLowerCase()], o = i && Y.call(A.attrHandle, n.toLowerCase()) ? i(e, n, !I) : t;
- return o === t ? E.attributes || !I ? e.getAttribute(n) : (o = e.getAttributeNode(n)) && o.specified ? o.value : null : o;
+ var i = S.attrHandle[n.toLowerCase()], o = i && Y.call(S.attrHandle, n.toLowerCase()) ? i(e, n, !I) : t;
+ return o === t ? k.attributes || !I ? e.getAttribute(n) : (o = e.getAttributeNode(n)) && o.specified ? o.value : null : o;
}, n.error = function(e) {
throw new Error("Syntax error, unrecognized expression: " + e);
}, n.uniqueSort = function(e) {
var t, n = [], i = 0, o = 0;
- if (G = !E.detectDuplicates, $ = !E.sortStable && e.slice(0), e.sort(V), G) {
+ if (G = !k.detectDuplicates, $ = !k.sortStable && e.slice(0), e.sort(V), G) {
for (;t = e[o++]; ) t === e[o] && (i = n.push(o));
for (;i--; ) e.splice(n[i], 1);
}
return e;
- }, k = n.getText = function(e) {
+ }, A = n.getText = function(e) {
var t, n = "", i = 0, o = e.nodeType;
if (o) {
if (1 === o || 9 === o || 11 === o) {
if ("string" == typeof e.textContent) return e.textContent;
- for (e = e.firstChild; e; e = e.nextSibling) n += k(e);
+ for (e = e.firstChild; e; e = e.nextSibling) n += A(e);
} else if (3 === o || 4 === o) return e.nodeValue;
- } else for (;t = e[i]; i++) n += k(t);
+ } else for (;t = e[i]; i++) n += A(t);
return n;
- }, A = n.selectors = {
+ }, S = n.selectors = {
cacheLength: 50,
createPseudo: o,
match: vt,
@@ -1799,7 +1799,7 @@ function printStackTrace(e) {
},
preFilter: {
ATTR: function(e) {
- return e[1] = e[1].replace(Et, St), e[3] = (e[4] || e[5] || "").replace(Et, St),
+ return e[1] = e[1].replace(kt, Et), e[3] = (e[4] || e[5] || "").replace(kt, Et),
"~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4);
},
CHILD: function(e) {
@@ -1815,7 +1815,7 @@ function printStackTrace(e) {
},
filter: {
TAG: function(e) {
- var t = e.replace(Et, St).toLowerCase();
+ var t = e.replace(kt, Et).toLowerCase();
return "*" === e ? function() {
return !0;
} : function(e) {
@@ -1823,8 +1823,8 @@ function printStackTrace(e) {
};
},
CLASS: function(e) {
- var t = W[e + " "];
- return t || (t = new RegExp("(^|" + ot + ")" + e + "(" + ot + "|$)")) && W(e, function(e) {
+ var t = q[e + " "];
+ return t || (t = new RegExp("(^|" + ot + ")" + e + "(" + ot + "|$)")) && q(e, function(e) {
return t.test("string" == typeof e.className && e.className || typeof e.getAttribute !== K && e.getAttribute("class") || "");
});
},
@@ -1861,8 +1861,8 @@ function printStackTrace(e) {
};
},
PSEUDO: function(e, t) {
- var i, r = A.pseudos[e] || A.setFilters[e.toLowerCase()] || n.error("unsupported pseudo: " + e);
- return r[O] ? r(t) : r.length > 1 ? (i = [ e, e, "", t ], A.setFilters.hasOwnProperty(e.toLowerCase()) ? o(function(e, n) {
+ var i, r = S.pseudos[e] || S.setFilters[e.toLowerCase()] || n.error("unsupported pseudo: " + e);
+ return r[O] ? r(t) : r.length > 1 ? (i = [ e, e, "", t ], S.setFilters.hasOwnProperty(e.toLowerCase()) ? o(function(e, n) {
for (var i, o = r(e, t), s = o.length; s--; ) i = nt.call(e, o[s]), e[i] = !(n[i] = o[s]);
}) : function(e) {
return r(e, 0, i);
@@ -1885,11 +1885,11 @@ function printStackTrace(e) {
}),
contains: o(function(e) {
return function(t) {
- return (t.textContent || t.innerText || k(t)).indexOf(e) > -1;
+ return (t.textContent || t.innerText || A(t)).indexOf(e) > -1;
};
}),
lang: o(function(e) {
- return mt.test(e || "") || n.error("unsupported lang: " + e), e = e.replace(Et, St).toLowerCase(),
+ return mt.test(e || "") || n.error("unsupported lang: " + e), e = e.replace(kt, Et).toLowerCase(),
function(t) {
var n;
do if (n = I ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return n = n.toLowerCase(),
@@ -1925,10 +1925,10 @@ function printStackTrace(e) {
return !0;
},
parent: function(e) {
- return !A.pseudos.empty(e);
+ return !S.pseudos.empty(e);
},
header: function(e) {
- return Ct.test(e.nodeName);
+ return xt.test(e.nodeName);
},
input: function(e) {
return wt.test(e.nodeName);
@@ -1967,33 +1967,33 @@ function printStackTrace(e) {
return e;
})
}
- }, A.pseudos.nth = A.pseudos.eq;
- for (x in {
+ }, S.pseudos.nth = S.pseudos.eq;
+ for (C in {
radio: !0,
checkbox: !0,
file: !0,
password: !0,
image: !0
- }) A.pseudos[x] = l(x);
- for (x in {
+ }) S.pseudos[C] = l(C);
+ for (C in {
submit: !0,
reset: !0
- }) A.pseudos[x] = c(x);
- d.prototype = A.filters = A.pseudos, A.setFilters = new d(), F = n.compile = function(e, t) {
+ }) S.pseudos[C] = c(C);
+ d.prototype = S.filters = S.pseudos, S.setFilters = new d(), F = n.compile = function(e, t) {
var n, i = [], o = [], r = U[e + " "];
if (!r) {
for (t || (t = h(e)), n = t.length; n--; ) r = b(t[n]), r[O] ? i.push(r) : o.push(r);
r = U(e, y(o, i));
}
return r;
- }, E.sortStable = O.split("").sort(V).join("") === O, E.detectDuplicates = G, D(),
- E.sortDetached = r(function(e) {
+ }, k.sortStable = O.split("").sort(V).join("") === O, k.detectDuplicates = G, D(),
+ k.sortDetached = r(function(e) {
return 1 & e.compareDocumentPosition(L.createElement("div"));
}), r(function(e) {
return e.innerHTML = "", "#" === e.firstChild.getAttribute("href");
}) || s("type|href|height|width", function(e, t, n) {
return n ? void 0 : e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2);
- }), E.attributes && r(function(e) {
+ }), k.attributes && r(function(e) {
return e.innerHTML = "", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value");
}) || s("value", function(e, t, n) {
return n || "input" !== e.nodeName.toLowerCase() ? void 0 : e.defaultValue;
@@ -2279,7 +2279,7 @@ function printStackTrace(e) {
return l(), r.promise(n);
}
});
- var yt, wt, Ct = /[\t\r\n\f]/g, xt = /\r/g, Et = /^(?:input|select|textarea|button)$/i;
+ var yt, wt, xt = /[\t\r\n\f]/g, Ct = /\r/g, kt = /^(?:input|select|textarea|button)$/i;
rt.fn.extend({
attr: function(e, t) {
return rt.access(this, rt.attr, e, t, arguments.length > 1);
@@ -2302,7 +2302,7 @@ function printStackTrace(e) {
if (rt.isFunction(e)) return this.each(function(t) {
rt(this).addClass(e.call(this, t, this.className));
});
- if (l) for (t = (e || "").match(at) || []; a > s; s++) if (n = this[s], i = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(Ct, " ") : " ")) {
+ if (l) for (t = (e || "").match(at) || []; a > s; s++) if (n = this[s], i = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(xt, " ") : " ")) {
for (r = 0; o = t[r++]; ) i.indexOf(" " + o + " ") < 0 && (i += o + " ");
n.className = rt.trim(i);
}
@@ -2313,7 +2313,7 @@ function printStackTrace(e) {
if (rt.isFunction(e)) return this.each(function(t) {
rt(this).removeClass(e.call(this, t, this.className));
});
- if (l) for (t = (e || "").match(at) || []; a > s; s++) if (n = this[s], i = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(Ct, " ") : "")) {
+ if (l) for (t = (e || "").match(at) || []; a > s; s++) if (n = this[s], i = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(xt, " ") : "")) {
for (r = 0; o = t[r++]; ) for (;i.indexOf(" " + o + " ") >= 0; ) i = i.replace(" " + o + " ", " ");
n.className = e ? rt.trim(i) : "";
}
@@ -2324,12 +2324,12 @@ function printStackTrace(e) {
return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : rt.isFunction(e) ? this.each(function(n) {
rt(this).toggleClass(e.call(this, n, this.className, t), t);
}) : this.each(function() {
- if ("string" === n) for (var t, i = 0, o = rt(this), r = e.match(at) || []; t = r[i++]; ) o.hasClass(t) ? o.removeClass(t) : o.addClass(t); else (n === W || "boolean" === n) && (this.className && mt.set(this, "__className__", this.className),
+ if ("string" === n) for (var t, i = 0, o = rt(this), r = e.match(at) || []; t = r[i++]; ) o.hasClass(t) ? o.removeClass(t) : o.addClass(t); else (n === q || "boolean" === n) && (this.className && mt.set(this, "__className__", this.className),
this.className = this.className || e === !1 ? "" : mt.get(this, "__className__") || "");
});
},
hasClass: function(e) {
- for (var t = " " + e + " ", n = 0, i = this.length; i > n; n++) if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(Ct, " ").indexOf(t) >= 0) return !0;
+ for (var t = " " + e + " ", n = 0, i = this.length; i > n; n++) if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(xt, " ").indexOf(t) >= 0) return !0;
return !1;
},
val: function(e) {
@@ -2342,7 +2342,7 @@ function printStackTrace(e) {
})), n = rt.valHooks[this.type] || rt.valHooks[this.nodeName.toLowerCase()], n && "set" in n && n.set(this, r, "value") !== t || (this.value = r));
});
if (r) return n = rt.valHooks[r.type] || rt.valHooks[r.nodeName.toLowerCase()],
- n && "get" in n && (i = n.get(r, "value")) !== t ? i : (i = r.value, "string" == typeof i ? i.replace(xt, "") : null == i ? "" : i);
+ n && "get" in n && (i = n.get(r, "value")) !== t ? i : (i = r.value, "string" == typeof i ? i.replace(Ct, "") : null == i ? "" : i);
}
}
}), rt.extend({
@@ -2371,7 +2371,7 @@ function printStackTrace(e) {
},
attr: function(e, n, i) {
var o, r, s = e.nodeType;
- if (e && 3 !== s && 8 !== s && 2 !== s) return typeof e.getAttribute === W ? rt.prop(e, n, i) : (1 === s && rt.isXMLDoc(e) || (n = n.toLowerCase(),
+ if (e && 3 !== s && 8 !== s && 2 !== s) return typeof e.getAttribute === q ? rt.prop(e, n, i) : (1 === s && rt.isXMLDoc(e) || (n = n.toLowerCase(),
o = rt.attrHooks[n] || (rt.expr.match.bool.test(n) ? wt : yt)), i === t ? o && "get" in o && null !== (r = o.get(e, n)) ? r : (r = rt.find.attr(e, n),
null == r ? t : r) : null !== i ? o && "set" in o && (r = o.set(e, i, n)) !== t ? r : (e.setAttribute(n, i + ""),
i) : (rt.removeAttr(e, n), void 0));
@@ -2403,7 +2403,7 @@ function printStackTrace(e) {
propHooks: {
tabIndex: {
get: function(e) {
- return e.hasAttribute("tabindex") || Et.test(e.nodeName) || e.href ? e.tabIndex : -1;
+ return e.hasAttribute("tabindex") || kt.test(e.nodeName) || e.href ? e.tabIndex : -1;
}
}
}
@@ -2433,7 +2433,7 @@ function printStackTrace(e) {
return null === e.getAttribute("value") ? "on" : e.value;
});
});
- var St = /^key/, At = /^(?:mouse|contextmenu)|click/, kt = /^(?:focusinfocus|focusoutblur)$/, _t = /^([^.]*)(?:\.(.+)|)$/;
+ var Et = /^key/, St = /^(?:mouse|contextmenu)|click/, At = /^(?:focusinfocus|focusoutblur)$/, _t = /^([^.]*)(?:\.(.+)|)$/;
rt.event = {
global: {},
add: function(e, n, i, o, r) {
@@ -2441,7 +2441,7 @@ function printStackTrace(e) {
if (v) {
for (i.handler && (s = i, i = s.handler, r = s.selector), i.guid || (i.guid = rt.guid++),
(c = v.events) || (c = v.events = {}), (a = v.handle) || (a = v.handle = function(e) {
- return typeof rt === W || e && rt.event.triggered === e.type ? t : rt.event.dispatch.apply(a.elem, arguments);
+ return typeof rt === q || e && rt.event.triggered === e.type ? t : rt.event.dispatch.apply(a.elem, arguments);
}, a.elem = e), n = (n || "").match(at) || [ "" ], u = n.length; u--; ) l = _t.exec(n[u]) || [],
f = m = l[1], g = (l[2] || "").split(".").sort(), f && (h = rt.event.special[f] || {},
f = (r ? h.delegateType : h.bindType) || f, h = rt.event.special[f] || {}, d = rt.extend({
@@ -2476,13 +2476,13 @@ function printStackTrace(e) {
},
trigger: function(n, i, o, r) {
var s, a, l, c, u, d, h, p = [ o || U ], f = it.call(n, "type") ? n.type : n, g = it.call(n, "namespace") ? n.namespace.split(".") : [];
- if (a = l = o = o || U, 3 !== o.nodeType && 8 !== o.nodeType && !kt.test(f + rt.event.triggered) && (f.indexOf(".") >= 0 && (g = f.split("."),
+ if (a = l = o = o || U, 3 !== o.nodeType && 8 !== o.nodeType && !At.test(f + rt.event.triggered) && (f.indexOf(".") >= 0 && (g = f.split("."),
f = g.shift(), g.sort()), u = f.indexOf(":") < 0 && "on" + f, n = n[rt.expando] ? n : new rt.Event(f, "object" == typeof n && n),
n.isTrigger = r ? 2 : 3, n.namespace = g.join("."), n.namespace_re = n.namespace ? new RegExp("(^|\\.)" + g.join("\\.(?:.*\\.|)") + "(\\.|$)") : null,
n.result = t, n.target || (n.target = o), i = null == i ? [ n ] : rt.makeArray(i, [ n ]),
h = rt.event.special[f] || {}, r || !h.trigger || h.trigger.apply(o, i) !== !1)) {
if (!r && !h.noBubble && !rt.isWindow(o)) {
- for (c = h.delegateType || f, kt.test(c + f) || (a = a.parentNode); a; a = a.parentNode) p.push(a),
+ for (c = h.delegateType || f, At.test(c + f) || (a = a.parentNode); a; a = a.parentNode) p.push(a),
l = a;
l === (o.ownerDocument || U) && p.push(l.defaultView || l.parentWindow || e);
}
@@ -2542,7 +2542,7 @@ function printStackTrace(e) {
fix: function(e) {
if (e[rt.expando]) return e;
var t, n, i, o = e.type, r = e, s = this.fixHooks[o];
- for (s || (this.fixHooks[o] = s = At.test(o) ? this.mouseHooks : St.test(o) ? this.keyHooks : {}),
+ for (s || (this.fixHooks[o] = s = St.test(o) ? this.mouseHooks : Et.test(o) ? this.keyHooks : {}),
i = s.props ? this.props.concat(s.props) : this.props, e = new rt.Event(r), t = i.length; t--; ) n = i[t],
e[n] = r[n];
return e.target || (e.target = U), 3 === e.target.nodeType && (e.target = e.target.parentNode),
@@ -2971,7 +2971,7 @@ function printStackTrace(e) {
}).end();
}
});
- var Ht, Wt, qt = /^(none|table(?!-c[ea]).+)/, Ut = /^margin/, Gt = new RegExp("^(" + st + ")(.*)$", "i"), Vt = new RegExp("^(" + st + ")(?!px)[a-z%]+$", "i"), Kt = new RegExp("^([+-])=(" + st + ")", "i"), Xt = {
+ var Ht, qt, Wt = /^(none|table(?!-c[ea]).+)/, Ut = /^margin/, Gt = new RegExp("^(" + st + ")(.*)$", "i"), Vt = new RegExp("^(" + st + ")(?!px)[a-z%]+$", "i"), Kt = new RegExp("^([+-])=(" + st + ")", "i"), Xt = {
BODY: "block"
}, Yt = {
position: "absolute",
@@ -2993,10 +2993,10 @@ function printStackTrace(e) {
}, e, n, arguments.length > 1);
},
show: function() {
- return C(this, !0);
+ return x(this, !0);
},
hide: function() {
- return C(this);
+ return x(this);
},
toggle: function(e) {
return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function() {
@@ -3054,13 +3054,13 @@ function printStackTrace(e) {
}, rt.each([ "height", "width" ], function(e, t) {
rt.cssHooks[t] = {
get: function(e, n, i) {
- return n ? 0 === e.offsetWidth && qt.test(rt.css(e, "display")) ? rt.swap(e, Yt, function() {
- return S(e, t, i);
- }) : S(e, t, i) : void 0;
+ return n ? 0 === e.offsetWidth && Wt.test(rt.css(e, "display")) ? rt.swap(e, Yt, function() {
+ return E(e, t, i);
+ }) : E(e, t, i) : void 0;
},
set: function(e, n, i) {
var o = i && w(e);
- return x(e, n, i ? E(e, t, i, rt.support.boxSizing && "border-box" === rt.css(e, "boxSizing", !1, o), o) : 0);
+ return C(e, n, i ? k(e, t, i, rt.support.boxSizing && "border-box" === rt.css(e, "boxSizing", !1, o), o) : 0);
}
};
}), rt(function() {
@@ -3091,7 +3091,7 @@ function printStackTrace(e) {
for (var i = 0, o = {}, r = "string" == typeof n ? n.split(" ") : [ n ]; 4 > i; i++) o[e + Jt[i] + t] = r[i] || r[i - 2] || r[0];
return o;
}
- }, Ut.test(e) || (rt.cssHooks[e + t].set = x);
+ }, Ut.test(e) || (rt.cssHooks[e + t].set = C);
});
var en = /%20/g, tn = /\[\]$/, nn = /\r?\n/g, on = /^(?:submit|button|image|reset|file)$/i, rn = /^(?:input|select|textarea|keygen)/i;
rt.fn.extend({
@@ -3149,8 +3149,8 @@ function printStackTrace(e) {
});
var sn, an, ln = rt.now(), cn = /\?/, un = /#.*$/, dn = /([?&])_=[^&]*/, hn = /^(.*?):[ \t]*([^\r\n]*)$/gm, pn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, fn = /^(?:GET|HEAD)$/, gn = /^\/\//, mn = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, vn = rt.fn.load, bn = {}, yn = {}, wn = "*/".concat("*");
try {
- an = q.href;
- } catch (Cn) {
+ an = W.href;
+ } catch (xn) {
an = U.createElement("a"), an.href = "", an = an.href;
}
sn = mn.exec(an.toLowerCase()) || [], rt.fn.load = function(e, n, i) {
@@ -3218,18 +3218,18 @@ function printStackTrace(e) {
ajaxTransport: F(yn),
ajax: function(e, n) {
function i(e, n, i, a) {
- var c, d, b, y, C, E = n;
- 2 !== w && (w = 2, l && clearTimeout(l), o = t, s = a || "", x.readyState = e > 0 ? 4 : 0,
- c = e >= 200 && 300 > e || 304 === e, i && (y = D(h, x, i)), y = L(h, y, x, c),
- c ? (h.ifModified && (C = x.getResponseHeader("Last-Modified"), C && (rt.lastModified[r] = C),
- C = x.getResponseHeader("etag"), C && (rt.etag[r] = C)), 204 === e || "HEAD" === h.type ? E = "nocontent" : 304 === e ? E = "notmodified" : (E = y.state,
- d = y.data, b = y.error, c = !b)) : (b = E, (e || !E) && (E = "error", 0 > e && (e = 0))),
- x.status = e, x.statusText = (n || E) + "", c ? g.resolveWith(p, [ d, E, x ]) : g.rejectWith(p, [ x, E, b ]),
- x.statusCode(v), v = t, u && f.trigger(c ? "ajaxSuccess" : "ajaxError", [ x, h, c ? d : b ]),
- m.fireWith(p, [ x, E ]), u && (f.trigger("ajaxComplete", [ x, h ]), --rt.active || rt.event.trigger("ajaxStop")));
+ var c, d, b, y, x, k = n;
+ 2 !== w && (w = 2, l && clearTimeout(l), o = t, s = a || "", C.readyState = e > 0 ? 4 : 0,
+ c = e >= 200 && 300 > e || 304 === e, i && (y = D(h, C, i)), y = L(h, y, C, c),
+ c ? (h.ifModified && (x = C.getResponseHeader("Last-Modified"), x && (rt.lastModified[r] = x),
+ x = C.getResponseHeader("etag"), x && (rt.etag[r] = x)), 204 === e || "HEAD" === h.type ? k = "nocontent" : 304 === e ? k = "notmodified" : (k = y.state,
+ d = y.data, b = y.error, c = !b)) : (b = k, (e || !k) && (k = "error", 0 > e && (e = 0))),
+ C.status = e, C.statusText = (n || k) + "", c ? g.resolveWith(p, [ d, k, C ]) : g.rejectWith(p, [ C, k, b ]),
+ C.statusCode(v), v = t, u && f.trigger(c ? "ajaxSuccess" : "ajaxError", [ C, h, c ? d : b ]),
+ m.fireWith(p, [ C, k ]), u && (f.trigger("ajaxComplete", [ C, h ]), --rt.active || rt.event.trigger("ajaxStop")));
}
"object" == typeof e && (n = e, e = t), n = n || {};
- var o, r, s, a, l, c, u, d, h = rt.ajaxSetup({}, n), p = h.context || h, f = h.context && (p.nodeType || p.jquery) ? rt(p) : rt.event, g = rt.Deferred(), m = rt.Callbacks("once memory"), v = h.statusCode || {}, b = {}, y = {}, w = 0, C = "canceled", x = {
+ var o, r, s, a, l, c, u, d, h = rt.ajaxSetup({}, n), p = h.context || h, f = h.context && (p.nodeType || p.jquery) ? rt(p) : rt.event, g = rt.Deferred(), m = rt.Callbacks("once memory"), v = h.statusCode || {}, b = {}, y = {}, w = 0, x = "canceled", C = {
readyState: 0,
getResponseHeader: function(e) {
var t;
@@ -3251,45 +3251,45 @@ function printStackTrace(e) {
},
statusCode: function(e) {
var t;
- if (e) if (2 > w) for (t in e) v[t] = [ v[t], e[t] ]; else x.always(e[x.status]);
+ if (e) if (2 > w) for (t in e) v[t] = [ v[t], e[t] ]; else C.always(e[C.status]);
return this;
},
abort: function(e) {
- var t = e || C;
+ var t = e || x;
return o && o.abort(t), i(0, t), this;
}
};
- if (g.promise(x).complete = m.add, x.success = x.done, x.error = x.fail, h.url = ((e || h.url || an) + "").replace(un, "").replace(gn, sn[1] + "//"),
+ if (g.promise(C).complete = m.add, C.success = C.done, C.error = C.fail, h.url = ((e || h.url || an) + "").replace(un, "").replace(gn, sn[1] + "//"),
h.type = n.method || n.type || h.method || h.type, h.dataTypes = rt.trim(h.dataType || "*").toLowerCase().match(at) || [ "" ],
null == h.crossDomain && (c = mn.exec(h.url.toLowerCase()), h.crossDomain = !(!c || c[1] === sn[1] && c[2] === sn[2] && (c[3] || ("http:" === c[1] ? "80" : "443")) === (sn[3] || ("http:" === sn[1] ? "80" : "443")))),
h.data && h.processData && "string" != typeof h.data && (h.data = rt.param(h.data, h.traditional)),
- T(bn, h, n, x), 2 === w) return x;
+ T(bn, h, n, C), 2 === w) return C;
u = h.global, u && 0 === rt.active++ && rt.event.trigger("ajaxStart"), h.type = h.type.toUpperCase(),
h.hasContent = !fn.test(h.type), r = h.url, h.hasContent || (h.data && (r = h.url += (cn.test(r) ? "&" : "?") + h.data,
delete h.data), h.cache === !1 && (h.url = dn.test(r) ? r.replace(dn, "$1_=" + ln++) : r + (cn.test(r) ? "&" : "?") + "_=" + ln++)),
- h.ifModified && (rt.lastModified[r] && x.setRequestHeader("If-Modified-Since", rt.lastModified[r]),
- rt.etag[r] && x.setRequestHeader("If-None-Match", rt.etag[r])), (h.data && h.hasContent && h.contentType !== !1 || n.contentType) && x.setRequestHeader("Content-Type", h.contentType),
- x.setRequestHeader("Accept", h.dataTypes[0] && h.accepts[h.dataTypes[0]] ? h.accepts[h.dataTypes[0]] + ("*" !== h.dataTypes[0] ? ", " + wn + "; q=0.01" : "") : h.accepts["*"]);
- for (d in h.headers) x.setRequestHeader(d, h.headers[d]);
- if (h.beforeSend && (h.beforeSend.call(p, x, h) === !1 || 2 === w)) return x.abort();
- C = "abort";
+ h.ifModified && (rt.lastModified[r] && C.setRequestHeader("If-Modified-Since", rt.lastModified[r]),
+ rt.etag[r] && C.setRequestHeader("If-None-Match", rt.etag[r])), (h.data && h.hasContent && h.contentType !== !1 || n.contentType) && C.setRequestHeader("Content-Type", h.contentType),
+ C.setRequestHeader("Accept", h.dataTypes[0] && h.accepts[h.dataTypes[0]] ? h.accepts[h.dataTypes[0]] + ("*" !== h.dataTypes[0] ? ", " + wn + "; q=0.01" : "") : h.accepts["*"]);
+ for (d in h.headers) C.setRequestHeader(d, h.headers[d]);
+ if (h.beforeSend && (h.beforeSend.call(p, C, h) === !1 || 2 === w)) return C.abort();
+ x = "abort";
for (d in {
success: 1,
error: 1,
complete: 1
- }) x[d](h[d]);
- if (o = T(yn, h, n, x)) {
- x.readyState = 1, u && f.trigger("ajaxSend", [ x, h ]), h.async && h.timeout > 0 && (l = setTimeout(function() {
- x.abort("timeout");
+ }) C[d](h[d]);
+ if (o = T(yn, h, n, C)) {
+ C.readyState = 1, u && f.trigger("ajaxSend", [ C, h ]), h.async && h.timeout > 0 && (l = setTimeout(function() {
+ C.abort("timeout");
}, h.timeout));
try {
w = 1, o.send(b, i);
- } catch (E) {
- if (!(2 > w)) throw E;
- i(-1, E);
+ } catch (k) {
+ if (!(2 > w)) throw k;
+ i(-1, k);
}
} else i(-1, "No Transport");
- return x;
+ return C;
},
getJSON: function(e, t, n) {
return rt.get(e, t, n, "json");
@@ -3340,23 +3340,23 @@ function printStackTrace(e) {
};
}
});
- var xn = [], En = /(=)\?(?=&|$)|\?\?/;
+ var Cn = [], kn = /(=)\?(?=&|$)|\?\?/;
rt.ajaxSetup({
jsonp: "callback",
jsonpCallback: function() {
- var e = xn.pop() || rt.expando + "_" + ln++;
+ var e = Cn.pop() || rt.expando + "_" + ln++;
return this[e] = !0, e;
}
}), rt.ajaxPrefilter("json jsonp", function(n, i, o) {
- var r, s, a, l = n.jsonp !== !1 && (En.test(n.url) ? "url" : "string" == typeof n.data && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && En.test(n.data) && "data");
+ var r, s, a, l = n.jsonp !== !1 && (kn.test(n.url) ? "url" : "string" == typeof n.data && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && kn.test(n.data) && "data");
return l || "jsonp" === n.dataTypes[0] ? (r = n.jsonpCallback = rt.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback,
- l ? n[l] = n[l].replace(En, "$1" + r) : n.jsonp !== !1 && (n.url += (cn.test(n.url) ? "&" : "?") + n.jsonp + "=" + r),
+ l ? n[l] = n[l].replace(kn, "$1" + r) : n.jsonp !== !1 && (n.url += (cn.test(n.url) ? "&" : "?") + n.jsonp + "=" + r),
n.converters["script json"] = function() {
return a || rt.error(r + " was not called"), a[0];
}, n.dataTypes[0] = "json", s = e[r], e[r] = function() {
a = arguments;
}, o.always(function() {
- e[r] = s, n[r] && (n.jsonpCallback = i.jsonpCallback, xn.push(r)), a && rt.isFunction(s) && s(a[0]),
+ e[r] = s, n[r] && (n.jsonpCallback = i.jsonpCallback, Cn.push(r)), a && rt.isFunction(s) && s(a[0]),
a = s = t;
}), "script") : void 0;
}), rt.ajaxSettings.xhr = function() {
@@ -3364,17 +3364,17 @@ function printStackTrace(e) {
return new XMLHttpRequest();
} catch (e) {}
};
- var Sn = rt.ajaxSettings.xhr(), An = {
+ var En = rt.ajaxSettings.xhr(), Sn = {
0: 200,
1223: 204
- }, kn = 0, _n = {};
+ }, An = 0, _n = {};
e.ActiveXObject && rt(e).on("unload", function() {
for (var e in _n) _n[e]();
_n = t;
- }), rt.support.cors = !!Sn && "withCredentials" in Sn, rt.support.ajax = Sn = !!Sn,
+ }), rt.support.cors = !!En && "withCredentials" in En, rt.support.ajax = En = !!En,
rt.ajaxTransport(function(e) {
var n;
- return rt.support.cors || Sn && !e.crossDomain ? {
+ return rt.support.cors || En && !e.crossDomain ? {
send: function(i, o) {
var r, s, a = e.xhr();
if (a.open(e.type, e.url, e.async, e.username, e.password), e.xhrFields) for (r in e.xhrFields) a[r] = e.xhrFields[r];
@@ -3382,11 +3382,11 @@ function printStackTrace(e) {
for (r in i) a.setRequestHeader(r, i[r]);
n = function(e) {
return function() {
- n && (delete _n[s], n = a.onload = a.onerror = null, "abort" === e ? a.abort() : "error" === e ? o(a.status || 404, a.statusText) : o(An[a.status] || a.status, a.statusText, "string" == typeof a.responseText ? {
+ n && (delete _n[s], n = a.onload = a.onerror = null, "abort" === e ? a.abort() : "error" === e ? o(a.status || 404, a.statusText) : o(Sn[a.status] || a.status, a.statusText, "string" == typeof a.responseText ? {
text: a.responseText
} : t, a.getAllResponseHeaders()));
};
- }, a.onload = n(), a.onerror = n("error"), n = _n[s = kn++] = n("abort"), a.send(e.hasContent && e.data || null);
+ }, a.onload = n(), a.onerror = n("error"), n = _n[s = An++] = n("abort"), a.send(e.hasContent && e.data || null);
},
abort: function() {
n && n();
@@ -3545,7 +3545,7 @@ function printStackTrace(e) {
top: 0,
left: 0
}, s = o && o.ownerDocument;
- if (s) return n = s.documentElement, rt.contains(n, o) ? (typeof o.getBoundingClientRect !== W && (r = o.getBoundingClientRect()),
+ if (s) return n = s.documentElement, rt.contains(n, o) ? (typeof o.getBoundingClientRect !== q && (r = o.getBoundingClientRect()),
i = z(s), {
top: r.top + i.pageYOffset - n.clientTop,
left: r.left + i.pageXOffset - n.clientLeft
@@ -3616,134 +3616,134 @@ function printStackTrace(e) {
return rt;
}), "object" == typeof e && "object" == typeof e.document && (e.jQuery = e.$ = rt);
}(window), function() {
- var e = this, t = e._, n = {}, i = Array.prototype, o = Object.prototype, r = Function.prototype, s = i.push, a = i.slice, l = i.concat, c = o.toString, u = o.hasOwnProperty, d = i.forEach, h = i.map, p = i.reduce, f = i.reduceRight, g = i.filter, m = i.every, v = i.some, b = i.indexOf, y = i.lastIndexOf, w = Array.isArray, C = Object.keys, x = r.bind, E = function(e) {
- return e instanceof E ? e : this instanceof E ? (this._wrapped = e, void 0) : new E(e);
+ var e = this, t = e._, n = {}, i = Array.prototype, o = Object.prototype, r = Function.prototype, s = i.push, a = i.slice, l = i.concat, c = o.toString, u = o.hasOwnProperty, d = i.forEach, h = i.map, p = i.reduce, f = i.reduceRight, g = i.filter, m = i.every, v = i.some, b = i.indexOf, y = i.lastIndexOf, w = Array.isArray, x = Object.keys, C = r.bind, k = function(e) {
+ return e instanceof k ? e : this instanceof k ? (this._wrapped = e, void 0) : new k(e);
};
- "undefined" != typeof exports ? ("undefined" != typeof module && module.exports && (exports = module.exports = E),
- exports._ = E) : e._ = E, E.VERSION = "1.5.1";
- var S = E.each = E.forEach = function(e, t, i) {
+ "undefined" != typeof exports ? ("undefined" != typeof module && module.exports && (exports = module.exports = k),
+ exports._ = k) : e._ = k, k.VERSION = "1.5.1";
+ var E = k.each = k.forEach = function(e, t, i) {
if (null != e) if (d && e.forEach === d) e.forEach(t, i); else if (e.length === +e.length) {
for (var o = 0, r = e.length; r > o; o++) if (t.call(i, e[o], o, e) === n) return;
- } else for (var s in e) if (E.has(e, s) && t.call(i, e[s], s, e) === n) return;
+ } else for (var s in e) if (k.has(e, s) && t.call(i, e[s], s, e) === n) return;
};
- E.map = E.collect = function(e, t, n) {
+ k.map = k.collect = function(e, t, n) {
var i = [];
- return null == e ? i : h && e.map === h ? e.map(t, n) : (S(e, function(e, o, r) {
+ return null == e ? i : h && e.map === h ? e.map(t, n) : (E(e, function(e, o, r) {
i.push(t.call(n, e, o, r));
}), i);
};
- var A = "Reduce of empty array with no initial value";
- E.reduce = E.foldl = E.inject = function(e, t, n, i) {
+ var S = "Reduce of empty array with no initial value";
+ k.reduce = k.foldl = k.inject = function(e, t, n, i) {
var o = arguments.length > 2;
- if (null == e && (e = []), p && e.reduce === p) return i && (t = E.bind(t, i)),
+ if (null == e && (e = []), p && e.reduce === p) return i && (t = k.bind(t, i)),
o ? e.reduce(t, n) : e.reduce(t);
- if (S(e, function(e, r, s) {
+ if (E(e, function(e, r, s) {
o ? n = t.call(i, n, e, r, s) : (n = e, o = !0);
- }), !o) throw new TypeError(A);
+ }), !o) throw new TypeError(S);
return n;
- }, E.reduceRight = E.foldr = function(e, t, n, i) {
+ }, k.reduceRight = k.foldr = function(e, t, n, i) {
var o = arguments.length > 2;
- if (null == e && (e = []), f && e.reduceRight === f) return i && (t = E.bind(t, i)),
+ if (null == e && (e = []), f && e.reduceRight === f) return i && (t = k.bind(t, i)),
o ? e.reduceRight(t, n) : e.reduceRight(t);
var r = e.length;
if (r !== +r) {
- var s = E.keys(e);
+ var s = k.keys(e);
r = s.length;
}
- if (S(e, function(a, l, c) {
+ if (E(e, function(a, l, c) {
l = s ? s[--r] : --r, o ? n = t.call(i, n, e[l], l, c) : (n = e[l], o = !0);
- }), !o) throw new TypeError(A);
+ }), !o) throw new TypeError(S);
return n;
- }, E.find = E.detect = function(e, t, n) {
+ }, k.find = k.detect = function(e, t, n) {
var i;
- return k(e, function(e, o, r) {
+ return A(e, function(e, o, r) {
return t.call(n, e, o, r) ? (i = e, !0) : void 0;
}), i;
- }, E.filter = E.select = function(e, t, n) {
+ }, k.filter = k.select = function(e, t, n) {
var i = [];
- return null == e ? i : g && e.filter === g ? e.filter(t, n) : (S(e, function(e, o, r) {
+ return null == e ? i : g && e.filter === g ? e.filter(t, n) : (E(e, function(e, o, r) {
t.call(n, e, o, r) && i.push(e);
}), i);
- }, E.reject = function(e, t, n) {
- return E.filter(e, function(e, i, o) {
+ }, k.reject = function(e, t, n) {
+ return k.filter(e, function(e, i, o) {
return !t.call(n, e, i, o);
}, n);
- }, E.every = E.all = function(e, t, i) {
- t || (t = E.identity);
+ }, k.every = k.all = function(e, t, i) {
+ t || (t = k.identity);
var o = !0;
- return null == e ? o : m && e.every === m ? e.every(t, i) : (S(e, function(e, r, s) {
+ return null == e ? o : m && e.every === m ? e.every(t, i) : (E(e, function(e, r, s) {
return (o = o && t.call(i, e, r, s)) ? void 0 : n;
}), !!o);
};
- var k = E.some = E.any = function(e, t, i) {
- t || (t = E.identity);
+ var A = k.some = k.any = function(e, t, i) {
+ t || (t = k.identity);
var o = !1;
- return null == e ? o : v && e.some === v ? e.some(t, i) : (S(e, function(e, r, s) {
+ return null == e ? o : v && e.some === v ? e.some(t, i) : (E(e, function(e, r, s) {
return o || (o = t.call(i, e, r, s)) ? n : void 0;
}), !!o);
};
- E.contains = E.include = function(e, t) {
- return null == e ? !1 : b && e.indexOf === b ? -1 != e.indexOf(t) : k(e, function(e) {
+ k.contains = k.include = function(e, t) {
+ return null == e ? !1 : b && e.indexOf === b ? -1 != e.indexOf(t) : A(e, function(e) {
return e === t;
});
- }, E.invoke = function(e, t) {
- var n = a.call(arguments, 2), i = E.isFunction(t);
- return E.map(e, function(e) {
+ }, k.invoke = function(e, t) {
+ var n = a.call(arguments, 2), i = k.isFunction(t);
+ return k.map(e, function(e) {
return (i ? t : e[t]).apply(e, n);
});
- }, E.pluck = function(e, t) {
- return E.map(e, function(e) {
+ }, k.pluck = function(e, t) {
+ return k.map(e, function(e) {
return e[t];
});
- }, E.where = function(e, t, n) {
- return E.isEmpty(t) ? n ? void 0 : [] : E[n ? "find" : "filter"](e, function(e) {
+ }, k.where = function(e, t, n) {
+ return k.isEmpty(t) ? n ? void 0 : [] : k[n ? "find" : "filter"](e, function(e) {
for (var n in t) if (t[n] !== e[n]) return !1;
return !0;
});
- }, E.findWhere = function(e, t) {
- return E.where(e, t, !0);
- }, E.max = function(e, t, n) {
- if (!t && E.isArray(e) && e[0] === +e[0] && e.length < 65535) return Math.max.apply(Math, e);
- if (!t && E.isEmpty(e)) return -1/0;
+ }, k.findWhere = function(e, t) {
+ return k.where(e, t, !0);
+ }, k.max = function(e, t, n) {
+ if (!t && k.isArray(e) && e[0] === +e[0] && e.length < 65535) return Math.max.apply(Math, e);
+ if (!t && k.isEmpty(e)) return -1/0;
var i = {
computed: -1/0,
value: -1/0
};
- return S(e, function(e, o, r) {
+ return E(e, function(e, o, r) {
var s = t ? t.call(n, e, o, r) : e;
s > i.computed && (i = {
value: e,
computed: s
});
}), i.value;
- }, E.min = function(e, t, n) {
- if (!t && E.isArray(e) && e[0] === +e[0] && e.length < 65535) return Math.min.apply(Math, e);
- if (!t && E.isEmpty(e)) return 1/0;
+ }, k.min = function(e, t, n) {
+ if (!t && k.isArray(e) && e[0] === +e[0] && e.length < 65535) return Math.min.apply(Math, e);
+ if (!t && k.isEmpty(e)) return 1/0;
var i = {
computed: 1/0,
value: 1/0
};
- return S(e, function(e, o, r) {
+ return E(e, function(e, o, r) {
var s = t ? t.call(n, e, o, r) : e;
s < i.computed && (i = {
value: e,
computed: s
});
}), i.value;
- }, E.shuffle = function(e) {
+ }, k.shuffle = function(e) {
var t, n = 0, i = [];
- return S(e, function(e) {
- t = E.random(n++), i[n - 1] = i[t], i[t] = e;
+ return E(e, function(e) {
+ t = k.random(n++), i[n - 1] = i[t], i[t] = e;
}), i;
};
var _ = function(e) {
- return E.isFunction(e) ? e : function(t) {
+ return k.isFunction(e) ? e : function(t) {
return t[e];
};
};
- E.sortBy = function(e, t, n) {
+ k.sortBy = function(e, t, n) {
var i = _(t);
- return E.pluck(E.map(e, function(e, t, o) {
+ return k.pluck(k.map(e, function(e, t, o) {
return {
value: e,
index: t,
@@ -3759,105 +3759,105 @@ function printStackTrace(e) {
}), "value");
};
var F = function(e, t, n, i) {
- var o = {}, r = _(null == t ? E.identity : t);
- return S(e, function(t, s) {
+ var o = {}, r = _(null == t ? k.identity : t);
+ return E(e, function(t, s) {
var a = r.call(n, t, s, e);
i(o, a, t);
}), o;
};
- E.groupBy = function(e, t, n) {
+ k.groupBy = function(e, t, n) {
return F(e, t, n, function(e, t, n) {
- (E.has(e, t) ? e[t] : e[t] = []).push(n);
+ (k.has(e, t) ? e[t] : e[t] = []).push(n);
});
- }, E.countBy = function(e, t, n) {
+ }, k.countBy = function(e, t, n) {
return F(e, t, n, function(e, t) {
- E.has(e, t) || (e[t] = 0), e[t]++;
+ k.has(e, t) || (e[t] = 0), e[t]++;
});
- }, E.sortedIndex = function(e, t, n, i) {
- n = null == n ? E.identity : _(n);
+ }, k.sortedIndex = function(e, t, n, i) {
+ n = null == n ? k.identity : _(n);
for (var o = n.call(i, t), r = 0, s = e.length; s > r; ) {
var a = r + s >>> 1;
n.call(i, e[a]) < o ? r = a + 1 : s = a;
}
return r;
- }, E.toArray = function(e) {
- return e ? E.isArray(e) ? a.call(e) : e.length === +e.length ? E.map(e, E.identity) : E.values(e) : [];
- }, E.size = function(e) {
- return null == e ? 0 : e.length === +e.length ? e.length : E.keys(e).length;
- }, E.first = E.head = E.take = function(e, t, n) {
+ }, k.toArray = function(e) {
+ return e ? k.isArray(e) ? a.call(e) : e.length === +e.length ? k.map(e, k.identity) : k.values(e) : [];
+ }, k.size = function(e) {
+ return null == e ? 0 : e.length === +e.length ? e.length : k.keys(e).length;
+ }, k.first = k.head = k.take = function(e, t, n) {
return null == e ? void 0 : null == t || n ? e[0] : a.call(e, 0, t);
- }, E.initial = function(e, t, n) {
+ }, k.initial = function(e, t, n) {
return a.call(e, 0, e.length - (null == t || n ? 1 : t));
- }, E.last = function(e, t, n) {
+ }, k.last = function(e, t, n) {
return null == e ? void 0 : null == t || n ? e[e.length - 1] : a.call(e, Math.max(e.length - t, 0));
- }, E.rest = E.tail = E.drop = function(e, t, n) {
+ }, k.rest = k.tail = k.drop = function(e, t, n) {
return a.call(e, null == t || n ? 1 : t);
- }, E.compact = function(e) {
- return E.filter(e, E.identity);
+ }, k.compact = function(e) {
+ return k.filter(e, k.identity);
};
var T = function(e, t, n) {
- return t && E.every(e, E.isArray) ? l.apply(n, e) : (S(e, function(e) {
- E.isArray(e) || E.isArguments(e) ? t ? s.apply(n, e) : T(e, t, n) : n.push(e);
+ return t && k.every(e, k.isArray) ? l.apply(n, e) : (E(e, function(e) {
+ k.isArray(e) || k.isArguments(e) ? t ? s.apply(n, e) : T(e, t, n) : n.push(e);
}), n);
};
- E.flatten = function(e, t) {
+ k.flatten = function(e, t) {
return T(e, t, []);
- }, E.without = function(e) {
- return E.difference(e, a.call(arguments, 1));
- }, E.uniq = E.unique = function(e, t, n, i) {
- E.isFunction(t) && (i = n, n = t, t = !1);
- var o = n ? E.map(e, n, i) : e, r = [], s = [];
- return S(o, function(n, i) {
- (t ? i && s[s.length - 1] === n : E.contains(s, n)) || (s.push(n), r.push(e[i]));
+ }, k.without = function(e) {
+ return k.difference(e, a.call(arguments, 1));
+ }, k.uniq = k.unique = function(e, t, n, i) {
+ k.isFunction(t) && (i = n, n = t, t = !1);
+ var o = n ? k.map(e, n, i) : e, r = [], s = [];
+ return E(o, function(n, i) {
+ (t ? i && s[s.length - 1] === n : k.contains(s, n)) || (s.push(n), r.push(e[i]));
}), r;
- }, E.union = function() {
- return E.uniq(E.flatten(arguments, !0));
- }, E.intersection = function(e) {
+ }, k.union = function() {
+ return k.uniq(k.flatten(arguments, !0));
+ }, k.intersection = function(e) {
var t = a.call(arguments, 1);
- return E.filter(E.uniq(e), function(e) {
- return E.every(t, function(t) {
- return E.indexOf(t, e) >= 0;
+ return k.filter(k.uniq(e), function(e) {
+ return k.every(t, function(t) {
+ return k.indexOf(t, e) >= 0;
});
});
- }, E.difference = function(e) {
+ }, k.difference = function(e) {
var t = l.apply(i, a.call(arguments, 1));
- return E.filter(e, function(e) {
- return !E.contains(t, e);
+ return k.filter(e, function(e) {
+ return !k.contains(t, e);
});
- }, E.zip = function() {
- for (var e = E.max(E.pluck(arguments, "length").concat(0)), t = new Array(e), n = 0; e > n; n++) t[n] = E.pluck(arguments, "" + n);
+ }, k.zip = function() {
+ for (var e = k.max(k.pluck(arguments, "length").concat(0)), t = new Array(e), n = 0; e > n; n++) t[n] = k.pluck(arguments, "" + n);
return t;
- }, E.object = function(e, t) {
+ }, k.object = function(e, t) {
if (null == e) return {};
for (var n = {}, i = 0, o = e.length; o > i; i++) t ? n[e[i]] = t[i] : n[e[i][0]] = e[i][1];
return n;
- }, E.indexOf = function(e, t, n) {
+ }, k.indexOf = function(e, t, n) {
if (null == e) return -1;
var i = 0, o = e.length;
if (n) {
- if ("number" != typeof n) return i = E.sortedIndex(e, t), e[i] === t ? i : -1;
+ if ("number" != typeof n) return i = k.sortedIndex(e, t), e[i] === t ? i : -1;
i = 0 > n ? Math.max(0, o + n) : n;
}
if (b && e.indexOf === b) return e.indexOf(t, n);
for (;o > i; i++) if (e[i] === t) return i;
return -1;
- }, E.lastIndexOf = function(e, t, n) {
+ }, k.lastIndexOf = function(e, t, n) {
if (null == e) return -1;
var i = null != n;
if (y && e.lastIndexOf === y) return i ? e.lastIndexOf(t, n) : e.lastIndexOf(t);
for (var o = i ? n : e.length; o--; ) if (e[o] === t) return o;
return -1;
- }, E.range = function(e, t, n) {
+ }, k.range = function(e, t, n) {
arguments.length <= 1 && (t = e || 0, e = 0), n = arguments[2] || 1;
for (var i = Math.max(Math.ceil((t - e) / n), 0), o = 0, r = new Array(i); i > o; ) r[o++] = e,
e += n;
return r;
};
var $ = function() {};
- E.bind = function(e, t) {
+ k.bind = function(e, t) {
var n, i;
- if (x && e.bind === x) return x.apply(e, a.call(arguments, 1));
- if (!E.isFunction(e)) throw new TypeError();
+ if (C && e.bind === C) return C.apply(e, a.call(arguments, 1));
+ if (!k.isFunction(e)) throw new TypeError();
return n = a.call(arguments, 2), i = function() {
if (!(this instanceof i)) return e.apply(t, n.concat(a.call(arguments)));
$.prototype = e.prototype;
@@ -3866,31 +3866,31 @@ function printStackTrace(e) {
var r = e.apply(o, n.concat(a.call(arguments)));
return Object(r) === r ? r : o;
};
- }, E.partial = function(e) {
+ }, k.partial = function(e) {
var t = a.call(arguments, 1);
return function() {
return e.apply(this, t.concat(a.call(arguments)));
};
- }, E.bindAll = function(e) {
+ }, k.bindAll = function(e) {
var t = a.call(arguments, 1);
if (0 === t.length) throw new Error("bindAll must be passed function names");
- return S(t, function(t) {
- e[t] = E.bind(e[t], e);
+ return E(t, function(t) {
+ e[t] = k.bind(e[t], e);
}), e;
- }, E.memoize = function(e, t) {
+ }, k.memoize = function(e, t) {
var n = {};
- return t || (t = E.identity), function() {
+ return t || (t = k.identity), function() {
var i = t.apply(this, arguments);
- return E.has(n, i) ? n[i] : n[i] = e.apply(this, arguments);
+ return k.has(n, i) ? n[i] : n[i] = e.apply(this, arguments);
};
- }, E.delay = function(e, t) {
+ }, k.delay = function(e, t) {
var n = a.call(arguments, 2);
return setTimeout(function() {
return e.apply(null, n);
}, t);
- }, E.defer = function(e) {
- return E.delay.apply(E, [ e, 1 ].concat(a.call(arguments, 1)));
- }, E.throttle = function(e, t, n) {
+ }, k.defer = function(e) {
+ return k.delay.apply(k, [ e, 1 ].concat(a.call(arguments, 1)));
+ }, k.throttle = function(e, t, n) {
var i, o, r, s = null, a = 0;
n || (n = {});
var l = function() {
@@ -3903,7 +3903,7 @@ function printStackTrace(e) {
return i = this, o = arguments, 0 >= u ? (clearTimeout(s), s = null, a = c, r = e.apply(i, o)) : s || n.trailing === !1 || (s = setTimeout(l, u)),
r;
};
- }, E.debounce = function(e, t, n) {
+ }, k.debounce = function(e, t, n) {
var i, o = null;
return function() {
var r = this, s = arguments, a = function() {
@@ -3911,73 +3911,73 @@ function printStackTrace(e) {
}, l = n && !o;
return clearTimeout(o), o = setTimeout(a, t), l && (i = e.apply(r, s)), i;
};
- }, E.once = function(e) {
+ }, k.once = function(e) {
var t, n = !1;
return function() {
return n ? t : (n = !0, t = e.apply(this, arguments), e = null, t);
};
- }, E.wrap = function(e, t) {
+ }, k.wrap = function(e, t) {
return function() {
var n = [ e ];
return s.apply(n, arguments), t.apply(this, n);
};
- }, E.compose = function() {
+ }, k.compose = function() {
var e = arguments;
return function() {
for (var t = arguments, n = e.length - 1; n >= 0; n--) t = [ e[n].apply(this, t) ];
return t[0];
};
- }, E.after = function(e, t) {
+ }, k.after = function(e, t) {
return function() {
return --e < 1 ? t.apply(this, arguments) : void 0;
};
- }, E.keys = C || function(e) {
+ }, k.keys = x || function(e) {
if (e !== Object(e)) throw new TypeError("Invalid object");
var t = [];
- for (var n in e) E.has(e, n) && t.push(n);
+ for (var n in e) k.has(e, n) && t.push(n);
return t;
- }, E.values = function(e) {
+ }, k.values = function(e) {
var t = [];
- for (var n in e) E.has(e, n) && t.push(e[n]);
+ for (var n in e) k.has(e, n) && t.push(e[n]);
return t;
- }, E.pairs = function(e) {
+ }, k.pairs = function(e) {
var t = [];
- for (var n in e) E.has(e, n) && t.push([ n, e[n] ]);
+ for (var n in e) k.has(e, n) && t.push([ n, e[n] ]);
return t;
- }, E.invert = function(e) {
+ }, k.invert = function(e) {
var t = {};
- for (var n in e) E.has(e, n) && (t[e[n]] = n);
+ for (var n in e) k.has(e, n) && (t[e[n]] = n);
return t;
- }, E.functions = E.methods = function(e) {
+ }, k.functions = k.methods = function(e) {
var t = [];
- for (var n in e) E.isFunction(e[n]) && t.push(n);
+ for (var n in e) k.isFunction(e[n]) && t.push(n);
return t.sort();
- }, E.extend = function(e) {
- return S(a.call(arguments, 1), function(t) {
+ }, k.extend = function(e) {
+ return E(a.call(arguments, 1), function(t) {
if (t) for (var n in t) e[n] = t[n];
}), e;
- }, E.pick = function(e) {
+ }, k.pick = function(e) {
var t = {}, n = l.apply(i, a.call(arguments, 1));
- return S(n, function(n) {
+ return E(n, function(n) {
n in e && (t[n] = e[n]);
}), t;
- }, E.omit = function(e) {
+ }, k.omit = function(e) {
var t = {}, n = l.apply(i, a.call(arguments, 1));
- for (var o in e) E.contains(n, o) || (t[o] = e[o]);
+ for (var o in e) k.contains(n, o) || (t[o] = e[o]);
return t;
- }, E.defaults = function(e) {
- return S(a.call(arguments, 1), function(t) {
+ }, k.defaults = function(e) {
+ return E(a.call(arguments, 1), function(t) {
if (t) for (var n in t) void 0 === e[n] && (e[n] = t[n]);
}), e;
- }, E.clone = function(e) {
- return E.isObject(e) ? E.isArray(e) ? e.slice() : E.extend({}, e) : e;
- }, E.tap = function(e, t) {
+ }, k.clone = function(e) {
+ return k.isObject(e) ? k.isArray(e) ? e.slice() : k.extend({}, e) : e;
+ }, k.tap = function(e, t) {
return t(e), e;
};
var D = function(e, t, n, i) {
if (e === t) return 0 !== e || 1 / e == 1 / t;
if (null == e || null == t) return e === t;
- e instanceof E && (e = e._wrapped), t instanceof E && (t = t._wrapped);
+ e instanceof k && (e = e._wrapped), t instanceof k && (t = t._wrapped);
var o = c.call(e);
if (o != c.call(t)) return !1;
switch (o) {
@@ -3997,61 +3997,61 @@ function printStackTrace(e) {
if ("object" != typeof e || "object" != typeof t) return !1;
for (var r = n.length; r--; ) if (n[r] == e) return i[r] == t;
var s = e.constructor, a = t.constructor;
- if (s !== a && !(E.isFunction(s) && s instanceof s && E.isFunction(a) && a instanceof a)) return !1;
+ if (s !== a && !(k.isFunction(s) && s instanceof s && k.isFunction(a) && a instanceof a)) return !1;
n.push(e), i.push(t);
var l = 0, u = !0;
if ("[object Array]" == o) {
if (l = e.length, u = l == t.length) for (;l-- && (u = D(e[l], t[l], n, i)); ) ;
} else {
- for (var d in e) if (E.has(e, d) && (l++, !(u = E.has(t, d) && D(e[d], t[d], n, i)))) break;
+ for (var d in e) if (k.has(e, d) && (l++, !(u = k.has(t, d) && D(e[d], t[d], n, i)))) break;
if (u) {
- for (d in t) if (E.has(t, d) && !l--) break;
+ for (d in t) if (k.has(t, d) && !l--) break;
u = !l;
}
}
return n.pop(), i.pop(), u;
};
- E.isEqual = function(e, t) {
+ k.isEqual = function(e, t) {
return D(e, t, [], []);
- }, E.isEmpty = function(e) {
+ }, k.isEmpty = function(e) {
if (null == e) return !0;
- if (E.isArray(e) || E.isString(e)) return 0 === e.length;
- for (var t in e) if (E.has(e, t)) return !1;
+ if (k.isArray(e) || k.isString(e)) return 0 === e.length;
+ for (var t in e) if (k.has(e, t)) return !1;
return !0;
- }, E.isElement = function(e) {
+ }, k.isElement = function(e) {
return !(!e || 1 !== e.nodeType);
- }, E.isArray = w || function(e) {
+ }, k.isArray = w || function(e) {
return "[object Array]" == c.call(e);
- }, E.isObject = function(e) {
+ }, k.isObject = function(e) {
return e === Object(e);
- }, S([ "Arguments", "Function", "String", "Number", "Date", "RegExp" ], function(e) {
- E["is" + e] = function(t) {
+ }, E([ "Arguments", "Function", "String", "Number", "Date", "RegExp" ], function(e) {
+ k["is" + e] = function(t) {
return c.call(t) == "[object " + e + "]";
};
- }), E.isArguments(arguments) || (E.isArguments = function(e) {
- return !(!e || !E.has(e, "callee"));
- }), "function" != typeof /./ && (E.isFunction = function(e) {
+ }), k.isArguments(arguments) || (k.isArguments = function(e) {
+ return !(!e || !k.has(e, "callee"));
+ }), "function" != typeof /./ && (k.isFunction = function(e) {
return "function" == typeof e;
- }), E.isFinite = function(e) {
+ }), k.isFinite = function(e) {
return isFinite(e) && !isNaN(parseFloat(e));
- }, E.isNaN = function(e) {
- return E.isNumber(e) && e != +e;
- }, E.isBoolean = function(e) {
+ }, k.isNaN = function(e) {
+ return k.isNumber(e) && e != +e;
+ }, k.isBoolean = function(e) {
return e === !0 || e === !1 || "[object Boolean]" == c.call(e);
- }, E.isNull = function(e) {
+ }, k.isNull = function(e) {
return null === e;
- }, E.isUndefined = function(e) {
+ }, k.isUndefined = function(e) {
return void 0 === e;
- }, E.has = function(e, t) {
+ }, k.has = function(e, t) {
return u.call(e, t);
- }, E.noConflict = function() {
+ }, k.noConflict = function() {
return e._ = t, this;
- }, E.identity = function(e) {
+ }, k.identity = function(e) {
return e;
- }, E.times = function(e, t, n) {
+ }, k.times = function(e, t, n) {
for (var i = Array(Math.max(0, e)), o = 0; e > o; o++) i[o] = t.call(n, o);
return i;
- }, E.random = function(e, t) {
+ }, k.random = function(e, t) {
return null == t && (t = e, e = 0), e + Math.floor(Math.random() * (t - e + 1));
};
var L = {
@@ -4064,35 +4064,35 @@ function printStackTrace(e) {
"/": "/"
}
};
- L.unescape = E.invert(L.escape);
+ L.unescape = k.invert(L.escape);
var B = {
- escape: new RegExp("[" + E.keys(L.escape).join("") + "]", "g"),
- unescape: new RegExp("(" + E.keys(L.unescape).join("|") + ")", "g")
+ escape: new RegExp("[" + k.keys(L.escape).join("") + "]", "g"),
+ unescape: new RegExp("(" + k.keys(L.unescape).join("|") + ")", "g")
};
- E.each([ "escape", "unescape" ], function(e) {
- E[e] = function(t) {
+ k.each([ "escape", "unescape" ], function(e) {
+ k[e] = function(t) {
return null == t ? "" : ("" + t).replace(B[e], function(t) {
return L[e][t];
});
};
- }), E.result = function(e, t) {
+ }), k.result = function(e, t) {
if (null == e) return void 0;
var n = e[t];
- return E.isFunction(n) ? n.call(e) : n;
- }, E.mixin = function(e) {
- S(E.functions(e), function(t) {
- var n = E[t] = e[t];
- E.prototype[t] = function() {
+ return k.isFunction(n) ? n.call(e) : n;
+ }, k.mixin = function(e) {
+ E(k.functions(e), function(t) {
+ var n = k[t] = e[t];
+ k.prototype[t] = function() {
var e = [ this._wrapped ];
- return s.apply(e, arguments), N.call(this, n.apply(E, e));
+ return s.apply(e, arguments), N.call(this, n.apply(k, e));
};
});
};
var I = 0;
- E.uniqueId = function(e) {
+ k.uniqueId = function(e) {
var t = ++I + "";
return e ? e + t : t;
- }, E.templateSettings = {
+ }, k.templateSettings = {
evaluate: /<%([\s\S]+?)%>/g,
interpolate: /<%=([\s\S]+?)%>/g,
escape: /<%-([\s\S]+?)%>/g
@@ -4106,9 +4106,9 @@ function printStackTrace(e) {
"\u2028": "u2028",
"\u2029": "u2029"
}, P = /\\|'|\r|\n|\t|\u2028|\u2029/g;
- E.template = function(e, t, n) {
+ k.template = function(e, t, n) {
var i;
- n = E.defaults({}, n, E.templateSettings);
+ n = k.defaults({}, n, k.templateSettings);
var o = new RegExp([ (n.escape || M).source, (n.interpolate || M).source, (n.evaluate || M).source ].join("|") + "|$", "g"), r = 0, s = "__p+='";
e.replace(o, function(t, n, i, o, a) {
return s += e.slice(r, a).replace(P, function(e) {
@@ -4121,30 +4121,30 @@ function printStackTrace(e) {
} catch (a) {
throw a.source = s, a;
}
- if (t) return i(t, E);
+ if (t) return i(t, k);
var l = function(e) {
- return i.call(this, e, E);
+ return i.call(this, e, k);
};
return l.source = "function(" + (n.variable || "obj") + "){\n" + s + "}", l;
- }, E.chain = function(e) {
- return E(e).chain();
+ }, k.chain = function(e) {
+ return k(e).chain();
};
var N = function(e) {
- return this._chain ? E(e).chain() : e;
+ return this._chain ? k(e).chain() : e;
};
- E.mixin(E), S([ "pop", "push", "reverse", "shift", "sort", "splice", "unshift" ], function(e) {
+ k.mixin(k), E([ "pop", "push", "reverse", "shift", "sort", "splice", "unshift" ], function(e) {
var t = i[e];
- E.prototype[e] = function() {
+ k.prototype[e] = function() {
var n = this._wrapped;
return t.apply(n, arguments), "shift" != e && "splice" != e || 0 !== n.length || delete n[0],
N.call(this, n);
};
- }), S([ "concat", "join", "slice" ], function(e) {
+ }), E([ "concat", "join", "slice" ], function(e) {
var t = i[e];
- E.prototype[e] = function() {
+ k.prototype[e] = function() {
return N.call(this, t.apply(this._wrapped, arguments));
};
- }), E.extend(E.prototype, {
+ }), k.extend(k.prototype, {
chain: function() {
return this._chain = !0, this;
},
@@ -4378,21 +4378,21 @@ function printStackTrace(e) {
}
if (Object.defineProperty) {
var y = t({}), w = "undefined" == typeof document || t(document.createElement("div"));
- if (!y || !w) var C = Object.defineProperty;
+ if (!y || !w) var x = Object.defineProperty;
}
- if (!Object.defineProperty || C) {
- var x = "Property description must be an object: ", E = "Object.defineProperty called on non-object: ", S = "getters & setters can not be defined on this javascript engine";
+ if (!Object.defineProperty || x) {
+ var C = "Property description must be an object: ", k = "Object.defineProperty called on non-object: ", E = "getters & setters can not be defined on this javascript engine";
Object.defineProperty = function(e, t, n) {
- if ("object" != typeof e && "function" != typeof e || null === e) throw new TypeError(E + e);
- if ("object" != typeof n && "function" != typeof n || null === n) throw new TypeError(x + n);
- if (C) try {
- return C.call(Object, e, t, n);
+ if ("object" != typeof e && "function" != typeof e || null === e) throw new TypeError(k + e);
+ if ("object" != typeof n && "function" != typeof n || null === n) throw new TypeError(C + n);
+ if (x) try {
+ return x.call(Object, e, t, n);
} catch (l) {}
if (p(n, "value")) if (a && (r(e, t) || s(e, t))) {
var c = e.__proto__;
e.__proto__ = u, delete e[t], e[t] = n.value, e.__proto__ = c;
} else e[t] = n.value; else {
- if (!a) throw new TypeError(S);
+ if (!a) throw new TypeError(E);
p(n, "get") && i(e, t, n.get), p(n, "set") && o(e, t, n.set);
}
return e;
@@ -4408,7 +4408,7 @@ function printStackTrace(e) {
});
try {
Object.freeze(function() {});
- } catch (A) {
+ } catch (S) {
Object.freeze = function(e) {
return function(t) {
return "function" == typeof t ? t : e(t);
@@ -4428,15 +4428,15 @@ function printStackTrace(e) {
var n = p(e, t);
return delete e[t], n;
}), !Object.keys) {
- var k = !0, _ = [ "toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor" ], F = _.length;
+ var A = !0, _ = [ "toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor" ], F = _.length;
for (var T in {
toString: null
- }) k = !1;
+ }) A = !1;
Object.keys = function I(e) {
if ("object" != typeof e && "function" != typeof e || null === e) throw new TypeError("Object.keys called on a non-object");
var I = [];
for (var t in e) p(e, t) && I.push(t);
- if (k) for (var n = 0, i = F; i > n; n++) {
+ if (A) for (var n = 0, i = F; i > n; n++) {
var o = _[n];
p(e, o) && I.push(o);
}
@@ -4923,7 +4923,7 @@ function printStackTrace(e) {
}
}
function l() {
- g || (u.value = d, i.isWebKit && C.schedule());
+ g || (u.value = d, i.isWebKit && x.schedule());
}
function c() {
setTimeout(function() {
@@ -4952,47 +4952,47 @@ function printStackTrace(e) {
};
var w = r.delayedCall(function() {
b && a(v);
- }), C = r.delayedCall(function() {
+ }), x = r.delayedCall(function() {
g || (u.value = d, b && a());
});
i.isWebKit || t.addEventListener("changeSelection", function() {
t.selection.isEmpty() != v && (v = !v, w.schedule());
}), l(), b && t.onFocus();
- var x = function(e) {
+ var C = function(e) {
return 0 === e.selectionStart && e.selectionEnd === e.value.length;
};
if (!u.setSelectionRange && u.createTextRange && (u.setSelectionRange = function(e, t) {
var n = this.createTextRange();
n.collapse(!0), n.moveStart("character", e), n.moveEnd("character", t), n.select();
- }, x = function(e) {
+ }, C = function(e) {
try {
var t = e.ownerDocument.selection.createRange();
} catch (n) {}
return t && t.parentElement() == e ? t.text == e.value : !1;
}), i.isOldIE) {
- var E = !1, S = function(e) {
- if (!E) {
+ var k = !1, E = function(e) {
+ if (!k) {
var t = u.value;
if (!g && t && t != d) {
- if (e && t == d[0]) return A.schedule();
- $(t), E = !0, l(), E = !1;
+ if (e && t == d[0]) return S.schedule();
+ $(t), k = !0, l(), k = !1;
}
}
- }, A = r.delayedCall(S);
- n.addListener(u, "propertychange", S);
- var k = {
+ }, S = r.delayedCall(E);
+ n.addListener(u, "propertychange", E);
+ var A = {
13: 1,
27: 1
};
n.addListener(u, "keyup", function(e) {
- return !g || u.value && !k[e.keyCode] || setTimeout(P, 0), (u.value.charCodeAt(0) || 0) < 129 ? A.call() : (g ? R() : M(),
+ return !g || u.value && !A[e.keyCode] || setTimeout(P, 0), (u.value.charCodeAt(0) || 0) < 129 ? S.call() : (g ? R() : M(),
void 0);
}), n.addListener(u, "keydown", function() {
- A.schedule(50);
+ S.schedule(50);
});
}
var _ = function() {
- h ? h = !1 : p ? p = !1 : x(u) ? (t.selectAll(), a()) : F && a(t.selection.isEmpty());
+ h ? h = !1 : p ? p = !1 : C(u) ? (t.selectAll(), a()) : F && a(t.selection.isEmpty());
}, F = null;
this.setInputHandler = function(e) {
F = e;
@@ -5301,9 +5301,9 @@ function printStackTrace(e) {
if (!_ || o || r) m.$blockScrolling += 1, m.moveCursorToPosition(e), m.$blockScrolling -= 1,
_ = n, F = {
x: w,
- y: C
+ y: x
}; else {
- var s = i(F.x, F.y, w, C);
+ var s = i(F.x, F.y, w, x);
s > c ? _ = null : n - _ >= l && (m.renderer.scrollCursorIntoView(), _ = null);
}
}
@@ -5314,8 +5314,8 @@ function printStackTrace(e) {
right: r.right - w
},
y: {
- top: C - r.top,
- bottom: r.bottom - C
+ top: x - r.top,
+ bottom: r.bottom - x
}
}, l = Math.min(s.x.left, s.x.right), c = Math.min(s.y.top, s.y.bottom), u = {
row: e.row,
@@ -5323,19 +5323,19 @@ function printStackTrace(e) {
};
2 >= l / o && (u.column += s.x.left < s.x.right ? -3 : 2), 1 >= c / i && (u.row += s.y.top < s.y.bottom ? -1 : 1);
var d = e.row != u.row, h = e.column != u.column, p = !t || e.row != t.row;
- d || h && !p ? k ? n - k >= a && m.renderer.scrollCursorIntoView(u) : k = n : k = null;
+ d || h && !p ? A ? n - A >= a && m.renderer.scrollCursorIntoView(u) : A = n : A = null;
}
function u() {
- var e = S;
- S = m.renderer.screenToTextCoordinates(w, C), t(S, e), n(S, e);
+ var e = E;
+ E = m.renderer.screenToTextCoordinates(w, x), t(E, e), n(E, e);
}
function d() {
- E = m.selection.toOrientedRange(), y = m.session.addMarker(E, "ace_selection", m.getSelectionStyle()),
- m.clearSelection(), clearInterval(x), x = setInterval(u, 20), $ = 0, r.addListener(document, "mousemove", p);
+ k = m.selection.toOrientedRange(), y = m.session.addMarker(k, "ace_selection", m.getSelectionStyle()),
+ m.clearSelection(), clearInterval(C), C = setInterval(u, 20), $ = 0, r.addListener(document, "mousemove", p);
}
function h() {
- clearInterval(x), m.session.removeMarker(y), y = null, m.$blockScrolling += 1, m.selection.fromOrientedRange(E),
- m.$blockScrolling -= 1, E = null, $ = 0, k = null, _ = null, r.removeListener(document, "mousemove", p);
+ clearInterval(C), m.session.removeMarker(y), y = null, m.$blockScrolling += 1, m.selection.fromOrientedRange(k),
+ m.$blockScrolling -= 1, k = null, $ = 0, A = null, _ = null, r.removeListener(document, "mousemove", p);
}
function p() {
null == D && (D = setTimeout(function() {
@@ -5365,7 +5365,7 @@ function printStackTrace(e) {
b.forEach(function(t) {
e[t] = this[t];
}, this), m.addEventListener("mousedown", this.onMouseDown.bind(e));
- var y, w, C, x, E, S, A, k, _, F, T = m.container, $ = 0;
+ var y, w, x, C, k, E, S, A, _, F, T = m.container, $ = 0;
this.onDragStart = function(e) {
if (this.cancelDrag || !T.draggable) {
var t = this;
@@ -5375,43 +5375,43 @@ function printStackTrace(e) {
}
s.isOpera && (v.style.visibility = "visible", setTimeout(function() {
v.style.visibility = "hidden";
- }, 0)), E = m.getSelectionRange();
+ }, 0)), k = m.getSelectionRange();
var n = e.dataTransfer;
n.effectAllowed = m.getReadOnly() ? "copy" : "copyMove", n.setDragImage && n.setDragImage(v, 0, 0),
n.clearData(), n.setData("Text", m.session.getTextRange()), this.setState("drag");
}, this.onDragEnd = function(e) {
if (T.draggable = !1, this.setState(null), !m.getReadOnly()) {
var t = e.dataTransfer.dropEffect;
- A || "move" != t || m.session.remove(m.getSelectionRange()), m.renderer.$cursorLayer.setBlinking(!0);
+ S || "move" != t || m.session.remove(m.getSelectionRange()), m.renderer.$cursorLayer.setBlinking(!0);
}
this.editor.unsetStyle("ace_dragging");
}, this.onDragEnter = function(e) {
- return !m.getReadOnly() && f(e.dataTransfer) ? (y || d(), $++, e.dataTransfer.dropEffect = A = g(e),
+ return !m.getReadOnly() && f(e.dataTransfer) ? (y || d(), $++, e.dataTransfer.dropEffect = S = g(e),
r.preventDefault(e)) : void 0;
}, this.onDragOver = function(e) {
return !m.getReadOnly() && f(e.dataTransfer) ? (y || (d(), $++), null !== D && (D = null),
- w = e.clientX, C = e.clientY, e.dataTransfer.dropEffect = A = g(e), r.preventDefault(e)) : void 0;
+ w = e.clientX, x = e.clientY, e.dataTransfer.dropEffect = S = g(e), r.preventDefault(e)) : void 0;
}, this.onDragLeave = function(e) {
- return $--, 0 >= $ && y ? (h(), A = null, r.preventDefault(e)) : void 0;
+ return $--, 0 >= $ && y ? (h(), S = null, r.preventDefault(e)) : void 0;
}, this.onDrop = function(e) {
if (y) {
var t = e.dataTransfer, n = "drag" == this.state;
- if (n) switch (A) {
+ if (n) switch (S) {
case "move":
- E = E.contains(S.row, S.column) ? {
- start: S,
- end: S
- } : m.moveText(E, S);
+ k = k.contains(E.row, E.column) ? {
+ start: E,
+ end: E
+ } : m.moveText(k, E);
break;
case "copy":
- E = m.moveText(E, S, !0);
+ k = m.moveText(k, E, !0);
} else {
var i = t.getData("Text");
- E = {
- start: S,
- end: m.session.insert(S, i)
- }, m.focus(), A = null;
+ k = {
+ start: E,
+ end: m.session.insert(E, i)
+ }, m.focus(), S = null;
}
return h(), r.preventDefault(e);
}
@@ -6513,11 +6513,11 @@ function printStackTrace(e) {
for (var i = t.getTokens(n), o = 0; o < i.length; o++) if ("comment" === i[o].type) return !0;
};
}
- var C = 1/0;
+ var x = 1/0;
o(function(e, t) {
var n = e.search(/\S/);
- -1 !== n ? (c > n && (c = n), l && !v(e, t) && (l = !1)) : C > e.length && (C = e.length);
- }), 1/0 == c && (c = C, a = !1, l = !1), d && 0 != c % u && (c = Math.floor(c / u) * u),
+ -1 !== n ? (c > n && (c = n), l && !v(e, t) && (l = !1)) : x > e.length && (x = e.length);
+ }), 1/0 == c && (c = x, a = !1, l = !1), d && 0 != c % u && (c = Math.floor(c / u) * u),
o(l ? f : m);
}, this.toggleBlockComment = function(e, t, n, i) {
var o = this.blockComment;
@@ -10760,36 +10760,36 @@ function printStackTrace(e) {
}, v = function() {
var e = l.renderer.pixelToScreenCoordinates(f, g), t = b.screenToDocumentPosition(e.row, e.column);
n(w, e) && n(t, c.selectionLead) || (w = e, l.selection.moveCursorToPosition(t),
- l.selection.clearSelection(), l.renderer.scrollCursorIntoView(), l.removeSelectionMarkers(C),
- C = c.rectangularRangeBlock(w, y), C.forEach(l.addSelectionMarker, l), l.updateSelectionMarkers());
+ l.selection.clearSelection(), l.renderer.scrollCursorIntoView(), l.removeSelectionMarkers(x),
+ x = c.rectangularRangeBlock(w, y), x.forEach(l.addSelectionMarker, l), l.updateSelectionMarkers());
}, b = l.session, y = l.renderer.pixelToScreenCoordinates(f, g), w = y;
if (!s || r || i || 0 != a) {
if (i && 0 == a) {
e.stop(), u && !s ? c.toSingleRange() : !u && s && c.addRange();
- var C = [];
+ var x = [];
r ? (y = b.documentToScreenPosition(c.lead), v()) : (c.moveCursorToPosition(d),
c.clearSelection());
- var x = function() {
- clearInterval(S), l.removeSelectionMarkers(C);
- for (var e = 0; e < C.length; e++) c.addRange(C[e]);
- }, E = v;
- o.capture(l.container, m, x);
- var S = setInterval(function() {
- E();
+ var C = function() {
+ clearInterval(E), l.removeSelectionMarkers(x);
+ for (var e = 0; e < x.length; e++) c.addRange(x[e]);
+ }, k = v;
+ o.capture(l.container, m, C);
+ var E = setInterval(function() {
+ k();
}, 20);
return e.preventDefault();
}
} else {
if (!u && p) return;
if (!u) {
- var A = c.toOrientedRange();
- l.addSelectionMarker(A);
+ var S = c.toOrientedRange();
+ l.addSelectionMarker(S);
}
- var k = c.rangeList.rangeAtPoint(d);
+ var A = c.rangeList.rangeAtPoint(d);
l.once("mouseup", function() {
var e = c.toOrientedRange();
- k && e.isEmpty() && n(k.cursor, e.cursor) ? c.substractPoint(e.cursor) : (A && (l.removeSelectionMarker(A),
- c.addRange(A)), c.addRange(e));
+ A && e.isEmpty() && n(A.cursor, e.cursor) ? c.substractPoint(e.cursor) : (S && (l.removeSelectionMarker(S),
+ c.addRange(S)), c.addRange(e));
});
}
}
@@ -11681,7 +11681,7 @@ function printStackTrace(e) {
D[e] = !0;
}
function h(e, t, n, i, o) {
- for (var r, s, a = S.length, l = null; a--; ) if (s = S[a], (s.scope === i || "all" === s.scope) && (!s.flag || t.indexOf(s.flag) > -1) && (r = m.exec(e, s.regex, n, "sticky"))) {
+ for (var r, s, a = E.length, l = null; a--; ) if (s = E[a], (s.scope === i || "all" === s.scope) && (!s.flag || t.indexOf(s.flag) > -1) && (r = m.exec(e, s.regex, n, "sticky"))) {
l = {
matchLength: r[0].length,
output: s.handler.call(o, r, i, t),
@@ -11695,9 +11695,9 @@ function printStackTrace(e) {
m.cache.flush("patterns"), y.astral = e;
}
function f(e) {
- RegExp.prototype.exec = (e ? C : w).exec, RegExp.prototype.test = (e ? C : w).test,
- String.prototype.match = (e ? C : w).match, String.prototype.replace = (e ? C : w).replace,
- String.prototype.split = (e ? C : w).split, y.natives = e;
+ RegExp.prototype.exec = (e ? x : w).exec, RegExp.prototype.test = (e ? x : w).test,
+ String.prototype.match = (e ? x : w).match, String.prototype.replace = (e ? x : w).replace,
+ String.prototype.split = (e ? x : w).split, y.natives = e;
}
function g(e) {
if (null == e) throw new TypeError("Cannot convert null or undefined to object");
@@ -11712,7 +11712,7 @@ function printStackTrace(e) {
match: String.prototype.match,
replace: String.prototype.replace,
split: String.prototype.split
- }, C = {}, x = {}, E = {}, S = [], A = "default", k = "class", _ = {
+ }, x = {}, C = {}, k = {}, E = [], S = "default", A = "class", _ = {
"default": /\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|\(\?[:=!]|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,
"class": /\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|[\s\S]/
}, F = /\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g, T = w.exec.call(/()??/, "")[1] === e, $ = RegExp.prototype.sticky !== e, D = {
@@ -11725,7 +11725,7 @@ function printStackTrace(e) {
var r, s, a, l = {
hasNamedCapture: !1,
captureNames: []
- }, u = A, d = "", p = 0;
+ }, u = S, d = "", p = 0;
if (m.isRegExp(n)) {
if (o !== e) throw new TypeError("Cannot supply flags when copying a RegExp");
return i(n, {
@@ -11733,37 +11733,37 @@ function printStackTrace(e) {
});
}
if (n = n === e ? "" : String(n), o = o === e ? "" : String(o), a = n + "***" + o,
- !E[a]) {
+ !k[a]) {
for (r = c(n, o), n = r.pattern, o = r.flags; p < n.length; ) {
do r = h(n, o, p, u, l), r && r.reparse && (n = n.slice(0, p) + r.output + n.slice(p + r.matchLength)); while (r && r.reparse);
r ? (d += r.output, p += r.matchLength || 1) : (s = m.exec(n, _[u], p, "sticky")[0],
- d += s, p += s.length, "[" === s && u === A ? u = k : "]" === s && u === k && (u = A));
+ d += s, p += s.length, "[" === s && u === S ? u = A : "]" === s && u === A && (u = S));
}
- E[a] = {
+ k[a] = {
pattern: w.replace.call(d, /\(\?:\)(?=\(\?:\))|^\(\?:\)|\(\?:\)$/g, ""),
flags: w.replace.call(o, /[^gimy]+/g, ""),
captures: l.hasNamedCapture ? l.captureNames : null
};
}
- return a = E[a], t(new RegExp(a.pattern, a.flags), a.captures, !0);
+ return a = k[a], t(new RegExp(a.pattern, a.flags), a.captures, !0);
}, m.prototype = new RegExp(), m.version = "3.0.0-pre", m.addToken = function(e, t, n) {
n = n || {};
var o, r = n.optionalFlags;
if (n.flag && d(n.flag), r) for (r = w.split.call(r, ""), o = 0; o < r.length; ++o) d(r[o]);
- S.push({
+ E.push({
regex: i(e, {
add: "g" + ($ ? "y" : "")
}),
handler: t,
- scope: n.scope || A,
+ scope: n.scope || S,
flag: n.flag,
reparse: n.reparse
}), m.cache.flush("patterns");
}, m.cache = function(e, t) {
var n = e + "***" + (t || "");
- return x[n] || (x[n] = m(e, t));
+ return C[n] || (C[n] = m(e, t));
}, m.cache.flush = function(e) {
- "patterns" === e ? E = {} : x = {};
+ "patterns" === e ? k = {} : C = {};
}, m.escape = function(e) {
return w.replace.call(g(e), /[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
}, m.exec = function(e, t, n, r) {
@@ -11771,7 +11771,7 @@ function printStackTrace(e) {
return $ && (r || t.sticky && r !== !1) && (l += "y"), t[b] = t[b] || o(), a = t[b][l] || (t[b][l] = i(t, {
add: l,
remove: r === !1 ? "y" : ""
- })), a.lastIndex = n = n || 0, s = C.exec.call(a, e), r && s && s.index !== n && (s = null),
+ })), a.lastIndex = n = n || 0, s = x.exec.call(a, e), r && s && s.index !== n && (s = null),
t.global && (t.lastIndex = s ? a.lastIndex : 0), s;
}, m.forEach = function(e, t, n, i) {
for (var o, r = 0, s = -1; o = m.exec(e, t, r); ) n.call(i, o, ++s, e, t), r = o.index + (o[0].length || 1);
@@ -11812,14 +11812,14 @@ function printStackTrace(e) {
return a ? (t[b] = t[b] || o(), u = t[b][c || "noGY"] || (t[b][c || "noGY"] = i(t, {
add: c,
remove: "one" === r ? "g" : ""
- }))) : l && (u = new RegExp(m.escape(String(t)), "g")), s = C.replace.call(g(e), u, n),
+ }))) : l && (u = new RegExp(m.escape(String(t)), "g")), s = x.replace.call(g(e), u, n),
a && t.global && (t.lastIndex = 0), s;
}, m.replaceEach = function(e, t) {
var n, i;
for (n = 0; n < t.length; ++n) i = t[n], e = m.replace(e, i[0], i[1], i[2]);
return e;
}, m.split = function(e, t, n) {
- return C.split.call(g(e), t, n);
+ return x.split.call(g(e), t, n);
}, m.test = function(e, t, n, i) {
return !!m.exec(e, t, n, i);
}, m.uninstall = function(e) {
@@ -11836,7 +11836,7 @@ function printStackTrace(e) {
for (r = 0; r < e.length; ++r) o = e[r], m.isRegExp(o) ? (n = c, i = o[b] && o[b].captureNames || [],
l.push(w.replace.call(m(o.source).source, s, u))) : l.push(m.escape(o));
return m(l.join("|"), t);
- }, C.exec = function(t) {
+ }, x.exec = function(t) {
var n, o, r, a = this.lastIndex, l = w.exec.apply(this, arguments);
if (l) {
if (!T && l.length > 1 && s(l, "") > -1 && (o = i(this, {
@@ -11849,15 +11849,15 @@ function printStackTrace(e) {
this.global && !l[0].length && this.lastIndex > l.index && (this.lastIndex = l.index);
}
return this.global || (this.lastIndex = a), l;
- }, C.test = function(e) {
- return !!C.exec.call(this, e);
- }, C.match = function(e) {
+ }, x.test = function(e) {
+ return !!x.exec.call(this, e);
+ }, x.match = function(e) {
var t;
if (m.isRegExp(e)) {
if (e.global) return t = w.match.apply(this, arguments), e.lastIndex = 0, t;
} else e = new RegExp(e);
- return C.exec.call(e, g(this));
- }, C.replace = function(t, n) {
+ return x.exec.call(e, g(this));
+ }, x.replace = function(t, n) {
var i, o, r, l = m.isRegExp(t);
return l ? (t[b] && (o = t[b].captureNames), i = t.lastIndex) : t += "", r = a(n, "Function") ? w.replace.call(String(this), t, function() {
var i, r = arguments;
@@ -11883,7 +11883,7 @@ function printStackTrace(e) {
throw new SyntaxError("Invalid token " + t);
});
}), l && (t.lastIndex = t.global ? 0 : i), r;
- }, C.split = function(t, n) {
+ }, x.split = function(t, n) {
if (!m.isRegExp(t)) return w.split.apply(this, arguments);
var i, o = String(this), r = [], s = t.lastIndex, a = 0;
return n = (n === e ? -1 : n) >>> 0, m.forEach(o, t, function(e) {
@@ -11892,7 +11892,7 @@ function printStackTrace(e) {
}), a === o.length ? (!w.test.call(t, "") || i) && r.push("") : r.push(o.slice(a)),
t.lastIndex = s, r.length > n ? r.slice(0, n) : r;
}, v = m.addToken, v(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4})|x(?![\dA-Fa-f]{2}))/, function(e, t) {
- if ("B" === e[1] && t === A) return e[0];
+ if ("B" === e[1] && t === S) return e[0];
throw new SyntaxError("Invalid escape " + e[0]);
}, {
scope: "all"
@@ -11913,7 +11913,7 @@ function printStackTrace(e) {
if (!t || t > this.captureNames.length) throw new SyntaxError("Backreference to undefined group " + e[0]);
return "\\" + t + (n === e.input.length || isNaN(e.input.charAt(n)) ? "" : "(?:)");
}), v(/\\(\d+)/, function(e, t) {
- if (!(t === A && /^[1-9]/.test(e[1]) && +e[1] <= this.captureNames.length) && "0" !== e[1]) throw new SyntaxError("Cannot use octal escape or backreference to undefined group " + e[0]);
+ if (!(t === S && /^[1-9]/.test(e[1]) && +e[1] <= this.captureNames.length) && "0" !== e[1]) throw new SyntaxError("Cannot use octal escape or backreference to undefined group " + e[0]);
return e[0];
}, {
scope: "all"
@@ -11975,7 +11975,7 @@ function printStackTrace(e) {
}
e.matchRecursive = function(n, i, o, r, s) {
r = r || "", s = s || {};
- var a, l, c, u, d, h = r.indexOf("g") > -1, p = r.indexOf("y") > -1, f = r.replace(/y/g, ""), g = s.escapeChar, m = s.valueNames, v = [], b = 0, y = 0, w = 0, C = 0;
+ var a, l, c, u, d, h = r.indexOf("g") > -1, p = r.indexOf("y") > -1, f = r.replace(/y/g, ""), g = s.escapeChar, m = s.valueNames, v = [], b = 0, y = 0, w = 0, x = 0;
if (i = e(i, f), o = e(o, f), g) {
if (g.length > 1) throw new Error("Cannot use more than one escape character");
g = e.escape(g), d = new RegExp("(?:" + g + "[\\S\\s]|(?:(?!" + e.union([ i, o ]).source + ")[^" + g + "])+)+", r.replace(/[^im]+/g, ""));
@@ -11984,16 +11984,16 @@ function printStackTrace(e) {
if (g && (w += (e.exec(n, d, w, "sticky") || [ "" ])[0].length), c = e.exec(n, i, w),
u = e.exec(n, o, w), c && u && (c.index <= u.index ? u = null : c = null), c || u) y = (c || u).index,
w = y + (c || u)[0].length; else if (!b) break;
- if (p && !b && y > C) break;
+ if (p && !b && y > x) break;
if (c) b || (a = y, l = w), ++b; else {
if (!u || !b) throw new Error("Unbalanced delimiter found in string");
- if (!--b && (m ? (m[0] && a > C && v.push(t(m[0], n.slice(C, a), C, a)), m[1] && v.push(t(m[1], n.slice(a, l), a, l)),
+ if (!--b && (m ? (m[0] && a > x && v.push(t(m[0], n.slice(x, a), x, a)), m[1] && v.push(t(m[1], n.slice(a, l), a, l)),
m[2] && v.push(t(m[2], n.slice(l, y), l, y)), m[3] && v.push(t(m[3], n.slice(y, w), y, w))) : v.push(n.slice(l, y)),
- C = w, !h)) break;
+ x = w, !h)) break;
}
y === w && ++w;
}
- return h && !p && m && m[0] && n.length > C && v.push(t(m[0], n.slice(C), C, n.length)),
+ return h && !p && m && m[0] && n.length > x && v.push(t(m[0], n.slice(x), x, n.length)),
v;
};
}(e), function(e) {
@@ -13441,53 +13441,53 @@ var saveAs = saveAs || "undefined" != typeof navigator && navigator.msSaveOrOpen
return d.push(e), e;
}, w = function() {
p(m, "writestart progress write writeend".split(" "));
- }, C = function() {
+ }, x = function() {
(b || !h) && (h = y(i)), f ? f.location.href = h : window.open(h, "_blank"), m.readyState = m.DONE,
w();
- }, x = function(e) {
+ }, C = function(e) {
return function() {
return m.readyState !== m.DONE ? e.apply(this, arguments) : void 0;
};
- }, E = {
+ }, k = {
create: !0,
exclusive: !1
};
if (m.readyState = m.INIT, l || (l = "download"), r) {
h = y(i), t = e.document, o = t.createElementNS("http://www.w3.org/1999/xhtml", "a"),
o.href = h, o.download = l;
- var S = t.createEvent("MouseEvents");
- return S.initMouseEvent("click", !0, !1, e, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null),
- o.dispatchEvent(S), m.readyState = m.DONE, w(), void 0;
+ var E = t.createEvent("MouseEvents");
+ return E.initMouseEvent("click", !0, !1, e, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null),
+ o.dispatchEvent(E), m.readyState = m.DONE, w(), void 0;
}
return e.chrome && v && v !== c && (g = i.slice || i.webkitSlice, i = g.call(i, 0, i.size, c),
b = !0), s && "download" !== l && (l += ".download"), (v === c || s) && (f = e),
- a ? (u += i.size, a(e.TEMPORARY, u, x(function(e) {
- e.root.getDirectory("saved", E, x(function(e) {
+ a ? (u += i.size, a(e.TEMPORARY, u, C(function(e) {
+ e.root.getDirectory("saved", k, C(function(e) {
var t = function() {
- e.getFile(l, E, x(function(e) {
- e.createWriter(x(function(t) {
+ e.getFile(l, k, C(function(e) {
+ e.createWriter(C(function(t) {
t.onwriteend = function(t) {
f.location.href = e.toURL(), d.push(e), m.readyState = m.DONE, p(m, "writeend", t);
}, t.onerror = function() {
var e = t.error;
- e.code !== e.ABORT_ERR && C();
+ e.code !== e.ABORT_ERR && x();
}, "writestart progress write abort".split(" ").forEach(function(e) {
t["on" + e] = m["on" + e];
}), t.write(i), m.abort = function() {
t.abort(), m.readyState = m.DONE;
}, m.readyState = m.WRITING;
- }), C);
- }), C);
+ }), x);
+ }), x);
};
e.getFile(l, {
create: !1
- }, x(function(e) {
+ }, C(function(e) {
e.remove(), t();
- }), x(function(e) {
- e.code === e.NOT_FOUND_ERR ? t() : C();
+ }), C(function(e) {
+ e.code === e.NOT_FOUND_ERR ? t() : x();
}));
- }), C);
- }), C), void 0) : (C(), void 0);
+ }), x);
+ }), x), void 0) : (x(), void 0);
}, g = f.prototype, m = function(e, t) {
return new f(e, t);
};
@@ -14264,16 +14264,16 @@ var saveAs = saveAs || "undefined" != typeof navigator && navigator.msSaveOrOpen
t = this.isDefined(c.value) && "" != c.value ? c.value : this.getNextEmbedBlock(),
d = this.getRealCurrentLineNb() + 1, h = new r(d), h.refs = this.refs, g = h.parse(t),
this.refs = h.refs;
- var C = [];
+ var x = [];
if (!this.isObject(g)) throw new e("YAML merge keys used with a scalar value instead of an array", this.getRealCurrentLineNb() + 1, this.currentLine);
if (this.isDefined(g[0])) {
v = this.reverseArray(g), m = v.length;
for (var w = 0; m > w; w++) {
if (v[w], !this.isObject(v[w])) throw new e("Merge items must be arrays", this.getRealCurrentLineNb() + 1, this.currentLine);
- C = this.mergeObject(v[w], C);
+ x = this.mergeObject(v[w], x);
}
- } else C = this.mergeObject(C, g);
- l = C;
+ } else x = this.mergeObject(x, g);
+ l = x;
} else this.isDefined(c.value) && (u = /^&([^ ]+) *(.*)/.exec(c.value)) && (u = {
ref: u[1],
value: u[2]
@@ -14282,9 +14282,9 @@ var saveAs = saveAs || "undefined" != typeof navigator && navigator.msSaveOrOpen
h = new r(d), h.refs = this.refs, n[f] = h.parse(this.getNextEmbedBlock()), this.refs = h.refs);
}
if (s) if (n instanceof Array) this.refs[s] = n[n.length - 1]; else {
- var x = null;
- for (var E in n) n.hasOwnProperty(E) && (x = E);
- this.refs[s] = n[E];
+ var C = null;
+ for (var k in n) n.hasOwnProperty(k) && (C = k);
+ this.refs[s] = n[k];
}
}
return this.isEmpty(n) ? null : n;
@@ -14666,1359 +14666,6 @@ var saveAs = saveAs || "undefined" != typeof navigator && navigator.msSaveOrOpen
return n.onMarkdownTrim((i[1] || "").length), i[3];
});
}, i;
-}), define("extensions/markdownSectionParser", [ "classes/Extension" ], function(e) {
- var t, n = new e("markdownSectionParser", "Markdown section parser");
- return n.onEventMgrCreated = function(e) {
- t = e;
- }, n.onPagedownConfigure = function(e) {
- var n = e.getConverter();
- n.hooks.chain("preConversion", function(e) {
- t.previewStartTime = new Date();
- var n = e + "\n\n", i = [], o = 0;
- return n.replace(/^```.*\n[\s\S]*?\n```|(^.+[ \t]*\n=+[ \t]*\n+|^.+[ \t]*\n-+[ \t]*\n+|^\#{1,6}[ \t]*.+?[ \t]*\#*\n+)/gm, function(e, t, r) {
- return t && (i.push(n.substring(o, r)), o = r), "";
- }), i.push(n.substring(o, e.length)), t.onSectionsCreated(i), e;
- });
- }, n;
-}), define("text!html/partialRenderingSettingsBlock.html", [], function() {
- return "
Renders modified sections only.
\n
\n NOTE: Document sections are based on title elements (h1, h2...). Therefore if\n your document does not contain any title, performance will not be increased.\n
";
-}), define("extensions/partialRendering", [ "underscore", "crel", "classes/Extension", "text!html/partialRenderingSettingsBlock.html" ], function(e, t, n, i) {
- function o(t, n) {
- if (f = [], p = [], u = void 0, g === !0 || c != n) return g = !1, c = n, p = h,
- h = t, f = t, void 0;
- var i = h.length;
- e.some(h, function(e, n) {
- return n >= t.length || e.text != t[n].text ? (i = n, !0) : void 0;
- });
- var o = -h.length;
- e.some(h.slice().reverse(), function(e, n) {
- return n >= t.length || e.text != t[t.length - n - 1].text ? (o = -n, !0) : void 0;
- }), i - o > h.length && (o = i - h.length);
- var r = h.slice(0, i);
- f = t.slice(i, t.length + o);
- var s = h.slice(h.length + o, h.length);
- u = e.first(s), p = h.slice(i, h.length + o), h = r.concat(f).concat(s);
- }
- function r(e) {
- var t = e.id.substring(3);
- w[t] = e;
- }
- function s() {
- function n(n) {
- for (var i = t("div", {
- id: "wmd-preview-section-" + n.id,
- "class": "wmd-preview-section preview-content"
- }), s = !0; o; ) {
- var a = o.nextSibling;
- if (s === !1 && /(^| )wmd-title($| )/.test(o.className)) break;
- s = !1, "DIV" == o.tagName && "footnotes" == o.className ? e.each(o.querySelectorAll("ol > li"), r) : i.appendChild(o),
- o = a;
- }
- return i;
- }
- e.each(p, function(e) {
- var t = document.getElementById("wmd-preview-section-" + e.id);
- y.removeChild(t);
- });
- var i = document.getElementById("wmd-preview"), o = i.firstChild, s = document.createDocumentFragment();
- e.each(f, function(e) {
- s.appendChild(n(e));
- }), i.innerHTML = "";
- var a = b;
- void 0 !== u && (a = document.getElementById("wmd-preview-section-" + u.id)), y.insertBefore(s, a),
- b.innerHTML = "";
- var l = [];
- if (v === !0) {
- var c = t("ol");
- e.each(y.querySelectorAll("a.footnote"), function(e, t) {
- e.textContent = t + 1;
- var n = e.id.substring(6);
- l.push(n), c.appendChild(w[n].cloneNode(!0));
- }), l.length > 0 && b.appendChild(t("div", {
- "class": "footnotes"
- }, t("hr"), c)), w = e.pick(w, l);
- }
- }
- var a = new n("partialRendering", "Partial Rendering", !0);
- a.settingsBlock = i;
- var l, c, u, d = 0, h = [], p = [], f = [], g = !1, m = !1, v = !1;
- a.onSectionsCreated = function(t) {
- var n = [], i = "\n";
- v = !1, e.each(t, function(e) {
- e += "\n\n", m && (e = e.replace(/^```.*\n[\s\S]*?\n```|\n[ ]{0,3}\[\^(.+?)\]\:[ \t]*\n?([\s\S]*?)\n{1,2}((?=\n[ ]{0,3}\S)|$)/gm, function(e, t) {
- return t ? (v = !0, i += e.replace(/^\s*\n/gm, "") + "\n", "") : e;
- })), e = e.replace(/^```.*\n[\s\S]*?\n```|^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*(\S+?)>?(?=\s|$)[ \t]*\n?[ \t]*((\n*)["(](.+?)[")][ \t]*)?(?:\n+)/gm, function(e, t) {
- return t ? (i += e.replace(/^\s*\n/gm, "") + "\n", "") : e;
- }), /\S/.test(e) && n.push({
- id: ++d,
- text: e + "\n"
- });
- }), o(n, i);
- };
- var b, y, w = {};
- return a.onPagedownConfigure = function(t) {
- l = t.getConverter(), l.hooks.chain("preConversion", function() {
- var t = e.map(f, function(e) {
- return e.text;
- });
- return t.push(c + "\n\n"), t.join("");
- }), t.hooks.chain("onPreviewRefresh", function() {
- s();
- });
- }, a.onExtraExtensions = function(t) {
- m = e.some(t, function(e) {
- return "footnotes" == e;
- });
- }, a.onReady = function() {
- b = t("div", {
- id: "wmd-preview-section-footnotes",
- "class": "preview-content"
- }), y = document.getElementById("preview-contents"), y.appendChild(b);
- }, a.onFileSelected = function() {
- g = !0;
- }, a;
-}), define("text!html/buttonMarkdownSyntax.html", [], function() {
- return '\n
\n
Markdown syntax
\n
\n
Phrase Emphasis
\n\n
*italic* **bold**\n_italic_ __bold__\n
\n\n
Links
\n\n
Inline:
\n\n
An [example](http://url.com/ "Title")\n
\n\n
Reference-style labels (titles are optional):
\n\n
An [example][id]. Then, anywhere\nelse in the doc, define the link:\n\n [id]: http://example.com/ "Title"\n
> Email-style angle brackets\n> are used for blockquotes.\n\n> > And, they can be nested.\n\n> #### Headers in blockquotes\n> \n> * You can quote a list.\n> * Etc.\n
\n\n
Code Spans
\n\n
`<code>` spans are delimited\nby backticks.\n\nYou can include literal backticks\nlike `` `this` ``.\n
\n\n
Preformatted Code Blocks
\n\n
Indent every line of a code block by at least 4 spaces or 1 tab.
\n\n
This is a normal paragraph.\n\n This is a preformatted\n code block.\n
Shows notification messages in the bottom-right corner of the\n screen.
\n
\n
\n \n
\n ms\n
\n
\n
';
-}), define("extensions/notifications", [ "jquery", "underscore", "utils", "logger", "classes/Extension", "jgrowl", "text!html/notificationsSettingsBlock.html" ], function(e, t, n, i, o, r, s) {
- function a() {
- u === !1 && (r.defaults.life = c.config.timeout, r.defaults.closer = !1, r.defaults.closeTemplate = "",
- r.defaults.position = "bottom-right", u = !0);
- }
- function l(e, n, o) {
- if (i.info(e), a(), e) {
- var s = e.indexOf("|");
- (-1 === s || (e = e.substring(0, s))) && (o = o || {}, n = n || "icon-info-circled",
- r(" " + t.escape(e).replace(/\n/g, " "), o));
- }
- }
- var c = new o("notifications", "Notifications");
- c.settingsBlock = s, c.defaultConfig = {
- timeout: 8e3
- }, c.onLoadSettings = function() {
- n.setInputValue("#input-notifications-timeout", c.config.timeout);
- }, c.onSaveSettings = function(e, t) {
- e.timeout = n.getInputIntValue("#input-notifications-timeout", t, 1, 6e4);
- };
- var u = !1;
- return c.onMessage = function(e) {
- l(e);
- }, c.onError = function(e) {
- i.error(e), t.isString(e) ? l(e, "icon-attention") : t.isObject(e) && l(e.message, "icon-attention");
- }, c.onOfflineChanged = function(t) {
- t === !0 ? l("You are offline.", "icon-attention-circled msg-offline", {
- sticky: !0,
- close: function() {
- l("You are back online!", "icon-signal");
- }
- }) : e(".msg-offline").parents(".jGrowl-notification").trigger("jGrowl.beforeClose");
- }, c.onSyncImportSuccess = function(e, n) {
- var i = t.map(e, function(e) {
- return e.title;
- }).join(", ");
- l(i + " imported successfully from " + n.providerName + ".");
- }, c.onSyncExportSuccess = function(e, t) {
- l('"' + e.title + '" will now be synchronized on ' + t.provider.providerName + ".");
- }, c.onSyncRemoved = function(e, t) {
- l(t.provider.providerName + " synchronized location has been removed.");
- }, c.onPublishSuccess = function(e) {
- l('"' + e.title + '" successfully published.');
- }, c.onNewPublishSuccess = function(e, t) {
- l('"' + e.title + '" is now published on ' + t.provider.providerName + ".");
- }, c.onPublishRemoved = function(e, t) {
- l(t.provider.providerName + " publish location has been removed.");
- }, c;
}), define("text!html/markdownExtraSettingsBlock.html", [], function() {
return '
Adds extra features to the original Markdown syntax.
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n \n
\n
\n
\nMore info';
}), window.PR_SHOULD_USE_CONTINUATION = !0;
@@ -16166,7 +14813,7 @@ var prettyPrintOne, prettyPrint;
if ("string" == typeof b) m = !1; else {
var w = r[v.charAt(0)];
if (w) y = v.match(w[1]), b = w[0]; else {
- for (var C = 0; s > C; ++C) if (w = i[C], y = v.match(w[1])) {
+ for (var x = 0; s > x; ++x) if (w = i[x], y = v.match(w[1])) {
b = w[0];
break;
}
@@ -16175,13 +14822,13 @@ var prettyPrintOne, prettyPrint;
m = b.length >= 5 && "lang-" === b.substring(0, 5), !m || y && "string" == typeof y[1] || (m = !1,
b = P), m || (p[v] = b);
}
- var x = d;
+ var C = d;
if (d += v.length, m) {
- var E = y[1], S = v.indexOf(E), A = S + E.length;
- y[2] && (A = v.length - y[2].length, S = A - E.length);
- var k = b.substring(5);
- n(l + x, v.substring(0, S), a, u), n(l + x + S, E, c(k, E), u), n(l + x + A, v.substring(A), a, u);
- } else u.push(l + x, b);
+ var k = y[1], E = v.indexOf(k), S = E + k.length;
+ y[2] && (S = v.length - y[2].length, E = S - k.length);
+ var A = b.substring(5);
+ n(l + C, v.substring(0, E), a, u), n(l + C + E, k, c(A, k), u), n(l + C + S, v.substring(S), a, u);
+ } else u.push(l + C, b);
}
e.decorations = u;
};
@@ -16274,16 +14921,16 @@ var prettyPrintOne, prettyPrint;
try {
for (;a > l; ) {
s[l];
- var y, w = s[l + 2] || o, C = c[d + 2] || o, m = Math.min(w, C), x = s[l + 1];
- if (1 !== x.nodeType && (y = i.substring(r, m))) {
- t && (y = y.replace(n, "\r")), x.nodeValue = y;
- var E = x.ownerDocument, S = E.createElement("span");
- S.className = c[d + 1];
- var A = x.parentNode;
- A.replaceChild(S, x), S.appendChild(x), w > r && (s[l + 1] = x = E.createTextNode(i.substring(m, w)),
- A.insertBefore(x, S.nextSibling));
+ var y, w = s[l + 2] || o, x = c[d + 2] || o, m = Math.min(w, x), C = s[l + 1];
+ if (1 !== C.nodeType && (y = i.substring(r, m))) {
+ t && (y = y.replace(n, "\r")), C.nodeValue = y;
+ var k = C.ownerDocument, E = k.createElement("span");
+ E.className = c[d + 1];
+ var S = C.parentNode;
+ S.replaceChild(E, C), E.appendChild(C), w > r && (s[l + 1] = C = k.createTextNode(i.substring(m, w)),
+ S.insertBefore(C, E.nextSibling));
}
- r = m, r >= w && (l += 2), r >= C && (d += 2);
+ r = m, r >= w && (l += 2), r >= x && (d += 2);
}
} finally {
b && (b.style.display = v);
@@ -16292,12 +14939,12 @@ var prettyPrintOne, prettyPrint;
function l(e, t) {
for (var n = t.length; --n >= 0; ) {
var i = t[n];
- q.hasOwnProperty(i) ? p.console && console.warn("cannot override language handler %s", i) : q[i] = e;
+ W.hasOwnProperty(i) ? p.console && console.warn("cannot override language handler %s", i) : W[i] = e;
}
}
function c(e, t) {
- return e && q.hasOwnProperty(e) || (e = /^\s*|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*", H = /\S/, W = r({
- keywords: k,
+ var p = window, f = [ "break,continue,do,else,for,if,return,while" ], g = [ f, "auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile" ], m = [ g, "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof" ], v = [ m, "alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where" ], b = [ m, "abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient" ], y = [ b, "as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where" ], w = "all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes", x = [ m, "debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN" ], C = "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END", k = [ f, "and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None" ], E = [ f, "alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END" ], S = [ f, "case,done,elif,esac,eval,fi,function,in,local,set,then,until" ], A = [ v, y, x, C + k, E, S ], _ = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, F = "str", T = "kwd", $ = "com", D = "typ", L = "lit", B = "pun", I = "pln", M = "tag", R = "dec", P = "src", N = "atn", O = "atv", z = "nocode", j = "(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*", H = /\S/, q = r({
+ keywords: A,
hashComments: !0,
cStyleComments: !0,
multiLineStrings: !0,
regexLiterals: !0
- }), q = {};
- l(W, [ "default-code" ]), l(o([], [ [ I, /^[^]+/ ], [ R, /^]*(?:>|$)/ ], [ $, /^<\!--[\s\S]*?(?:-\->|$)/ ], [ "lang-", /^<\?([\s\S]+?)(?:\?>|$)/ ], [ "lang-", /^<%([\s\S]+?)(?:%>|$)/ ], [ B, /^(?:<[%?]|[%?]>)/ ], [ "lang-", /^]*>([\s\S]+?)<\/xmp\b[^>]*>/i ], [ "lang-js", /^\n```\n\n> **NOTE:** You can find more information:\n>\n> - about **Markdown** syntax [here][2],\n> - about **Markdown Extra** extension [here][3],\n> - about **Prettify** syntax highlighting [here][4],\n> - about **Highlight.js** syntax highlighting [here][5].\n\nWritten with [StackEdit](https://stackedit.io/).\n\n [^stackedit]: StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.\n\n\n [1]: http://math.stackexchange.com/\n [2]: http://daringfireball.net/projects/markdown/syntax "Markdown"\n [3]: https://github.com/jmcmanus/pagedown-extra "Pagedown Extra"\n [4]: https://code.google.com/p/google-code-prettify/\n [5]: http://softwaremaniacs.org/soft/highlight/en/';
+ return 'Welcome to StackEdit! {#welcome}\n=====================\n\n\nHello, I am your first Markdown document within **StackEdit**[^stackedit]. Don\'t delete me, I can be helpful. I can be recovered anyway in the `Utils` tab of the `Settings` dialog.\n\n----------\n\n\nDocuments\n---------\n\n**StackEdit** stores your documents in your browser local storage, which means all your documents are automatically saved locally and are accessible offline.\n\n> **NOTE:** This also means that your documents are not shared between different browsers or computers and that clearing your browser\'s data may **delete all of them!**\n\n#### Create a document\n\nYou can create a new document by clicking the button in the navigation bar. This will switch from the current document to the new one.\n\n#### Switch to another document\n\nYou can list all your local documents and switch from one to another by clicking the button in the navigation bar.\n\n#### Rename a document\n\nYou can rename the current document by clicking the document title in the navigation bar.\n\n#### Delete a document\n\nYou can delete the current document by clicking the button in the navigation bar.\n\n#### Save a document\n\nYou can save the current document to a file using the `Save as...` sub-menu.\n\n> **NOTE:** See [ Publish a document](#publish-a-document) section for a description of the different outputs.\n\n\n----------\n\n\nSynchronization\n---------------\n\n**StackEdit** can be combined with **Google Drive** and **Dropbox** to have your documents centralized in the *Cloud*. The synchronization mechanism will take care of uploading your modifications or downloading the latest version of your documents.\n\n> **NOTE:**\n> \n> - Full access to **Google Drive** or **Dropbox** is required to be able to import any document in StackEdit.\n> - Imported documents are downloaded in your browser and are not transmitted to a server.\n> - If you experience problems exporting documents to Google Drive, check and optionally disable browser extensions, such as Disconnect.\n\n#### Import a document\n\nYou can import a document from the *Cloud* by going to the `Google Drive` or the `Dropbox` sub-menu and by clicking `Import from...`. Once imported, your document will be automatically synchronized with the **Google Drive** / **Dropbox** file.\n\n#### Export a document\n\nYou can export any document by going to the `Google Drive` or the `Dropbox` sub-menu and by clicking `Export to...`. Even if your document is already synchronized with **Google Drive** or **Dropbox**, you can export it to a another location. **StackEdit** can synchronize one document with multiple locations.\n\n#### Synchronize a document\n\nOnce your document is linked to a **Google Drive** or a **Dropbox** file, **StackEdit** will periodically (every 3 minutes) synchronize it by downloading/uploading any modification. Any conflict will be detected, and a local copy of your document will be created as a backup if necessary.\n\nIf you just have modified your document and you want to force the synchronization, click the button in the navigation bar.\n\n> **NOTE:** The button is disabled when:\n> \n> - you are offline,\n> - or the document is not synchronized with any location,\n> - or the document has not been modified since the last synchronization.\n\n#### Manage document synchronization\n\nSince one document can be synchronized with multiple locations, you can list and manage synchronized locations by clicking `Manage synchronization` in the menu. This will open a dialog box allowing you to add or remove synchronization links that are associated to your document.\n\n> **NOTE:** If you delete the file from **Google Drive** or from **Dropbox**, the document will no longer be synchronized with that location.\n\n----------\n\n\nPublication\n-----------\n\nOnce you are happy with your document, you can publish it on different websites directly from **StackEdit**. As for now, **StackEdit** can publish on **Blogger**, **Dropbox**, **Gist**, **GitHub**, **Google Drive**, **Tumblr**, **WordPress** and on any SSH server.\n\n#### Publish a document\n\nYou can publish your document by going to the `Publish on` sub-menu and by choosing a website. In the dialog box, you can choose the publication format:\n\n- Markdown, to publish the Markdown text on a website that can interpret it (**GitHub** for instance),\n- HTML, to publish the document converted into HTML (on a blog for instance),\n- Template, to have a full control of the output.\n\n> **NOTE:** The default template is a simple webpage wrapping your document in HTML format. You can customize it in the `Services` tab of the `Settings` dialog.\n\n#### Update a publication\n\nAfter publishing, **StackEdit** will keep your document linked to that publish location so that you can update it easily. Once you have modified your document and you want to update your publication, click on the button in the navigation bar.\n\n> **NOTE:** The button is disabled when:\n> \n> - you are offline,\n> - or the document has not been published anywhere.\n\n#### Manage document publication\n\nSince one document can be published on multiple locations, you can list and manage publish locations by clicking `Manage publication` in the menu. This will open a dialog box allowing you to remove publication links that are associated to your document.\n\n> **NOTE:** In some cases, if you remove the file from the website or the post from the blog, the document will no longer be published on that location.\n\n----------\n\n\nMarkdown Extra\n--------------\n\n**StackEdit** supports **Markdown Extra**, which extends **Markdown** syntax with some nice features.\n\n> **NOTE:** You can disable any **Markdown Extra** feature in the `Extensions` tab of the `Settings` dialog.\n\n\n### Tables\n\n**Markdown Extra** has a special syntax for tables:\n\nItem | Value\n--------- | -----\nComputer | \\$1600\nPhone | \\$12\nPipe | \\$1\n\nYou can specify column alignment with one or two colons:\n\n| Item | Value | Qty |\n| :-------- | ------:| :--: |\n| Computer | \\$1600 | 5 |\n| Phone | \\$12 | 12 |\n| Pipe | \\$1 | 234 |\n\n\n### Definition Lists\n\n**Markdown Extra** has a special syntax for definition lists too:\n\nTerm 1\nTerm 2\n: Definition A\n: Definition B\n\nTerm 3\n\n: Definition C\n\n: Definition D\n\n > part of definition D\n\n\n### Fenced code blocks\n\nGitHub\'s fenced code blocks are also supported with **Prettify** syntax highlighting:\n\n```\n// Foo\nvar bar = 0;\n```\n\n> **NOTE:** To use **Highlight.js** instead of **Prettify**, just configure the `Markdown Extra` extension in the `Settings` dialog.\n\n\n### Special Attributes\n\nWith **Markdown Extra**, you can specify `class` and `id` attributes on headers and fenced code blocks just like this:\n\n##### Header example {#my-header}\n\n``` {#my-id .my-class}\nvar foo = bar;\n```\n\nThen you can create cross-references like this: [beginning of the document](#welcome).\n\n\n### Footnotes\n\nYou can create footnotes like this[^footnote].\n\n [^footnote]: Here is the *text* of the **footnote**.\n\n\n### SmartyPants\n\nSmartyPants converts ASCII punctuation characters into "smart" typographic punctuation HTML entities. For example:\n\n| | ASCII | HTML |\n ------------------|------------------------------------------|-------------------------------------\n| Single backticks | `\'Isn\'t this fun?\'` | ‘Isn’t this fun?’ |\n| Quotes | `"Isn\'t this fun?"` | “Isn’t this fun?” |\n| Dashes | `-- is an en-dash and --- is an em-dash` | – is an en-dash and — is an em-dash |\n\n\n### Table of contents\n\nYou can insert a table of contents using the marker `[TOC]`:\n\n[TOC]\n\n\n### MathJax\n \nYou can render *LaTeX* mathematical expressions using **MathJax**, as on [math.stackexchange.com][1]:\n\nThe *Gamma function* satisfying $\\Gamma(n) = (n-1)!\\quad\\forall\nn\\in\\mathbb N$ is via the Euler integral\n\n$$\n\\Gamma(z) = \\int_0^\\infty t^{z-1}e^{-t}dt\\,.\n$$\n\n> **NOTE:** When exporting, make sure you include MathJax to render mathematical expression correctly. Your page/template should include something like: \n\n```\n\n```\n\n> **NOTE:** You can find more information:\n>\n> - about **Markdown** syntax [here][2],\n> - about **Markdown Extra** extension [here][3],\n> - about **LaTeX** mathematical expressions [here][4],\n> - about **Prettify** syntax highlighting [here][5],\n> - about **Highlight.js** syntax highlighting [here][6].\n\nWritten with [StackEdit](https://stackedit.io/).\n\n [^stackedit]: StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.\n\n\n [1]: http://math.stackexchange.com/\n [2]: http://daringfireball.net/projects/markdown/syntax "Markdown"\n [3]: https://github.com/jmcmanus/pagedown-extra "Pagedown Extra"\n [4]: http://meta.math.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference\n [5]: https://code.google.com/p/google-code-prettify/\n [6]: http://softwaremaniacs.org/soft/highlight/en/';
}), define("fileMgr", [ "jquery", "underscore", "constants", "core", "utils", "storage", "settings", "eventMgr", "fileSystem", "classes/FileDescriptor", "text!WELCOME.md" ], function(e, t, n, i, o, r, s, a, l, c, u) {
var d = {};
d.currentFile = void 0, d.selectFile = function(o) {
@@ -27428,8 +28198,9 @@ function() {
e.enableFeature(google.picker.Feature.NAV_HIDDEN), e.enableFeature(google.picker.Feature.MULTISELECT_ENABLED),
e.addView(c)) : "folder" == i ? (c = new google.picker.DocsView(google.picker.ViewId.FOLDERS),
c.setIncludeFolders(!0), c.setSelectFolderEnabled(!0), c.setMimeTypes("application/vnd.google-apps.folder"),
- e.enableFeature(google.picker.Feature.NAV_HIDDEN), e.addView(c)) : "img" == i && (e.addView(google.picker.ViewId.PHOTOS),
- e.addView(google.picker.ViewId.PHOTO_UPLOAD)), e.setCallback(function(e) {
+ e.enableFeature(google.picker.Feature.NAV_HIDDEN), e.addView(c)) : "img" == i && (c = new google.picker.PhotosView(),
+ c.setType("flat"), e.addView(c), c = new google.picker.PhotosView(), c.setType("ofuser"),
+ e.addView(c), e.addView(google.picker.ViewId.PHOTO_UPLOAD)), e.setCallback(function(e) {
(e.action == google.picker.Action.PICKED || e.action == google.picker.Action.CANCEL) && (e.action == google.picker.Action.PICKED && (a = e.docs),
r(), l.chain());
}), s = e.build(), t(o.createBackdrop()).click(function() {
@@ -27609,13 +28380,13 @@ function() {
l.addListener("onPagedownConfigure", function(e) {
m = e;
});
- var w, C, x = !0;
+ var w, x, C = !0;
l.addListener("onAceCreated", function(e) {
- C = e, C.session.on("change", function() {
- w && w.string && w.string.setText(C.getValue());
+ x = e, x.session.on("change", function() {
+ w && w.string && w.string.setText(x.getValue());
});
});
- var E = require("ace/range").Range;
+ var k = require("ace/range").Range;
return g.startRealtimeSync = function(e, n) {
var o = {};
w = o, u.loadRealtime(n.id, e.content, function(s, a) {
@@ -27627,34 +28398,34 @@ function() {
r.log("Starting Google Drive realtime synchronization"), o.document = a;
var d = a.getModel(), h = d.getRoot().get("content"), p = t.debounce(m.refreshPreview, 100);
h.addEventListener(gapi.drive.realtime.EventType.TEXT_INSERTED, function(e) {
- if (void 0 !== C && (x === !1 || e.isLocal === !1)) {
- var t = C.session.doc.indexToPosition(e.index);
- C.session.insert(t, e.text), x = !0;
+ if (void 0 !== x && (C === !1 || e.isLocal === !1)) {
+ var t = x.session.doc.indexToPosition(e.index);
+ x.session.insert(t, e.text), C = !0;
}
e.isLocal === !1 && (r.log("Google Drive realtime document updated from server"),
- u(), void 0 === C && p());
+ u(), void 0 === x && p());
}), h.addEventListener(gapi.drive.realtime.EventType.TEXT_DELETED, function(e) {
- if (void 0 !== C && (x === !1 || e.isLocal === !1)) {
+ if (void 0 !== x && (C === !1 || e.isLocal === !1)) {
var t = function(e, t) {
- return new E(e.row, e.column, t.row, t.column);
- }(C.session.doc.indexToPosition(e.index), C.session.doc.indexToPosition(e.index + e.text.length));
- C.session.remove(t), x = !0;
+ return new k(e.row, e.column, t.row, t.column);
+ }(x.session.doc.indexToPosition(e.index), x.session.doc.indexToPosition(e.index + e.text.length));
+ x.session.remove(t), C = !0;
}
e.isLocal === !1 && (r.log("Google Drive realtime document updated from server"),
- u(), void 0 === C && p());
+ u(), void 0 === x && p());
}), a.addEventListener(gapi.drive.realtime.EventType.DOCUMENT_SAVE_STATE_CHANGED, function(e) {
e.isPending === !1 && e.isSaving === !1 && (r.log("Google Drive realtime document successfully saved on server"),
u());
});
- var f = e.content, g = n.contentCRC != i.crc32(f), w = h.getText(), S = i.crc32(w), A = n.contentCRC != S, k = f != w;
- k === !0 && g === !0 && (A === !0 ? (c.createFile(e.title + " (backup)", f), l.onMessage('Conflict detected on "' + e.title + '". A backup has been created locally.')) : h.setText(f)),
- void 0 === C && (o.binding = gapi.drive.realtime.databinding.bindString(h, document.getElementById("wmd-input"))),
- A === !0 && (r.log("Google Drive realtime document updated from server"), void 0 !== C && C.setValue(w, -1),
- u(), void 0 === C && p()), void 0 !== C && (o.string = h, v = m.uiManager.buttons.undo.execute,
+ var f = e.content, g = n.contentCRC != i.crc32(f), w = h.getText(), E = i.crc32(w), S = n.contentCRC != E, A = f != w;
+ A === !0 && g === !0 && (S === !0 ? (c.createFile(e.title + " (backup)", f), l.onMessage('Conflict detected on "' + e.title + '". A backup has been created locally.')) : h.setText(f)),
+ void 0 === x && (o.binding = gapi.drive.realtime.databinding.bindString(h, document.getElementById("wmd-input"))),
+ S === !0 && (r.log("Google Drive realtime document updated from server"), void 0 !== x && x.setValue(w, -1),
+ u(), void 0 === x && p()), void 0 !== x && (o.string = h, v = m.uiManager.buttons.undo.execute,
b = m.uiManager.buttons.redo.execute, y = m.uiManager.setUndoRedoButtonStates, m.uiManager.buttons.undo.execute = function() {
- d.canUndo && (x = !1, d.undo());
+ d.canUndo && (C = !1, d.undo());
}, m.uiManager.buttons.redo.execute = function() {
- d.canRedo && (x = !1, d.redo());
+ d.canRedo && (C = !1, d.redo());
}, m.uiManager.setUndoRedoButtonStates = function() {
setTimeout(function() {
m.uiManager.setButtonState(m.uiManager.buttons.undo, d.canUndo), m.uiManager.setButtonState(m.uiManager.buttons.redo, d.canRedo);
@@ -27701,31 +28472,31 @@ function() {
}), g;
}), define("synchronizer", [ "jquery", "underscore", "utils", "storage", "eventMgr", "fileSystem", "fileMgr", "classes/Provider", "providers/dropboxProvider", "providers/gdriveProvider" ], function(e, t, n, i, o, r, s, a) {
function l(e) {
- if (0 === E.length) return c(e), void 0;
- var t = E.pop(), i = t.provider.syncUp;
- t.isRealtime === !0 && (i = t.provider.syncUpRealtime), i(y, w, C, x, t, function(i, o) {
- return o === !0 && (A = !0), i ? (e(i), void 0) : (o && n.storeAttributes(t), l(e),
+ if (0 === k.length) return c(e), void 0;
+ var t = k.pop(), i = t.provider.syncUp;
+ t.isRealtime === !0 && (i = t.provider.syncUpRealtime), i(y, w, x, C, t, function(i, o) {
+ return o === !0 && (S = !0), i ? (e(i), void 0) : (o && n.storeAttributes(t), l(e),
void 0);
});
}
function c(e) {
- if (0 === S.length) return u(e), void 0;
- var i = S.pop();
- return E = t.values(i.syncLocations), 0 === E.length ? (c(e), void 0) : (y = i.content,
- w = n.crc32(y), C = i.title, x = n.crc32(C), l(e), void 0);
+ if (0 === E.length) return u(e), void 0;
+ var i = E.pop();
+ return k = t.values(i.syncLocations), 0 === k.length ? (c(e), void 0) : (y = i.content,
+ w = n.crc32(y), x = i.title, C = n.crc32(x), l(e), void 0);
}
function u(e) {
- A === !0 ? (A = !1, S = t.values(r), c(e)) : e();
+ S === !0 ? (S = !1, E = t.values(r), c(e)) : e();
}
function d(e) {
- if (0 === k.length) return e(), void 0;
- var t = k.pop();
+ if (0 === A.length) return e(), void 0;
+ var t = A.pop();
return v.hasSync(t) ? (t.syncDown(function(t) {
return t ? (e(t), void 0) : (d(e), void 0);
}), void 0) : (d(e), void 0);
}
function h(e) {
- k = t.values(b), d(e);
+ A = t.values(b), d(e);
}
function p(e) {
T = t.some(e.syncLocations, function(e) {
@@ -27768,7 +28539,7 @@ function() {
});
});
};
- var y, w, C, x, E = [], S = [], A = !1, k = [], _ = !1;
+ var y, w, x, C, k = [], E = [], S = !1, A = [], _ = !1;
o.addListener("onOfflineChanged", function(e) {
_ = e;
});
@@ -27777,7 +28548,7 @@ function() {
function e(e) {
return void 0 !== e ? (F = !1, o.onSyncRunning(!1), !0) : !1;
}
- return F === !0 || _ === !0 ? !1 : (F = !0, o.onSyncRunning(!0), A = !0, h(function(t) {
+ return F === !0 || _ === !0 ? !1 : (F = !0, o.onSyncRunning(!0), S = !0, h(function(t) {
e(t) || u(function(t) {
e(t) || (F = !1, o.onSyncRunning(!1), o.onSyncSuccess());
});
@@ -28363,8 +29134,8 @@ function() {
"markdown" == t.format ? e.content : "html" == t.format ? n : v.applyTemplate(e, t, n);
}
function p(e, t) {
- if (0 === x.length) return e(t), void 0;
- var n = x.pop(), i = h(y, n, w), o = (y.frontMatter || {}).title || y.title;
+ if (0 === C.length) return e(t), void 0;
+ var n = C.pop(), i = h(y, n, w), o = (y.frontMatter || {}).title || y.title;
n.provider.publish(n, y.frontMatter, o, i, function(i) {
if (void 0 !== i) {
var o = i.toString();
@@ -28381,7 +29152,7 @@ function() {
}
function g(n) {
var o = n.defaultPublishFormat || "markdown";
- A = n, e(".publish-provider-name").text(n.providerName), e('.modal-publish [class*=" modal-publish-"]').hide().filter(".modal-publish-" + n.providerId).show(),
+ S = n, e(".publish-provider-name").text(n.providerName), e('.modal-publish [class*=" modal-publish-"]').hide().filter(".modal-publish-" + n.providerId).show(),
i.resetModalInputs(), i.setInputRadio("radio-publish-format", o), i.setInputChecked("#checkbox-publish-custom-template", !1),
i.setInputValue("#textarea-publish-custom-template", r.template);
var s = i.retrieveIgnoreError(n.providerId + ".publishPreferences");
@@ -28393,9 +29164,9 @@ function() {
e(".modal-publish").modal();
}
function m(e) {
- var n = A, i = n.newPublishAttributes(e);
+ var n = S, i = n.newPublishAttributes(e);
if (void 0 !== i) {
- var r = l.currentFile, s = C, a = h(r, i, s), u = r.frontMatter && r.frontMatter.title || r.title;
+ var r = l.currentFile, s = x, a = h(r, i, s), u = r.frontMatter && r.frontMatter.title || r.title;
n.publish(i, r.frontMatter, u, a, function(e) {
void 0 === e && (i.provider = n, c.createLink(i, function() {
f(r, i);
@@ -28438,26 +29209,26 @@ function() {
return s.onError(a), a.message;
}
};
- var y, w, C, x = [];
+ var y, w, x, C = [];
s.addListener("onPreviewFinished", function(e) {
- C = e;
+ x = e;
+ });
+ var k = !1;
+ s.addListener("onOfflineChanged", function(e) {
+ k = e;
});
var E = !1;
- s.addListener("onOfflineChanged", function(e) {
- E = e;
- });
- var S = !1;
v.publish = function() {
- S !== !0 && E !== !0 && (S = !0, s.onPublishRunning(!0), y = l.currentFile, w = C,
- x = t.values(y.publishLocations), p(function(e) {
- S = !1, s.onPublishRunning(!1), void 0 === e && s.onPublishSuccess(y);
+ E !== !0 && k !== !0 && (E = !0, s.onPublishRunning(!0), y = l.currentFile, w = x,
+ C = t.values(y.publishLocations), p(function(e) {
+ E = !1, s.onPublishRunning(!1), void 0 === e && s.onPublishSuccess(y);
}));
};
- var A, k = [ "