diff --git a/cache.manifest b/cache.manifest index e6c238ab..ca8d3724 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1,5 +1,5 @@ CACHE MANIFEST -# Sun 4 Aug 2013 18:48:24 IST +# Sun 4 Aug 2013 18:48:25 IST CACHE: index.html diff --git a/js/styles/highlight.css b/css/highlight.css similarity index 100% rename from js/styles/highlight.css rename to css/highlight.css diff --git a/css/jgrowl.css b/css/jgrowl.css new file mode 100644 index 00000000..e3d253b3 --- /dev/null +++ b/css/jgrowl.css @@ -0,0 +1,98 @@ + +div.jGrowl { + z-index: 1050; + color: #fff; +} + +/** Normal Style Positions **/ +div.jGrowl { + position: absolute; +} + +body > div.jGrowl { + position: fixed; +} + +div.jGrowl.top-left { + left: 0px; + top: 0px; +} + +div.jGrowl.top-right { + right: 0px; + top: 0px; +} + +div.jGrowl.bottom-left { + left: 0px; + bottom: 0px; +} + +div.jGrowl.bottom-right { + right: 0px; + bottom: 0px; +} + +div.jGrowl.center { + top: 0px; + width: 50%; + left: 25%; +} + +/** Cross Browser Styling **/ +div.center div.jGrowl-notification, div.center div.jGrowl-closer { + margin-left: auto; + margin-right: auto; +} + +div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer { + background-color: #777; + zoom: 1; + width: 235px; + padding: 15px 20px; + margin-top: 5px; + margin-bottom: 5px; + text-align: left; + display: none; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; +} + +div.jGrowl div.jGrowl-notification { + min-height: 40px; +} + +div.jGrowl div.jGrowl-notification, +div.jGrowl div.jGrowl-closer { + margin: 20px; +} + +div.jGrowl div.jGrowl-notification div.jGrowl-header { + font-weight: bold; + font-size: .85em; +} + +div.jGrowl div.jGrowl-notification div.jGrowl-close { + z-index: 99; + float: right; + font-weight: bold; + font-size: 1em; + cursor: pointer; +} + +div.jGrowl div.jGrowl-closer { + padding-top: 4px; + padding-bottom: 4px; + cursor: pointer; + font-size: .9em; + font-weight: bold; + text-align: center; +} + +/** Hide jGrowl when printing **/ +@media print { + div.jGrowl { + display: none; + } +} \ No newline at end of file diff --git a/js/styles/prettify.css b/css/prettify.css similarity index 100% rename from js/styles/prettify.css rename to css/prettify.css diff --git a/img/icons.png b/img/icons.png index d2b8a6ae..ae08e85f 100644 Binary files a/img/icons.png and b/img/icons.png differ diff --git a/img/icons2x.png b/img/icons2x.png new file mode 100644 index 00000000..29f40696 Binary files /dev/null and b/img/icons2x.png differ diff --git a/js/core.js b/js/core.js index 69a78972..e2dd03d5 100644 --- a/js/core.js +++ b/js/core.js @@ -11,7 +11,6 @@ define([ "text!html/settingsUserCustomExtensionTooltip.html", "storage", "config", - "libs/bootstrap", "libs/layout", "libs/Markdown.Editor" ], function($, _, utils, settings, eventMgr, mousetrap, bodyIndexHTML, bodyViewerHTML, settingsTemplateTooltipHTML, settingsUserCustomExtensionTooltipHTML) { diff --git a/js/eventMgr.js b/js/eventMgr.js index 72d7eb8e..27b3cacb 100644 --- a/js/eventMgr.js +++ b/js/eventMgr.js @@ -29,7 +29,7 @@ define([ "extensions/buttonHtmlCode", "extensions/buttonMarkdownSyntax", "extensions/buttonViewer", - "libs/bootstrap", + "libs/bootstrap/bootstrap", "libs/jquery.waitforimages" ], function($, _, crel, utils, Extension, settings, settingsExtensionsAccordionHTML) { diff --git a/js/extensions/documentSelector.js b/js/extensions/documentSelector.js index 4c1b12a6..c55cbc21 100644 --- a/js/extensions/documentSelector.js +++ b/js/extensions/documentSelector.js @@ -47,7 +47,7 @@ define([ _.chain(attributesList).sortBy(function(attributes) { return attributes.provider.providerId; }).each(function(attributes) { - var classes = 'icon-' + attributes.provider.providerId; + var classes = 'icon-provider-' + attributes.provider.providerId; if(attributes.isRealtime === true) { classes += " realtime"; } diff --git a/js/extensions/documentTitle.js b/js/extensions/documentTitle.js index 9f33e5f8..1b6d9c1a 100644 --- a/js/extensions/documentTitle.js +++ b/js/extensions/documentTitle.js @@ -25,7 +25,7 @@ define([ _.chain(attributesList).sortBy(function(attributes) { return attributes.provider.providerId; }).each(function(attributes) { - var classes = 'icon-' + attributes.provider.providerId; + var classes = 'icon-provider-' + attributes.provider.providerId; if(attributes.isRealtime === true) { classes += " realtime"; } diff --git a/js/html/bodyIndex.html b/js/html/bodyIndex.html index 53c754f8..5dd58db3 100644 --- a/js/html/bodyIndex.html +++ b/js/html/bodyIndex.html @@ -28,7 +28,7 @@
Add a synchronized location manually:
~X" + (this.hashBlocks.push(e) - 1) + "X
\n"; }, Markdown.Extra.prototype.hashExtraInline = function(e) { return "~X" + (this.hashBlocks.push(e) - 1) + "X"; }, Markdown.Extra.prototype.unHashExtraBlocks = function(e) { - function t() { + function n() { var o = !1; - e = e.replace(/(?:)?~X(\d+)X(?:<\/p>)?/g, function(e, t) { + e = e.replace(/(?:
)?~X(\d+)X(?:<\/p>)?/g, function(e, n) { o = !0; - var i = parseInt(t, 10); - return n.hashBlocks[i]; - }), o === !0 && t(); + var i = parseInt(n, 10); + return t.hashBlocks[i]; + }), o === !0 && n(); } - var n = this; - return t(), e; + var t = this; + return n(), e; }, Markdown.Extra.prototype.hashHeaderAttributeBlocks = function(e) { - function t(e, t, n) { - return "
~XX" + (r.hashBlocks.push(n) - 1) + "XX
\n" + t + "\n"; + function n(e, n, t) { + return "~XX" + (r.hashBlocks.push(t) - 1) + "XX
\n" + n + "\n"; } - var n = "\\{\\s*[.|#][^}]+\\}", o = new RegExp("^(#{1,6}.*#{0,6})\\s+(" + n + ")[ \\t]*(\\n|0x03)", "gm"), i = new RegExp("^(.*)\\s+(" + n + ")[ \\t]*\\n" + "(?=[\\-|=]+\\s*(\\n|0x03))", "gm"), r = this; - return e = e.replace(o, t), e = e.replace(i, t); + var t = "\\{\\s*[.|#][^}]+\\}", o = new RegExp("^(#{1,6}.*#{0,6})\\s+(" + t + ")[ \\t]*(\\n|0x03)", "gm"), i = new RegExp("^(.*)\\s+(" + t + ")[ \\t]*\\n" + "(?=[\\-|=]+\\s*(\\n|0x03))", "gm"), r = this; + return e = e.replace(o, n), e = e.replace(i, n); }, Markdown.Extra.prototype.hashFcbAttributeBlocks = function(e) { - function t(e, t, n) { - return "~XX" + (i.hashBlocks.push(n) - 1) + "XX
\n" + t + "\n"; + function n(e, n, t) { + return "~XX" + (i.hashBlocks.push(t) - 1) + "XX
\n" + n + "\n"; } - var n = "\\{\\s*[.|#][^}]+\\}", o = new RegExp("^(```[^{\\n]*)\\s+(" + n + ")[ \\t]*\\n" + "(?=([\\s\\S]*?)\\n```\\s*(\\n|0x03))", "gm"), i = this; - return e.replace(o, t); + var t = "\\{\\s*[.|#][^}]+\\}", o = new RegExp("^(```[^{\\n]*)\\s+(" + t + ")[ \\t]*\\n" + "(?=([\\s\\S]*?)\\n```\\s*(\\n|0x03))", "gm"), i = this; + return e.replace(o, n); }, Markdown.Extra.prototype.applyAttributeBlocks = function(e) { - var t = this, n = new RegExp('~XX(\\d+)XX
[\\s]*(?:<(h[1-6]|pre)(?: +class="(\\S+)")?(>[\\s\\S]*?\\2>))', "gm"); - return e = e.replace(n, function(e, n, o, i, a) { + var n = this, t = new RegExp('~XX(\\d+)XX
[\\s]*(?:<(h[1-6]|pre)(?: +class="(\\S+)")?(>[\\s\\S]*?\\2>))', "gm"); + return e = e.replace(t, function(e, t, o, i, a) { if (!o) return ""; - for (var s = parseInt(n, 10), l = t.hashBlocks[s], c = l.match(/#[^\s{}]+/g) || [], u = c[0] ? ' id="' + c[0].substr(1, c[0].length - 1) + '"' : "", d = l.match(/\.[^\s{}]+/g) || [], p = 0; p < d.length; p++) d[p] = d[p].substr(1, d[p].length - 1); + for (var s = parseInt(t, 10), l = n.hashBlocks[s], c = l.match(/#[^\s{}]+/g) || [], d = c[0] ? ' id="' + c[0].substr(1, c[0].length - 1) + '"' : "", u = l.match(/\.[^\s{}]+/g) || [], p = 0; p < u.length; p++) u[p] = u[p].substr(1, u[p].length - 1); var f = ""; - return i && (d = r(d, [ i ])), d.length > 0 && (f = ' class="' + d.join(" ") + '"'), - "<" + o + u + f + a; + return i && (u = r(u, [ i ])), u.length > 0 && (f = ' class="' + u.join(" ") + '"'), + "<" + o + d + f + a; }); - }, Markdown.Extra.prototype.tables = function(t) { - function n(t, n, i, r) { - n = n.replace(/^ *[|]/m, ""), i = i.replace(/^ *[|]/m, ""), r = r.replace(/^ *[|]/gm, ""), - n = n.replace(/[|] *$/m, ""), i = i.replace(/[|] *$/m, ""), r = r.replace(/[|] *$/gm, ""), + }, Markdown.Extra.prototype.tables = function(n) { + function t(n, t, i, r) { + t = t.replace(/^ *[|]/m, ""), i = i.replace(/^ *[|]/m, ""), r = r.replace(/^ *[|]/gm, ""), + t = t.replace(/[|] *$/m, ""), i = i.replace(/[|] *$/m, ""), r = r.replace(/[|] *$/gm, ""), alignspecs = i.split(/ *[|] */), align = []; for (var a = 0; a < alignspecs.length; a++) { var s = alignspecs[a]; align[a] = s.match(/^ *-+: *$/m) ? ' style="text-align:right;"' : s.match(/^ *:-+: *$/m) ? ' style="text-align:center;"' : s.match(/^ *:-+ *$/m) ? ' style="text-align:left;"' : ""; } - var c = n.split(/ *[|] */), u = c.length, d = o.tableClass ? ' class="' + o.tableClass + '"' : "", p = [ "", f, " | \n" ].join(""); } p += "
---|
", v, " | \n" ].join(""); } @@ -7650,128 +7627,128 @@ if (hljs.LANGUAGES.bash = function(e) { return p += "
", t(a), "
" ].join("");
- return n.hashExtraBlock(c);
+ var r = o, a = i, s = t.googleCodePrettify ? ' class="prettyprint"' : "", l = "";
+ r && (l = t.googleCodePrettify || t.highlightJs ? ' class="language-' + r + '"' : ' class="' + r + '"');
+ var c = [ "", n(a), "
" ].join("");
+ return t.hashExtraBlock(c);
});
- }, Markdown.Extra.prototype.definitionLists = function(t) {
- var n = new RegExp([ "(\\x02\\n?|\\n\\n)", "(?:", "(", "(", "[ ]{0,3}", "((?:[ \\t]*\\S.*\\n)+)", "\\n?", "[ ]{0,3}:[ ]+", ")", "([\\s\\S]+?)", "(", "(?=\\0x03)", "|", "(?=", "\\n{2,}", "(?=\\S)", "(?!", "[ ]{0,3}", "(?:\\S.*\\n)+?", "\\n?", "[ ]{0,3}:[ ]+", ")", "(?!", "[ ]{0,3}:[ ]+", ")", ")", ")", ")", ")" ].join(""), "gm"), o = this;
- return t = a(t), t = t.replace(n, function(t, n, i) {
+ }, Markdown.Extra.prototype.definitionLists = function(n) {
+ var t = new RegExp([ "(\\x02\\n?|\\n\\n)", "(?:", "(", "(", "[ ]{0,3}", "((?:[ \\t]*\\S.*\\n)+)", "\\n?", "[ ]{0,3}:[ ]+", ")", "([\\s\\S]+?)", "(", "(?=\\0x03)", "|", "(?=", "\\n{2,}", "(?=\\S)", "(?!", "[ ]{0,3}", "(?:\\S.*\\n)+?", "\\n?", "[ ]{0,3}:[ ]+", ")", "(?!", "[ ]{0,3}:[ ]+", ")", ")", ")", ")", ")" ].join(""), "gm"), o = this;
+ return n = a(n), n = n.replace(t, function(n, t, i) {
var r = e(o.processDefListItems(i));
- return r = "Generates a table of contents when a [TOC] marker is found.
\nGenerates a table of contents when a [TOC] marker is found.
\nAllows StackEdit to interpret LaTeX mathematical expressions.
\nAllows StackEdit to interpret LaTeX mathematical expressions.
\nConverts email adresses in the form <email@example.com> into clickable links.
", - t.onEditorConfigure = function(e) { + var n = new e("emailConverter", "Markdown Email", !0); + return n.settingsBlock = "Converts email adresses in the form <email@example.com> into clickable links.
", + n.onEditorConfigure = function(e) { e.getConverter().hooks.chain("postConversion", function(e) { - return e.replace(/<(mailto\:)?([^\s>]+@[^\s>]+\.\S+?)>/g, function(e, t, n) { - return '' + n + ""; + return e.replace(/<(mailto\:)?([^\s>]+@[^\s>]+\.\S+?)>/g, function(e, n, t) { + return '' + t + ""; }); }); - }, t; + }, n; }), define("text!html/scrollLinkSettingsBlock.html", [], function() { return 'Binds together editor and preview scrollbars.
\n\n NOTE: The mapping between Markdown and HTML is based on the\n position of the title elements (h1, h2...) in the page. Therefore if\n your document does not contain any title, the mapping will be linear and\n consequently less accurate.\n'; }), showLog = !0, css_browser_selector(navigator.userAgent), define("libs/css_browser_selector", function() {}), function(e) { "function" == typeof define && define.amd ? define("libs/jquery.mousewheel", [ "jquery" ], e) : "object" == typeof exports ? module.exports = e : e(jQuery); }(function(e) { - function t(t) { - var i, r = t || window.event, a = [].slice.call(arguments, 1), s = 0, l = 0, c = 0, u = 0, d = 0; - return t = e.event.fix(r), t.type = "mousewheel", r.wheelDelta && (s = r.wheelDelta), + function n(n) { + var i, r = n || window.event, a = [].slice.call(arguments, 1), s = 0, l = 0, c = 0, d = 0, u = 0; + return n = e.event.fix(r), n.type = "mousewheel", r.wheelDelta && (s = r.wheelDelta), r.detail && (s = -1 * r.detail), r.deltaY && (c = -1 * r.deltaY, s = c), r.deltaX && (l = r.deltaX, s = -1 * l), void 0 !== r.wheelDeltaY && (c = r.wheelDeltaY), void 0 !== r.wheelDeltaX && (l = -1 * r.wheelDeltaX), - u = Math.abs(s), (!n || n > u) && (n = u), d = Math.max(Math.abs(c), Math.abs(l)), - (!o || o > d) && (o = d), i = s > 0 ? "floor" : "ceil", s = Math[i](s / n), l = Math[i](l / o), - c = Math[i](c / o), a.unshift(t, s, l, c), (e.event.dispatch || e.event.handle).apply(this, a); + d = Math.abs(s), (!t || t > d) && (t = d), u = Math.max(Math.abs(c), Math.abs(l)), + (!o || o > u) && (o = u), i = s > 0 ? "floor" : "ceil", s = Math[i](s / t), l = Math[i](l / o), + c = Math[i](c / o), a.unshift(n, s, l, c), (e.event.dispatch || e.event.handle).apply(this, a); } - var n, o, i = [ "wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll" ], r = "onwheel" in document || document.documentMode >= 9 ? [ "wheel" ] : [ "mousewheel", "DomMouseScroll", "MozMousePixelScroll" ]; + var t, o, i = [ "wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll" ], r = "onwheel" in document || document.documentMode >= 9 ? [ "wheel" ] : [ "mousewheel", "DomMouseScroll", "MozMousePixelScroll" ]; if (e.event.fixHooks) for (var a = i.length; a; ) e.event.fixHooks[i[--a]] = e.event.mouseHooks; e.event.special.mousewheel = { setup: function() { - if (this.addEventListener) for (var e = r.length; e; ) this.addEventListener(r[--e], t, !1); else this.onmousewheel = t; + if (this.addEventListener) for (var e = r.length; e; ) this.addEventListener(r[--e], n, !1); else this.onmousewheel = n; }, teardown: function() { - if (this.removeEventListener) for (var e = r.length; e; ) this.removeEventListener(r[--e], t, !1); else this.onmousewheel = null; + if (this.removeEventListener) for (var e = r.length; e; ) this.removeEventListener(r[--e], n, !1); else this.onmousewheel = null; } }, e.fn.extend({ mousewheel: function(e) { @@ -7979,68 +7956,68 @@ function(e) { return this.unbind("mousewheel", e); } }); -}), define("extensions/scrollLink", [ "jquery", "underscore", "classes/Extension", "text!html/scrollLinkSettingsBlock.html", "libs/css_browser_selector", "libs/jquery.mousewheel" ], function(e, t, n, o) { +}), define("extensions/scrollLink", [ "jquery", "underscore", "classes/Extension", "text!html/scrollLinkSettingsBlock.html", "libs/css_browser_selector", "libs/jquery.mousewheel" ], function(e, n, t, o) { function i(e) { return parseFloat(e.substring(0, e.length - 2)); } - var r = new n("scrollLink", "Scroll Link", !0, !0); + var r = new t("scrollLink", "Scroll Link", !0, !0); r.settingsBlock = o; var a = void 0; r.onSectionsCreated = function(e) { a = e; }; - var s = void 0, l = void 0, c = void 0, u = [], d = [], p = void 0, f = void 0, h = t.debounce(function() { - function n(e) { - var t = o; - 0 !== e.length && (c.val(e), t += c.prop("scrollHeight")); - var n = r + t; - u.push({ + var s = void 0, l = void 0, c = void 0, d = [], u = [], p = void 0, f = void 0, h = n.debounce(function() { + function t(e) { + var n = o; + 0 !== e.length && (c.val(e), n += c.prop("scrollHeight")); + var t = r + n; + d.push({ startOffset: r, - endOffset: n, - height: t - }), r = n, o = 0; + endOffset: t, + height: n + }), r = t, o = 0; } - u = [], c.width(s.width()); + d = [], c.width(s.width()); var o = i(s.css("padding-top")), r = 0; - t.each(a, function(e, t) { - t !== a.length - 1 ? e = e.substring(0, e.length - 1) : o += i(s.css("padding-bottom")), - n(e); - }), d = []; + n.each(a, function(e, n) { + n !== a.length - 1 ? e = e.substring(0, e.length - 1) : o += i(s.css("padding-bottom")), + t(e); + }), u = []; var h = 0, g = l.scrollTop(); l.find(".preview-content > .wmd-title").each(function() { - var t = e(this), n = t.position().top + g + i(t.css("margin-top")); - d.push({ + var n = e(this), t = n.position().top + g + i(n.css("margin-top")); + u.push({ startOffset: h, - endOffset: n, - height: n - h - }), h = n; + endOffset: t, + height: t - h + }), h = t; }); var m = l.prop("scrollHeight"); - d.push({ + u.push({ startOffset: h, endOffset: m, height: m - h }), p = -10, f = -10, b(); - }, 500), g = !1, m = !1, b = t.debounce(function() { - function e(e, n, o, i, r, a) { - var s = void 0, l = t.find(n, function(t, n) { - return s = n, e < t.endOffset; + }, 500), g = !1, m = !1, b = n.debounce(function() { + function e(e, t, o, i, r, a) { + var s = void 0, l = n.find(t, function(n, t) { + return s = t, e < n.endOffset; }); if (void 0 !== l) { - var c = (e - l.startOffset) / l.height, u = i[s], d = u.startOffset + u.height * c; - return d = t.min([ d, o.prop("scrollHeight") - o.outerHeight() ]), Math.abs(d - r) <= 9 ? (a(r), + var c = (e - l.startOffset) / l.height, d = i[s], u = d.startOffset + d.height * c; + return u = n.min([ u, o.prop("scrollHeight") - o.outerHeight() ]), Math.abs(u - r) <= 9 ? (a(r), void 0) : (o.animate({ - scrollTop: d + scrollTop: u }, 500, function() { - a(d); + a(u); }), void 0); } } - if (0 !== u.length && u.length === d.length) { - var n = s.scrollTop(), o = l.scrollTop(); - g === !0 && Math.abs(n - p) > 9 ? (g = !1, p = n, e(n, u, l, d, o, function(e) { + if (0 !== d.length && d.length === u.length) { + var t = s.scrollTop(), o = l.scrollTop(); + g === !0 && Math.abs(t - p) > 9 ? (g = !1, p = t, e(t, d, l, u, o, function(e) { f = e; - })) : m === !0 && Math.abs(o - f) > 9 && (m = !1, f = o, e(o, d, s, u, n, function(e) { + })) : m === !0 && Math.abs(o - f) > 9 && (m = !1, f = o, e(o, u, s, d, t, function(e) { p = e; })); } @@ -8057,92 +8034,90 @@ function(e) { }); }; var v = void 0; - return r.onEditorConfigure = function(t) { - v = e("#preview-contents"), t.getConverter().hooks.chain("postConversion", function(e) { + return r.onEditorConfigure = function(n) { + v = e("#preview-contents"), n.getConverter().hooks.chain("postConversion", function(e) { return v.height(v.height()), e; }); }, r.onPreviewFinished = function() { v.height("auto"), g = !0, h(); }, r; }), define("text!html/buttonSync.html", [], function() { - return ''; + return ''; }), define("text!html/buttonSyncSettingsBlock.html", [], function() { - return '
Adds a "Synchronize documents" button in the navigation bar.
\nAdds a "Synchronize documents" button in the navigation bar.
\nAdds a "Publish document" button in the navigation bar.
'; - var a = void 0, s = void 0, l = !1, c = !1, u = !1, d = void 0; + var r = new t("buttonPublish", 'Button "Publish"'), a = void 0, s = void 0, l = !1, c = !1, d = !1, u = void 0; r.onPublisherCreated = function(e) { - d = e; + u = e; }, r.onCreateButton = function() { return a = e(o).click(function() { - e(this).hasClass("disabled") || d.publish(); + e(this).hasClass("disabled") || u.publish(); }), a[0]; }, r.onPublishRunning = function(e) { l = e, i(); }, r.onOfflineChanged = function(e) { - u = e, i(); + d = e, i(); }; var p = function() { - c = 0 === t.size(s.publishLocations) ? !1 : !0, i(); + c = 0 === n.size(s.publishLocations) ? !1 : !0, i(); }; return r.onFileSelected = function(e) { s = e, p(); }, r.onPublishRemoved = p, r.onNewPublishSuccess = p, r; }), define("text!html/buttonShare.html", [], function() { - return '\nTo share this document you need first to publish it as a Gist in\n Markdown format.\n
\n\n NOTE: You can open any URL within StackEdit using viewer.html?url=...\n\n
To share this document you need first to publish it as a Gist in\n Markdown format.\n
\n\n NOTE: You can open any URL within StackEdit using viewer.html?url=...\n\n
Adds a "Share document" button in the navigation bar.
', r.onCreateButton = function() { return o; }; - var a = void 0, s = function(n) { - if (void 0 === n || n === a) { - var o = e("#link-container .link-list").empty(); - e("#link-container .no-link").show(); - var r = t.values(a.publishLocations); - t.each(r, function(n) { - if (n.sharingLink) { - var r = e(t.template(i, { - link: n.sharingLink + var a = void 0, s = function(t) { + if (void 0 === t || t === a) { + var o = e(".link-container .link-list").empty(); + e(".link-container .no-link").show(); + var r = n.values(a.publishLocations); + n.each(r, function(t) { + if (t.sharingLink) { + var r = e(n.template(i, { + link: t.sharingLink })); - o.append(r), e("#link-container .no-link").hide(); + o.append(r), e(".link-container .no-link").hide(); } }); } @@ -8151,10 +8126,10 @@ function(e) { a = e, s(e); }, r.onNewPublishSuccess = s, r.onPublishRemoved = s, r; }), define("text!html/buttonStat.html", [], function() { - return '\nAdds a "Document statistics" button over the preview.
\nAdds a "Document statistics" button over the preview.
\nAdds a "HTML code" button over the preview.
\nAdds a "HTML code" button over the preview.
\n*italic* **bold**\n_italic_ __bold__\n
\n\nInline:
\n\nAn [example](http://url.com/ "Title")\n
\n\nReference-style labels (titles are optional):
\n\nAn [example][id]. Then, anywhere\nelse in the doc, define the link:\n\n [id]: http://example.com/ "Title"\n
\n\nInline (titles are optional):
\n\n![alt text](/path/img.jpg "Title")\n
\n\nReference-style:
\n\n![alt text][id]\n\n[id]: /url/to/img.jpg "Title"\n
\n\nSetext-style:
\n\nHeader 1\n========\n\nHeader 2\n--------\n
\n\natx-style (closing #\'s are optional):
\n\n# Header 1 #\n\n## Header 2 ##\n\n###### Header 6\n
\n\nOrdered, without paragraphs:
\n\n1. Foo\n2. Bar\n
\n\nUnordered, with paragraphs:
\n\n* A list item.\n\n With multiple paragraphs.\n\n* Bar\n
\n\nYou can nest them:
\n\n* Abacus\n * answer\n* Bubbles\n 1. bunk\n 2. bupkis\n * BELITTLER\n 3. burper\n* Cunning\n
\n\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 are delimited\nby backticks.\n\nYou can include literal backticks\nlike `` `this` ``.\n
\n\nIndent every line of a code block by at least 4 spaces or 1 tab.
\n\nThis is a normal paragraph.\n\n This is a preformatted\n code block.\n
\n\nThree or more dashes or asterisks:
\n\n---\n\n* * *\n\n- - - - \n
\n\nEnd a line with two or more spaces:
\n\nRoses are red, \nViolets are blue.\n
\n\nBased on the Markdown syntax guide, by Fletcher T. Penney.
\n*italic* **bold**\n_italic_ __bold__\n
\n\nInline:
\n\nAn [example](http://url.com/ "Title")\n
\n\nReference-style labels (titles are optional):
\n\nAn [example][id]. Then, anywhere\nelse in the doc, define the link:\n\n [id]: http://example.com/ "Title"\n
\n\nInline (titles are optional):
\n\n![alt text](/path/img.jpg "Title")\n
\n\nReference-style:
\n\n![alt text][id]\n\n[id]: /url/to/img.jpg "Title"\n
\n\nSetext-style:
\n\nHeader 1\n========\n\nHeader 2\n--------\n
\n\natx-style (closing #\'s are optional):
\n\n# Header 1 #\n\n## Header 2 ##\n\n###### Header 6\n
\n\nOrdered, without paragraphs:
\n\n1. Foo\n2. Bar\n
\n\nUnordered, with paragraphs:
\n\n* A list item.\n\n With multiple paragraphs.\n\n* Bar\n
\n\nYou can nest them:
\n\n* Abacus\n * answer\n* Bubbles\n 1. bunk\n 2. bupkis\n * BELITTLER\n 3. burper\n* Cunning\n
\n\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 are delimited\nby backticks.\n\nYou can include literal backticks\nlike `` `this` ``.\n
\n\nIndent every line of a code block by at least 4 spaces or 1 tab.
\n\nThis is a normal paragraph.\n\n This is a preformatted\n code block.\n
\n\nThree or more dashes or asterisks:
\n\n---\n\n* * *\n\n- - - - \n
\n\nEnd a line with two or more spaces:
\n\nRoses are red, \nViolets are blue.\n
\n\nBased on the Markdown syntax guide, by Fletcher T. Penney.
\nAdds a "Markdown syntax" button over the preview.
', o.onCreatePreviewButton = function() { - return n; + return t; }, o; }), define("text!html/buttonViewer.html", [], function() { - return '\n \n\n'; -}), define("extensions/buttonViewer", [ "jquery", "classes/Extension", "text!html/buttonViewer.html" ], function(e, t, n) { - var o = new t("buttonViewer", 'Button "Viewer"', !0); + return '\n \n\n'; +}), define("extensions/buttonViewer", [ "jquery", "classes/Extension", "text!html/buttonViewer.html" ], function(e, n, t) { + var o = new n("buttonViewer", 'Button "Viewer"', !0); return o.settingsBlock = 'Adds a "Viewer" button over the preview.
', o.onCreatePreviewButton = function() { - return n; + return t; }, o; }), !jQuery) throw new Error("Bootstrap requires jQuery"); +function(e) { - function t() { - var e = document.createElement("bootstrap"), t = { + function n() { + var e = document.createElement("bootstrap"), n = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd otransitionend", transition: "transitionend" }; - for (var n in t) if (void 0 !== e.style[n]) return { - end: t[n] + for (var t in n) if (void 0 !== e.style[t]) return { + end: n[t] }; } - e.fn.emulateTransitionEnd = function(t) { - var n = !1, o = this; + e.fn.emulateTransitionEnd = function(n) { + var t = !1, o = this; e(this).one("webkitTransitionEnd", function() { - n = !0; + t = !0; }); var i = function() { - n || e(o).trigger("webkitTransitionEnd"); + t || e(o).trigger("webkitTransitionEnd"); }; - return setTimeout(i, t), this; + return setTimeout(i, n), this; }, e(function() { - e.support.transition = t(); + e.support.transition = n(); }); }(window.jQuery), +function(e) { - var t = '[data-dismiss="alert"]', n = function(n) { - e(n).on("click", t, this.close); + var n = '[data-dismiss="alert"]', t = function(t) { + e(t).on("click", n, this.close); }; - n.prototype.close = function(t) { - function n() { + t.prototype.close = function(n) { + function t() { r.trigger("closed.bs.alert").remove(); } var o = e(this), i = o.attr("data-target"); i || (i = o.attr("href"), i = i && i.replace(/.*(?=#[^\s]*$)/, "")); var r = e(i); - t && t.preventDefault(), r.length || (r = o.hasClass("alert") ? o : o.parent()), - r.trigger(t = e.Event("close.bs.alert")), t.isDefaultPrevented() || (r.removeClass("in"), - e.support.transition && r.hasClass("fade") ? r.one(e.support.transition.end, n).emulateTransitionEnd(150) : n()); + n && n.preventDefault(), r.length || (r = o.hasClass("alert") ? o : o.parent()), + r.trigger(n = e.Event("close.bs.alert")), n.isDefaultPrevented() || (r.removeClass("in"), + e.support.transition && r.hasClass("fade") ? r.one(e.support.transition.end, t).emulateTransitionEnd(150) : t()); }; var o = e.fn.alert; - e.fn.alert = function(t) { + e.fn.alert = function(n) { return this.each(function() { var o = e(this), i = o.data("bs.alert"); - i || o.data("bs.alert", i = new n(this)), "string" == typeof t && i[t].call(o); + i || o.data("bs.alert", i = new t(this)), "string" == typeof n && i[n].call(o); }); - }, e.fn.alert.Constructor = n, e.fn.alert.noConflict = function() { + }, e.fn.alert.Constructor = t, e.fn.alert.noConflict = function() { return e.fn.alert = o, this; - }, e(document).on("click.bs.alert.data-api", t, n.prototype.close); + }, e(document).on("click.bs.alert.data-api", n, t.prototype.close); }(window.jQuery), +function(e) { - var t = function(n, o) { - this.$element = e(n), this.options = e.extend({}, t.DEFAULTS, o); + var n = function(t, o) { + this.$element = e(t), this.options = e.extend({}, n.DEFAULTS, o); }; - t.DEFAULTS = { + n.DEFAULTS = { loadingText: "loading..." - }, t.prototype.setState = function(e) { - var t = "disabled", n = this.$element, o = n.is("input") ? "val" : "html", i = n.data(); - e += "Text", i.resetText || n.data("resetText", n[o]()), n[o](i[e] || this.options[e]), + }, n.prototype.setState = function(e) { + var n = "disabled", t = this.$element, o = t.is("input") ? "val" : "html", i = t.data(); + e += "Text", i.resetText || t.data("resetText", t[o]()), t[o](i[e] || this.options[e]), setTimeout(function() { - "loadingText" == e ? n.addClass(t).attr(t, t) : n.removeClass(t).removeAttr(t); + "loadingText" == e ? t.addClass(n).attr(n, n) : t.removeClass(n).removeAttr(n); }, 0); - }, t.prototype.toggle = function() { + }, n.prototype.toggle = function() { var e = this.$element.closest('[data-toggle="buttons"]'); if (e.length) { - var t = this.$element.find("input").prop("checked", !this.$element.hasClass("active")); - "radio" === t.prop("type") && e.find(".active").removeClass("active"); + var n = this.$element.find("input").prop("checked", !this.$element.hasClass("active")); + "radio" === n.prop("type") && e.find(".active").removeClass("active"); } this.$element.toggleClass("active"); }; - var n = e.fn.button; - e.fn.button = function(n) { + var t = e.fn.button; + e.fn.button = function(t) { return this.each(function() { - var o = e(this), i = o.data("button"), r = "object" == typeof n && n; - i || o.data("bs.button", i = new t(this, r)), "toggle" == n ? i.toggle() : n && i.setState(n); + var o = e(this), i = o.data("button"), r = "object" == typeof t && t; + i || o.data("bs.button", i = new n(this, r)), "toggle" == t ? i.toggle() : t && i.setState(t); }); - }, e.fn.button.Constructor = t, e.fn.button.noConflict = function() { - return e.fn.button = n, this; - }, e(document).on("click.bs.button.data-api", "[data-toggle^=button]", function(t) { - var n = e(t.target); - n.hasClass("btn") || (n = n.closest(".btn")), n.button("toggle"), t.preventDefault(); + }, e.fn.button.Constructor = n, e.fn.button.noConflict = function() { + return e.fn.button = t, this; + }, e(document).on("click.bs.button.data-api", "[data-toggle^=button]", function(n) { + var t = e(n.target); + t.hasClass("btn") || (t = t.closest(".btn")), t.button("toggle"), n.preventDefault(); }); }(window.jQuery), +function(e) { - var t = function(t, n) { - this.$element = e(t), this.$indicators = this.$element.find(".carousel-indicators"), - this.options = n, this.paused = this.sliding = this.interval = this.$active = this.$items = null, + var n = function(n, t) { + this.$element = e(n), this.$indicators = this.$element.find(".carousel-indicators"), + this.options = t, this.paused = this.sliding = this.interval = this.$active = this.$items = null, "hover" == this.options.pause && this.$element.on("mouseenter", e.proxy(this.pause, this)).on("mouseleave", e.proxy(this.cycle, this)); }; - t.DEFAULTS = { + n.DEFAULTS = { interval: 5e3, pause: "hover" - }, t.prototype.cycle = function(t) { - return t || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(e.proxy(this.next, this), this.options.interval)), + }, n.prototype.cycle = function(n) { + return n || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(e.proxy(this.next, this), this.options.interval)), this; - }, t.prototype.getActiveIndex = function() { + }, n.prototype.getActiveIndex = function() { return this.$active = this.$element.find(".item.active"), this.$items = this.$active.parent().children(), this.$items.index(this.$active); - }, t.prototype.to = function(t) { - var n = this, o = this.getActiveIndex(); - return t > this.$items.length - 1 || 0 > t ? void 0 : this.sliding ? this.$element.one("slid", function() { - n.to(t); - }) : o == t ? this.pause().cycle() : this.slide(t > o ? "next" : "prev", e(this.$items[t])); - }, t.prototype.pause = function(t) { - return t || (this.paused = !0), this.$element.find(".next, .prev").length && e.support.transition.end && (this.$element.trigger(e.support.transition.end), + }, n.prototype.to = function(n) { + var t = this, o = this.getActiveIndex(); + return n > this.$items.length - 1 || 0 > n ? void 0 : this.sliding ? this.$element.one("slid", function() { + t.to(n); + }) : o == n ? this.pause().cycle() : this.slide(n > o ? "next" : "prev", e(this.$items[n])); + }, n.prototype.pause = function(n) { + return n || (this.paused = !0), this.$element.find(".next, .prev").length && e.support.transition.end && (this.$element.trigger(e.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this; - }, t.prototype.next = function() { + }, n.prototype.next = function() { return this.sliding ? void 0 : this.slide("next"); - }, t.prototype.prev = function() { + }, n.prototype.prev = function() { return this.sliding ? void 0 : this.slide("prev"); - }, t.prototype.slide = function(t, n) { - var o = this.$element.find(".item.active"), i = n || o[t](), r = this.interval, a = "next" == t ? "left" : "right", s = "next" == t ? "first" : "last", l = this; + }, n.prototype.slide = function(n, t) { + var o = this.$element.find(".item.active"), i = t || o[n](), r = this.interval, a = "next" == n ? "left" : "right", s = "next" == n ? "first" : "last", l = this; this.sliding = !0, r && this.pause(), i = i.length ? i : this.$element.find(".item")[s](); var c = e.Event("slide.bs.carousel", { relatedTarget: i[0], @@ -8365,12 +8340,12 @@ function(e) { if (!i.hasClass("active")) { if (this.$indicators.length && (this.$indicators.find(".active").removeClass("active"), this.$element.one("slid", function() { - var t = e(l.$indicators.children()[l.getActiveIndex()]); - t && t.addClass("active"); + var n = e(l.$indicators.children()[l.getActiveIndex()]); + n && n.addClass("active"); })), e.support.transition && this.$element.hasClass("slide")) { if (this.$element.trigger(c), c.isDefaultPrevented()) return; - i.addClass(t), i[0].offsetWidth, o.addClass(a), i.addClass(a), o.one(e.support.transition.end, function() { - i.removeClass([ t, a ].join(" ")).addClass("active"), o.removeClass([ "active", a ].join(" ")), + i.addClass(n), i[0].offsetWidth, o.addClass(a), i.addClass(a), o.one(e.support.transition.end, function() { + i.removeClass([ n, a ].join(" ")).addClass("active"), o.removeClass([ "active", a ].join(" ")), l.sliding = !1, setTimeout(function() { l.$element.trigger("slid"); }, 0); @@ -8382,43 +8357,43 @@ function(e) { return r && this.cycle(), this; } }; - var n = e.fn.carousel; - e.fn.carousel = function(n) { + var t = e.fn.carousel; + e.fn.carousel = function(t) { return this.each(function() { - var o = e(this), i = o.data("bs.carousel"), r = e.extend({}, t.DEFAULTS, o.data(), "object" == typeof n && n), a = "string" == typeof n ? n : r.slide; - i || o.data("bs.carousel", i = new t(this, r)), "number" == typeof n ? i.to(n) : a ? i[a]() : r.interval && i.pause().cycle(); + var o = e(this), i = o.data("bs.carousel"), r = e.extend({}, n.DEFAULTS, o.data(), "object" == typeof t && t), a = "string" == typeof t ? t : r.slide; + i || o.data("bs.carousel", i = new n(this, r)), "number" == typeof t ? i.to(t) : a ? i[a]() : r.interval && i.pause().cycle(); }); - }, e.fn.carousel.Constructor = t, e.fn.carousel.noConflict = function() { - return e.fn.carousel = n, this; - }, e(document).on("click.bs.carousel.data-api", "[data-slide], [data-slide-to]", function(t) { - var n, o = e(this), i = e(o.attr("data-target") || (n = o.attr("href")) && n.replace(/.*(?=#[^\s]+$)/, "")), r = e.extend({}, i.data(), o.data()), a = o.attr("data-slide-to"); + }, e.fn.carousel.Constructor = n, e.fn.carousel.noConflict = function() { + return e.fn.carousel = t, this; + }, e(document).on("click.bs.carousel.data-api", "[data-slide], [data-slide-to]", function(n) { + var t, o = e(this), i = e(o.attr("data-target") || (t = o.attr("href")) && t.replace(/.*(?=#[^\s]+$)/, "")), r = e.extend({}, i.data(), o.data()), a = o.attr("data-slide-to"); a && (r.interval = !1), i.carousel(r), (a = o.attr("data-slide-to")) && i.data("bs.carousel").to(a), - t.preventDefault(); + n.preventDefault(); }), e(window).on("load", function() { e('[data-ride="carousel"]').each(function() { - var t = e(this); - t.carousel(t.data()); + var n = e(this); + n.carousel(n.data()); }); }); }(window.jQuery), +function(e) { - var t = function(n, o) { - this.$element = e(n), this.options = e.extend({}, t.DEFAULTS, o), this.transitioning = null, + var n = function(t, o) { + this.$element = e(t), this.options = e.extend({}, n.DEFAULTS, o), this.transitioning = null, this.options.parent && (this.$parent = e(this.options.parent)), this.options.toggle && this.toggle(); }; - t.DEFAULTS = { + n.DEFAULTS = { toggle: !0 - }, t.prototype.dimension = function() { + }, n.prototype.dimension = function() { var e = this.$element.hasClass("width"); return e ? "width" : "height"; - }, t.prototype.show = function() { + }, n.prototype.show = function() { if (!this.transitioning && !this.$element.hasClass("in")) { - var t = e.Event("show.bs.collapse"); - if (this.$element.trigger(t), !t.isDefaultPrevented()) { - var n = this.$parent && this.$parent.find("> .accordion-group > .in"); - if (n && n.length) { - var o = n.data("bs.collapse"); + var n = e.Event("show.bs.collapse"); + if (this.$element.trigger(n), !n.isDefaultPrevented()) { + var t = this.$parent && this.$parent.find("> .accordion-group > .in"); + if (t && t.length) { + var o = t.data("bs.collapse"); if (o && o.transitioning) return; - n.collapse("hide"), o || n.data("bs.collapse", null); + t.collapse("hide"), o || t.data("bs.collapse", null); } var i = this.dimension(); this.$element.removeClass("collapse").addClass("collapsing")[i](0), this.transitioning = 1; @@ -8431,155 +8406,155 @@ function(e) { this.$element.one(e.support.transition.end, e.proxy(r, this)).emulateTransitionEnd(350)[i](this.$element[0][a]); } } - }, t.prototype.hide = function() { + }, n.prototype.hide = function() { if (!this.transitioning && this.$element.hasClass("in")) { - var t = e.Event("hide.bs.collapse"); - if (this.$element.trigger(t), !t.isDefaultPrevented()) { - var n = this.dimension(); - this.$element[n](this.$element[n]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"), + var n = e.Event("hide.bs.collapse"); + if (this.$element.trigger(n), !n.isDefaultPrevented()) { + var t = this.dimension(); + this.$element[t](this.$element[t]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"), this.transitioning = 1; var o = function() { this.transitioning = 0, this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse"); }; - return e.support.transition ? (this.$element[n](0).one(e.support.transition.end, e.proxy(o, this)).emulateTransitionEnd(350), + return e.support.transition ? (this.$element[t](0).one(e.support.transition.end, e.proxy(o, this)).emulateTransitionEnd(350), void 0) : o.call(this); } } - }, t.prototype.toggle = function() { + }, n.prototype.toggle = function() { this[this.$element.hasClass("in") ? "hide" : "show"](); }; - var n = e.fn.collapse; - e.fn.collapse = function(n) { + var t = e.fn.collapse; + e.fn.collapse = function(t) { return this.each(function() { - var o = e(this), i = o.data("bs.collapse"), r = e.extend({}, t.DEFAULTS, o.data(), "object" == typeof n && n); - i || o.data("bs.collapse", i = new t(this, r)), "string" == typeof n && i[n](); + var o = e(this), i = o.data("bs.collapse"), r = e.extend({}, n.DEFAULTS, o.data(), "object" == typeof t && t); + i || o.data("bs.collapse", i = new n(this, r)), "string" == typeof t && i[t](); }); - }, e.fn.collapse.Constructor = t, e.fn.collapse.noConflict = function() { - return e.fn.collapse = n, this; - }, e(document).on("click.bs.collapse.data-api", "[data-toggle=collapse]", function(t) { - var n, o = e(this), i = o.attr("data-target") || t.preventDefault() || (n = o.attr("href")) && n.replace(/.*(?=#[^\s]+$)/, ""), r = e(i), a = r.data("bs.collapse"), s = a ? "toggle" : o.data(), l = o.attr("data-parent"), c = l && e(l); + }, e.fn.collapse.Constructor = n, e.fn.collapse.noConflict = function() { + return e.fn.collapse = t, this; + }, e(document).on("click.bs.collapse.data-api", "[data-toggle=collapse]", function(n) { + var t, o = e(this), i = o.attr("data-target") || n.preventDefault() || (t = o.attr("href")) && t.replace(/.*(?=#[^\s]+$)/, ""), r = e(i), a = r.data("bs.collapse"), s = a ? "toggle" : o.data(), l = o.attr("data-parent"), c = l && e(l); a && a.transitioning || (c && c.find("[data-toggle=collapse][data-parent=" + l + "]").not(o).addClass("collapsed"), o[r.hasClass("in") ? "addClass" : "removeClass"]("collapsed")), r.collapse(s); }); }(window.jQuery), +function(e) { - function t() { - e(o).remove(), e(i).each(function(t) { - var o = n(e(this)); - o.hasClass("open") && (o.trigger(t = e.Event("hide.bs.dropdown")), t.isDefaultPrevented() || o.removeClass("open").trigger("hidden.bs.dropdown")); + function n() { + e(o).remove(), e(i).each(function(n) { + var o = t(e(this)); + o.hasClass("open") && (o.trigger(n = e.Event("hide.bs.dropdown")), n.isDefaultPrevented() || o.removeClass("open").trigger("hidden.bs.dropdown")); }); } - function n(t) { - var n = t.attr("data-target"); - n || (n = t.attr("href"), n = n && /#/.test(n) && n.replace(/.*(?=#[^\s]*$)/, "")); - var o = n && e(n); - return o && o.length ? o : t.parent(); + function t(n) { + var t = n.attr("data-target"); + t || (t = n.attr("href"), t = t && /#/.test(t) && t.replace(/.*(?=#[^\s]*$)/, "")); + var o = t && e(t); + return o && o.length ? o : n.parent(); } - var o = ".dropdown-backdrop", i = "[data-toggle=dropdown]", r = function(t) { - e(t).on("click.bs.dropdown", this.toggle); + var o = ".dropdown-backdrop", i = "[data-toggle=dropdown]", r = function(n) { + e(n).on("click.bs.dropdown", this.toggle); }; r.prototype.toggle = function(o) { var i = e(this); if (!i.is(".disabled, :disabled")) { - var r = n(i), a = r.hasClass("open"); - if (t(), !a) { - if ("ontouchstart" in document.documentElement && e('').insertAfter(e(this)).on("click", t), + var r = t(i), a = r.hasClass("open"); + if (n(), !a) { + if ("ontouchstart" in document.documentElement && e('').insertAfter(e(this)).on("click", n), r.trigger(o = e.Event("show.bs.dropdown")), o.isDefaultPrevented()) return; r.toggleClass("open").trigger("shown.bs.dropdown"); } return i.focus(), !1; } - }, r.prototype.keydown = function(t) { - if (/(38|40|27)/.test(t.keyCode)) { + }, r.prototype.keydown = function(n) { + if (/(38|40|27)/.test(n.keyCode)) { var o = e(this); - if (t.preventDefault(), t.stopPropagation(), !o.is(".disabled, :disabled")) { - var r = n(o), a = r.hasClass("open"); - if (!a || a && 27 == t.keyCode) return 27 == t.which && r.find(i).focus(), o.click(); + if (n.preventDefault(), n.stopPropagation(), !o.is(".disabled, :disabled")) { + var r = t(o), a = r.hasClass("open"); + if (!a || a && 27 == n.keyCode) return 27 == n.which && r.find(i).focus(), o.click(); var s = e("[role=menu] li:not(.divider):visible a", r); if (s.length) { var l = s.index(s.filter(":focus")); - 38 == t.keyCode && l > 0 && l--, 40 == t.keyCode && l < s.length - 1 && l++, ~l || (l = 0), + 38 == n.keyCode && l > 0 && l--, 40 == n.keyCode && l < s.length - 1 && l++, ~l || (l = 0), s.eq(l).focus(); } } } }; var a = e.fn.dropdown; - e.fn.dropdown = function(t) { + e.fn.dropdown = function(n) { return this.each(function() { - var n = e(this), o = n.data("dropdown"); - o || n.data("dropdown", o = new r(this)), "string" == typeof t && o[t].call(n); + var t = e(this), o = t.data("dropdown"); + o || t.data("dropdown", o = new r(this)), "string" == typeof n && o[n].call(t); }); }, e.fn.dropdown.Constructor = r, e.fn.dropdown.noConflict = function() { return e.fn.dropdown = a, this; - }, e(document).on("click.bs.dropdown.data-api", t).on("click.bs.dropdown.data-api", ".dropdown form", function(e) { + }, e(document).on("click.bs.dropdown.data-api", n).on("click.bs.dropdown.data-api", ".dropdown form", function(e) { e.stopPropagation(); }).on("click.bs.dropdown.data-api", i, r.prototype.toggle).on("keydown.bs.dropdown.data-api", i + ", [role=menu]", r.prototype.keydown); }(window.jQuery), +function(e) { - var t = function(t, n) { - this.options = n, this.$element = e(t).on("click.dismiss.modal", '[data-dismiss="modal"]', e.proxy(this.hide, this)), + var n = function(n, t) { + this.options = t, this.$element = e(n).on("click.dismiss.modal", '[data-dismiss="modal"]', e.proxy(this.hide, this)), this.$backdrop = this.isShown = null, this.options.remote && this.$element.find(".modal-body").load(this.options.remote); }; - t.DEFAULTS = { + n.DEFAULTS = { backdrop: !0, keyboard: !0, show: !0 - }, t.prototype.toggle = function() { + }, n.prototype.toggle = function() { return this[this.isShown ? "hide" : "show"](); - }, t.prototype.show = function() { - var t = this, n = e.Event("show.bs.modal"); - this.$element.trigger(n), this.isShown || n.isDefaultPrevented() || (this.isShown = !0, + }, n.prototype.show = function() { + var n = this, t = e.Event("show.bs.modal"); + this.$element.trigger(t), this.isShown || t.isDefaultPrevented() || (this.isShown = !0, this.escape(), this.backdrop(function() { - var n = e.support.transition && t.$element.hasClass("fade"); - t.$element.parent().length || t.$element.appendTo(document.body), t.$element.show(), - n && t.$element[0].offsetWidth, t.$element.addClass("in").attr("aria-hidden", !1), - t.enforceFocus(), n ? t.$element.one(e.support.transition.end, function() { - t.$element.focus().trigger("shown.bs.modal"); - }).emulateTransitionEnd(300) : t.$element.focus().trigger("shown.bs.modal"); + var t = e.support.transition && n.$element.hasClass("fade"); + n.$element.parent().length || n.$element.appendTo(document.body), n.$element.show(), + t && n.$element[0].offsetWidth, n.$element.addClass("in").attr("aria-hidden", !1), + n.enforceFocus(), t ? n.$element.one(e.support.transition.end, function() { + n.$element.focus().trigger("shown.bs.modal"); + }).emulateTransitionEnd(300) : n.$element.focus().trigger("shown.bs.modal"); })); - }, t.prototype.hide = function(t) { - t && t.preventDefault(), t = e.Event("hide.bs.modal"), this.$element.trigger(t), - this.isShown && !t.isDefaultPrevented() && (this.isShown = !1, this.escape(), e(document).off("focusin.bs.modal"), + }, n.prototype.hide = function(n) { + n && n.preventDefault(), n = e.Event("hide.bs.modal"), this.$element.trigger(n), + this.isShown && !n.isDefaultPrevented() && (this.isShown = !1, this.escape(), e(document).off("focusin.bs.modal"), this.$element.removeClass("in").attr("aria-hidden", !0), e.support.transition && this.$element.hasClass("fade") ? this.$element.one(e.support.transition.end, e.proxy(this.hideModal, this)).emulateTransitionEnd(300) : this.hideModal()); - }, t.prototype.enforceFocus = function() { + }, n.prototype.enforceFocus = function() { e(document).off("focusin.bs.modal").on("focusin.bs.modal", e.proxy(function(e) { this.$element[0] === e.target || this.$element.has(e.target).length || this.$element.focus(); }, this)); - }, t.prototype.escape = function() { + }, n.prototype.escape = function() { this.isShown && this.options.keyboard ? this.$element.on("keyup.dismiss.bs.modal", e.proxy(function(e) { 27 == e.which && this.hide(); }, this)) : this.isShown || this.$element.off("keyup.dismiss.bs.modal"); - }, t.prototype.hideModal = function() { + }, n.prototype.hideModal = function() { var e = this; this.$element.hide(), this.backdrop(function() { e.removeBackdrop(), e.$element.trigger("hidden.bs.modal"); }); - }, t.prototype.removeBackdrop = function() { + }, n.prototype.removeBackdrop = function() { this.$backdrop && this.$backdrop.remove(), this.$backdrop = null; - }, t.prototype.backdrop = function(t) { - var n = this.$element.hasClass("fade") ? "fade" : ""; + }, n.prototype.backdrop = function(n) { + var t = this.$element.hasClass("fade") ? "fade" : ""; if (this.isShown && this.options.backdrop) { - var o = e.support.transition && n; - if (this.$backdrop = e('').appendTo(document.body), + var o = e.support.transition && t; + if (this.$backdrop = e('').appendTo(document.body), this.$element.on("click", e.proxy(function(e) { e.target === e.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus.call(this.$element[0]) : this.hide.call(this)); - }, this)), o && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !t) return; - o ? this.$backdrop.one(e.support.transition.end, t).emulateTransitionEnd(150) : t(); - } else !this.isShown && this.$backdrop ? (this.$backdrop.removeClass("in"), e.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one(e.support.transition.end, t).emulateTransitionEnd(150) : t()) : t && t(); + }, this)), o && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !n) return; + o ? this.$backdrop.one(e.support.transition.end, n).emulateTransitionEnd(150) : n(); + } else !this.isShown && this.$backdrop ? (this.$backdrop.removeClass("in"), e.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one(e.support.transition.end, n).emulateTransitionEnd(150) : n()) : n && n(); }; - var n = e.fn.modal; - e.fn.modal = function(n) { + var t = e.fn.modal; + e.fn.modal = function(t) { return this.each(function() { - var o = e(this), i = o.data("bs.modal"), r = e.extend({}, t.DEFAULTS, o.data(), "object" == typeof n && n); - i || o.data("bs.modal", i = new t(this, r)), "string" == typeof n ? i[n]() : r.show && i.show(); + var o = e(this), i = o.data("bs.modal"), r = e.extend({}, n.DEFAULTS, o.data(), "object" == typeof t && t); + i || o.data("bs.modal", i = new n(this, r)), "string" == typeof t ? i[t]() : r.show && i.show(); }); - }, e.fn.modal.Constructor = t, e.fn.modal.noConflict = function() { - return e.fn.modal = n, this; - }, e(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function(t) { - var n = e(this), o = n.attr("href"), i = e(n.attr("data-target") || o && o.replace(/.*(?=#[^\s]+$)/, "")), r = i.data("modal") ? "toggle" : e.extend({ + }, e.fn.modal.Constructor = n, e.fn.modal.noConflict = function() { + return e.fn.modal = t, this; + }, e(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function(n) { + var t = e(this), o = t.attr("href"), i = e(t.attr("data-target") || o && o.replace(/.*(?=#[^\s]+$)/, "")), r = i.data("modal") ? "toggle" : e.extend({ remote: !/#/.test(o) && o - }, i.data(), n.data()); - t.preventDefault(), i.modal(r).one("hide", function() { - n.is(":visible") && n.focus(); + }, i.data(), t.data()); + n.preventDefault(), i.modal(r).one("hide", function() { + t.is(":visible") && t.focus(); }); }); var o = e(document.body).on("shown.bs.modal", ".modal", function() { @@ -8588,11 +8563,11 @@ function(e) { o.removeClass("modal-open"); }); }(window.jQuery), +function(e) { - var t = function(e, t) { + var n = function(e, n) { this.type = this.options = this.enabled = this.timeout = this.hoverState = this.$element = null, - this.init("tooltip", e, t); + this.init("tooltip", e, n); }; - t.DEFAULTS = { + n.DEFAULTS = { animation: !0, placement: "top", selector: !1, @@ -8602,8 +8577,8 @@ function(e) { delay: 0, html: !1, container: !1 - }, t.prototype.init = function(t, n, o) { - this.enabled = !0, this.type = t, this.$element = e(n), this.options = this.getOptions(o); + }, n.prototype.init = function(n, t, o) { + this.enabled = !0, this.type = n, this.$element = e(t), this.options = this.getOptions(o); for (var i = this.options.trigger.split(" "), r = i.length; r--; ) { var a = i[r]; if ("click" == a) this.$element.on("click." + this.type, this.options.selector, e.proxy(this.toggle, this)); else if ("manual" != a) { @@ -8616,46 +8591,46 @@ function(e) { trigger: "manual", selector: "" }) : this.fixTitle(); - }, t.prototype.getDefaults = function() { - return t.DEFAULTS; - }, t.prototype.getOptions = function(t) { - return t = e.extend({}, this.getDefaults(), this.$element.data(), t), t.delay && "number" == typeof t.delay && (t.delay = { - show: t.delay, - hide: t.delay - }), t; - }, t.prototype.enter = function(t) { - var n = this.getDefaults(), o = {}; - this._options && e.each(this._options, function(e, t) { - n[e] != t && (o[e] = t); + }, n.prototype.getDefaults = function() { + return n.DEFAULTS; + }, n.prototype.getOptions = function(n) { + return n = e.extend({}, this.getDefaults(), this.$element.data(), n), n.delay && "number" == typeof n.delay && (n.delay = { + show: n.delay, + hide: n.delay + }), n; + }, n.prototype.enter = function(n) { + var t = this.getDefaults(), o = {}; + this._options && e.each(this._options, function(e, n) { + t[e] != n && (o[e] = n); }); - var i = t instanceof this.constructor ? t : e(t.currentTarget)[this.type](o).data("bs." + this.type); + var i = n instanceof this.constructor ? n : e(n.currentTarget)[this.type](o).data("bs." + this.type); return clearTimeout(i.timeout), i.options.delay && i.options.delay.show ? (i.hoverState = "in", i.timeout = setTimeout(function() { "in" == i.hoverState && i.show(); }, i.options.delay.show), void 0) : i.show(); - }, t.prototype.leave = function(t) { - var n = t instanceof this.constructor ? t : e(t.currentTarget)[this.type](this._options).data("bs." + this.type); - return clearTimeout(n.timeout), n.options.delay && n.options.delay.hide ? (n.hoverState = "out", - n.timeout = setTimeout(function() { - "out" == n.hoverState && n.hide(); - }, n.options.delay.hide), void 0) : n.hide(); - }, t.prototype.show = function() { - var t = e.Event("show.bs." + this.type); + }, n.prototype.leave = function(n) { + var t = n instanceof this.constructor ? n : e(n.currentTarget)[this.type](this._options).data("bs." + this.type); + return clearTimeout(t.timeout), t.options.delay && t.options.delay.hide ? (t.hoverState = "out", + t.timeout = setTimeout(function() { + "out" == t.hoverState && t.hide(); + }, t.options.delay.hide), void 0) : t.hide(); + }, n.prototype.show = function() { + var n = e.Event("show.bs." + this.type); if (this.hasContent() && this.enabled) { - if (this.$element.trigger(t), t.isDefaultPrevented()) return; - var n = this.tip(); - this.setContent(), this.options.animation && n.addClass("fade"); - var o = "function" == typeof this.options.placement ? this.options.placement.call(this, n[0], this.$element[0]) : this.options.placement, i = /\s?auto?\s?/i, r = i.test(o); - r && (o = o.replace(i, "") || "top"), n.detach().css({ + if (this.$element.trigger(n), n.isDefaultPrevented()) return; + var t = this.tip(); + this.setContent(), this.options.animation && t.addClass("fade"); + var o = "function" == typeof this.options.placement ? this.options.placement.call(this, t[0], this.$element[0]) : this.options.placement, i = /\s?auto?\s?/i, r = i.test(o); + r && (o = o.replace(i, "") || "top"), t.detach().css({ top: 0, left: 0, display: "block" - }).addClass(o), this.options.container ? n.appendTo(this.options.container) : n.insertAfter(this.$element); - var a = this.getPosition(), s = n[0].offsetWidth, l = n[0].offsetHeight; + }).addClass(o), this.options.container ? t.appendTo(this.options.container) : t.insertAfter(this.$element); + var a = this.getPosition(), s = t[0].offsetWidth, l = t[0].offsetHeight; if (r) { - var c = this.$element.parent(), u = o, d = document.documentElement.scrollTop || document.body.scrollTop, p = "body" == this.options.container ? window.innerWidth : c.outerWidth(), f = "body" == this.options.container ? window.innerHeight : c.outerHeight(), h = "body" == this.options.container ? 0 : c.offset().left; - o = "bottom" == o && a.top + a.height + l - d > f ? "top" : "top" == o && a.top - d - l < 0 ? "bottom" : "right" == o && a.right + s > p ? "left" : "left" == o && a.left - s < h ? "right" : o, - n.removeClass(u).addClass(o); + var c = this.$element.parent(), d = o, u = document.documentElement.scrollTop || document.body.scrollTop, p = "body" == this.options.container ? window.innerWidth : c.outerWidth(), f = "body" == this.options.container ? window.innerHeight : c.outerHeight(), h = "body" == this.options.container ? 0 : c.offset().left; + o = "bottom" == o && a.top + a.height + l - u > f ? "top" : "top" == o && a.top - u - l < 0 ? "bottom" : "right" == o && a.right + s > p ? "left" : "left" == o && a.left - s < h ? "right" : o, + t.removeClass(d).addClass(o); } var g = "bottom" == o ? { top: a.top + a.height, @@ -8672,251 +8647,251 @@ function(e) { }; this.applyPlacement(g, o), this.$element.trigger("shown.bs." + this.type); } - }, t.prototype.applyPlacement = function(e, t) { - var n, o = this.tip(), i = o[0].offsetWidth, r = o[0].offsetHeight; + }, n.prototype.applyPlacement = function(e, n) { + var t, o = this.tip(), i = o[0].offsetWidth, r = o[0].offsetHeight; e.top = e.top + parseInt(o.css("margin-top"), 10), e.left = e.left + parseInt(o.css("margin-left"), 10), o.offset(e).addClass("in"); var a = o[0].offsetWidth, s = o[0].offsetHeight; - if ("top" == t && s != r && (n = !0, e.top = e.top + r - s), "bottom" == t || "top" == t) { + if ("top" == n && s != r && (t = !0, e.top = e.top + r - s), "bottom" == n || "top" == n) { var l = 0; e.left < 0 && (l = -2 * e.left, e.left = 0, o.offset(e), a = o[0].offsetWidth, s = o[0].offsetHeight), this.replaceArrow(l - i + a, a, "left"); } else this.replaceArrow(s - r, s, "top"); - n && o.offset(e); - }, t.prototype.replaceArrow = function(e, t, n) { - this.arrow().css(n, e ? 50 * (1 - e / t) + "%" : ""); - }, t.prototype.setContent = function() { - var e = this.tip(), t = this.getTitle(); - e.find(".tooltip-inner")[this.options.html ? "html" : "text"](t), e.removeClass("fade in top bottom left right"); - }, t.prototype.hide = function() { - var t = this.tip(), n = e.Event("hide.bs." + this.type); - return this.$element.trigger(n), n.isDefaultPrevented() ? void 0 : (t.removeClass("in"), - e.support.transition && this.$tip.hasClass("fade") ? t.one(e.support.transition.end, t.detach).emulateTransitionEnd(150) : t.detach(), + t && o.offset(e); + }, n.prototype.replaceArrow = function(e, n, t) { + this.arrow().css(t, e ? 50 * (1 - e / n) + "%" : ""); + }, n.prototype.setContent = function() { + var e = this.tip(), n = this.getTitle(); + e.find(".tooltip-inner")[this.options.html ? "html" : "text"](n), e.removeClass("fade in top bottom left right"); + }, n.prototype.hide = function() { + var n = this.tip(), t = e.Event("hide.bs." + this.type); + return this.$element.trigger(t), t.isDefaultPrevented() ? void 0 : (n.removeClass("in"), + e.support.transition && this.$tip.hasClass("fade") ? n.one(e.support.transition.end, n.detach).emulateTransitionEnd(150) : n.detach(), this.$element.trigger("hidden.bs." + this.type), this); - }, t.prototype.fixTitle = function() { + }, n.prototype.fixTitle = function() { var e = this.$element; (e.attr("title") || "string" != typeof e.attr("data-original-title")) && e.attr("data-original-title", e.attr("title") || "").attr("title", ""); - }, t.prototype.hasContent = function() { + }, n.prototype.hasContent = function() { return this.getTitle(); - }, t.prototype.getPosition = function() { - var t = this.$element[0]; - return e.extend({}, "function" == typeof t.getBoundingClientRect ? t.getBoundingClientRect() : { - width: t.offsetWidth, - height: t.offsetHeight + }, n.prototype.getPosition = function() { + var n = this.$element[0]; + return e.extend({}, "function" == typeof n.getBoundingClientRect ? n.getBoundingClientRect() : { + width: n.offsetWidth, + height: n.offsetHeight }, this.$element.offset()); - }, t.prototype.getTitle = function() { - var e, t = this.$element, n = this.options; - return e = t.attr("data-original-title") || ("function" == typeof n.title ? n.title.call(t[0]) : n.title); - }, t.prototype.tip = function() { + }, n.prototype.getTitle = function() { + var e, n = this.$element, t = this.options; + return e = n.attr("data-original-title") || ("function" == typeof t.title ? t.title.call(n[0]) : t.title); + }, n.prototype.tip = function() { return this.$tip = this.$tip || e(this.options.template); - }, t.prototype.arrow = function() { + }, n.prototype.arrow = function() { return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow"); - }, t.prototype.validate = function() { + }, n.prototype.validate = function() { this.$element[0].parentNode || (this.hide(), this.$element = null, this.options = null); - }, t.prototype.enable = function() { + }, n.prototype.enable = function() { this.enabled = !0; - }, t.prototype.disable = function() { + }, n.prototype.disable = function() { this.enabled = !1; - }, t.prototype.toggleEnabled = function() { + }, n.prototype.toggleEnabled = function() { this.enabled = !this.enabled; - }, t.prototype.toggle = function(t) { - var n = t ? e(t.currentTarget)[this.type](this._options).data("bs." + this.type) : this; - n.tip().hasClass("in") ? n.leave(n) : n.enter(n); - }, t.prototype.destroy = function() { + }, n.prototype.toggle = function(n) { + var t = n ? e(n.currentTarget)[this.type](this._options).data("bs." + this.type) : this; + t.tip().hasClass("in") ? t.leave(t) : t.enter(t); + }, n.prototype.destroy = function() { this.hide().$element.off("." + this.type).removeData("bs." + this.type); }; - var n = e.fn.tooltip; - e.fn.tooltip = function(n) { + var t = e.fn.tooltip; + e.fn.tooltip = function(t) { return this.each(function() { - var o = e(this), i = o.data("bs.tooltip"), r = "object" == typeof n && n; - i || o.data("bs.tooltip", i = new t(this, r)), "string" == typeof n && i[n](); + var o = e(this), i = o.data("bs.tooltip"), r = "object" == typeof t && t; + i || o.data("bs.tooltip", i = new n(this, r)), "string" == typeof t && i[t](); }); - }, e.fn.tooltip.Constructor = t, e.fn.tooltip.noConflict = function() { - return e.fn.tooltip = n, this; + }, e.fn.tooltip.Constructor = n, e.fn.tooltip.noConflict = function() { + return e.fn.tooltip = t, this; }; }(window.jQuery), +function(e) { - var t = function(e, t) { - this.init("popover", e, t); + var n = function(e, n) { + this.init("popover", e, n); }; if (!e.fn.tooltip) throw new Error("Popover requires tooltip.js"); - t.DEFAULTS = e.extend({}, e.fn.tooltip.Constructor.DEFAULTS, { + n.DEFAULTS = e.extend({}, e.fn.tooltip.Constructor.DEFAULTS, { placement: "right", trigger: "click", content: "", template: 'Please provide the image URL and an optional title:
\nPlease select your Markdown files here:
\n\n \n
\nOr drag and drop your Markdown files here:
\nDrop\n files here
\nThis will save the current\n document to your Google Drive account and keep it synchronized.\n
\n Please specify a folder ID (optional):\n
\n\n NOTE:\n\n\n
\n- If no folder ID is supplied, the file will be created in\n your root folder.
\n- You can move or rename the file afterwards within Google\n Drive.
\n
\n NOTE:\n\n\n
\n- Real time collaborative documents can\'t be open outside\n StackEdit.
\n- Real time collaborative documents can\'t have multiple\n synchronized locations.
\n
This will save the current\n document to your Dropbox account and keep it synchronized.\n
\n Please specify a file path for "":\n
\n\n NOTE:\n\n\n
\n- Dropbox file path does not depend on document title.
\n- The title of your document will not be synchronized.
\n- Destination folder must exist.
\n- Any existing file at this location will be overwritten.
\n
\n "" is synchronized with the\n following location(s):\n
\n \n\n NOTE: Removing a synchronized location will not delete any\n file.\n\n
\n "" is not synchronized yet.\n\n
Add a synchronized location manually:
\n \n \n\n NOTE: This will first upload the document and overwrite the\n existing file on the server.\n\n
\n "" is published on the following\n location(s):\n
\n \n\n\n\n "" is not published yet.\n NOTE: You can add publications using "Publish on" sub-menu.\n
\n
StackEdit has stopped because another instance was running in\n the same browser.
\nIf you want to reopen\n StackEdit, click on "Reload".\n
StackEdit has stopped because another instance was running in\n the same browser.
\nIf you want to reopen\n StackEdit, click on "Reload".\n
")[0], h = e.each; f.style.cssText = "background-color:rgba(1,1,1,.5)", p.rgba = f.style.backgroundColor.indexOf("rgba") > -1, - h(u, function(e, t) { - t.cache = "_" + e, t.props.alpha = { + h(d, function(e, n) { + n.cache = "_" + e, n.props.alpha = { idx: 3, type: "percent", def: 1 }; }), c.fn = e.extend(c.prototype, { parse: function(i, a, s, l) { - if (i === t) return this._rgba = [ null, null, null, null ], this; - (i.jquery || i.nodeType) && (i = e(i).css(a), a = t); - var d = this, p = e.type(i), f = this._rgba = []; - return a !== t && (i = [ i, a, s, l ], p = "array"), "string" === p ? this.parse(o(i) || r._default) : "array" === p ? (h(u.rgba.props, function(e, t) { - f[t.idx] = n(i[t.idx], t); - }), this) : "object" === p ? (i instanceof c ? h(u, function(e, t) { - i[t.cache] && (d[t.cache] = i[t.cache].slice()); - }) : h(u, function(t, o) { + if (i === n) return this._rgba = [ null, null, null, null ], this; + (i.jquery || i.nodeType) && (i = e(i).css(a), a = n); + var u = this, p = e.type(i), f = this._rgba = []; + return a !== n && (i = [ i, a, s, l ], p = "array"), "string" === p ? this.parse(o(i) || r._default) : "array" === p ? (h(d.rgba.props, function(e, n) { + f[n.idx] = t(i[n.idx], n); + }), this) : "object" === p ? (i instanceof c ? h(d, function(e, n) { + i[n.cache] && (u[n.cache] = i[n.cache].slice()); + }) : h(d, function(n, o) { var r = o.cache; - h(o.props, function(e, t) { - if (!d[r] && o.to) { + h(o.props, function(e, n) { + if (!u[r] && o.to) { if ("alpha" === e || null == i[e]) return; - d[r] = o.to(d._rgba); + u[r] = o.to(u._rgba); } - d[r][t.idx] = n(i[e], t, !0); - }), d[r] && e.inArray(null, d[r].slice(0, 3)) < 0 && (d[r][3] = 1, o.from && (d._rgba = o.from(d[r]))); + u[r][n.idx] = t(i[e], n, !0); + }), u[r] && e.inArray(null, u[r].slice(0, 3)) < 0 && (u[r][3] = 1, o.from && (u._rgba = o.from(u[r]))); }), this) : void 0; }, is: function(e) { - var t = c(e), n = !0, o = this; - return h(u, function(e, i) { - var r, a = t[i.cache]; - return a && (r = o[i.cache] || i.to && i.to(o._rgba) || [], h(i.props, function(e, t) { - return null != a[t.idx] ? n = a[t.idx] === r[t.idx] : void 0; - })), n; - }), n; + var n = c(e), t = !0, o = this; + return h(d, function(e, i) { + var r, a = n[i.cache]; + return a && (r = o[i.cache] || i.to && i.to(o._rgba) || [], h(i.props, function(e, n) { + return null != a[n.idx] ? t = a[n.idx] === r[n.idx] : void 0; + })), t; + }), t; }, _space: function() { - var e = [], t = this; - return h(u, function(n, o) { - t[o.cache] && e.push(n); + var e = [], n = this; + return h(d, function(t, o) { + n[o.cache] && e.push(t); }), e.pop(); }, - transition: function(e, t) { - var o = c(e), i = o._space(), r = u[i], a = 0 === this.alpha() ? c("transparent") : this, s = a[r.cache] || r.to(a._rgba), l = s.slice(); + transition: function(e, n) { + var o = c(e), i = o._space(), r = d[i], a = 0 === this.alpha() ? c("transparent") : this, s = a[r.cache] || r.to(a._rgba), l = s.slice(); return o = o[r.cache], h(r.props, function(e, i) { - var r = i.idx, a = s[r], c = o[r], u = d[i.type] || {}; - null !== c && (null === a ? l[r] = c : (u.mod && (c - a > u.mod / 2 ? a += u.mod : a - c > u.mod / 2 && (a -= u.mod)), - l[r] = n((c - a) * t + a, i))); + var r = i.idx, a = s[r], c = o[r], d = u[i.type] || {}; + null !== c && (null === a ? l[r] = c : (d.mod && (c - a > d.mod / 2 ? a += d.mod : a - c > d.mod / 2 && (a -= d.mod)), + l[r] = t((c - a) * n + a, i))); }), this[i](l); }, - blend: function(t) { + blend: function(n) { if (1 === this._rgba[3]) return this; - var n = this._rgba.slice(), o = n.pop(), i = c(t)._rgba; - return c(e.map(n, function(e, t) { - return (1 - o) * i[t] + o * e; + var t = this._rgba.slice(), o = t.pop(), i = c(n)._rgba; + return c(e.map(t, function(e, n) { + return (1 - o) * i[n] + o * e; })); }, toRgbaString: function() { - var t = "rgba(", n = e.map(this._rgba, function(e, t) { - return null == e ? t > 2 ? 1 : 0 : e; + var n = "rgba(", t = e.map(this._rgba, function(e, n) { + return null == e ? n > 2 ? 1 : 0 : e; }); - return 1 === n[3] && (n.pop(), t = "rgb("), t + n.join() + ")"; + return 1 === t[3] && (t.pop(), n = "rgb("), n + t.join() + ")"; }, toHslaString: function() { - var t = "hsla(", n = e.map(this.hsla(), function(e, t) { - return null == e && (e = t > 2 ? 1 : 0), t && 3 > t && (e = Math.round(100 * e) + "%"), + var n = "hsla(", t = e.map(this.hsla(), function(e, n) { + return null == e && (e = n > 2 ? 1 : 0), n && 3 > n && (e = Math.round(100 * e) + "%"), e; }); - return 1 === n[3] && (n.pop(), t = "hsl("), t + n.join() + ")"; + return 1 === t[3] && (t.pop(), n = "hsl("), n + t.join() + ")"; }, - toHexString: function(t) { - var n = this._rgba.slice(), o = n.pop(); - return t && n.push(~~(255 * o)), "#" + e.map(n, function(e) { + toHexString: function(n) { + var t = this._rgba.slice(), o = t.pop(); + return n && t.push(~~(255 * o)), "#" + e.map(t, function(e) { return e = (e || 0).toString(16), 1 === e.length ? "0" + e : e; }).join(""); }, toString: function() { return 0 === this._rgba[3] ? "transparent" : this.toRgbaString(); } - }), c.fn.parse.prototype = c.fn, u.hsla.to = function(e) { + }), c.fn.parse.prototype = c.fn, d.hsla.to = function(e) { if (null == e[0] || null == e[1] || null == e[2]) return [ null, null, null, e[3] ]; - var t, n, o = e[0] / 255, i = e[1] / 255, r = e[2] / 255, a = e[3], s = Math.max(o, i, r), l = Math.min(o, i, r), c = s - l, u = s + l, d = .5 * u; - return t = l === s ? 0 : o === s ? 60 * (i - r) / c + 360 : i === s ? 60 * (r - o) / c + 120 : 60 * (o - i) / c + 240, - n = 0 === c ? 0 : .5 >= d ? c / u : c / (2 - u), [ Math.round(t) % 360, n, d, null == a ? 1 : a ]; - }, u.hsla.from = function(e) { + var n, t, o = e[0] / 255, i = e[1] / 255, r = e[2] / 255, a = e[3], s = Math.max(o, i, r), l = Math.min(o, i, r), c = s - l, d = s + l, u = .5 * d; + return n = l === s ? 0 : o === s ? 60 * (i - r) / c + 360 : i === s ? 60 * (r - o) / c + 120 : 60 * (o - i) / c + 240, + t = 0 === c ? 0 : .5 >= u ? c / d : c / (2 - d), [ Math.round(n) % 360, t, u, null == a ? 1 : a ]; + }, d.hsla.from = function(e) { if (null == e[0] || null == e[1] || null == e[2]) return [ null, null, null, e[3] ]; - var t = e[0] / 360, n = e[1], o = e[2], r = e[3], a = .5 >= o ? o * (1 + n) : o + n - o * n, s = 2 * o - a; - return [ Math.round(255 * i(s, a, t + 1 / 3)), Math.round(255 * i(s, a, t)), Math.round(255 * i(s, a, t - 1 / 3)), r ]; - }, h(u, function(o, i) { - var r = i.props, a = i.cache, l = i.to, u = i.from; + var n = e[0] / 360, t = e[1], o = e[2], r = e[3], a = .5 >= o ? o * (1 + t) : o + t - o * t, s = 2 * o - a; + return [ Math.round(255 * i(s, a, n + 1 / 3)), Math.round(255 * i(s, a, n)), Math.round(255 * i(s, a, n - 1 / 3)), r ]; + }, h(d, function(o, i) { + var r = i.props, a = i.cache, l = i.to, d = i.from; c.fn[o] = function(o) { - if (l && !this[a] && (this[a] = l(this._rgba)), o === t) return this[a].slice(); - var i, s = e.type(o), d = "array" === s || "object" === s ? o : arguments, p = this[a].slice(); - return h(r, function(e, t) { - var o = d["object" === s ? e : t.idx]; - null == o && (o = p[t.idx]), p[t.idx] = n(o, t); - }), u ? (i = c(u(p)), i[a] = p, i) : c(p); - }, h(r, function(t, n) { - c.fn[t] || (c.fn[t] = function(i) { - var r, a = e.type(i), l = "alpha" === t ? this._hsla ? "hsla" : "rgba" : o, c = this[l](), u = c[n.idx]; - return "undefined" === a ? u : ("function" === a && (i = i.call(this, u), a = e.type(i)), - null == i && n.empty ? this : ("string" === a && (r = s.exec(i), r && (i = u + parseFloat(r[2]) * ("+" === r[1] ? 1 : -1))), - c[n.idx] = i, this[l](c))); + if (l && !this[a] && (this[a] = l(this._rgba)), o === n) return this[a].slice(); + var i, s = e.type(o), u = "array" === s || "object" === s ? o : arguments, p = this[a].slice(); + return h(r, function(e, n) { + var o = u["object" === s ? e : n.idx]; + null == o && (o = p[n.idx]), p[n.idx] = t(o, n); + }), d ? (i = c(d(p)), i[a] = p, i) : c(p); + }, h(r, function(n, t) { + c.fn[n] || (c.fn[n] = function(i) { + var r, a = e.type(i), l = "alpha" === n ? this._hsla ? "hsla" : "rgba" : o, c = this[l](), d = c[t.idx]; + return "undefined" === a ? d : ("function" === a && (i = i.call(this, d), a = e.type(i)), + null == i && t.empty ? this : ("string" === a && (r = s.exec(i), r && (i = d + parseFloat(r[2]) * ("+" === r[1] ? 1 : -1))), + c[t.idx] = i, this[l](c))); }); }); - }), c.hook = function(t) { - var n = t.split(" "); - h(n, function(t, n) { - e.cssHooks[n] = { - set: function(t, i) { + }), c.hook = function(n) { + var t = n.split(" "); + h(t, function(n, t) { + e.cssHooks[t] = { + set: function(n, i) { var r, a, s = ""; if ("transparent" !== i && ("string" !== e.type(i) || (r = o(i)))) { if (i = c(r || i), !p.rgba && 1 !== i._rgba[3]) { - for (a = "backgroundColor" === n ? t.parentNode : t; ("" === s || "transparent" === s) && a && a.style; ) try { + for (a = "backgroundColor" === t ? n.parentNode : n; ("" === s || "transparent" === s) && a && a.style; ) try { s = e.css(a, "backgroundColor"), a = a.parentNode; } catch (l) {} i = i.blend(s && "transparent" !== s ? s : "_default"); @@ -10191,19 +10170,19 @@ k var t = e.onLoadSettings; i = i.toRgbaString(); } try { - t.style[n] = i; + n.style[t] = i; } catch (l) {} } - }, e.fx.step[n] = function(t) { - t.colorInit || (t.start = c(t.elem, n), t.end = c(t.end), t.colorInit = !0), e.cssHooks[n].set(t.elem, t.start.transition(t.end, t.pos)); + }, e.fx.step[t] = function(n) { + n.colorInit || (n.start = c(n.elem, t), n.end = c(n.end), n.colorInit = !0), e.cssHooks[t].set(n.elem, n.start.transition(n.end, n.pos)); }; }); }, c.hook(a), e.cssHooks.borderColor = { expand: function(e) { - var t = {}; - return h([ "Top", "Right", "Bottom", "Left" ], function(n, o) { - t["border" + o + "Color"] = e; - }), t; + var n = {}; + return h([ "Top", "Right", "Bottom", "Left" ], function(t, o) { + n["border" + o + "Color"] = e; + }), n; } }, r = e.Color.names = { aqua: "#00ffff", @@ -10226,14 +10205,14 @@ k var t = e.onLoadSettings; _default: "#ffffff" }; }(jQuery), function() { - function n(t) { - var n, o, i = t.ownerDocument.defaultView ? t.ownerDocument.defaultView.getComputedStyle(t, null) : t.currentStyle, r = {}; - if (i && i.length && i[0] && i[i[0]]) for (o = i.length; o--; ) n = i[o], "string" == typeof i[n] && (r[e.camelCase(n)] = i[n]); else for (n in i) "string" == typeof i[n] && (r[n] = i[n]); + function t(n) { + var t, o, i = n.ownerDocument.defaultView ? n.ownerDocument.defaultView.getComputedStyle(n, null) : n.currentStyle, r = {}; + if (i && i.length && i[0] && i[i[0]]) for (o = i.length; o--; ) t = i[o], "string" == typeof i[t] && (r[e.camelCase(t)] = i[t]); else for (t in i) "string" == typeof i[t] && (r[t] = i[t]); return r; } - function o(t, n) { + function o(n, t) { var o, i, a = {}; - for (o in n) i = n[o], t[o] !== i && (r[o] || (e.fx.step[o] || !isNaN(parseFloat(i))) && (a[o] = i)); + for (o in t) i = t[o], n[o] !== i && (r[o] || (e.fx.step[o] || !isNaN(parseFloat(i))) && (a[o] = i)); return a; } var i = [ "add", "remove", "toggle" ], r = { @@ -10247,121 +10226,121 @@ k var t = e.onLoadSettings; margin: 1, padding: 1 }; - e.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function(t, n) { - e.fx.step[n] = function(e) { - ("none" !== e.end && !e.setAttr || 1 === e.pos && !e.setAttr) && (jQuery.style(e.elem, n, e.end), + e.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function(n, t) { + e.fx.step[t] = function(e) { + ("none" !== e.end && !e.setAttr || 1 === e.pos && !e.setAttr) && (jQuery.style(e.elem, t, e.end), e.setAttr = !0); }; }), e.fn.addBack || (e.fn.addBack = function(e) { return this.add(null == e ? this.prevObject : this.prevObject.filter(e)); - }), e.effects.animateClass = function(t, r, a, s) { + }), e.effects.animateClass = function(n, r, a, s) { var l = e.speed(r, a, s); return this.queue(function() { var r, a = e(this), s = a.attr("class") || "", c = l.children ? a.find("*").addBack() : a; c = c.map(function() { - var t = e(this); + var n = e(this); return { - el: t, - start: n(this) + el: n, + start: t(this) }; }), r = function() { - e.each(i, function(e, n) { - t[n] && a[n + "Class"](t[n]); + e.each(i, function(e, t) { + n[t] && a[t + "Class"](n[t]); }); }, r(), c = c.map(function() { - return this.end = n(this.el[0]), this.diff = o(this.start, this.end), this; + return this.end = t(this.el[0]), this.diff = o(this.start, this.end), this; }), a.attr("class", s), c = c.map(function() { - var t = this, n = e.Deferred(), o = e.extend({}, l, { + var n = this, t = e.Deferred(), o = e.extend({}, l, { queue: !1, complete: function() { - n.resolve(t); + t.resolve(n); } }); - return this.el.animate(this.diff, o), n.promise(); + return this.el.animate(this.diff, o), t.promise(); }), e.when.apply(e, c.get()).done(function() { r(), e.each(arguments, function() { - var t = this.el; + var n = this.el; e.each(this.diff, function(e) { - t.css(e, ""); + n.css(e, ""); }); }), l.complete.call(a[0]); }); }); }, e.fn.extend({ - addClass: function(t) { - return function(n, o, i, r) { + addClass: function(n) { + return function(t, o, i, r) { return o ? e.effects.animateClass.call(this, { - add: n - }, o, i, r) : t.apply(this, arguments); + add: t + }, o, i, r) : n.apply(this, arguments); }; }(e.fn.addClass), - removeClass: function(t) { - return function(n, o, i, r) { + removeClass: function(n) { + return function(t, o, i, r) { return arguments.length > 1 ? e.effects.animateClass.call(this, { - remove: n - }, o, i, r) : t.apply(this, arguments); + remove: t + }, o, i, r) : n.apply(this, arguments); }; }(e.fn.removeClass), - toggleClass: function(n) { + toggleClass: function(t) { return function(o, i, r, a, s) { - return "boolean" == typeof i || i === t ? r ? e.effects.animateClass.call(this, i ? { + return "boolean" == typeof i || i === n ? r ? e.effects.animateClass.call(this, i ? { add: o } : { remove: o - }, r, a, s) : n.apply(this, arguments) : e.effects.animateClass.call(this, { + }, r, a, s) : t.apply(this, arguments) : e.effects.animateClass.call(this, { toggle: o }, i, r, a); }; }(e.fn.toggleClass), - switchClass: function(t, n, o, i, r) { + switchClass: function(n, t, o, i, r) { return e.effects.animateClass.call(this, { - add: n, - remove: t + add: t, + remove: n }, o, i, r); } }); }(), function() { - function o(t, n, o, i) { - return e.isPlainObject(t) && (n = t, t = t.effect), t = { - effect: t - }, null == n && (n = {}), e.isFunction(n) && (i = n, o = null, n = {}), ("number" == typeof n || e.fx.speeds[n]) && (i = o, - o = n, n = {}), e.isFunction(o) && (i = o, o = null), n && e.extend(t, n), o = o || n.duration, - t.duration = e.fx.off ? 0 : "number" == typeof o ? o : o in e.fx.speeds ? e.fx.speeds[o] : e.fx.speeds._default, - t.complete = i || n.complete, t; + function o(n, t, o, i) { + return e.isPlainObject(n) && (t = n, n = n.effect), n = { + effect: n + }, null == t && (t = {}), e.isFunction(t) && (i = t, o = null, t = {}), ("number" == typeof t || e.fx.speeds[t]) && (i = o, + o = t, t = {}), e.isFunction(o) && (i = o, o = null), t && e.extend(n, t), o = o || t.duration, + n.duration = e.fx.off ? 0 : "number" == typeof o ? o : o in e.fx.speeds ? e.fx.speeds[o] : e.fx.speeds._default, + n.complete = i || t.complete, n; } - function i(t) { - return !t || "number" == typeof t || e.fx.speeds[t] ? !0 : "string" != typeof t || e.effects.effect[t] ? e.isFunction(t) ? !0 : "object" != typeof t || t.effect ? !1 : !0 : !0; + function i(n) { + return !n || "number" == typeof n || e.fx.speeds[n] ? !0 : "string" != typeof n || e.effects.effect[n] ? e.isFunction(n) ? !0 : "object" != typeof n || n.effect ? !1 : !0 : !0; } e.extend(e.effects, { version: "1.10.3", - save: function(e, t) { - for (var o = 0; o < t.length; o++) null !== t[o] && e.data(n + t[o], e[0].style[t[o]]); + save: function(e, n) { + for (var o = 0; o < n.length; o++) null !== n[o] && e.data(t + n[o], e[0].style[n[o]]); }, restore: function(e, o) { var i, r; - for (r = 0; r < o.length; r++) null !== o[r] && (i = e.data(n + o[r]), i === t && (i = ""), + for (r = 0; r < o.length; r++) null !== o[r] && (i = e.data(t + o[r]), i === n && (i = ""), e.css(o[r], i)); }, - setMode: function(e, t) { - return "toggle" === t && (t = e.is(":hidden") ? "show" : "hide"), t; + setMode: function(e, n) { + return "toggle" === n && (n = e.is(":hidden") ? "show" : "hide"), n; }, - getBaseline: function(e, t) { - var n, o; + getBaseline: function(e, n) { + var t, o; switch (e[0]) { case "top": - n = 0; + t = 0; break; case "middle": - n = .5; + t = .5; break; case "bottom": - n = 1; + t = 1; break; default: - n = e[0] / t.height; + t = e[0] / n.height; } switch (e[1]) { case "left": @@ -10377,19 +10356,19 @@ k var t = e.onLoadSettings; break; default: - o = e[1] / t.width; + o = e[1] / n.width; } return { x: o, - y: n + y: t }; }, - createWrapper: function(t) { - if (t.parent().is(".ui-effects-wrapper")) return t.parent(); - var n = { - width: t.outerWidth(!0), - height: t.outerHeight(!0), - "float": t.css("float") + createWrapper: function(n) { + if (n.parent().is(".ui-effects-wrapper")) return n.parent(); + var t = { + width: n.outerWidth(!0), + height: n.outerHeight(!0), + "float": n.css("float") }, o = e("
").addClass("ui-effects-wrapper").css({ fontSize: "100%", background: "transparent", @@ -10397,92 +10376,92 @@ k var t = e.onLoadSettings; margin: 0, padding: 0 }), i = { - width: t.width(), - height: t.height() + width: n.width(), + height: n.height() }, r = document.activeElement; try { r.id; } catch (a) { r = document.body; } - return t.wrap(o), (t[0] === r || e.contains(t[0], r)) && e(r).focus(), o = t.parent(), - "static" === t.css("position") ? (o.css({ + return n.wrap(o), (n[0] === r || e.contains(n[0], r)) && e(r).focus(), o = n.parent(), + "static" === n.css("position") ? (o.css({ position: "relative" - }), t.css({ + }), n.css({ position: "relative" - })) : (e.extend(n, { - position: t.css("position"), - zIndex: t.css("z-index") + })) : (e.extend(t, { + position: n.css("position"), + zIndex: n.css("z-index") }), e.each([ "top", "left", "bottom", "right" ], function(e, o) { - n[o] = t.css(o), isNaN(parseInt(n[o], 10)) && (n[o] = "auto"); - }), t.css({ + t[o] = n.css(o), isNaN(parseInt(t[o], 10)) && (t[o] = "auto"); + }), n.css({ position: "relative", top: 0, left: 0, right: "auto", bottom: "auto" - })), t.css(i), o.css(n).show(); + })), n.css(i), o.css(t).show(); }, - removeWrapper: function(t) { - var n = document.activeElement; - return t.parent().is(".ui-effects-wrapper") && (t.parent().replaceWith(t), (t[0] === n || e.contains(t[0], n)) && e(n).focus()), - t; + removeWrapper: function(n) { + var t = document.activeElement; + return n.parent().is(".ui-effects-wrapper") && (n.parent().replaceWith(n), (n[0] === t || e.contains(n[0], t)) && e(t).focus()), + n; }, - setTransition: function(t, n, o, i) { - return i = i || {}, e.each(n, function(e, n) { - var r = t.cssUnit(n); - r[0] > 0 && (i[n] = r[0] * o + r[1]); + setTransition: function(n, t, o, i) { + return i = i || {}, e.each(t, function(e, t) { + var r = n.cssUnit(t); + r[0] > 0 && (i[t] = r[0] * o + r[1]); }), i; } }), e.fn.extend({ effect: function() { - function t(t) { + function n(n) { function o() { - e.isFunction(r) && r.call(i[0]), e.isFunction(t) && t(); + e.isFunction(r) && r.call(i[0]), e.isFunction(n) && n(); } - var i = e(this), r = n.complete, s = n.mode; - (i.is(":hidden") ? "hide" === s : "show" === s) ? (i[s](), o()) : a.call(i[0], n, o); + var i = e(this), r = t.complete, s = t.mode; + (i.is(":hidden") ? "hide" === s : "show" === s) ? (i[s](), o()) : a.call(i[0], t, o); } - var n = o.apply(this, arguments), i = n.mode, r = n.queue, a = e.effects.effect[n.effect]; - return e.fx.off || !a ? i ? this[i](n.duration, n.complete) : this.each(function() { - n.complete && n.complete.call(this); - }) : r === !1 ? this.each(t) : this.queue(r || "fx", t); + var t = o.apply(this, arguments), i = t.mode, r = t.queue, a = e.effects.effect[t.effect]; + return e.fx.off || !a ? i ? this[i](t.duration, t.complete) : this.each(function() { + t.complete && t.complete.call(this); + }) : r === !1 ? this.each(n) : this.queue(r || "fx", n); }, show: function(e) { - return function(t) { - if (i(t)) return e.apply(this, arguments); - var n = o.apply(this, arguments); - return n.mode = "show", this.effect.call(this, n); + return function(n) { + if (i(n)) return e.apply(this, arguments); + var t = o.apply(this, arguments); + return t.mode = "show", this.effect.call(this, t); }; }(e.fn.show), hide: function(e) { - return function(t) { - if (i(t)) return e.apply(this, arguments); - var n = o.apply(this, arguments); - return n.mode = "hide", this.effect.call(this, n); + return function(n) { + if (i(n)) return e.apply(this, arguments); + var t = o.apply(this, arguments); + return t.mode = "hide", this.effect.call(this, t); }; }(e.fn.hide), toggle: function(e) { - return function(t) { - if (i(t) || "boolean" == typeof t) return e.apply(this, arguments); - var n = o.apply(this, arguments); - return n.mode = "toggle", this.effect.call(this, n); + return function(n) { + if (i(n) || "boolean" == typeof n) return e.apply(this, arguments); + var t = o.apply(this, arguments); + return t.mode = "toggle", this.effect.call(this, t); }; }(e.fn.toggle), - cssUnit: function(t) { - var n = this.css(t), o = []; - return e.each([ "em", "px", "%", "pt" ], function(e, t) { - n.indexOf(t) > 0 && (o = [ parseFloat(n), t ]); + cssUnit: function(n) { + var t = this.css(n), o = []; + return e.each([ "em", "px", "%", "pt" ], function(e, n) { + t.indexOf(n) > 0 && (o = [ parseFloat(t), n ]); }), o; } }); }(), function() { - var t = {}; - e.each([ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function(e, n) { - t[n] = function(t) { - return Math.pow(t, e + 2); + var n = {}; + e.each([ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function(e, t) { + n[t] = function(n) { + return Math.pow(n, e + 2); }; - }), e.extend(t, { + }), e.extend(n, { Sine: function(e) { return 1 - Math.cos(e * Math.PI / 2); }, @@ -10496,30 +10475,30 @@ k var t = e.onLoadSettings; return e * e * (3 * e - 2); }, Bounce: function(e) { - for (var t, n = 4; e < ((t = Math.pow(2, --n)) - 1) / 11; ) ; - return 1 / Math.pow(4, 3 - n) - 7.5625 * Math.pow((3 * t - 2) / 22 - e, 2); + for (var n, t = 4; e < ((n = Math.pow(2, --t)) - 1) / 11; ) ; + return 1 / Math.pow(4, 3 - t) - 7.5625 * Math.pow((3 * n - 2) / 22 - e, 2); } - }), e.each(t, function(t, n) { - e.easing["easeIn" + t] = n, e.easing["easeOut" + t] = function(e) { - return 1 - n(1 - e); - }, e.easing["easeInOut" + t] = function(e) { - return .5 > e ? n(2 * e) / 2 : 1 - n(-2 * e + 2) / 2; + }), e.each(n, function(n, t) { + e.easing["easeIn" + n] = t, e.easing["easeOut" + n] = function(e) { + return 1 - t(1 - e); + }, e.easing["easeInOut" + n] = function(e) { + return .5 > e ? t(2 * e) / 2 : 1 - t(-2 * e + 2) / 2; }; }); }(); }(jQuery), function(e) { - e.effects.effect.slide = function(t, n) { - var o, i = e(this), r = [ "position", "top", "bottom", "left", "right", "width", "height" ], a = e.effects.setMode(i, t.mode || "show"), s = "show" === a, l = t.direction || "left", c = "up" === l || "down" === l ? "top" : "left", u = "up" === l || "left" === l, d = {}; - e.effects.save(i, r), i.show(), o = t.distance || i["top" === c ? "outerHeight" : "outerWidth"](!0), + e.effects.effect.slide = function(n, t) { + var o, i = e(this), r = [ "position", "top", "bottom", "left", "right", "width", "height" ], a = e.effects.setMode(i, n.mode || "show"), s = "show" === a, l = n.direction || "left", c = "up" === l || "down" === l ? "top" : "left", d = "up" === l || "left" === l, u = {}; + e.effects.save(i, r), i.show(), o = n.distance || i["top" === c ? "outerHeight" : "outerWidth"](!0), e.effects.createWrapper(i).css({ overflow: "hidden" - }), s && i.css(c, u ? isNaN(o) ? "-" + o : -o : o), d[c] = (s ? u ? "+=" : "-=" : u ? "-=" : "+=") + o, - i.animate(d, { + }), s && i.css(c, d ? isNaN(o) ? "-" + o : -o : o), u[c] = (s ? d ? "+=" : "-=" : d ? "-=" : "+=") + o, + i.animate(u, { queue: !1, - duration: t.duration, - easing: t.easing, + duration: n.duration, + easing: n.easing, complete: function() { - "hide" === a && i.hide(), e.effects.restore(i, r), e.effects.removeWrapper(i), n(); + "hide" === a && i.hide(), e.effects.restore(i, r), e.effects.removeWrapper(i), t(); } }); }; @@ -10731,9 +10710,9 @@ k var t = e.onLoadSettings; }, callbacks: {}, getParentPaneElem: function(e) { - var t = $(e), n = t.data("layout") || t.data("parentLayout"); - if (n) { - var o = n.container; + var n = $(e), t = n.data("layout") || n.data("parentLayout"); + if (t) { + var o = t.container; if (o.data("layoutPane")) return o; var i = o.closest("." + $.layout.defaults.panes.paneClass); if (i.data("layoutPane")) return i; @@ -10741,20 +10720,20 @@ k var t = e.onLoadSettings; return null; }, getParentPaneInstance: function(e) { - var t = $.layout.getParentPaneElem(e); - return t ? t.data("layoutPane") : null; + var n = $.layout.getParentPaneElem(e); + return n ? n.data("layoutPane") : null; }, getParentLayoutInstance: function(e) { - var t = $.layout.getParentPaneElem(e); - return t ? t.data("parentLayout") : null; + var n = $.layout.getParentPaneElem(e); + return n ? n.data("parentLayout") : null; }, getEventObject: function(e) { return "object" == typeof e && e.stopPropagation ? e : null; }, parsePaneName: function(e) { - var t = $.layout.getEventObject(e), n = e; - return t && (t.stopPropagation(), n = $(this).data("layoutEdge")), n && !/^(west|east|north|south|center)$/.test(n) && ($.layout.msg('LAYOUT ERROR - Invalid pane-name: "' + n + '"'), - n = "error"), n; + var n = $.layout.getEventObject(e), t = e; + return n && (n.stopPropagation(), t = $(this).data("layoutEdge")), t && !/^(west|east|north|south|center)$/.test(t) && ($.layout.msg('LAYOUT ERROR - Invalid pane-name: "' + t + '"'), + t = "error"), t; }, plugins: { draggable: !!$.fn.draggable, @@ -10777,18 +10756,18 @@ k var t = e.onLoadSettings; return window.scrollbarHeight || $.layout.getScrollbarSize("height"); }, getScrollbarSize: function(e) { - var t = $('').appendTo("body"), n = { - width: t.css("width") - t[0].clientWidth, - height: t.height() - t[0].clientHeight + var n = $('').appendTo("body"), t = { + width: n.css("width") - n[0].clientWidth, + height: n.height() - n[0].clientHeight }; - return t.remove(), window.scrollbarWidth = n.width, window.scrollbarHeight = n.height, - e.match(/^(width|height)$/) ? n[e] : n; + return n.remove(), window.scrollbarWidth = t.width, window.scrollbarHeight = t.height, + e.match(/^(width|height)$/) ? t[e] : t; }, - showInvisibly: function(e, t) { - if (e && e.length && (t || "none" === e.css("display"))) { - var n = e[0].style, o = { - display: n.display || "", - visibility: n.visibility || "" + showInvisibly: function(e, n) { + if (e && e.length && (n || "none" === e.css("display"))) { + var t = e[0].style, o = { + display: t.display || "", + visibility: t.visibility || "" }; return e.css({ display: "block", @@ -10797,70 +10776,70 @@ k var t = e.onLoadSettings; } return {}; }, - getElementDimensions: function(e, t) { - var n, o, i, r = { + getElementDimensions: function(e, n) { + var t, o, i, r = { css: {}, inset: {} }, a = r.css, s = { bottom: 0 }, l = $.layout.cssNum, c = e.offset(); - return r.offsetLeft = c.left, r.offsetTop = c.top, t || (t = {}), $.each("Left,Right,Top,Bottom".split(","), function(l, c) { - n = a["border" + c] = $.layout.borderWidth(e, c), o = a["padding" + c] = $.layout.cssNum(e, "padding" + c), - i = c.toLowerCase(), r.inset[i] = t[i] >= 0 ? t[i] : o, s[i] = r.inset[i] + n; + return r.offsetLeft = c.left, r.offsetTop = c.top, n || (n = {}), $.each("Left,Right,Top,Bottom".split(","), function(l, c) { + t = a["border" + c] = $.layout.borderWidth(e, c), o = a["padding" + c] = $.layout.cssNum(e, "padding" + c), + i = c.toLowerCase(), r.inset[i] = n[i] >= 0 ? n[i] : o, s[i] = r.inset[i] + t; }), a.width = e.width(), a.height = e.height(), a.top = l(e, "top", !0), a.bottom = l(e, "bottom", !0), a.left = l(e, "left", !0), a.right = l(e, "right", !0), r.outerWidth = e.outerWidth(), r.outerHeight = e.outerHeight(), r.innerWidth = max(0, r.outerWidth - s.left - s.right), r.innerHeight = max(0, r.outerHeight - s.top - s.bottom), r.layoutWidth = e.innerWidth(), r.layoutHeight = e.innerHeight(), r; }, - getElementStyles: function(e, t) { - var n, o, i, r, a, s, l = {}, c = e[0].style, u = t.split(","), d = "Top,Bottom,Left,Right".split(","), p = "Color,Style,Width".split(","); - for (r = 0; r < u.length; r++) if (n = u[r], n.match(/(border|padding|margin)$/)) for (a = 0; 4 > a; a++) if (o = d[a], - "border" === n) for (s = 0; 3 > s; s++) i = p[s], l[n + o + i] = c[n + o + i]; else l[n + o] = c[n + o]; else l[n] = c[n]; + getElementStyles: function(e, n) { + var t, o, i, r, a, s, l = {}, c = e[0].style, d = n.split(","), u = "Top,Bottom,Left,Right".split(","), p = "Color,Style,Width".split(","); + for (r = 0; r < d.length; r++) if (t = d[r], t.match(/(border|padding|margin)$/)) for (a = 0; 4 > a; a++) if (o = u[a], + "border" === t) for (s = 0; 3 > s; s++) i = p[s], l[t + o + i] = c[t + o + i]; else l[t + o] = c[t + o]; else l[t] = c[t]; return l; }, - cssWidth: function(e, t) { - if (0 >= t) return 0; - var n = $.layout.browser.boxModel ? $.support.boxSizing ? e.css("boxSizing") : "content-box" : "border-box", o = $.layout.borderWidth, i = $.layout.cssNum, r = t; - return "border-box" !== n && (r -= o(e, "Left") + o(e, "Right")), "content-box" === n && (r -= i(e, "paddingLeft") + i(e, "paddingRight")), + cssWidth: function(e, n) { + if (0 >= n) return 0; + var t = $.layout.browser.boxModel ? $.support.boxSizing ? e.css("boxSizing") : "content-box" : "border-box", o = $.layout.borderWidth, i = $.layout.cssNum, r = n; + return "border-box" !== t && (r -= o(e, "Left") + o(e, "Right")), "content-box" === t && (r -= i(e, "paddingLeft") + i(e, "paddingRight")), max(0, r); }, - cssHeight: function(e, t) { - if (0 >= t) return 0; - var n = $.layout.browser.boxModel ? $.support.boxSizing ? e.css("boxSizing") : "content-box" : "border-box", o = $.layout.borderWidth, i = $.layout.cssNum, r = t; - return "border-box" !== n && (r -= o(e, "Top") + o(e, "Bottom")), "content-box" === n && (r -= i(e, "paddingTop") + i(e, "paddingBottom")), + cssHeight: function(e, n) { + if (0 >= n) return 0; + var t = $.layout.browser.boxModel ? $.support.boxSizing ? e.css("boxSizing") : "content-box" : "border-box", o = $.layout.borderWidth, i = $.layout.cssNum, r = n; + return "border-box" !== t && (r -= o(e, "Top") + o(e, "Bottom")), "content-box" === t && (r -= i(e, "paddingTop") + i(e, "paddingBottom")), max(0, r); }, - cssNum: function(e, t, n) { + cssNum: function(e, n, t) { e.jquery || (e = $(e)); - var o = $.layout.showInvisibly(e), i = $.css(e[0], t, !0), r = n && "auto" == i ? i : Math.round(parseFloat(i) || 0); + var o = $.layout.showInvisibly(e), i = $.css(e[0], n, !0), r = t && "auto" == i ? i : Math.round(parseFloat(i) || 0); return e.css(o), r; }, - borderWidth: function(e, t) { + borderWidth: function(e, n) { e.jquery && (e = e[0]); - var n = "border" + t.substr(0, 1).toUpperCase() + t.substr(1); - return "none" === $.css(e, n + "Style", !0) ? 0 : Math.round(parseFloat($.css(e, n + "Width", !0)) || 0); + var t = "border" + n.substr(0, 1).toUpperCase() + n.substr(1); + return "none" === $.css(e, t + "Style", !0) ? 0 : Math.round(parseFloat($.css(e, t + "Width", !0)) || 0); }, - isMouseOverElem: function(e, t) { - var n = $(t || this), o = n.offset(), i = o.top, r = o.left, a = r + n.outerWidth(), s = i + n.outerHeight(), l = e.pageX, c = e.pageY; + isMouseOverElem: function(e, n) { + var t = $(n || this), o = t.offset(), i = o.top, r = o.left, a = r + t.outerWidth(), s = i + t.outerHeight(), l = e.pageX, c = e.pageY; return $.layout.browser.msie && 0 > l && 0 > c || l >= r && a >= l && c >= i && s >= c; }, - msg: function(e, t, n, o) { + msg: function(e, n, t, o) { function i() { - var e = $.support.fixedPosition ? "fixed" : "absolute", t = $('