",
options: {
disabled: !1,
create: null
},
_createWidget: function(t, i) {
i = e(i || this.defaultElement || this)[0], this.element = e(i), this.uuid = s++, this.eventNamespace = "." + this.widgetName + this.uuid, this.bindings = e(), this.hoverable = e(), this.focusable = e(), i !== this && (e.data(i, this.widgetFullName, this), this._on(!0, this.element, {
remove: function(e) {
e.target === i && this.destroy()
}
}), this.document = e(i.style ? i.ownerDocument : i.document || i), this.window = e(this.document[0].defaultView || this.document[0].parentWindow)), this.options = e.widget.extend({}, this.options, this._getCreateOptions(), t), this._create(), this._trigger("create", null, this._getCreateEventData()), this._init()
},
_getCreateOptions: e.noop,
_getCreateEventData: e.noop,
_create: e.noop,
_init: e.noop,
destroy: function() {
this._destroy(), this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)), this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName + "-disabled " + "ui-state-disabled"), this.bindings.unbind(this.eventNamespace), this.hoverable.removeClass("ui-state-hover"), this.focusable.removeClass("ui-state-focus")
},
_destroy: e.noop,
widget: function() {
return this.element
},
option: function(t, i) {
var s, n, a, o = t;
if (0 === arguments.length) return e.widget.extend({}, this.options);
if ("string" == typeof t)
if (o = {}, s = t.split("."), t = s.shift(), s.length) {
for (n = o[t] = e.widget.extend({}, this.options[t]), a = 0; s.length - 1 > a; a++) n[s[a]] = n[s[a]] || {}, n = n[s[a]];
if (t = s.pop(), 1 === arguments.length) return void 0 === n[t] ? null : n[t];
n[t] = i
} else {
if (1 === arguments.length) return void 0 === this.options[t] ? null : this.options[t];
o[t] = i
}
return this._setOptions(o), this
},
_setOptions: function(e) {
var t;
for (t in e) this._setOption(t, e[t]);
return this
},
_setOption: function(e, t) {
return this.options[e] = t, "disabled" === e && (this.widget().toggleClass(this.widgetFullName + "-disabled", !!t), t && (this.hoverable.removeClass("ui-state-hover"), this.focusable.removeClass("ui-state-focus"))), this
},
enable: function() {
return this._setOptions({
disabled: !1
})
},
disable: function() {
return this._setOptions({
disabled: !0
})
},
_on: function(t, i, s) {
var n, a = this;
"boolean" != typeof t && (s = i, i = t, t = !1), s ? (i = n = e(i), this.bindings = this.bindings.add(i)) : (s = i, i = this.element, n = this.widget()), e.each(s, function(s, o) {
function r() {
return t || a.options.disabled !== !0 && !e(this).hasClass("ui-state-disabled") ? ("string" == typeof o ? a[o] : o).apply(a, arguments) : void 0
}
"string" != typeof o && (r.guid = o.guid = o.guid || r.guid || e.guid++);
var h = s.match(/^([\w:-]*)\s*(.*)$/),
l = h[1] + a.eventNamespace,
u = h[2];
u ? n.delegate(u, l, r) : i.bind(l, r)
})
},
_off: function(t, i) {
i = (i || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace, t.unbind(i).undelegate(i), this.bindings = e(this.bindings.not(t).get()), this.focusable = e(this.focusable.not(t).get()), this.hoverable = e(this.hoverable.not(t).get())
},
_delay: function(e, t) {
function i() {
return ("string" == typeof e ? s[e] : e).apply(s, arguments)
}
var s = this;
return setTimeout(i, t || 0)
},
_hoverable: function(t) {
this.hoverable = this.hoverable.add(t), this._on(t, {
mouseenter: function(t) {
e(t.currentTarget).addClass("ui-state-hover")
},
mouseleave: function(t) {
e(t.currentTarget).removeClass("ui-state-hover")
}
})
},
_focusable: function(t) {
this.focusable = this.focusable.add(t), this._on(t, {
focusin: function(t) {
e(t.currentTarget).addClass("ui-state-focus")
},
focusout: function(t) {
e(t.currentTarget).removeClass("ui-state-focus")
}
})
},
_trigger: function(t, i, s) {
var n, a, o = this.options[t];
if (s = s || {}, i = e.Event(i), i.type = (t === this.widgetEventPrefix ? t : this.widgetEventPrefix + t).toLowerCase(), i.target = this.element[0], a = i.originalEvent)
for (n in a) n in i || (i[n] = a[n]);
return this.element.trigger(i, s), !(e.isFunction(o) && o.apply(this.element[0], [i].concat(s)) === !1 || i.isDefaultPrevented())
}
}, e.each({
show: "fadeIn",
hide: "fadeOut"
}, function(t, i) {
e.Widget.prototype["_" + t] = function(s, n, a) {
"string" == typeof n && (n = {
effect: n
});
var o, r = n ? n === !0 || "number" == typeof n ? i : n.effect || i : t;
n = n || {}, "number" == typeof n && (n = {
duration: n
}), o = !e.isEmptyObject(n), n.complete = a, n.delay && s.delay(n.delay), o && e.effects && e.effects.effect[r] ? s[t](n) : r !== t && s[r] ? s[r](n.duration, n.easing, a) : s.queue(function(i) {
e(this)[t](), a && a.call(s[0]), i()
})
}
}), e.widget;
var a = !1;
e(document).mouseup(function() {
a = !1
}), e.widget("ui.mouse", {
version: "1.11.4",
options: {
cancel: "input,textarea,button,select,option",
distance: 1,
delay: 0
},
_mouseInit: function() {
var t = this;
this.element.bind("mousedown." + this.widgetName, function(e) {
return t._mouseDown(e)
}).bind("click." + this.widgetName, function(i) {
return !0 === e.data(i.target, t.widgetName + ".preventClickEvent") ? (e.removeData(i.target, t.widgetName + ".preventClickEvent"), i.stopImmediatePropagation(), !1) : void 0
}), this.started = !1
},
_mouseDestroy: function() {
this.element.unbind("." + this.widgetName), this._mouseMoveDelegate && this.document.unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate)
},
_mouseDown: function(t) {
if (!a) {
this._mouseMoved = !1, this._mouseStarted && this._mouseUp(t), this._mouseDownEvent = t;
var i = this,
s = 1 === t.which,
n = "string" == typeof this.options.cancel && t.target.nodeName ? e(t.target).closest(this.options.cancel).length : !1;
return s && !n && this._mouseCapture(t) ? (this.mouseDelayMet = !this.options.delay, this.mouseDelayMet || (this._mouseDelayTimer = setTimeout(function() {
i.mouseDelayMet = !0
}, this.options.delay)), this._mouseDistanceMet(t) && this._mouseDelayMet(t) && (this._mouseStarted = this._mouseStart(t) !== !1, !this._mouseStarted) ? (t.preventDefault(), !0) : (!0 === e.data(t.target, this.widgetName + ".preventClickEvent") && e.removeData(t.target, this.widgetName + ".preventClickEvent"), this._mouseMoveDelegate = function(e) {
return i._mouseMove(e)
}, this._mouseUpDelegate = function(e) {
return i._mouseUp(e)
}, this.document.bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate), t.preventDefault(), a = !0, !0)) : !0
}
},
_mouseMove: function(t) {
if (this._mouseMoved) {
if (e.ui.ie && (!document.documentMode || 9 > document.documentMode) && !t.button) return this._mouseUp(t);
if (!t.which) return this._mouseUp(t)
}
return (t.which || t.button) && (this._mouseMoved = !0), this._mouseStarted ? (this._mouseDrag(t), t.preventDefault()) : (this._mouseDistanceMet(t) && this._mouseDelayMet(t) && (this._mouseStarted = this._mouseStart(this._mouseDownEvent, t) !== !1, this._mouseStarted ? this._mouseDrag(t) : this._mouseUp(t)), !this._mouseStarted)
},
_mouseUp: function(t) {
return this.document.unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate), this._mouseStarted && (this._mouseStarted = !1, t.target === this._mouseDownEvent.target && e.data(t.target, this.widgetName + ".preventClickEvent", !0), this._mouseStop(t)), a = !1, !1
},
_mouseDistanceMet: function(e) {
return Math.max(Math.abs(this._mouseDownEvent.pageX - e.pageX), Math.abs(this._mouseDownEvent.pageY - e.pageY)) >= this.options.distance
},
_mouseDelayMet: function() {
return this.mouseDelayMet
},
_mouseStart: function() {},
_mouseDrag: function() {},
_mouseStop: function() {},
_mouseCapture: function() {
return !0
}
}), e.widget("ui.slider", e.ui.mouse, {
version: "1.11.4",
widgetEventPrefix: "slide",
options: {
animate: !1,
distance: 0,
max: 100,
min: 0,
orientation: "horizontal",
range: !1,
step: 1,
value: 0,
values: null,
change: null,
slide: null,
start: null,
stop: null
},
numPages: 5,
_create: function() {
this._keySliding = !1, this._mouseSliding = !1, this._animateOff = !0, this._handleIndex = null, this._detectOrientation(), this._mouseInit(), this._calculateNewMax(), this.element.addClass("ui-slider ui-slider-" + this.orientation + " ui-widget" + " ui-widget-content" + " ui-corner-all"), this._refresh(), this._setOption("disabled", this.options.disabled), this._animateOff = !1
},
_refresh: function() {
this._createRange(), this._createHandles(), this._setupEvents(), this._refreshValue()
},
_createHandles: function() {
var t, i, s = this.options,
n = this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),
a = "
",
o = [];
for (i = s.values && s.values.length || 1, n.length > i && (n.slice(i).remove(), n = n.slice(0, i)), t = n.length; i > t; t++) o.push(a);
this.handles = n.add(e(o.join("")).appendTo(this.element)), this.handle = this.handles.eq(0), this.handles.each(function(t) {
e(this).data("ui-slider-handle-index", t)
})
},
_createRange: function() {
var t = this.options,
i = "";
t.range ? (t.range === !0 && (t.values ? t.values.length && 2 !== t.values.length ? t.values = [t.values[0], t.values[0]] : e.isArray(t.values) && (t.values = t.values.slice(0)) : t.values = [this._valueMin(), this._valueMin()]), this.range && this.range.length ? this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({
left: "",
bottom: ""
}) : (this.range = e("
").appendTo(this.element), i = "ui-slider-range ui-widget-header ui-corner-all"), this.range.addClass(i + ("min" === t.range || "max" === t.range ? " ui-slider-range-" + t.range : ""))) : (this.range && this.range.remove(), this.range = null)
},
_setupEvents: function() {
this._off(this.handles), this._on(this.handles, this._handleEvents), this._hoverable(this.handles), this._focusable(this.handles)
},
_destroy: function() {
this.handles.remove(), this.range && this.range.remove(), this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"), this._mouseDestroy()
},
_mouseCapture: function(t) {
var i, s, n, a, o, r, h, l, u = this,
c = this.options;
return c.disabled ? !1 : (this.elementSize = {
width: this.element.outerWidth(),
height: this.element.outerHeight()
}, this.elementOffset = this.element.offset(), i = {
x: t.pageX,
y: t.pageY
}, s = this._normValueFromMouse(i), n = this._valueMax() - this._valueMin() + 1, this.handles.each(function(t) {
var i = Math.abs(s - u.values(t));
(n > i || n === i && (t === u._lastChangedValue || u.values(t) === c.min)) && (n = i, a = e(this), o = t)
}), r = this._start(t, o), r === !1 ? !1 : (this._mouseSliding = !0, this._handleIndex = o, a.addClass("ui-state-active").focus(), h = a.offset(), l = !e(t.target).parents().addBack().is(".ui-slider-handle"), this._clickOffset = l ? {
left: 0,
top: 0
} : {
left: t.pageX - h.left - a.width() / 2,
top: t.pageY - h.top - a.height() / 2 - (parseInt(a.css("borderTopWidth"), 10) || 0) - (parseInt(a.css("borderBottomWidth"), 10) || 0) + (parseInt(a.css("marginTop"), 10) || 0)
}, this.handles.hasClass("ui-state-hover") || this._slide(t, o, s), this._animateOff = !0, !0))
},
_mouseStart: function() {
return !0
},
_mouseDrag: function(e) {
var t = {
x: e.pageX,
y: e.pageY
},
i = this._normValueFromMouse(t);
return this._slide(e, this._handleIndex, i), !1
},
_mouseStop: function(e) {
return this.handles.removeClass("ui-state-active"), this._mouseSliding = !1, this._stop(e, this._handleIndex), this._change(e, this._handleIndex), this._handleIndex = null, this._clickOffset = null, this._animateOff = !1, !1
},
_detectOrientation: function() {
this.orientation = "vertical" === this.options.orientation ? "vertical" : "horizontal"
},
_normValueFromMouse: function(e) {
var t, i, s, n, a;
return "horizontal" === this.orientation ? (t = this.elementSize.width, i = e.x - this.elementOffset.left - (this._clickOffset ? this._clickOffset.left : 0)) : (t = this.elementSize.height, i = e.y - this.elementOffset.top - (this._clickOffset ? this._clickOffset.top : 0)), s = i / t, s > 1 && (s = 1), 0 > s && (s = 0), "vertical" === this.orientation && (s = 1 - s), n = this._valueMax() - this._valueMin(), a = this._valueMin() + s * n, this._trimAlignValue(a)
},
_start: function(e, t) {
var i = {
handle: this.handles[t],
value: this.value()
};
return this.options.values && this.options.values.length && (i.value = this.values(t), i.values = this.values()), this._trigger("start", e, i)
},
_slide: function(e, t, i) {
var s, n, a;
this.options.values && this.options.values.length ? (s = this.values(t ? 0 : 1), 2 === this.options.values.length && this.options.range === !0 && (0 === t && i > s || 1 === t && s > i) && (i = s), i !== this.values(t) && (n = this.values(), n[t] = i, a = this._trigger("slide", e, {
handle: this.handles[t],
value: i,
values: n
}), s = this.values(t ? 0 : 1), a !== !1 && this.values(t, i))) : i !== this.value() && (a = this._trigger("slide", e, {
handle: this.handles[t],
value: i
}), a !== !1 && this.value(i))
},
_stop: function(e, t) {
var i = {
handle: this.handles[t],
value: this.value()
};
this.options.values && this.options.values.length && (i.value = this.values(t), i.values = this.values()), this._trigger("stop", e, i)
},
_change: function(e, t) {
if (!this._keySliding && !this._mouseSliding) {
var i = {
handle: this.handles[t],
value: this.value()
};
this.options.values && this.options.values.length && (i.value = this.values(t), i.values = this.values()), this._lastChangedValue = t, this._trigger("change", e, i)
}
},
value: function(e) {
return arguments.length ? (this.options.value = this._trimAlignValue(e), this._refreshValue(), this._change(null, 0), void 0) : this._value()
},
values: function(t, i) {
var s, n, a;
if (arguments.length > 1) return this.options.values[t] = this._trimAlignValue(i), this._refreshValue(), this._change(null, t), void 0;
if (!arguments.length) return this._values();
if (!e.isArray(arguments[0])) return this.options.values && this.options.values.length ? this._values(t) : this.value();
for (s = this.options.values, n = arguments[0], a = 0; s.length > a; a += 1) s[a] = this._trimAlignValue(n[a]), this._change(null, a);
this._refreshValue()
},
_setOption: function(t, i) {
var s, n = 0;
switch ("range" === t && this.options.range === !0 && ("min" === i ? (this.options.value = this._values(0), this.options.values = null) : "max" === i && (this.options.value = this._values(this.options.values.length - 1), this.options.values = null)), e.isArray(this.options.values) && (n = this.options.values.length), "disabled" === t && this.element.toggleClass("ui-state-disabled", !!i), this._super(t, i), t) {
case "orientation":
this._detectOrientation(), this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-" + this.orientation), this._refreshValue(), this.handles.css("horizontal" === i ? "bottom" : "left", "");
break;
case "value":
this._animateOff = !0, this._refreshValue(), this._change(null, 0), this._animateOff = !1;
break;
case "values":
for (this._animateOff = !0, this._refreshValue(), s = 0; n > s; s += 1) this._change(null, s);
this._animateOff = !1;
break;
case "step":
case "min":
case "max":
this._animateOff = !0, this._calculateNewMax(), this._refreshValue(), this._animateOff = !1;
break;
case "range":
this._animateOff = !0, this._refresh(), this._animateOff = !1
}
},
_value: function() {
var e = this.options.value;
return e = this._trimAlignValue(e)
},
_values: function(e) {
var t, i, s;
if (arguments.length) return t = this.options.values[e], t = this._trimAlignValue(t);
if (this.options.values && this.options.values.length) {
for (i = this.options.values.slice(), s = 0; i.length > s; s += 1) i[s] = this._trimAlignValue(i[s]);
return i
}
return []
},
_trimAlignValue: function(e) {
if (this._valueMin() >= e) return this._valueMin();
if (e >= this._valueMax()) return this._valueMax();
var t = this.options.step > 0 ? this.options.step : 1,
i = (e - this._valueMin()) % t,
s = e - i;
return 2 * Math.abs(i) >= t && (s += i > 0 ? t : -t), parseFloat(s.toFixed(5))
},
_calculateNewMax: function() {
var e = this.options.max,
t = this._valueMin(),
i = this.options.step,
s = Math.floor(+(e - t).toFixed(this._precision()) / i) * i;
e = s + t, this.max = parseFloat(e.toFixed(this._precision()))
},
_precision: function() {
var e = this._precisionOf(this.options.step);
return null !== this.options.min && (e = Math.max(e, this._precisionOf(this.options.min))), e
},
_precisionOf: function(e) {
var t = "" + e,
i = t.indexOf(".");
return -1 === i ? 0 : t.length - i - 1
},
_valueMin: function() {
return this.options.min
},
_valueMax: function() {
return this.max
},
_refreshValue: function() {
var t, i, s, n, a, o = this.options.range,
r = this.options,
h = this,
l = this._animateOff ? !1 : r.animate,
u = {};
this.options.values && this.options.values.length ? this.handles.each(function(s) {
i = 100 * ((h.values(s) - h._valueMin()) / (h._valueMax() - h._valueMin())), u["horizontal" === h.orientation ? "left" : "bottom"] = i + "%", e(this).stop(1, 1)[l ? "animate" : "css"](u, r.animate), h.options.range === !0 && ("horizontal" === h.orientation ? (0 === s && h.range.stop(1, 1)[l ? "animate" : "css"]({
left: i + "%"
}, r.animate), 1 === s && h.range[l ? "animate" : "css"]({
width: i - t + "%"
}, {
queue: !1,
duration: r.animate
})) : (0 === s && h.range.stop(1, 1)[l ? "animate" : "css"]({
bottom: i + "%"
}, r.animate), 1 === s && h.range[l ? "animate" : "css"]({
height: i - t + "%"
}, {
queue: !1,
duration: r.animate
}))), t = i
}) : (s = this.value(), n = this._valueMin(), a = this._valueMax(), i = a !== n ? 100 * ((s - n) / (a - n)) : 0, u["horizontal" === this.orientation ? "left" : "bottom"] = i + "%", this.handle.stop(1, 1)[l ? "animate" : "css"](u, r.animate), "min" === o && "horizontal" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
width: i + "%"
}, r.animate), "max" === o && "horizontal" === this.orientation && this.range[l ? "animate" : "css"]({
width: 100 - i + "%"
}, {
queue: !1,
duration: r.animate
}), "min" === o && "vertical" === this.orientation && this.range.stop(1, 1)[l ? "animate" : "css"]({
height: i + "%"
}, r.animate), "max" === o && "vertical" === this.orientation && this.range[l ? "animate" : "css"]({
height: 100 - i + "%"
}, {
queue: !1,
duration: r.animate
}))
},
_handleEvents: {
keydown: function(t) {
var i, s, n, a, o = e(t.target).data("ui-slider-handle-index");
switch (t.keyCode) {
case e.ui.keyCode.HOME:
case e.ui.keyCode.END:
case e.ui.keyCode.PAGE_UP:
case e.ui.keyCode.PAGE_DOWN:
case e.ui.keyCode.UP:
case e.ui.keyCode.RIGHT:
case e.ui.keyCode.DOWN:
case e.ui.keyCode.LEFT:
if (t.preventDefault(), !this._keySliding && (this._keySliding = !0, e(t.target).addClass("ui-state-active"), i = this._start(t, o), i === !1)) return
}
switch (a = this.options.step, s = n = this.options.values && this.options.values.length ? this.values(o) : this.value(), t.keyCode) {
case e.ui.keyCode.HOME:
n = this._valueMin();
break;
case e.ui.keyCode.END:
n = this._valueMax();
break;
case e.ui.keyCode.PAGE_UP:
n = this._trimAlignValue(s + (this._valueMax() - this._valueMin()) / this.numPages);
break;
case e.ui.keyCode.PAGE_DOWN:
n = this._trimAlignValue(s - (this._valueMax() - this._valueMin()) / this.numPages);
break;
case e.ui.keyCode.UP:
case e.ui.keyCode.RIGHT:
if (s === this._valueMax()) return;
n = this._trimAlignValue(s + a);
break;
case e.ui.keyCode.DOWN:
case e.ui.keyCode.LEFT:
if (s === this._valueMin()) return;
n = this._trimAlignValue(s - a)
}
this._slide(t, o, n)
},
keyup: function(t) {
var i = e(t.target).data("ui-slider-handle-index");
this._keySliding && (this._keySliding = !1, this._stop(t, i), this._change(t, i), e(t.target).removeClass("ui-state-active"))
}
}
})
});
/*! WOW - v1.1.2 - 2015-08-19
* Copyright (c) 2015 Matthieu Aussaguel; Licensed MIT */
(function() {
var a, b, c, d, e, f = function(a, b) {
return function() {
return a.apply(b, arguments)
}
},
g = [].indexOf || function(a) {
for (var b = 0, c = this.length; c > b; b++)
if (b in this && this[b] === a) return b;
return -1
};
b = function() {
function a() {}
return a.prototype.extend = function(a, b) {
var c, d;
for (c in b) d = b[c], null == a[c] && (a[c] = d);
return a
}, a.prototype.isMobile = function(a) {
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)
}, a.prototype.createEvent = function(a, b, c, d) {
var e;
return null == b && (b = !1), null == c && (c = !1), null == d && (d = null), null != document.createEvent ? (e = document.createEvent("CustomEvent"), e.initCustomEvent(a, b, c, d)) : null != document.createEventObject ? (e = document.createEventObject(), e.eventType = a) : e.eventName = a, e
}, a.prototype.emitEvent = function(a, b) {
return null != a.dispatchEvent ? a.dispatchEvent(b) : b in (null != a) ? a[b]() : "on" + b in (null != a) ? a["on" + b]() : void 0
}, a.prototype.addEvent = function(a, b, c) {
return null != a.addEventListener ? a.addEventListener(b, c, !1) : null != a.attachEvent ? a.attachEvent("on" + b, c) : a[b] = c
}, a.prototype.removeEvent = function(a, b, c) {
return null != a.removeEventListener ? a.removeEventListener(b, c, !1) : null != a.detachEvent ? a.detachEvent("on" + b, c) : delete a[b]
}, a.prototype.innerHeight = function() {
return "innerHeight" in window ? window.innerHeight : document.documentElement.clientHeight
}, a
}(), c = this.WeakMap || this.MozWeakMap || (c = function() {
function a() {
this.keys = [], this.values = []
}
return a.prototype.get = function(a) {
var b, c, d, e, f;
for (f = this.keys, b = d = 0, e = f.length; e > d; b = ++d)
if (c = f[b], c === a) return this.values[b]
}, a.prototype.set = function(a, b) {
var c, d, e, f, g;
for (g = this.keys, c = e = 0, f = g.length; f > e; c = ++e)
if (d = g[c], d === a) return void(this.values[c] = b);
return this.keys.push(a), this.values.push(b)
}, a
}()), a = this.MutationObserver || this.WebkitMutationObserver || this.MozMutationObserver || (a = function() {
function a() {
"undefined" != typeof console && null !== console && console.warn("MutationObserver is not supported by your browser."), "undefined" != typeof console && null !== console && console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")
}
return a.notSupported = !0, a.prototype.observe = function() {}, a
}()), d = this.getComputedStyle || function(a) {
return this.getPropertyValue = function(b) {
var c;
return "float" === b && (b = "styleFloat"), e.test(b) && b.replace(e, function(a, b) {
return b.toUpperCase()
}), (null != (c = a.currentStyle) ? c[b] : void 0) || null
}, this
}, e = /(\-([a-z]){1})/g, this.WOW = function() {
function e(a) {
null == a && (a = {}), this.scrollCallback = f(this.scrollCallback, this), this.scrollHandler = f(this.scrollHandler, this), this.resetAnimation = f(this.resetAnimation, this), this.start = f(this.start, this), this.scrolled = !0, this.config = this.util().extend(a, this.defaults), null != a.scrollContainer && (this.config.scrollContainer = document.querySelector(a.scrollContainer)), this.animationNameCache = new c, this.wowEvent = this.util().createEvent(this.config.boxClass)
}
return e.prototype.defaults = {
boxClass: "wow",
animateClass: "animated",
offset: 0,
mobile: !0,
live: !0,
callback: null,
scrollContainer: null
}, e.prototype.init = function() {
var a;
return this.element = window.document.documentElement, "interactive" === (a = document.readyState) || "complete" === a ? this.start() : this.util().addEvent(document, "DOMContentLoaded", this.start), this.finished = []
}, e.prototype.start = function() {
var b, c, d, e;
if (this.stopped = !1, this.boxes = function() {
var a, c, d, e;
for (d = this.element.querySelectorAll("." + this.config.boxClass), e = [], a = 0, c = d.length; c > a; a++) b = d[a], e.push(b);
return e
}.call(this), this.all = function() {
var a, c, d, e;
for (d = this.boxes, e = [], a = 0, c = d.length; c > a; a++) b = d[a], e.push(b);
return e
}.call(this), this.boxes.length)
if (this.disabled()) this.resetStyle();
else
for (e = this.boxes, c = 0, d = e.length; d > c; c++) b = e[c], this.applyStyle(b, !0);
return this.disabled() || (this.util().addEvent(this.config.scrollContainer || window, "scroll", this.scrollHandler), this.util().addEvent(window, "resize", this.scrollHandler), this.interval = setInterval(this.scrollCallback, 50)), this.config.live ? new a(function(a) {
return function(b) {
var c, d, e, f, g;
for (g = [], c = 0, d = b.length; d > c; c++) f = b[c], g.push(function() {
var a, b, c, d;
for (c = f.addedNodes || [], d = [], a = 0, b = c.length; b > a; a++) e = c[a], d.push(this.doSync(e));
return d
}.call(a));
return g
}
}(this)).observe(document.body, {
childList: !0,
subtree: !0
}) : void 0
}, e.prototype.stop = function() {
return this.stopped = !0, this.util().removeEvent(this.config.scrollContainer || window, "scroll", this.scrollHandler), this.util().removeEvent(window, "resize", this.scrollHandler), null != this.interval ? clearInterval(this.interval) : void 0
}, e.prototype.sync = function() {
return a.notSupported ? this.doSync(this.element) : void 0
}, e.prototype.doSync = function(a) {
var b, c, d, e, f;
if (null == a && (a = this.element), 1 === a.nodeType) {
for (a = a.parentNode || a, e = a.querySelectorAll("." + this.config.boxClass), f = [], c = 0, d = e.length; d > c; c++) b = e[c], g.call(this.all, b) < 0 ? (this.boxes.push(b), this.all.push(b), this.stopped || this.disabled() ? this.resetStyle() : this.applyStyle(b, !0), f.push(this.scrolled = !0)) : f.push(void 0);
return f
}
}, e.prototype.show = function(a) {
return this.applyStyle(a), a.className = a.className + " " + this.config.animateClass, null != this.config.callback && this.config.callback(a), this.util().emitEvent(a, this.wowEvent), this.util().addEvent(a, "animationend", this.resetAnimation), this.util().addEvent(a, "oanimationend", this.resetAnimation), this.util().addEvent(a, "webkitAnimationEnd", this.resetAnimation), this.util().addEvent(a, "MSAnimationEnd", this.resetAnimation), a
}, e.prototype.applyStyle = function(a, b) {
var c, d, e;
return d = a.getAttribute("data-wow-duration"), c = a.getAttribute("data-wow-delay"), e = a.getAttribute("data-wow-iteration"), this.animate(function(f) {
return function() {
return f.customStyle(a, b, d, c, e)
}
}(this))
}, e.prototype.animate = function() {
return "requestAnimationFrame" in window ? function(a) {
return window.requestAnimationFrame(a)
} : function(a) {
return a()
}
}(), e.prototype.resetStyle = function() {
var a, b, c, d, e;
for (d = this.boxes, e = [], b = 0, c = d.length; c > b; b++) a = d[b], e.push(a.style.visibility = "visible");
return e
}, e.prototype.resetAnimation = function(a) {
var b;
return a.type.toLowerCase().indexOf("animationend") >= 0 ? (b = a.target || a.srcElement, b.className = b.className.replace(this.config.animateClass, "").trim()) : void 0
}, e.prototype.customStyle = function(a, b, c, d, e) {
return b && this.cacheAnimationName(a), a.style.visibility = b ? "hidden" : "visible", c && this.vendorSet(a.style, {
animationDuration: c
}), d && this.vendorSet(a.style, {
animationDelay: d
}), e && this.vendorSet(a.style, {
animationIterationCount: e
}), this.vendorSet(a.style, {
animationName: b ? "none" : this.cachedAnimationName(a)
}), a
}, e.prototype.vendors = ["moz", "webkit"], e.prototype.vendorSet = function(a, b) {
var c, d, e, f;
d = [];
for (c in b) e = b[c], a["" + c] = e, d.push(function() {
var b, d, g, h;
for (g = this.vendors, h = [], b = 0, d = g.length; d > b; b++) f = g[b], h.push(a["" + f + c.charAt(0).toUpperCase() + c.substr(1)] = e);
return h
}.call(this));
return d
}, e.prototype.vendorCSS = function(a, b) {
var c, e, f, g, h, i;
for (h = d(a), g = h.getPropertyCSSValue(b), f = this.vendors, c = 0, e = f.length; e > c; c++) i = f[c], g = g || h.getPropertyCSSValue("-" + i + "-" + b);
return g
}, e.prototype.animationName = function(a) {
var b;
try {
b = this.vendorCSS(a, "animation-name").cssText
} catch (c) {
b = d(a).getPropertyValue("animation-name")
}
return "none" === b ? "" : b
}, e.prototype.cacheAnimationName = function(a) {
return this.animationNameCache.set(a, this.animationName(a))
}, e.prototype.cachedAnimationName = function(a) {
return this.animationNameCache.get(a)
}, e.prototype.scrollHandler = function() {
return this.scrolled = !0
}, e.prototype.scrollCallback = function() {
var a;
return !this.scrolled || (this.scrolled = !1, this.boxes = function() {
var b, c, d, e;
for (d = this.boxes, e = [], b = 0, c = d.length; c > b; b++) a = d[b], a && (this.isVisible(a) ? this.show(a) : e.push(a));
return e
}.call(this), this.boxes.length || this.config.live) ? void 0 : this.stop()
}, e.prototype.offsetTop = function(a) {
for (var b; void 0 === a.offsetTop;) a = a.parentNode;
for (b = a.offsetTop; a = a.offsetParent;) b += a.offsetTop;
return b
}, e.prototype.isVisible = function(a) {
var b, c, d, e, f;
return c = a.getAttribute("data-wow-offset") || this.config.offset, f = this.config.scrollContainer && this.config.scrollContainer.scrollTop || window.pageYOffset, e = f + Math.min(this.element.clientHeight, this.util().innerHeight()) - c, d = this.offsetTop(a), b = d + a.clientHeight, e >= d && b >= f
}, e.prototype.util = function() {
return null != this._util ? this._util : this._util = new b
}, e.prototype.disabled = function() {
return !this.config.mobile && this.util().isMobile(navigator.userAgent)
}, e
}()
}).call(this);
! function() {
for (var l, e = function() {}, o = ["assert", "clear", "count", "debug", "dir", "dirxml", "error", "exception", "group", "groupCollapsed", "groupEnd", "info", "log", "markTimeline", "profile", "profileEnd", "table", "time", "timeEnd", "timeline", "timelineEnd", "timeStamp", "trace", "warn"], r = o.length, t = window.console = window.console || {}; r--;) t[l = o[r]] || (t[l] = e)
}(),
function(l, e, o) {
"use strict";
l.fn.scrollUp = function(e) {
l.data(o.body, "scrollUp") || (l.data(o.body, "scrollUp", !0), l.fn.scrollUp.init(e))
}, l.fn.scrollUp.init = function(r) {
var t, s, n, i, c, a, d = l.fn.scrollUp.settings = l.extend({}, l.fn.scrollUp.defaults, r),
p = !1;
switch (a = d.scrollTrigger ? l(d.scrollTrigger) : l("
", {
id: d.scrollName,
href: "#top"
}), d.scrollTitle && a.attr("title", d.scrollTitle), a.appendTo("body"), d.scrollImg || d.scrollTrigger || a.html(d.scrollText), a.css({
display: "none",
position: "fixed",
zIndex: d.zIndex
}), d.activeOverlay && l("
", {
id: d.scrollName + "-active"
}).css({
position: "absolute",
top: d.scrollDistance + "px",
width: "100%",
borderTop: "1px dotted" + d.activeOverlay,
zIndex: d.zIndex
}).appendTo("body"), d.animation) {
case "fade":
t = "fadeIn", s = "fadeOut", n = d.animationSpeed;
break;
case "slide":
t = "slideDown", s = "slideUp", n = d.animationSpeed;
break;
default:
t = "show", s = "hide", n = 0
}
i = "top" === d.scrollFrom ? d.scrollDistance : l(o).height() - l(e).height() - d.scrollDistance, l(e).scroll(function() {
l(e).scrollTop() > i ? p || (a[t](n), p = !0) : p && (a[s](n), p = !1)
}), d.scrollTarget ? "number" == typeof d.scrollTarget ? c = d.scrollTarget : "string" == typeof d.scrollTarget && (c = Math.floor(l(d.scrollTarget).offset().top)) : c = 0, a.click(function(e) {
e.preventDefault(), l("html, body").animate({
scrollTop: c
}, d.scrollSpeed, d.easingType)
})
}, l.fn.scrollUp.defaults = {
scrollName: "scrollUp",
scrollDistance: 300,
scrollFrom: "top",
scrollSpeed: 300,
easingType: "linear",
animation: "fade",
animationSpeed: 200,
scrollTrigger: !1,
scrollTarget: !1,
scrollText: "Scroll to top",
scrollTitle: !1,
scrollImg: !1,
activeOverlay: !1,
zIndex: 2147483647
}, l.fn.scrollUp.destroy = function(r) {
l.removeData(o.body, "scrollUp"), l("#" + l.fn.scrollUp.settings.scrollName).remove(), l("#" + l.fn.scrollUp.settings.scrollName + "-active").remove(), l.fn.jquery.split(".")[1] >= 7 ? l(e).off("scroll", r) : l(e).unbind("scroll", r)
}, l.scrollUp = l.fn.scrollUp
}(jQuery, window, document);
! function(e) {
e.fn.niceSelect = function(t) {
if ("string" == typeof t) return "update" == t ? this.each(function() {
var t = e(this),
n = e(this).next(".nice-select"),
i = n.hasClass("open");
n.length && (n.remove(), s(t), i && t.next().trigger("click"))
}) : "destroy" == t ? (this.each(function() {
var t = e(this),
s = e(this).next(".nice-select");
s.length && (s.remove(), t.css("display", ""))
}), 0 == e(".nice-select").length && e(document).off(".nice_select")) : console.log('Method "' + t + '" does not exist.'), this;
function s(t) {
t.after(e("
").addClass("nice-select").addClass(t.attr("class") || "").addClass(t.attr("disabled") ? "disabled" : "").attr("tabindex", t.attr("disabled") ? null : "0").html('
'));
var s = t.next(),
n = t.find("option"),
i = t.find("option:selected");
s.find(".current").html(i.data("display") || i.text()), n.each(function(t) {
var n = e(this),
i = n.data("display");
s.find("ul").append(e("
").attr("data-value", n.val()).attr("data-display", i || null).addClass("option" + (n.is(":selected") ? " selected" : "") + (n.is(":disabled") ? " disabled" : "")).html(n.text()))
})
}
this.hide(), this.each(function() {
var t = e(this);
t.next().hasClass("nice-select") || s(t)
}), e(document).off(".nice_select"), e(document).on("click.nice_select", ".nice-select", function(t) {
var s = e(this);
e(".nice-select").not(s).removeClass("open"), s.toggleClass("open"), s.hasClass("open") ? (s.find(".option"), s.find(".focus").removeClass("focus"), s.find(".selected").addClass("focus")) : s.focus()
}), e(document).on("click.nice_select", function(t) {
0 === e(t.target).closest(".nice-select").length && e(".nice-select").removeClass("open").find(".option")
}), e(document).on("click.nice_select", ".nice-select .option:not(.disabled)", function(t) {
var s = e(this),
n = s.closest(".nice-select");
n.find(".selected").removeClass("selected"), s.addClass("selected");
var i = s.data("display") || s.text();
n.find(".current").text(i), n.prev("select").val(s.data("value")).trigger("change")
}), e(document).on("keydown.nice_select", ".nice-select", function(t) {
var s = e(this),
n = e(s.find(".focus") || s.find(".list .option.selected"));
if (32 == t.keyCode || 13 == t.keyCode) return s.hasClass("open") ? n.trigger("click") : s.trigger("click"), !1;
if (40 == t.keyCode) {
if (s.hasClass("open")) {
var i = n.nextAll(".option:not(.disabled)").first();
i.length > 0 && (s.find(".focus").removeClass("focus"), i.addClass("focus"))
} else s.trigger("click");
return !1
}
if (38 == t.keyCode) {
if (s.hasClass("open")) {
var l = n.prevAll(".option:not(.disabled)").first();
l.length > 0 && (s.find(".focus").removeClass("focus"), l.addClass("focus"))
} else s.trigger("click");
return !1
}
if (27 == t.keyCode) s.hasClass("open") && s.trigger("click");
else if (9 == t.keyCode && s.hasClass("open")) return !1
});
var n = document.createElement("a").style;
return n.cssText = "pointer-events:auto", "auto" !== n.pointerEvents && e("html").addClass("no-csspointerevents"), this
}
}(jQuery);
! function(t, n, i, s) {
var e = function(s, e) {
this.elem = s, this.$elem = t(s), this.options = e, this.metadata = this.$elem.data("plugin-options"), this.$win = t(n), this.sections = {}, this.didScroll = !1, this.$doc = t(i), this.docHeight = this.$doc.height()
};
e.defaults = (e.prototype = {
defaults: {
navItems: "a",
currentClass: "current",
changeHash: !1,
easing: "swing",
filter: "",
scrollSpeed: 1200,
scrollThreshold: .5,
begin: !1,
end: !1,
scrollChange: !1
},
init: function() {
return this.config = t.extend({}, this.defaults, this.options, this.metadata), this.$nav = this.$elem.find(this.config.navItems), "" !== this.config.filter && (this.$nav = this.$nav.filter(this.config.filter)), this.$nav.on("click.onePageNav", t.proxy(this.handleClick, this)), this.getPositions(), this.bindInterval(), this.$win.on("resize.onePageNav", t.proxy(this.getPositions, this)), this
},
adjustNav: function(t, n) {
t.$elem.find("." + t.config.currentClass).removeClass(t.config.currentClass), n.addClass(t.config.currentClass)
},
bindInterval: function() {
var t, n = this;
n.$win.on("scroll.onePageNav", function() {
n.didScroll = !0
}), n.t = setInterval(function() {
t = n.$doc.height(), n.didScroll && (n.didScroll = !1, n.scrollChange()), t !== n.docHeight && (n.docHeight = t, n.getPositions())
}, 250)
},
getHash: function(t) {
return t.attr("href").split("#")[1]
},
getPositions: function() {
var n, i, s, e = this;
e.$nav.each(function() {
n = e.getHash(t(this)), (s = t("#" + n)).length && (i = s.offset().top, e.sections[n] = Math.round(i))
})
},
getSection: function(t) {
var n = null,
i = Math.round(this.$win.height() * this.config.scrollThreshold);
for (var s in this.sections) this.sections[s] - i < t && (n = s);
return n
},
handleClick: function(i) {
var s = this,
e = t(i.currentTarget),
o = e.parent(),
a = "#" + s.getHash(e);
o.hasClass(s.config.currentClass) || (s.config.begin && s.config.begin(), s.adjustNav(s, o), s.unbindInterval(), s.scrollTo(a, function() {
s.config.changeHash && (n.location.hash = a), s.bindInterval(), s.config.end && s.config.end()
})), i.preventDefault()
},
scrollChange: function() {
var t, n = this.$win.scrollTop(),
i = this.getSection(n);
null !== i && ((t = this.$elem.find('a[href$="#' + i + '"]').parent()).hasClass(this.config.currentClass) || (this.adjustNav(this, t), this.config.scrollChange && this.config.scrollChange(t)))
},
scrollTo: function(n, i) {
var s = t(n).offset().top;
t("html, body").animate({
scrollTop: s
}, this.config.scrollSpeed, this.config.easing, i)
},
unbindInterval: function() {
clearInterval(this.t), this.$win.unbind("scroll.onePageNav")
}
}).defaults, t.fn.onePageNav = function(t) {
return this.each(function() {
new e(this, t).init()
})
}
}(jQuery, window, document);
/*!
* Isotope PACKAGED v3.0.4
*
* Licensed GPLv3 for open source use
* or Isotope Commercial License for commercial use
*
* http://isotope.metafizzy.co
* Copyright 2017 Metafizzy
*/
! function(t, e) {
"function" == typeof define && define.amd ? define("jquery-bridget/jquery-bridget", ["jquery"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("jquery")) : t.jQueryBridget = e(t, t.jQuery)
}(window, function(t, e) {
"use strict";
function i(i, s, a) {
function u(t, e, o) {
var n, s = "$()." + i + '("' + e + '")';
return t.each(function(t, u) {
var h = a.data(u, i);
if (!h) return void r(i + " not initialized. Cannot call methods, i.e. " + s);
var d = h[e];
if (!d || "_" == e.charAt(0)) return void r(s + " is not a valid method");
var l = d.apply(h, o);
n = void 0 === n ? l : n
}), void 0 !== n ? n : t
}
function h(t, e) {
t.each(function(t, o) {
var n = a.data(o, i);
n ? (n.option(e), n._init()) : (n = new s(o, e), a.data(o, i, n))
})
}
a = a || e || t.jQuery, a && (s.prototype.option || (s.prototype.option = function(t) {
a.isPlainObject(t) && (this.options = a.extend(!0, this.options, t))
}), a.fn[i] = function(t) {
if ("string" == typeof t) {
var e = n.call(arguments, 1);
return u(this, t, e)
}
return h(this, t), this
}, o(a))
}
function o(t) {
!t || t && t.bridget || (t.bridget = i)
}
var n = Array.prototype.slice,
s = t.console,
r = "undefined" == typeof s ? function() {} : function(t) {
s.error(t)
};
return o(e || t.jQuery), i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", e) : "object" == typeof module && module.exports ? module.exports = e() : t.EvEmitter = e()
}("undefined" != typeof window ? window : this, function() {
function t() {}
var e = t.prototype;
return e.on = function(t, e) {
if (t && e) {
var i = this._events = this._events || {},
o = i[t] = i[t] || [];
return o.indexOf(e) == -1 && o.push(e), this
}
}, e.once = function(t, e) {
if (t && e) {
this.on(t, e);
var i = this._onceEvents = this._onceEvents || {},
o = i[t] = i[t] || {};
return o[e] = !0, this
}
}, e.off = function(t, e) {
var i = this._events && this._events[t];
if (i && i.length) {
var o = i.indexOf(e);
return o != -1 && i.splice(o, 1), this
}
}, e.emitEvent = function(t, e) {
var i = this._events && this._events[t];
if (i && i.length) {
var o = 0,
n = i[o];
e = e || [];
for (var s = this._onceEvents && this._onceEvents[t]; n;) {
var r = s && s[n];
r && (this.off(t, n), delete s[n]), n.apply(this, e), o += r ? 0 : 1, n = i[o]
}
return this
}
}, t
}),
function(t, e) {
"use strict";
"function" == typeof define && define.amd ? define("get-size/get-size", [], function() {
return e()
}) : "object" == typeof module && module.exports ? module.exports = e() : t.getSize = e()
}(window, function() {
"use strict";
function t(t) {
var e = parseFloat(t),
i = t.indexOf("%") == -1 && !isNaN(e);
return i && e
}
function e() {}
function i() {
for (var t = {
width: 0,
height: 0,
innerWidth: 0,
innerHeight: 0,
outerWidth: 0,
outerHeight: 0
}, e = 0; e < h; e++) {
var i = u[e];
t[i] = 0
}
return t
}
function o(t) {
var e = getComputedStyle(t);
return e || a("Style returned " + e + ". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"), e
}
function n() {
if (!d) {
d = !0;
var e = document.createElement("div");
e.style.width = "200px", e.style.padding = "1px 2px 3px 4px", e.style.borderStyle = "solid", e.style.borderWidth = "1px 2px 3px 4px", e.style.boxSizing = "border-box";
var i = document.body || document.documentElement;
i.appendChild(e);
var n = o(e);
s.isBoxSizeOuter = r = 200 == t(n.width), i.removeChild(e)
}
}
function s(e) {
if (n(), "string" == typeof e && (e = document.querySelector(e)), e && "object" == typeof e && e.nodeType) {
var s = o(e);
if ("none" == s.display) return i();
var a = {};
a.width = e.offsetWidth, a.height = e.offsetHeight;
for (var d = a.isBorderBox = "border-box" == s.boxSizing, l = 0; l < h; l++) {
var f = u[l],
c = s[f],
m = parseFloat(c);
a[f] = isNaN(m) ? 0 : m
}
var p = a.paddingLeft + a.paddingRight,
y = a.paddingTop + a.paddingBottom,
g = a.marginLeft + a.marginRight,
v = a.marginTop + a.marginBottom,
_ = a.borderLeftWidth + a.borderRightWidth,
I = a.borderTopWidth + a.borderBottomWidth,
z = d && r,
x = t(s.width);
x !== !1 && (a.width = x + (z ? 0 : p + _));
var S = t(s.height);
return S !== !1 && (a.height = S + (z ? 0 : y + I)), a.innerWidth = a.width - (p + _), a.innerHeight = a.height - (y + I), a.outerWidth = a.width + g, a.outerHeight = a.height + v, a
}
}
var r, a = "undefined" == typeof console ? e : function(t) {
console.error(t)
},
u = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"],
h = u.length,
d = !1;
return s
}),
function(t, e) {
"use strict";
"function" == typeof define && define.amd ? define("desandro-matches-selector/matches-selector", e) : "object" == typeof module && module.exports ? module.exports = e() : t.matchesSelector = e()
}(window, function() {
"use strict";
var t = function() {
var t = window.Element.prototype;
if (t.matches) return "matches";
if (t.matchesSelector) return "matchesSelector";
for (var e = ["webkit", "moz", "ms", "o"], i = 0; i < e.length; i++) {
var o = e[i],
n = o + "MatchesSelector";
if (t[n]) return n
}
}();
return function(e, i) {
return e[t](i)
}
}),
function(t, e) {
"function" == typeof define && define.amd ? define("fizzy-ui-utils/utils", ["desandro-matches-selector/matches-selector"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("desandro-matches-selector")) : t.fizzyUIUtils = e(t, t.matchesSelector)
}(window, function(t, e) {
var i = {};
i.extend = function(t, e) {
for (var i in e) t[i] = e[i];
return t
}, i.modulo = function(t, e) {
return (t % e + e) % e
}, i.makeArray = function(t) {
var e = [];
if (Array.isArray(t)) e = t;
else if (t && "object" == typeof t && "number" == typeof t.length)
for (var i = 0; i < t.length; i++) e.push(t[i]);
else e.push(t);
return e
}, i.removeFrom = function(t, e) {
var i = t.indexOf(e);
i != -1 && t.splice(i, 1)
}, i.getParent = function(t, i) {
for (; t.parentNode && t != document.body;)
if (t = t.parentNode, e(t, i)) return t
}, i.getQueryElement = function(t) {
return "string" == typeof t ? document.querySelector(t) : t
}, i.handleEvent = function(t) {
var e = "on" + t.type;
this[e] && this[e](t)
}, i.filterFindElements = function(t, o) {
t = i.makeArray(t);
var n = [];
return t.forEach(function(t) {
if (t instanceof HTMLElement) {
if (!o) return void n.push(t);
e(t, o) && n.push(t);
for (var i = t.querySelectorAll(o), s = 0; s < i.length; s++) n.push(i[s])
}
}), n
}, i.debounceMethod = function(t, e, i) {
var o = t.prototype[e],
n = e + "Timeout";
t.prototype[e] = function() {
var t = this[n];
t && clearTimeout(t);
var e = arguments,
s = this;
this[n] = setTimeout(function() {
o.apply(s, e), delete s[n]
}, i || 100)
}
}, i.docReady = function(t) {
var e = document.readyState;
"complete" == e || "interactive" == e ? setTimeout(t) : document.addEventListener("DOMContentLoaded", t)
}, i.toDashed = function(t) {
return t.replace(/(.)([A-Z])/g, function(t, e, i) {
return e + "-" + i
}).toLowerCase()
};
var o = t.console;
return i.htmlInit = function(e, n) {
i.docReady(function() {
var s = i.toDashed(n),
r = "data-" + s,
a = document.querySelectorAll("[" + r + "]"),
u = document.querySelectorAll(".js-" + s),
h = i.makeArray(a).concat(i.makeArray(u)),
d = r + "-options",
l = t.jQuery;
h.forEach(function(t) {
var i, s = t.getAttribute(r) || t.getAttribute(d);
try {
i = s && JSON.parse(s)
} catch (a) {
return void(o && o.error("Error parsing " + r + " on " + t.className + ": " + a))
}
var u = new e(t, i);
l && l.data(t, n, u)
})
})
}, i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("outlayer/item", ["ev-emitter/ev-emitter", "get-size/get-size"], e) : "object" == typeof module && module.exports ? module.exports = e(require("ev-emitter"), require("get-size")) : (t.Outlayer = {}, t.Outlayer.Item = e(t.EvEmitter, t.getSize))
}(window, function(t, e) {
"use strict";
function i(t) {
for (var e in t) return !1;
return e = null, !0
}
function o(t, e) {
t && (this.element = t, this.layout = e, this.position = {
x: 0,
y: 0
}, this._create())
}
function n(t) {
return t.replace(/([A-Z])/g, function(t) {
return "-" + t.toLowerCase()
})
}
var s = document.documentElement.style,
r = "string" == typeof s.transition ? "transition" : "WebkitTransition",
a = "string" == typeof s.transform ? "transform" : "WebkitTransform",
u = {
WebkitTransition: "webkitTransitionEnd",
transition: "transitionend"
}[r],
h = {
transform: a,
transition: r,
transitionDuration: r + "Duration",
transitionProperty: r + "Property",
transitionDelay: r + "Delay"
},
d = o.prototype = Object.create(t.prototype);
d.constructor = o, d._create = function() {
this._transn = {
ingProperties: {},
clean: {},
onEnd: {}
}, this.css({
position: "absolute"
})
}, d.handleEvent = function(t) {
var e = "on" + t.type;
this[e] && this[e](t)
}, d.getSize = function() {
this.size = e(this.element)
}, d.css = function(t) {
var e = this.element.style;
for (var i in t) {
var o = h[i] || i;
e[o] = t[i]
}
}, d.getPosition = function() {
var t = getComputedStyle(this.element),
e = this.layout._getOption("originLeft"),
i = this.layout._getOption("originTop"),
o = t[e ? "left" : "right"],
n = t[i ? "top" : "bottom"],
s = this.layout.size,
r = o.indexOf("%") != -1 ? parseFloat(o) / 100 * s.width : parseInt(o, 10),
a = n.indexOf("%") != -1 ? parseFloat(n) / 100 * s.height : parseInt(n, 10);
r = isNaN(r) ? 0 : r, a = isNaN(a) ? 0 : a, r -= e ? s.paddingLeft : s.paddingRight, a -= i ? s.paddingTop : s.paddingBottom, this.position.x = r, this.position.y = a
}, d.layoutPosition = function() {
var t = this.layout.size,
e = {},
i = this.layout._getOption("originLeft"),
o = this.layout._getOption("originTop"),
n = i ? "paddingLeft" : "paddingRight",
s = i ? "left" : "right",
r = i ? "right" : "left",
a = this.position.x + t[n];
e[s] = this.getXValue(a), e[r] = "";
var u = o ? "paddingTop" : "paddingBottom",
h = o ? "top" : "bottom",
d = o ? "bottom" : "top",
l = this.position.y + t[u];
e[h] = this.getYValue(l), e[d] = "", this.css(e), this.emitEvent("layout", [this])
}, d.getXValue = function(t) {
var e = this.layout._getOption("horizontal");
return this.layout.options.percentPosition && !e ? t / this.layout.size.width * 100 + "%" : t + "px"
}, d.getYValue = function(t) {
var e = this.layout._getOption("horizontal");
return this.layout.options.percentPosition && e ? t / this.layout.size.height * 100 + "%" : t + "px"
}, d._transitionTo = function(t, e) {
this.getPosition();
var i = this.position.x,
o = this.position.y,
n = parseInt(t, 10),
s = parseInt(e, 10),
r = n === this.position.x && s === this.position.y;
if (this.setPosition(t, e), r && !this.isTransitioning) return void this.layoutPosition();
var a = t - i,
u = e - o,
h = {};
h.transform = this.getTranslate(a, u), this.transition({
to: h,
onTransitionEnd: {
transform: this.layoutPosition
},
isCleaning: !0
})
}, d.getTranslate = function(t, e) {
var i = this.layout._getOption("originLeft"),
o = this.layout._getOption("originTop");
return t = i ? t : -t, e = o ? e : -e, "translate3d(" + t + "px, " + e + "px, 0)"
}, d.goTo = function(t, e) {
this.setPosition(t, e), this.layoutPosition()
}, d.moveTo = d._transitionTo, d.setPosition = function(t, e) {
this.position.x = parseInt(t, 10), this.position.y = parseInt(e, 10)
}, d._nonTransition = function(t) {
this.css(t.to), t.isCleaning && this._removeStyles(t.to);
for (var e in t.onTransitionEnd) t.onTransitionEnd[e].call(this)
}, d.transition = function(t) {
if (!parseFloat(this.layout.options.transitionDuration)) return void this._nonTransition(t);
var e = this._transn;
for (var i in t.onTransitionEnd) e.onEnd[i] = t.onTransitionEnd[i];
for (i in t.to) e.ingProperties[i] = !0, t.isCleaning && (e.clean[i] = !0);
if (t.from) {
this.css(t.from);
var o = this.element.offsetHeight;
o = null
}
this.enableTransition(t.to), this.css(t.to), this.isTransitioning = !0
};
var l = "opacity," + n(a);
d.enableTransition = function() {
if (!this.isTransitioning) {
var t = this.layout.options.transitionDuration;
t = "number" == typeof t ? t + "ms" : t, this.css({
transitionProperty: l,
transitionDuration: t,
transitionDelay: this.staggerDelay || 0
}), this.element.addEventListener(u, this, !1)
}
}, d.onwebkitTransitionEnd = function(t) {
this.ontransitionend(t)
}, d.onotransitionend = function(t) {
this.ontransitionend(t)
};
var f = {
"-webkit-transform": "transform"
};
d.ontransitionend = function(t) {
if (t.target === this.element) {
var e = this._transn,
o = f[t.propertyName] || t.propertyName;
if (delete e.ingProperties[o], i(e.ingProperties) && this.disableTransition(), o in e.clean && (this.element.style[t.propertyName] = "", delete e.clean[o]), o in e.onEnd) {
var n = e.onEnd[o];
n.call(this), delete e.onEnd[o]
}
this.emitEvent("transitionEnd", [this])
}
}, d.disableTransition = function() {
this.removeTransitionStyles(), this.element.removeEventListener(u, this, !1), this.isTransitioning = !1
}, d._removeStyles = function(t) {
var e = {};
for (var i in t) e[i] = "";
this.css(e)
};
var c = {
transitionProperty: "",
transitionDuration: "",
transitionDelay: ""
};
return d.removeTransitionStyles = function() {
this.css(c)
}, d.stagger = function(t) {
t = isNaN(t) ? 0 : t, this.staggerDelay = t + "ms"
}, d.removeElem = function() {
this.element.parentNode.removeChild(this.element), this.css({
display: ""
}), this.emitEvent("remove", [this])
}, d.remove = function() {
return r && parseFloat(this.layout.options.transitionDuration) ? (this.once("transitionEnd", function() {
this.removeElem()
}), void this.hide()) : void this.removeElem()
}, d.reveal = function() {
delete this.isHidden, this.css({
display: ""
});
var t = this.layout.options,
e = {},
i = this.getHideRevealTransitionEndProperty("visibleStyle");
e[i] = this.onRevealTransitionEnd, this.transition({
from: t.hiddenStyle,
to: t.visibleStyle,
isCleaning: !0,
onTransitionEnd: e
})
}, d.onRevealTransitionEnd = function() {
this.isHidden || this.emitEvent("reveal")
}, d.getHideRevealTransitionEndProperty = function(t) {
var e = this.layout.options[t];
if (e.opacity) return "opacity";
for (var i in e) return i
}, d.hide = function() {
this.isHidden = !0, this.css({
display: ""
});
var t = this.layout.options,
e = {},
i = this.getHideRevealTransitionEndProperty("hiddenStyle");
e[i] = this.onHideTransitionEnd, this.transition({
from: t.visibleStyle,
to: t.hiddenStyle,
isCleaning: !0,
onTransitionEnd: e
})
}, d.onHideTransitionEnd = function() {
this.isHidden && (this.css({
display: "none"
}), this.emitEvent("hide"))
}, d.destroy = function() {
this.css({
position: "",
left: "",
right: "",
top: "",
bottom: "",
transition: "",
transform: ""
})
}, o
}),
function(t, e) {
"use strict";
"function" == typeof define && define.amd ? define("outlayer/outlayer", ["ev-emitter/ev-emitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item"], function(i, o, n, s) {
return e(t, i, o, n, s)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("ev-emitter"), require("get-size"), require("fizzy-ui-utils"), require("./item")) : t.Outlayer = e(t, t.EvEmitter, t.getSize, t.fizzyUIUtils, t.Outlayer.Item)
}(window, function(t, e, i, o, n) {
"use strict";
function s(t, e) {
var i = o.getQueryElement(t);
if (!i) return void(u && u.error("Bad element for " + this.constructor.namespace + ": " + (i || t)));
this.element = i, h && (this.$element = h(this.element)), this.options = o.extend({}, this.constructor.defaults), this.option(e);
var n = ++l;
this.element.outlayerGUID = n, f[n] = this, this._create();
var s = this._getOption("initLayout");
s && this.layout()
}
function r(t) {
function e() {
t.apply(this, arguments)
}
return e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e
}
function a(t) {
if ("number" == typeof t) return t;
var e = t.match(/(^\d*\.?\d*)(\w*)/),
i = e && e[1],
o = e && e[2];
if (!i.length) return 0;
i = parseFloat(i);
var n = m[o] || 1;
return i * n
}
var u = t.console,
h = t.jQuery,
d = function() {},
l = 0,
f = {};
s.namespace = "outlayer", s.Item = n, s.defaults = {
containerStyle: {
position: "relative"
},
initLayout: !0,
originLeft: !0,
originTop: !0,
resize: !0,
resizeContainer: !0,
transitionDuration: "0.4s",
hiddenStyle: {
opacity: 0,
transform: "scale(0.001)"
},
visibleStyle: {
opacity: 1,
transform: "scale(1)"
}
};
var c = s.prototype;
o.extend(c, e.prototype), c.option = function(t) {
o.extend(this.options, t)
}, c._getOption = function(t) {
var e = this.constructor.compatOptions[t];
return e && void 0 !== this.options[e] ? this.options[e] : this.options[t]
}, s.compatOptions = {
initLayout: "isInitLayout",
horizontal: "isHorizontal",
layoutInstant: "isLayoutInstant",
originLeft: "isOriginLeft",
originTop: "isOriginTop",
resize: "isResizeBound",
resizeContainer: "isResizingContainer"
}, c._create = function() {
this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), o.extend(this.element.style, this.options.containerStyle);
var t = this._getOption("resize");
t && this.bindResize()
}, c.reloadItems = function() {
this.items = this._itemize(this.element.children)
}, c._itemize = function(t) {
for (var e = this._filterFindItemElements(t), i = this.constructor.Item, o = [], n = 0; n < e.length; n++) {
var s = e[n],
r = new i(s, this);
o.push(r)
}
return o
}, c._filterFindItemElements = function(t) {
return o.filterFindElements(t, this.options.itemSelector)
}, c.getItemElements = function() {
return this.items.map(function(t) {
return t.element
})
}, c.layout = function() {
this._resetLayout(), this._manageStamps();
var t = this._getOption("layoutInstant"),
e = void 0 !== t ? t : !this._isLayoutInited;
this.layoutItems(this.items, e), this._isLayoutInited = !0
}, c._init = c.layout, c._resetLayout = function() {
this.getSize()
}, c.getSize = function() {
this.size = i(this.element)
}, c._getMeasurement = function(t, e) {
var o, n = this.options[t];
n ? ("string" == typeof n ? o = this.element.querySelector(n) : n instanceof HTMLElement && (o = n), this[t] = o ? i(o)[e] : n) : this[t] = 0
}, c.layoutItems = function(t, e) {
t = this._getItemsForLayout(t), this._layoutItems(t, e), this._postLayout()
}, c._getItemsForLayout = function(t) {
return t.filter(function(t) {
return !t.isIgnored
})
}, c._layoutItems = function(t, e) {
if (this._emitCompleteOnItems("layout", t), t && t.length) {
var i = [];
t.forEach(function(t) {
var o = this._getItemLayoutPosition(t);
o.item = t, o.isInstant = e || t.isLayoutInstant, i.push(o)
}, this), this._processLayoutQueue(i)
}
}, c._getItemLayoutPosition = function() {
return {
x: 0,
y: 0
}
}, c._processLayoutQueue = function(t) {
this.updateStagger(), t.forEach(function(t, e) {
this._positionItem(t.item, t.x, t.y, t.isInstant, e)
}, this)
}, c.updateStagger = function() {
var t = this.options.stagger;
return null === t || void 0 === t ? void(this.stagger = 0) : (this.stagger = a(t), this.stagger)
}, c._positionItem = function(t, e, i, o, n) {
o ? t.goTo(e, i) : (t.stagger(n * this.stagger), t.moveTo(e, i))
}, c._postLayout = function() {
this.resizeContainer()
}, c.resizeContainer = function() {
var t = this._getOption("resizeContainer");
if (t) {
var e = this._getContainerSize();
e && (this._setContainerMeasure(e.width, !0), this._setContainerMeasure(e.height, !1))
}
}, c._getContainerSize = d, c._setContainerMeasure = function(t, e) {
if (void 0 !== t) {
var i = this.size;
i.isBorderBox && (t += e ? i.paddingLeft + i.paddingRight + i.borderLeftWidth + i.borderRightWidth : i.paddingBottom + i.paddingTop + i.borderTopWidth + i.borderBottomWidth), t = Math.max(t, 0), this.element.style[e ? "width" : "height"] = t + "px"
}
}, c._emitCompleteOnItems = function(t, e) {
function i() {
n.dispatchEvent(t + "Complete", null, [e])
}
function o() {
r++, r == s && i()
}
var n = this,
s = e.length;
if (!e || !s) return void i();
var r = 0;
e.forEach(function(e) {
e.once(t, o)
})
}, c.dispatchEvent = function(t, e, i) {
var o = e ? [e].concat(i) : i;
if (this.emitEvent(t, o), h)
if (this.$element = this.$element || h(this.element), e) {
var n = h.Event(e);
n.type = t, this.$element.trigger(n, i)
} else this.$element.trigger(t, i)
}, c.ignore = function(t) {
var e = this.getItem(t);
e && (e.isIgnored = !0)
}, c.unignore = function(t) {
var e = this.getItem(t);
e && delete e.isIgnored
}, c.stamp = function(t) {
t = this._find(t), t && (this.stamps = this.stamps.concat(t), t.forEach(this.ignore, this))
}, c.unstamp = function(t) {
t = this._find(t), t && t.forEach(function(t) {
o.removeFrom(this.stamps, t), this.unignore(t)
}, this)
}, c._find = function(t) {
if (t) return "string" == typeof t && (t = this.element.querySelectorAll(t)), t = o.makeArray(t)
}, c._manageStamps = function() {
this.stamps && this.stamps.length && (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this))
}, c._getBoundingRect = function() {
var t = this.element.getBoundingClientRect(),
e = this.size;
this._boundingRect = {
left: t.left + e.paddingLeft + e.borderLeftWidth,
top: t.top + e.paddingTop + e.borderTopWidth,
right: t.right - (e.paddingRight + e.borderRightWidth),
bottom: t.bottom - (e.paddingBottom + e.borderBottomWidth)
}
}, c._manageStamp = d, c._getElementOffset = function(t) {
var e = t.getBoundingClientRect(),
o = this._boundingRect,
n = i(t),
s = {
left: e.left - o.left - n.marginLeft,
top: e.top - o.top - n.marginTop,
right: o.right - e.right - n.marginRight,
bottom: o.bottom - e.bottom - n.marginBottom
};
return s
}, c.handleEvent = o.handleEvent, c.bindResize = function() {
t.addEventListener("resize", this), this.isResizeBound = !0
}, c.unbindResize = function() {
t.removeEventListener("resize", this), this.isResizeBound = !1
}, c.onresize = function() {
this.resize()
}, o.debounceMethod(s, "onresize", 100), c.resize = function() {
this.isResizeBound && this.needsResizeLayout() && this.layout()
}, c.needsResizeLayout = function() {
var t = i(this.element),
e = this.size && t;
return e && t.innerWidth !== this.size.innerWidth
}, c.addItems = function(t) {
var e = this._itemize(t);
return e.length && (this.items = this.items.concat(e)), e
}, c.appended = function(t) {
var e = this.addItems(t);
e.length && (this.layoutItems(e, !0), this.reveal(e))
}, c.prepended = function(t) {
var e = this._itemize(t);
if (e.length) {
var i = this.items.slice(0);
this.items = e.concat(i), this._resetLayout(), this._manageStamps(), this.layoutItems(e, !0), this.reveal(e), this.layoutItems(i)
}
}, c.reveal = function(t) {
if (this._emitCompleteOnItems("reveal", t), t && t.length) {
var e = this.updateStagger();
t.forEach(function(t, i) {
t.stagger(i * e), t.reveal()
})
}
}, c.hide = function(t) {
if (this._emitCompleteOnItems("hide", t), t && t.length) {
var e = this.updateStagger();
t.forEach(function(t, i) {
t.stagger(i * e), t.hide()
})
}
}, c.revealItemElements = function(t) {
var e = this.getItems(t);
this.reveal(e)
}, c.hideItemElements = function(t) {
var e = this.getItems(t);
this.hide(e)
}, c.getItem = function(t) {
for (var e = 0; e < this.items.length; e++) {
var i = this.items[e];
if (i.element == t) return i
}
}, c.getItems = function(t) {
t = o.makeArray(t);
var e = [];
return t.forEach(function(t) {
var i = this.getItem(t);
i && e.push(i)
}, this), e
}, c.remove = function(t) {
var e = this.getItems(t);
this._emitCompleteOnItems("remove", e), e && e.length && e.forEach(function(t) {
t.remove(), o.removeFrom(this.items, t)
}, this)
}, c.destroy = function() {
var t = this.element.style;
t.height = "", t.position = "", t.width = "", this.items.forEach(function(t) {
t.destroy()
}), this.unbindResize();
var e = this.element.outlayerGUID;
delete f[e], delete this.element.outlayerGUID, h && h.removeData(this.element, this.constructor.namespace)
}, s.data = function(t) {
t = o.getQueryElement(t);
var e = t && t.outlayerGUID;
return e && f[e]
}, s.create = function(t, e) {
var i = r(s);
return i.defaults = o.extend({}, s.defaults), o.extend(i.defaults, e), i.compatOptions = o.extend({}, s.compatOptions), i.namespace = t, i.data = s.data, i.Item = r(n), o.htmlInit(i, t), h && h.bridget && h.bridget(t, i), i
};
var m = {
ms: 1,
s: 1e3
};
return s.Item = n, s
}),
function(t, e) {
"function" == typeof define && define.amd ? define("isotope/js/item", ["outlayer/outlayer"], e) : "object" == typeof module && module.exports ? module.exports = e(require("outlayer")) : (t.Isotope = t.Isotope || {}, t.Isotope.Item = e(t.Outlayer))
}(window, function(t) {
"use strict";
function e() {
t.Item.apply(this, arguments)
}
var i = e.prototype = Object.create(t.Item.prototype),
o = i._create;
i._create = function() {
this.id = this.layout.itemGUID++, o.call(this), this.sortData = {}
}, i.updateSortData = function() {
if (!this.isIgnored) {
this.sortData.id = this.id, this.sortData["original-order"] = this.id, this.sortData.random = Math.random();
var t = this.layout.options.getSortData,
e = this.layout._sorters;
for (var i in t) {
var o = e[i];
this.sortData[i] = o(this.element, this)
}
}
};
var n = i.destroy;
return i.destroy = function() {
n.apply(this, arguments), this.css({
display: ""
})
}, e
}),
function(t, e) {
"function" == typeof define && define.amd ? define("isotope/js/layout-mode", ["get-size/get-size", "outlayer/outlayer"], e) : "object" == typeof module && module.exports ? module.exports = e(require("get-size"), require("outlayer")) : (t.Isotope = t.Isotope || {}, t.Isotope.LayoutMode = e(t.getSize, t.Outlayer))
}(window, function(t, e) {
"use strict";
function i(t) {
this.isotope = t, t && (this.options = t.options[this.namespace], this.element = t.element, this.items = t.filteredItems, this.size = t.size)
}
var o = i.prototype,
n = ["_resetLayout", "_getItemLayoutPosition", "_manageStamp", "_getContainerSize", "_getElementOffset", "needsResizeLayout", "_getOption"];
return n.forEach(function(t) {
o[t] = function() {
return e.prototype[t].apply(this.isotope, arguments)
}
}), o.needsVerticalResizeLayout = function() {
var e = t(this.isotope.element),
i = this.isotope.size && e;
return i && e.innerHeight != this.isotope.size.innerHeight
}, o._getMeasurement = function() {
this.isotope._getMeasurement.apply(this, arguments)
}, o.getColumnWidth = function() {
this.getSegmentSize("column", "Width")
}, o.getRowHeight = function() {
this.getSegmentSize("row", "Height")
}, o.getSegmentSize = function(t, e) {
var i = t + e,
o = "outer" + e;
if (this._getMeasurement(i, o), !this[i]) {
var n = this.getFirstItemSize();
this[i] = n && n[o] || this.isotope.size["inner" + e]
}
}, o.getFirstItemSize = function() {
var e = this.isotope.filteredItems[0];
return e && e.element && t(e.element)
}, o.layout = function() {
this.isotope.layout.apply(this.isotope, arguments)
}, o.getSize = function() {
this.isotope.getSize(), this.size = this.isotope.size
}, i.modes = {}, i.create = function(t, e) {
function n() {
i.apply(this, arguments)
}
return n.prototype = Object.create(o), n.prototype.constructor = n, e && (n.options = e), n.prototype.namespace = t, i.modes[t] = n, n
}, i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("masonry/masonry", ["outlayer/outlayer", "get-size/get-size"], e) : "object" == typeof module && module.exports ? module.exports = e(require("outlayer"), require("get-size")) : t.Masonry = e(t.Outlayer, t.getSize)
}(window, function(t, e) {
var i = t.create("masonry");
i.compatOptions.fitWidth = "isFitWidth";
var o = i.prototype;
return o._resetLayout = function() {
this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];
for (var t = 0; t < this.cols; t++) this.colYs.push(0);
this.maxY = 0, this.horizontalColIndex = 0
}, o.measureColumns = function() {
if (this.getContainerWidth(), !this.columnWidth) {
var t = this.items[0],
i = t && t.element;
this.columnWidth = i && e(i).outerWidth || this.containerWidth
}
var o = this.columnWidth += this.gutter,
n = this.containerWidth + this.gutter,
s = n / o,
r = o - n % o,
a = r && r < 1 ? "round" : "floor";
s = Math[a](s), this.cols = Math.max(s, 1)
}, o.getContainerWidth = function() {
var t = this._getOption("fitWidth"),
i = t ? this.element.parentNode : this.element,
o = e(i);
this.containerWidth = o && o.innerWidth
}, o._getItemLayoutPosition = function(t) {
t.getSize();
var e = t.size.outerWidth % this.columnWidth,
i = e && e < 1 ? "round" : "ceil",
o = Math[i](t.size.outerWidth / this.columnWidth);
o = Math.min(o, this.cols);
for (var n = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", s = this[n](o, t), r = {
x: this.columnWidth * s.col,
y: s.y
}, a = s.y + t.size.outerHeight, u = o + s.col, h = s.col; h < u; h++) this.colYs[h] = a;
return r
}, o._getTopColPosition = function(t) {
var e = this._getTopColGroup(t),
i = Math.min.apply(Math, e);
return {
col: e.indexOf(i),
y: i
}
}, o._getTopColGroup = function(t) {
if (t < 2) return this.colYs;
for (var e = [], i = this.cols + 1 - t, o = 0; o < i; o++) e[o] = this._getColGroupY(o, t);
return e
}, o._getColGroupY = function(t, e) {
if (e < 2) return this.colYs[t];
var i = this.colYs.slice(t, t + e);
return Math.max.apply(Math, i)
}, o._getHorizontalColPosition = function(t, e) {
var i = this.horizontalColIndex % this.cols,
o = t > 1 && i + t > this.cols;
i = o ? 0 : i;
var n = e.size.outerWidth && e.size.outerHeight;
return this.horizontalColIndex = n ? i + t : this.horizontalColIndex, {
col: i,
y: this._getColGroupY(i, t)
}
}, o._manageStamp = function(t) {
var i = e(t),
o = this._getElementOffset(t),
n = this._getOption("originLeft"),
s = n ? o.left : o.right,
r = s + i.outerWidth,
a = Math.floor(s / this.columnWidth);
a = Math.max(0, a);
var u = Math.floor(r / this.columnWidth);
u -= r % this.columnWidth ? 0 : 1, u = Math.min(this.cols - 1, u);
for (var h = this._getOption("originTop"), d = (h ? o.top : o.bottom) + i.outerHeight, l = a; l <= u; l++) this.colYs[l] = Math.max(d, this.colYs[l])
}, o._getContainerSize = function() {
this.maxY = Math.max.apply(Math, this.colYs);
var t = {
height: this.maxY
};
return this._getOption("fitWidth") && (t.width = this._getContainerFitWidth()), t
}, o._getContainerFitWidth = function() {
for (var t = 0, e = this.cols; --e && 0 === this.colYs[e];) t++;
return (this.cols - t) * this.columnWidth - this.gutter
}, o.needsResizeLayout = function() {
var t = this.containerWidth;
return this.getContainerWidth(), t != this.containerWidth
}, i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("isotope/js/layout-modes/masonry", ["../layout-mode", "masonry/masonry"], e) : "object" == typeof module && module.exports ? module.exports = e(require("../layout-mode"), require("masonry-layout")) : e(t.Isotope.LayoutMode, t.Masonry)
}(window, function(t, e) {
"use strict";
var i = t.create("masonry"),
o = i.prototype,
n = {
_getElementOffset: !0,
layout: !0,
_getMeasurement: !0
};
for (var s in e.prototype) n[s] || (o[s] = e.prototype[s]);
var r = o.measureColumns;
o.measureColumns = function() {
this.items = this.isotope.filteredItems, r.call(this)
};
var a = o._getOption;
return o._getOption = function(t) {
return "fitWidth" == t ? void 0 !== this.options.isFitWidth ? this.options.isFitWidth : this.options.fitWidth : a.apply(this.isotope, arguments)
}, i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("isotope/js/layout-modes/fit-rows", ["../layout-mode"], e) : "object" == typeof exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode)
}(window, function(t) {
"use strict";
var e = t.create("fitRows"),
i = e.prototype;
return i._resetLayout = function() {
this.x = 0, this.y = 0, this.maxY = 0, this._getMeasurement("gutter", "outerWidth")
}, i._getItemLayoutPosition = function(t) {
t.getSize();
var e = t.size.outerWidth + this.gutter,
i = this.isotope.size.innerWidth + this.gutter;
0 !== this.x && e + this.x > i && (this.x = 0, this.y = this.maxY);
var o = {
x: this.x,
y: this.y
};
return this.maxY = Math.max(this.maxY, this.y + t.size.outerHeight), this.x += e, o
}, i._getContainerSize = function() {
return {
height: this.maxY
}
}, e
}),
function(t, e) {
"function" == typeof define && define.amd ? define("isotope/js/layout-modes/vertical", ["../layout-mode"], e) : "object" == typeof module && module.exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode)
}(window, function(t) {
"use strict";
var e = t.create("vertical", {
horizontalAlignment: 0
}),
i = e.prototype;
return i._resetLayout = function() {
this.y = 0
}, i._getItemLayoutPosition = function(t) {
t.getSize();
var e = (this.isotope.size.innerWidth - t.size.outerWidth) * this.options.horizontalAlignment,
i = this.y;
return this.y += t.size.outerHeight, {
x: e,
y: i
}
}, i._getContainerSize = function() {
return {
height: this.y
}
}, e
}),
function(t, e) {
"function" == typeof define && define.amd ? define(["outlayer/outlayer", "get-size/get-size", "desandro-matches-selector/matches-selector", "fizzy-ui-utils/utils", "isotope/js/item", "isotope/js/layout-mode", "isotope/js/layout-modes/masonry", "isotope/js/layout-modes/fit-rows", "isotope/js/layout-modes/vertical"], function(i, o, n, s, r, a) {
return e(t, i, o, n, s, r, a)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("outlayer"), require("get-size"), require("desandro-matches-selector"), require("fizzy-ui-utils"), require("isotope/js/item"), require("isotope/js/layout-mode"), require("isotope/js/layout-modes/masonry"), require("isotope/js/layout-modes/fit-rows"), require("isotope/js/layout-modes/vertical")) : t.Isotope = e(t, t.Outlayer, t.getSize, t.matchesSelector, t.fizzyUIUtils, t.Isotope.Item, t.Isotope.LayoutMode)
}(window, function(t, e, i, o, n, s, r) {
function a(t, e) {
return function(i, o) {
for (var n = 0; n < t.length; n++) {
var s = t[n],
r = i.sortData[s],
a = o.sortData[s];
if (r > a || r < a) {
var u = void 0 !== e[s] ? e[s] : e,
h = u ? 1 : -1;
return (r > a ? 1 : -1) * h
}
}
return 0
}
}
var u = t.jQuery,
h = String.prototype.trim ? function(t) {
return t.trim()
} : function(t) {
return t.replace(/^\s+|\s+$/g, "")
},
d = e.create("isotope", {
layoutMode: "masonry",
isJQueryFiltering: !0,
sortAscending: !0
});
d.Item = s, d.LayoutMode = r;
var l = d.prototype;
l._create = function() {
this.itemGUID = 0, this._sorters = {}, this._getSorters(), e.prototype._create.call(this), this.modes = {}, this.filteredItems = this.items, this.sortHistory = ["original-order"];
for (var t in r.modes) this._initLayoutMode(t)
}, l.reloadItems = function() {
this.itemGUID = 0, e.prototype.reloadItems.call(this)
}, l._itemize = function() {
for (var t = e.prototype._itemize.apply(this, arguments), i = 0; i < t.length; i++) {
var o = t[i];
o.id = this.itemGUID++
}
return this._updateItemsSortData(t), t
}, l._initLayoutMode = function(t) {
var e = r.modes[t],
i = this.options[t] || {};
this.options[t] = e.options ? n.extend(e.options, i) : i, this.modes[t] = new e(this)
}, l.layout = function() {
return !this._isLayoutInited && this._getOption("initLayout") ? void this.arrange() : void this._layout()
}, l._layout = function() {
var t = this._getIsInstant();
this._resetLayout(), this._manageStamps(), this.layoutItems(this.filteredItems, t), this._isLayoutInited = !0
}, l.arrange = function(t) {
this.option(t), this._getIsInstant();
var e = this._filter(this.items);
this.filteredItems = e.matches, this._bindArrangeComplete(), this._isInstant ? this._noTransition(this._hideReveal, [e]) : this._hideReveal(e), this._sort(), this._layout()
}, l._init = l.arrange, l._hideReveal = function(t) {
this.reveal(t.needReveal), this.hide(t.needHide)
}, l._getIsInstant = function() {
var t = this._getOption("layoutInstant"),
e = void 0 !== t ? t : !this._isLayoutInited;
return this._isInstant = e, e
}, l._bindArrangeComplete = function() {
function t() {
e && i && o && n.dispatchEvent("arrangeComplete", null, [n.filteredItems])
}
var e, i, o, n = this;
this.once("layoutComplete", function() {
e = !0, t()
}), this.once("hideComplete", function() {
i = !0, t()
}), this.once("revealComplete", function() {
o = !0, t()
})
}, l._filter = function(t) {
var e = this.options.filter;
e = e || "*";
for (var i = [], o = [], n = [], s = this._getFilterTest(e), r = 0; r < t.length; r++) {
var a = t[r];
if (!a.isIgnored) {
var u = s(a);
u && i.push(a), u && a.isHidden ? o.push(a) : u || a.isHidden || n.push(a)
}
}
return {
matches: i,
needReveal: o,
needHide: n
}
}, l._getFilterTest = function(t) {
return u && this.options.isJQueryFiltering ? function(e) {
return u(e.element).is(t)
} : "function" == typeof t ? function(e) {
return t(e.element)
} : function(e) {
return o(e.element, t)
}
}, l.updateSortData = function(t) {
var e;
t ? (t = n.makeArray(t), e = this.getItems(t)) : e = this.items, this._getSorters(), this._updateItemsSortData(e)
}, l._getSorters = function() {
var t = this.options.getSortData;
for (var e in t) {
var i = t[e];
this._sorters[e] = f(i)
}
}, l._updateItemsSortData = function(t) {
for (var e = t && t.length, i = 0; e && i < e; i++) {
var o = t[i];
o.updateSortData()
}
};
var f = function() {
function t(t) {
if ("string" != typeof t) return t;
var i = h(t).split(" "),
o = i[0],
n = o.match(/^\[(.+)\]$/),
s = n && n[1],
r = e(s, o),
a = d.sortDataParsers[i[1]];
return t = a ? function(t) {
return t && a(r(t))
} : function(t) {
return t && r(t)
}
}
function e(t, e) {
return t ? function(e) {
return e.getAttribute(t)
} : function(t) {
var i = t.querySelector(e);
return i && i.textContent
}
}
return t
}();
d.sortDataParsers = {
parseInt: function(t) {
return parseInt(t, 10)
},
parseFloat: function(t) {
return parseFloat(t)
}
}, l._sort = function() {
if (this.options.sortBy) {
var t = n.makeArray(this.options.sortBy);
this._getIsSameSortBy(t) || (this.sortHistory = t.concat(this.sortHistory));
var e = a(this.sortHistory, this.options.sortAscending);
this.filteredItems.sort(e)
}
}, l._getIsSameSortBy = function(t) {
for (var e = 0; e < t.length; e++)
if (t[e] != this.sortHistory[e]) return !1;
return !0
}, l._mode = function() {
var t = this.options.layoutMode,
e = this.modes[t];
if (!e) throw new Error("No layout mode: " + t);
return e.options = this.options[t], e
}, l._resetLayout = function() {
e.prototype._resetLayout.call(this), this._mode()._resetLayout()
}, l._getItemLayoutPosition = function(t) {
return this._mode()._getItemLayoutPosition(t)
}, l._manageStamp = function(t) {
this._mode()._manageStamp(t)
}, l._getContainerSize = function() {
return this._mode()._getContainerSize()
}, l.needsResizeLayout = function() {
return this._mode().needsResizeLayout()
}, l.appended = function(t) {
var e = this.addItems(t);
if (e.length) {
var i = this._filterRevealAdded(e);
this.filteredItems = this.filteredItems.concat(i)
}
}, l.prepended = function(t) {
var e = this._itemize(t);
if (e.length) {
this._resetLayout(), this._manageStamps();
var i = this._filterRevealAdded(e);
this.layoutItems(this.filteredItems), this.filteredItems = i.concat(this.filteredItems), this.items = e.concat(this.items)
}
}, l._filterRevealAdded = function(t) {
var e = this._filter(t);
return this.hide(e.needHide), this.reveal(e.matches), this.layoutItems(e.matches, !0), e.matches
}, l.insert = function(t) {
var e = this.addItems(t);
if (e.length) {
var i, o, n = e.length;
for (i = 0; i < n; i++) o = e[i], this.element.appendChild(o.element);
var s = this._filter(e).matches;
for (i = 0; i < n; i++) e[i].isLayoutInstant = !0;
for (this.arrange(), i = 0; i < n; i++) delete e[i].isLayoutInstant;
this.reveal(s)
}
};
var c = l.remove;
return l.remove = function(t) {
t = n.makeArray(t);
var e = this.getItems(t);
c.call(this, t);
for (var i = e && e.length, o = 0; i && o < i; o++) {
var s = e[o];
n.removeFrom(this.filteredItems, s)
}
}, l.shuffle = function() {
for (var t = 0; t < this.items.length; t++) {
var e = this.items[t];
e.sortData.random = Math.random()
}
this.options.sortBy = "random", this._sort(), this._layout()
}, l._noTransition = function(t, e) {
var i = this.options.transitionDuration;
this.options.transitionDuration = 0;
var o = t.apply(this, e);
return this.options.transitionDuration = i, o
}, l.getFilteredItemElements = function() {
return this.filteredItems.map(function(t) {
return t.element
})
}, d
});
/**
* BxSlider v4.1.2 - Fully loaded, responsive content slider
* http://bxslider.com
*
* Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com
* Written while drinking Belgian ales and listening to jazz
*
* Released under the MIT license - http://opensource.org/licenses/MIT
*/
! function(t) {
var e = {},
s = {
mode: "horizontal",
slideSelector: "",
infiniteLoop: !0,
hideControlOnEnd: !1,
speed: 500,
easing: null,
slideMargin: 0,
startSlide: 0,
randomStart: !1,
captions: !1,
ticker: !1,
tickerHover: !1,
adaptiveHeight: !1,
adaptiveHeightSpeed: 500,
video: !1,
useCSS: !0,
preloadImages: "visible",
responsive: !0,
slideZIndex: 50,
touchEnabled: !0,
swipeThreshold: 50,
oneToOneTouch: !0,
preventDefaultSwipeX: !0,
preventDefaultSwipeY: !1,
pager: !0,
pagerType: "full",
pagerShortSeparator: " / ",
pagerSelector: null,
buildPager: null,
pagerCustom: null,
controls: !0,
nextText: "Next",
prevText: "Prev",
nextSelector: null,
prevSelector: null,
autoControls: !1,
startText: "Start",
stopText: "Stop",
autoControlsCombine: !1,
autoControlsSelector: null,
auto: !1,
pause: 4e3,
autoStart: !0,
autoDirection: "next",
autoHover: !1,
autoDelay: 0,
minSlides: 1,
maxSlides: 1,
moveSlides: 0,
slideWidth: 0,
onSliderLoad: function() {},
onSlideBefore: function() {},
onSlideAfter: function() {},
onSlideNext: function() {},
onSlidePrev: function() {},
onSliderResize: function() {}
};
t.fn.bxSlider = function(n) {
if (0 == this.length) return this;
if (this.length > 1) return this.each(function() {
t(this).bxSlider(n)
}), this;
var o = {},
r = this;
e.el = this;
var a = t(window).width(),
l = t(window).height(),
d = function() {
o.settings = t.extend({}, s, n), o.settings.slideWidth = parseInt(o.settings.slideWidth), o.children = r.children(o.settings.slideSelector), o.children.length < o.settings.minSlides && (o.settings.minSlides = o.children.length), o.children.length < o.settings.maxSlides && (o.settings.maxSlides = o.children.length), o.settings.randomStart && (o.settings.startSlide = Math.floor(Math.random() * o.children.length)), o.active = {
index: o.settings.startSlide
}, o.carousel = o.settings.minSlides > 1 || o.settings.maxSlides > 1, o.carousel && (o.settings.preloadImages = "all"), o.minThreshold = o.settings.minSlides * o.settings.slideWidth + (o.settings.minSlides - 1) * o.settings.slideMargin, o.maxThreshold = o.settings.maxSlides * o.settings.slideWidth + (o.settings.maxSlides - 1) * o.settings.slideMargin, o.working = !1, o.controls = {}, o.interval = null, o.animProp = "vertical" == o.settings.mode ? "top" : "left", o.usingCSS = o.settings.useCSS && "fade" != o.settings.mode && function() {
var t = document.createElement("div"),
e = ["WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"];
for (var i in e)
if (void 0 !== t.style[e[i]]) return o.cssPrefix = e[i].replace("Perspective", "").toLowerCase(), o.animProp = "-" + o.cssPrefix + "-transform", !0;
return !1
}(), "vertical" == o.settings.mode && (o.settings.maxSlides = o.settings.minSlides), r.data("origStyle", r.attr("style")), r.children(o.settings.slideSelector).each(function() {
t(this).data("origStyle", t(this).attr("style"))
}), c()
},
c = function() {
r.wrap('
'), o.viewport = r.parent(), o.loader = t('
'), o.viewport.prepend(o.loader), r.css({
width: "horizontal" == o.settings.mode ? 100 * o.children.length + 215 + "%" : "auto",
position: "relative"
}), o.usingCSS && o.settings.easing ? r.css("-" + o.cssPrefix + "-transition-timing-function", o.settings.easing) : o.settings.easing || (o.settings.easing = "swing"), f(), o.viewport.css({
width: "100%",
overflow: "hidden",
position: "relative"
}), o.viewport.parent().css({
maxWidth: p()
}), o.settings.pager || o.viewport.parent().css({
margin: "0 auto 0px"
}), o.children.css({
"float": "horizontal" == o.settings.mode ? "left" : "none",
listStyle: "none",
position: "relative"
}), o.children.css("width", u()), "horizontal" == o.settings.mode && o.settings.slideMargin > 0 && o.children.css("marginRight", o.settings.slideMargin), "vertical" == o.settings.mode && o.settings.slideMargin > 0 && o.children.css("marginBottom", o.settings.slideMargin), "fade" == o.settings.mode && (o.children.css({
position: "absolute",
zIndex: 0,
display: "none"
}), o.children.eq(o.settings.startSlide).css({
zIndex: o.settings.slideZIndex,
display: "block"
})), o.controls.el = t('
'), o.settings.captions && P(), o.active.last = o.settings.startSlide == x() - 1, o.settings.video && r.fitVids();
var e = o.children.eq(o.settings.startSlide);
"all" == o.settings.preloadImages && (e = o.children), o.settings.ticker ? o.settings.pager = !1 : (o.settings.pager && T(), o.settings.controls && C(), o.settings.auto && o.settings.autoControls && E(), (o.settings.controls || o.settings.autoControls || o.settings.pager) && o.viewport.after(o.controls.el)), g(e, h)
},
g = function(e, i) {
var s = e.find("img, iframe").length;
if (0 == s) return i(), void 0;
var n = 0;
e.find("img, iframe").each(function() {
t(this).one("load", function() {
++n == s && i()
}).each(function() {
this.complete && t(this).load()
})
})
},
h = function() {
if (o.settings.infiniteLoop && "fade" != o.settings.mode && !o.settings.ticker) {
var e = "vertical" == o.settings.mode ? o.settings.minSlides : o.settings.maxSlides,
i = o.children.slice(0, e).clone().addClass("bx-clone"),
s = o.children.slice(-e).clone().addClass("bx-clone");
r.append(i).prepend(s)
}
o.loader.remove(), S(), "vertical" == o.settings.mode && (o.settings.adaptiveHeight = !0), o.viewport.height(v()), r.redrawSlider(), o.settings.onSliderLoad(o.active.index), o.initialized = !0, o.settings.responsive && t(window).bind("resize", Z), o.settings.auto && o.settings.autoStart && H(), o.settings.ticker && L(), o.settings.pager && q(o.settings.startSlide), o.settings.controls && W(), o.settings.touchEnabled && !o.settings.ticker && O()
},
v = function() {
var e = 0,
s = t();
if ("vertical" == o.settings.mode || o.settings.adaptiveHeight)
if (o.carousel) {
var n = 1 == o.settings.moveSlides ? o.active.index : o.active.index * m();
for (s = o.children.eq(n), i = 1; i <= o.settings.maxSlides - 1; i++) s = n + i >= o.children.length ? s.add(o.children.eq(i - 1)) : s.add(o.children.eq(n + i))
} else s = o.children.eq(o.active.index);
else s = o.children;
return "vertical" == o.settings.mode ? (s.each(function() {
e += t(this).outerHeight()
}), o.settings.slideMargin > 0 && (e += o.settings.slideMargin * (o.settings.minSlides - 1))) : e = Math.max.apply(Math, s.map(function() {
return t(this).outerHeight(!1)
}).get()), e
},
p = function() {
var t = "100%";
return o.settings.slideWidth > 0 && (t = "horizontal" == o.settings.mode ? o.settings.maxSlides * o.settings.slideWidth + (o.settings.maxSlides - 1) * o.settings.slideMargin : o.settings.slideWidth), t
},
u = function() {
var t = o.settings.slideWidth,
e = o.viewport.width();
return 0 == o.settings.slideWidth || o.settings.slideWidth > e && !o.carousel || "vertical" == o.settings.mode ? t = e : o.settings.maxSlides > 1 && "horizontal" == o.settings.mode && (e > o.maxThreshold || e < o.minThreshold && (t = (e - o.settings.slideMargin * (o.settings.minSlides - 1)) / o.settings.minSlides)), t
},
f = function() {
var t = 1;
if ("horizontal" == o.settings.mode && o.settings.slideWidth > 0)
if (o.viewport.width() < o.minThreshold) t = o.settings.minSlides;
else if (o.viewport.width() > o.maxThreshold) t = o.settings.maxSlides;
else {
var e = o.children.first().width();
t = Math.floor(o.viewport.width() / e)
} else "vertical" == o.settings.mode && (t = o.settings.minSlides);
return t
},
x = function() {
var t = 0;
if (o.settings.moveSlides > 0)
if (o.settings.infiniteLoop) t = o.children.length / m();
else
for (var e = 0, i = 0; e < o.children.length;) ++t, e = i + f(), i += o.settings.moveSlides <= f() ? o.settings.moveSlides : f();
else t = Math.ceil(o.children.length / f());
return t
},
m = function() {
return o.settings.moveSlides > 0 && o.settings.moveSlides <= f() ? o.settings.moveSlides : f()
},
S = function() {
if (o.children.length > o.settings.maxSlides && o.active.last && !o.settings.infiniteLoop) {
if ("horizontal" == o.settings.mode) {
var t = o.children.last(),
e = t.position();
b(-(e.left - (o.viewport.width() - t.width())), "reset", 0)
} else if ("vertical" == o.settings.mode) {
var i = o.children.length - o.settings.minSlides,
e = o.children.eq(i).position();
b(-e.top, "reset", 0)
}
} else {
var e = o.children.eq(o.active.index * m()).position();
o.active.index == x() - 1 && (o.active.last = !0), void 0 != e && ("horizontal" == o.settings.mode ? b(-e.left, "reset", 0) : "vertical" == o.settings.mode && b(-e.top, "reset", 0))
}
},
b = function(t, e, i, s) {
if (o.usingCSS) {
var n = "vertical" == o.settings.mode ? "translate3d(0, " + t + "px, 0)" : "translate3d(" + t + "px, 0, 0)";
r.css("-" + o.cssPrefix + "-transition-duration", i / 1e3 + "s"), "slide" == e ? (r.css(o.animProp, n), r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function() {
r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"), D()
})) : "reset" == e ? r.css(o.animProp, n) : "ticker" == e && (r.css("-" + o.cssPrefix + "-transition-timing-function", "linear"), r.css(o.animProp, n), r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function() {
r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"), b(s.resetValue, "reset", 0), N()
}))
} else {
var a = {};
a[o.animProp] = t, "slide" == e ? r.animate(a, i, o.settings.easing, function() {
D()
}) : "reset" == e ? r.css(o.animProp, t) : "ticker" == e && r.animate(a, speed, "linear", function() {
b(s.resetValue, "reset", 0), N()
})
}
},
w = function() {
for (var e = "", i = x(), s = 0; i > s; s++) {
var n = "";
o.settings.buildPager && t.isFunction(o.settings.buildPager) ? (n = o.settings.buildPager(s), o.pagerEl.addClass("bx-custom-pager")) : (n = s + 1, o.pagerEl.addClass("bx-default-pager")), e += '"
}
o.pagerEl.html(e)
},
T = function() {
o.settings.pagerCustom ? o.pagerEl = t(o.settings.pagerCustom) : (o.pagerEl = t(''), o.settings.pagerSelector ? t(o.settings.pagerSelector).html(o.pagerEl) : o.controls.el.addClass("bx-has-pager").append(o.pagerEl), w()), o.pagerEl.on("click", "a", I)
},
C = function() {
o.controls.next = t('
' + o.settings.nextText + ""), o.controls.prev = t('
' + o.settings.prevText + ""), o.controls.next.bind("click", y), o.controls.prev.bind("click", z), o.settings.nextSelector && t(o.settings.nextSelector).append(o.controls.next), o.settings.prevSelector && t(o.settings.prevSelector).append(o.controls.prev), o.settings.nextSelector || o.settings.prevSelector || (o.controls.directionEl = t('
'), o.controls.directionEl.append(o.controls.prev).append(o.controls.next), o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))
},
E = function() {
o.controls.start = t('
"), o.controls.stop = t('
"), o.controls.autoEl = t('
'), o.controls.autoEl.on("click", ".bx-start", k), o.controls.autoEl.on("click", ".bx-stop", M), o.settings.autoControlsCombine ? o.controls.autoEl.append(o.controls.start) : o.controls.autoEl.append(o.controls.start).append(o.controls.stop), o.settings.autoControlsSelector ? t(o.settings.autoControlsSelector).html(o.controls.autoEl) : o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl), A(o.settings.autoStart ? "stop" : "start")
},
P = function() {
o.children.each(function() {
var e = t(this).find("img:first").attr("title");
void 0 != e && ("" + e).length && t(this).append('
' + e + "
")
})
},
y = function(t) {
o.settings.auto && r.stopAuto(), r.goToNextSlide(), t.preventDefault()
},
z = function(t) {
o.settings.auto && r.stopAuto(), r.goToPrevSlide(), t.preventDefault()
},
k = function(t) {
r.startAuto(), t.preventDefault()
},
M = function(t) {
r.stopAuto(), t.preventDefault()
},
I = function(e) {
o.settings.auto && r.stopAuto();
var i = t(e.currentTarget),
s = parseInt(i.attr("data-slide-index"));
s != o.active.index && r.goToSlide(s), e.preventDefault()
},
q = function(e) {
var i = o.children.length;
return "short" == o.settings.pagerType ? (o.settings.maxSlides > 1 && (i = Math.ceil(o.children.length / o.settings.maxSlides)), o.pagerEl.html(e + 1 + o.settings.pagerShortSeparator + i), void 0) : (o.pagerEl.find("a").removeClass("active"), o.pagerEl.each(function(i, s) {
t(s).find("a").eq(e).addClass("active")
}), void 0)
},
D = function() {
if (o.settings.infiniteLoop) {
var t = "";
0 == o.active.index ? t = o.children.eq(0).position() : o.active.index == x() - 1 && o.carousel ? t = o.children.eq((x() - 1) * m()).position() : o.active.index == o.children.length - 1 && (t = o.children.eq(o.children.length - 1).position()), t && ("horizontal" == o.settings.mode ? b(-t.left, "reset", 0) : "vertical" == o.settings.mode && b(-t.top, "reset", 0))
}
o.working = !1, o.settings.onSlideAfter(o.children.eq(o.active.index), o.oldIndex, o.active.index)
},
A = function(t) {
o.settings.autoControlsCombine ? o.controls.autoEl.html(o.controls[t]) : (o.controls.autoEl.find("a").removeClass("active"), o.controls.autoEl.find("a:not(.bx-" + t + ")").addClass("active"))
},
W = function() {
1 == x() ? (o.controls.prev.addClass("disabled"), o.controls.next.addClass("disabled")) : !o.settings.infiniteLoop && o.settings.hideControlOnEnd && (0 == o.active.index ? (o.controls.prev.addClass("disabled"), o.controls.next.removeClass("disabled")) : o.active.index == x() - 1 ? (o.controls.next.addClass("disabled"), o.controls.prev.removeClass("disabled")) : (o.controls.prev.removeClass("disabled"), o.controls.next.removeClass("disabled")))
},
H = function() {
o.settings.autoDelay > 0 ? setTimeout(r.startAuto, o.settings.autoDelay) : r.startAuto(), o.settings.autoHover && r.hover(function() {
o.interval && (r.stopAuto(!0), o.autoPaused = !0)
}, function() {
o.autoPaused && (r.startAuto(!0), o.autoPaused = null)
})
},
L = function() {
var e = 0;
if ("next" == o.settings.autoDirection) r.append(o.children.clone().addClass("bx-clone"));
else {
r.prepend(o.children.clone().addClass("bx-clone"));
var i = o.children.first().position();
e = "horizontal" == o.settings.mode ? -i.left : -i.top
}
b(e, "reset", 0), o.settings.pager = !1, o.settings.controls = !1, o.settings.autoControls = !1, o.settings.tickerHover && !o.usingCSS && o.viewport.hover(function() {
r.stop()
}, function() {
var e = 0;
o.children.each(function() {
e += "horizontal" == o.settings.mode ? t(this).outerWidth(!0) : t(this).outerHeight(!0)
});
var i = o.settings.speed / e,
s = "horizontal" == o.settings.mode ? "left" : "top",
n = i * (e - Math.abs(parseInt(r.css(s))));
N(n)
}), N()
},
N = function(t) {
speed = t ? t : o.settings.speed;
var e = {
left: 0,
top: 0
},
i = {
left: 0,
top: 0
};
"next" == o.settings.autoDirection ? e = r.find(".bx-clone").first().position() : i = o.children.first().position();
var s = "horizontal" == o.settings.mode ? -e.left : -e.top,
n = "horizontal" == o.settings.mode ? -i.left : -i.top,
a = {
resetValue: n
};
b(s, "ticker", speed, a)
},
O = function() {
o.touch = {
start: {
x: 0,
y: 0
},
end: {
x: 0,
y: 0
}
}, o.viewport.bind("touchstart", X)
},
X = function(t) {
if (o.working) t.preventDefault();
else {
o.touch.originalPos = r.position();
var e = t.originalEvent;
o.touch.start.x = e.changedTouches[0].pageX, o.touch.start.y = e.changedTouches[0].pageY, o.viewport.bind("touchmove", Y), o.viewport.bind("touchend", V)
}
},
Y = function(t) {
var e = t.originalEvent,
i = Math.abs(e.changedTouches[0].pageX - o.touch.start.x),
s = Math.abs(e.changedTouches[0].pageY - o.touch.start.y);
if (3 * i > s && o.settings.preventDefaultSwipeX ? t.preventDefault() : 3 * s > i && o.settings.preventDefaultSwipeY && t.preventDefault(), "fade" != o.settings.mode && o.settings.oneToOneTouch) {
var n = 0;
if ("horizontal" == o.settings.mode) {
var r = e.changedTouches[0].pageX - o.touch.start.x;
n = o.touch.originalPos.left + r
} else {
var r = e.changedTouches[0].pageY - o.touch.start.y;
n = o.touch.originalPos.top + r
}
b(n, "reset", 0)
}
},
V = function(t) {
o.viewport.unbind("touchmove", Y);
var e = t.originalEvent,
i = 0;
if (o.touch.end.x = e.changedTouches[0].pageX, o.touch.end.y = e.changedTouches[0].pageY, "fade" == o.settings.mode) {
var s = Math.abs(o.touch.start.x - o.touch.end.x);
s >= o.settings.swipeThreshold && (o.touch.start.x > o.touch.end.x ? r.goToNextSlide() : r.goToPrevSlide(), r.stopAuto())
} else {
var s = 0;
"horizontal" == o.settings.mode ? (s = o.touch.end.x - o.touch.start.x, i = o.touch.originalPos.left) : (s = o.touch.end.y - o.touch.start.y, i = o.touch.originalPos.top), !o.settings.infiniteLoop && (0 == o.active.index && s > 0 || o.active.last && 0 > s) ? b(i, "reset", 200) : Math.abs(s) >= o.settings.swipeThreshold ? (0 > s ? r.goToNextSlide() : r.goToPrevSlide(), r.stopAuto()) : b(i, "reset", 200)
}
o.viewport.unbind("touchend", V)
},
Z = function() {
var e = t(window).width(),
i = t(window).height();
(a != e || l != i) && (a = e, l = i, r.redrawSlider(), o.settings.onSliderResize.call(r, o.active.index))
};
return r.goToSlide = function(e, i) {
if (!o.working && o.active.index != e)
if (o.working = !0, o.oldIndex = o.active.index, o.active.index = 0 > e ? x() - 1 : e >= x() ? 0 : e, o.settings.onSlideBefore(o.children.eq(o.active.index), o.oldIndex, o.active.index), "next" == i ? o.settings.onSlideNext(o.children.eq(o.active.index), o.oldIndex, o.active.index) : "prev" == i && o.settings.onSlidePrev(o.children.eq(o.active.index), o.oldIndex, o.active.index), o.active.last = o.active.index >= x() - 1, o.settings.pager && q(o.active.index), o.settings.controls && W(), "fade" == o.settings.mode) o.settings.adaptiveHeight && o.viewport.height() != v() && o.viewport.animate({
height: v()
}, o.settings.adaptiveHeightSpeed), o.children.filter(":visible").fadeOut(o.settings.speed).css({
zIndex: 0
}), o.children.eq(o.active.index).css("zIndex", o.settings.slideZIndex + 1).fadeIn(o.settings.speed, function() {
t(this).css("zIndex", o.settings.slideZIndex), D()
});
else {
o.settings.adaptiveHeight && o.viewport.height() != v() && o.viewport.animate({
height: v()
}, o.settings.adaptiveHeightSpeed);
var s = 0,
n = {
left: 0,
top: 0
};
if (!o.settings.infiniteLoop && o.carousel && o.active.last)
if ("horizontal" == o.settings.mode) {
var a = o.children.eq(o.children.length - 1);
n = a.position(), s = o.viewport.width() - a.outerWidth()
} else {
var l = o.children.length - o.settings.minSlides;
n = o.children.eq(l).position()
} else if (o.carousel && o.active.last && "prev" == i) {
var d = 1 == o.settings.moveSlides ? o.settings.maxSlides - m() : (x() - 1) * m() - (o.children.length - o.settings.maxSlides),
a = r.children(".bx-clone").eq(d);
n = a.position()
} else if ("next" == i && 0 == o.active.index) n = r.find("> .bx-clone").eq(o.settings.maxSlides).position(), o.active.last = !1;
else if (e >= 0) {
var c = e * m();
n = o.children.eq(c).position()
}
if ("undefined" != typeof n) {
var g = "horizontal" == o.settings.mode ? -(n.left - s) : -n.top;
b(g, "slide", o.settings.speed)
}
}
}, r.goToNextSlide = function() {
if (o.settings.infiniteLoop || !o.active.last) {
var t = parseInt(o.active.index) + 1;
r.goToSlide(t, "next")
}
}, r.goToPrevSlide = function() {
if (o.settings.infiniteLoop || 0 != o.active.index) {
var t = parseInt(o.active.index) - 1;
r.goToSlide(t, "prev")
}
}, r.startAuto = function(t) {
o.interval || (o.interval = setInterval(function() {
"next" == o.settings.autoDirection ? r.goToNextSlide() : r.goToPrevSlide()
}, o.settings.pause), o.settings.autoControls && 1 != t && A("stop"))
}, r.stopAuto = function(t) {
o.interval && (clearInterval(o.interval), o.interval = null, o.settings.autoControls && 1 != t && A("start"))
}, r.getCurrentSlide = function() {
return o.active.index
}, r.getCurrentSlideElement = function() {
return o.children.eq(o.active.index)
}, r.getSlideCount = function() {
return o.children.length
}, r.redrawSlider = function() {
o.children.add(r.find(".bx-clone")).outerWidth(u()), o.viewport.css("height", v()), o.settings.ticker || S(), o.active.last && (o.active.index = x() - 1), o.active.index >= x() && (o.active.last = !0), o.settings.pager && !o.settings.pagerCustom && (w(), q(o.active.index))
}, r.destroySlider = function() {
o.initialized && (o.initialized = !1, t(".bx-clone", this).remove(), o.children.each(function() {
void 0 != t(this).data("origStyle") ? t(this).attr("style", t(this).data("origStyle")) : t(this).removeAttr("style")
}), void 0 != t(this).data("origStyle") ? this.attr("style", t(this).data("origStyle")) : t(this).removeAttr("style"), t(this).unwrap().unwrap(), o.controls.el && o.controls.el.remove(), o.controls.next && o.controls.next.remove(), o.controls.prev && o.controls.prev.remove(), o.pagerEl && o.settings.controls && o.pagerEl.remove(), t(".bx-caption", this).remove(), o.controls.autoEl && o.controls.autoEl.remove(), clearInterval(o.interval), o.settings.responsive && t(window).unbind("resize", Z))
}, r.reloadSlider = function(t) {
void 0 != t && (n = t), r.destroySlider(), d()
}, d(), this
}
}(jQuery);
! function(e) {
"use strict";
jQuery("nav#dropdown").meanmenu(), (new WOW).init(), e(".search-box .search-button").on("click", function(i) {
i.preventDefault();
var a = e(this).prev(".search-text");
return a.hasClass("active") ? a.removeClass("active") : a.addClass("active"), !1
}), e("select").niceSelect(), jQuery.scrollUp({
scrollText: '
',
easingType: "linear",
scrollSpeed: 900,
animation: "fade"
}), e(window).on("scroll", function() {
e(window).scrollTop() > 80 ? e("#sticky").addClass("stick") : e("#sticky").removeClass("stick")
}), jQuery("#nav").onePageNav({
scrollOffset: 70
}), jQuery(".courses-list").owlCarousel({
autoPlay: !0,
slideSpeed: 5e3,
pagination: !0,
navigation: !1,
items: 3,
navigationText: ["
", "
"],
itemsDesktop: [1199, 3],
itemsDesktopSmall: [980, 2],
itemsTablet: [768, 2],
itemsMobile: [479, 1]
}), jQuery(".member-list, .product-list").owlCarousel({
autoPlay: !0,
slideSpeed: 3e3,
pagination: !0,
navigation: !1,
items: 4,
navigationText: ["
", "
"],
itemsDesktop: [1199, 4],
itemsDesktopSmall: [980, 2],
itemsTablet: [768, 2],
itemsMobile: [479, 1]
}), jQuery(".testominial-slide").owlCarousel({
autoPlay: false,
slideSpeed: 5000,
autoplayTimeout:5000,
pagination: !0,
navigation: !1,
items: 1,
navigationText: ["
", "
"],
itemsDesktop: [1199, 1],
itemsDesktopSmall: [980, 1],
itemsTablet: [768, 1],
itemsMobile: [479, 1]
}), jQuery(".slide-blog, .service-slide").owlCarousel({
autoPlay: !0,
slideSpeed: 3e3,
pagination: !1,
navigation: !1,
items: 3,
navigationText: ["
", "
"],
itemsDesktop: [1199, 3],
itemsDesktopSmall: [980, 2],
itemsTablet: [768, 2],
itemsMobile: [479, 1]
}), jQuery(".singlemember-slide, .productlist, .tainer-list").owlCarousel({
autoPlay: !0,
slideSpeed: 3e3,
pagination: !1,
navigation: !0,
items: 4,
navigationText: ["
", "
"],
itemsDesktop: [1199, 4],
itemsDesktopSmall: [980, 3],
itemsTablet: [768, 2],
itemsMobile: [479, 1]
}), jQuery(".slide-fedback, .fedback-slide").owlCarousel({
autoPlay: !0,
slideSpeed: 3e3,
pagination: !1,
navigation: !1,
items: 1,
navigationText: ["
", "
"],
itemsDesktop: [1199, 1],
itemsDesktopSmall: [980, 1],
itemsTablet: [768, 1],
itemsMobile: [479, 1]
}), jQuery(".chourses-list").owlCarousel({
autoPlay: !0,
slideSpeed: 3e3,
pagination: !1,
navigation: !0,
items: 3,
navigationText: ["
", "
"],
itemsDesktop: [1199, 3],
itemsDesktopSmall: [980, 2],
itemsTablet: [768, 2],
itemsMobile: [479, 1]
}), jQuery(".shop-list").owlCarousel({
autoPlay: !0,
slideSpeed: 3e3,
pagination: !1,
navigation: !1,
items: 4,
navigationText: ["
", "
"],
itemsDesktop: [1199, 4],
itemsDesktopSmall: [980, 2],
itemsTablet: [768, 2],
itemsMobile: [479, 1]
}), jQuery(".clint-slide").owlCarousel({
autoPlay: !0,
slideSpeed: 3e3,
pagination: !1,
navigation: !0,
items: 1,
navigationText: ["
", "
"],
itemsDesktop: [1199, 1],
itemsDesktopSmall: [980, 1],
itemsTablet: [768, 1],
itemsMobile: [479, 1]
}), e(".reletate-list, .chourses-lists").owlCarousel({
autoPlay: !0,
slideSpeed: 5e3,
pagination: !1,
navigation: !0,
items: 2,
navigationText: ["
", "
"],
itemsDesktop: [1199, 1],
itemsDesktopSmall: [980, 1],
itemsTablet: [768, 1],
itemsMobile: [479, 1]
}), jQuery(".gallary-menu li").on("click", function() {
jQuery(".gallary-menu li").removeClass("active"), jQuery(this).addClass("active")
}), e(".gallary-menu li").on("click", function() {
var i = e(this).attr("data-filter");
e(".filter-gallary").isotope({
filter: i
})
}), jQuery(window).load(function() {
jQuery(".filter-gallary").isotope()
}), e(".input-number").append('
+
-
'), e(".button").on("click", function() {
var i = e(this),
a = i.parent().find("input").val();
if ("+" == i.text()) var t = parseFloat(a) + 1;
else if (a > 0) t = parseFloat(a) - 1;
else t = 0;
i.parent().find("input").val(t)
}), e(function() {
e("#slider-range").slider({
range: !0,
min: 0,
max: 500,
values: [75, 300],
slide: function(i, a) {
e("#amount").val("$" + a.values[0] + " - $" + a.values[1])
}
}), e("#amount").val("$" + e("#slider-range").slider("values", 0) + " - $" + e("#slider-range").slider("values", 1))
}), e(".counter").counterUp({
delay: 10,
time: 3e3
}), e(".test-popup-link").magnificPopup({
type: "image"
}), e(".bxslider").bxSlider({
pagerCustom: "#bx-pager"
})
}(jQuery);
/*!
* jQuery JavaScript Library v2.1.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:01Z
*/
! function(a, b) {
"object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function(a) {
if (!a.document) throw new Error("jQuery requires a window with a document");
return b(a)
} : b(a)
}("undefined" != typeof window ? window : this, function(a, b) {
function c(a) {
var b = "length" in a && a.length,
c = _.type(a);
return "function" === c || _.isWindow(a) ? !1 : 1 === a.nodeType && b ? !0 : "array" === c || 0 === b || "number" == typeof b && b > 0 && b - 1 in a
}
function d(a, b, c) {
if (_.isFunction(b)) return _.grep(a, function(a, d) {
return !!b.call(a, d, a) !== c
});
if (b.nodeType) return _.grep(a, function(a) {
return a === b !== c
});
if ("string" == typeof b) {
if (ha.test(b)) return _.filter(b, a, c);
b = _.filter(b, a)
}
return _.grep(a, function(a) {
return U.call(b, a) >= 0 !== c
})
}
function e(a, b) {
for (;
(a = a[b]) && 1 !== a.nodeType;);
return a
}
function f(a) {
var b = oa[a] = {};
return _.each(a.match(na) || [], function(a, c) {
b[c] = !0
}), b
}
function g() {
Z.removeEventListener("DOMContentLoaded", g, !1), a.removeEventListener("load", g, !1), _.ready()
}
function h() {
Object.defineProperty(this.cache = {}, 0, {
get: function() {
return {}
}
}), this.expando = _.expando + h.uid++
}
function i(a, b, c) {
var d;
if (void 0 === c && 1 === a.nodeType)
if (d = "data-" + b.replace(ua, "-$1").toLowerCase(), c = a.getAttribute(d), "string" == typeof c) {
try {
c = "true" === c ? !0 : "false" === c ? !1 : "null" === c ? null : +c + "" === c ? +c : ta.test(c) ? _.parseJSON(c) : c
} catch (e) {}
sa.set(a, b, c)
} else c = void 0;
return c
}
function j() {
return !0
}
function k() {
return !1
}
function l() {
try {
return Z.activeElement
} catch (a) {}
}
function m(a, b) {
return _.nodeName(a, "table") && _.nodeName(11 !== b.nodeType ? b : b.firstChild, "tr") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a
}
function n(a) {
return a.type = (null !== a.getAttribute("type")) + "/" + a.type, a
}
function o(a) {
var b = Ka.exec(a.type);
return b ? a.type = b[1] : a.removeAttribute("type"), a
}
function p(a, b) {
for (var c = 0, d = a.length; d > c; c++) ra.set(a[c], "globalEval", !b || ra.get(b[c], "globalEval"))
}
function q(a, b) {
var c, d, e, f, g, h, i, j;
if (1 === b.nodeType) {
if (ra.hasData(a) && (f = ra.access(a), g = ra.set(b, f), j = f.events)) {
delete g.handle, g.events = {};
for (e in j)
for (c = 0, d = j[e].length; d > c; c++) _.event.add(b, e, j[e][c])
}
sa.hasData(a) && (h = sa.access(a), i = _.extend({}, h), sa.set(b, i))
}
}
function r(a, b) {
var c = a.getElementsByTagName ? a.getElementsByTagName(b || "*") : a.querySelectorAll ? a.querySelectorAll(b || "*") : [];
return void 0 === b || b && _.nodeName(a, b) ? _.merge([a], c) : c
}
function s(a, b) {
var c = b.nodeName.toLowerCase();
"input" === c && ya.test(a.type) ? b.checked = a.checked : ("input" === c || "textarea" === c) && (b.defaultValue = a.defaultValue)
}
function t(b, c) {
var d, e = _(c.createElement(b)).appendTo(c.body),
f = a.getDefaultComputedStyle && (d = a.getDefaultComputedStyle(e[0])) ? d.display : _.css(e[0], "display");
return e.detach(), f
}
function u(a) {
var b = Z,
c = Oa[a];
return c || (c = t(a, b), "none" !== c && c || (Na = (Na || _("
")).appendTo(b.documentElement), b = Na[0].contentDocument, b.write(), b.close(), c = t(a, b), Na.detach()), Oa[a] = c), c
}
function v(a, b, c) {
var d, e, f, g, h = a.style;
return c = c || Ra(a), c && (g = c.getPropertyValue(b) || c[b]), c && ("" !== g || _.contains(a.ownerDocument, a) || (g = _.style(a, b)), Qa.test(g) && Pa.test(b) && (d = h.width, e = h.minWidth, f = h.maxWidth, h.minWidth = h.maxWidth = h.width = g, g = c.width, h.width = d, h.minWidth = e, h.maxWidth = f)), void 0 !== g ? g + "" : g
}
function w(a, b) {
return {
get: function() {
return a() ? void delete this.get : (this.get = b).apply(this, arguments)
}
}
}
function x(a, b) {
if (b in a) return b;
for (var c = b[0].toUpperCase() + b.slice(1), d = b, e = Xa.length; e--;)
if (b = Xa[e] + c, b in a) return b;
return d
}
function y(a, b, c) {
var d = Ta.exec(b);
return d ? Math.max(0, d[1] - (c || 0)) + (d[2] || "px") : b
}
function z(a, b, c, d, e) {
for (var f = c === (d ? "border" : "content") ? 4 : "width" === b ? 1 : 0, g = 0; 4 > f; f += 2) "margin" === c && (g += _.css(a, c + wa[f], !0, e)), d ? ("content" === c && (g -= _.css(a, "padding" + wa[f], !0, e)), "margin" !== c && (g -= _.css(a, "border" + wa[f] + "Width", !0, e))) : (g += _.css(a, "padding" + wa[f], !0, e), "padding" !== c && (g += _.css(a, "border" + wa[f] + "Width", !0, e)));
return g
}
function A(a, b, c) {
var d = !0,
e = "width" === b ? a.offsetWidth : a.offsetHeight,
f = Ra(a),
g = "border-box" === _.css(a, "boxSizing", !1, f);
if (0 >= e || null == e) {
if (e = v(a, b, f), (0 > e || null == e) && (e = a.style[b]), Qa.test(e)) return e;
d = g && (Y.boxSizingReliable() || e === a.style[b]), e = parseFloat(e) || 0
}
return e + z(a, b, c || (g ? "border" : "content"), d, f) + "px"
}
function B(a, b) {
for (var c, d, e, f = [], g = 0, h = a.length; h > g; g++) d = a[g], d.style && (f[g] = ra.get(d, "olddisplay"), c = d.style.display, b ? (f[g] || "none" !== c || (d.style.display = ""), "" === d.style.display && xa(d) && (f[g] = ra.access(d, "olddisplay", u(d.nodeName)))) : (e = xa(d), "none" === c && e || ra.set(d, "olddisplay", e ? c : _.css(d, "display"))));
for (g = 0; h > g; g++) d = a[g], d.style && (b && "none" !== d.style.display && "" !== d.style.display || (d.style.display = b ? f[g] || "" : "none"));
return a
}
function C(a, b, c, d, e) {
return new C.prototype.init(a, b, c, d, e)
}
function D() {
return setTimeout(function() {
Ya = void 0
}), Ya = _.now()
}
function E(a, b) {
var c, d = 0,
e = {
height: a
};
for (b = b ? 1 : 0; 4 > d; d += 2 - b) c = wa[d], e["margin" + c] = e["padding" + c] = a;
return b && (e.opacity = e.width = a), e
}
function F(a, b, c) {
for (var d, e = (cb[b] || []).concat(cb["*"]), f = 0, g = e.length; g > f; f++)
if (d = e[f].call(c, b, a)) return d
}
function G(a, b, c) {
var d, e, f, g, h, i, j, k, l = this,
m = {},
n = a.style,
o = a.nodeType && xa(a),
p = ra.get(a, "fxshow");
c.queue || (h = _._queueHooks(a, "fx"), null == h.unqueued && (h.unqueued = 0, i = h.empty.fire, h.empty.fire = function() {
h.unqueued || i()
}), h.unqueued++, l.always(function() {
l.always(function() {
h.unqueued--, _.queue(a, "fx").length || h.empty.fire()
})
})), 1 === a.nodeType && ("height" in b || "width" in b) && (c.overflow = [n.overflow, n.overflowX, n.overflowY], j = _.css(a, "display"), k = "none" === j ? ra.get(a, "olddisplay") || u(a.nodeName) : j, "inline" === k && "none" === _.css(a, "float") && (n.display = "inline-block")), c.overflow && (n.overflow = "hidden", l.always(function() {
n.overflow = c.overflow[0], n.overflowX = c.overflow[1], n.overflowY = c.overflow[2]
}));
for (d in b)
if (e = b[d], $a.exec(e)) {
if (delete b[d], f = f || "toggle" === e, e === (o ? "hide" : "show")) {
if ("show" !== e || !p || void 0 === p[d]) continue;
o = !0
}
m[d] = p && p[d] || _.style(a, d)
} else j = void 0;
if (_.isEmptyObject(m)) "inline" === ("none" === j ? u(a.nodeName) : j) && (n.display = j);
else {
p ? "hidden" in p && (o = p.hidden) : p = ra.access(a, "fxshow", {}), f && (p.hidden = !o), o ? _(a).show() : l.done(function() {
_(a).hide()
}), l.done(function() {
var b;
ra.remove(a, "fxshow");
for (b in m) _.style(a, b, m[b])
});
for (d in m) g = F(o ? p[d] : 0, d, l), d in p || (p[d] = g.start, o && (g.end = g.start, g.start = "width" === d || "height" === d ? 1 : 0))
}
}
function H(a, b) {
var c, d, e, f, g;
for (c in a)
if (d = _.camelCase(c), e = b[d], f = a[c], _.isArray(f) && (e = f[1], f = a[c] = f[0]), c !== d && (a[d] = f, delete a[c]), g = _.cssHooks[d], g && "expand" in g) {
f = g.expand(f), delete a[d];
for (c in f) c in a || (a[c] = f[c], b[c] = e)
} else b[d] = e
}
function I(a, b, c) {
var d, e, f = 0,
g = bb.length,
h = _.Deferred().always(function() {
delete i.elem
}),
i = function() {
if (e) return !1;
for (var b = Ya || D(), c = Math.max(0, j.startTime + j.duration - b), d = c / j.duration || 0, f = 1 - d, g = 0, i = j.tweens.length; i > g; g++) j.tweens[g].run(f);
return h.notifyWith(a, [j, f, c]), 1 > f && i ? c : (h.resolveWith(a, [j]), !1)
},
j = h.promise({
elem: a,
props: _.extend({}, b),
opts: _.extend(!0, {
specialEasing: {}
}, c),
originalProperties: b,
originalOptions: c,
startTime: Ya || D(),
duration: c.duration,
tweens: [],
createTween: function(b, c) {
var d = _.Tween(a, j.opts, b, c, j.opts.specialEasing[b] || j.opts.easing);
return j.tweens.push(d), d
},
stop: function(b) {
var c = 0,
d = b ? j.tweens.length : 0;
if (e) return this;
for (e = !0; d > c; c++) j.tweens[c].run(1);
return b ? h.resolveWith(a, [j, b]) : h.rejectWith(a, [j, b]), this
}
}),
k = j.props;
for (H(k, j.opts.specialEasing); g > f; f++)
if (d = bb[f].call(j, a, k, j.opts)) return d;
return _.map(k, F, j), _.isFunction(j.opts.start) && j.opts.start.call(a, j), _.fx.timer(_.extend(i, {
elem: a,
anim: j,
queue: j.opts.queue
})), j.progress(j.opts.progress).done(j.opts.done, j.opts.complete).fail(j.opts.fail).always(j.opts.always)
}
function J(a) {
return function(b, c) {
"string" != typeof b && (c = b, b = "*");
var d, e = 0,
f = b.toLowerCase().match(na) || [];
if (_.isFunction(c))
for (; d = f[e++];) "+" === d[0] ? (d = d.slice(1) || "*", (a[d] = a[d] || []).unshift(c)) : (a[d] = a[d] || []).push(c)
}
}
function K(a, b, c, d) {
function e(h) {
var i;
return f[h] = !0, _.each(a[h] || [], function(a, h) {
var j = h(b, c, d);
return "string" != typeof j || g || f[j] ? g ? !(i = j) : void 0 : (b.dataTypes.unshift(j), e(j), !1)
}), i
}
var f = {},
g = a === tb;
return e(b.dataTypes[0]) || !f["*"] && e("*")
}
function L(a, b) {
var c, d, e = _.ajaxSettings.flatOptions || {};
for (c in b) void 0 !== b[c] && ((e[c] ? a : d || (d = {}))[c] = b[c]);
return d && _.extend(!0, a, d), a
}
function M(a, b, c) {
for (var d, e, f, g, h = a.contents, i = a.dataTypes;
"*" === i[0];) i.shift(), void 0 === d && (d = a.mimeType || b.getResponseHeader("Content-Type"));
if (d)
for (e in h)
if (h[e] && h[e].test(d)) {
i.unshift(e);
break
}
if (i[0] in c) f = i[0];
else {
for (e in c) {
if (!i[0] || a.converters[e + " " + i[0]]) {
f = e;
break
}
g || (g = e)
}
f = f || g
}
return f ? (f !== i[0] && i.unshift(f), c[f]) : void 0
}
function N(a, b, c, d) {
var e, f, g, h, i, j = {},
k = a.dataTypes.slice();
if (k[1])
for (g in a.converters) j[g.toLowerCase()] = a.converters[g];
for (f = k.shift(); f;)
if (a.responseFields[f] && (c[a.responseFields[f]] = b), !i && d && a.dataFilter && (b = a.dataFilter(b, a.dataType)), i = f, f = k.shift())
if ("*" === f) f = i;
else if ("*" !== i && i !== f) {
if (g = j[i + " " + f] || j["* " + f], !g)
for (e in j)
if (h = e.split(" "), h[1] === f && (g = j[i + " " + h[0]] || j["* " + h[0]])) {
g === !0 ? g = j[e] : j[e] !== !0 && (f = h[0], k.unshift(h[1]));
break
}
if (g !== !0)
if (g && a["throws"]) b = g(b);
else try {
b = g(b)
} catch (l) {
return {
state: "parsererror",
error: g ? l : "No conversion from " + i + " to " + f
}
}
}
return {
state: "success",
data: b
}
}
function O(a, b, c, d) {
var e;
if (_.isArray(b)) _.each(b, function(b, e) {
c || yb.test(a) ? d(a, e) : O(a + "[" + ("object" == typeof e ? b : "") + "]", e, c, d)
});
else if (c || "object" !== _.type(b)) d(a, b);
else
for (e in b) O(a + "[" + e + "]", b[e], c, d)
}
function P(a) {
return _.isWindow(a) ? a : 9 === a.nodeType && a.defaultView
}
var Q = [],
R = Q.slice,
S = Q.concat,
T = Q.push,
U = Q.indexOf,
V = {},
W = V.toString,
X = V.hasOwnProperty,
Y = {},
Z = a.document,
$ = "2.1.4",
_ = function(a, b) {
return new _.fn.init(a, b)
},
aa = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
ba = /^-ms-/,
ca = /-([\da-z])/gi,
da = function(a, b) {
return b.toUpperCase()
};
_.fn = _.prototype = {
jquery: $,
constructor: _,
selector: "",
length: 0,
toArray: function() {
return R.call(this)
},
get: function(a) {
return null != a ? 0 > a ? this[a + this.length] : this[a] : R.call(this)
},
pushStack: function(a) {
var b = _.merge(this.constructor(), a);
return b.prevObject = this, b.context = this.context, b
},
each: function(a, b) {
return _.each(this, a, b)
},
map: function(a) {
return this.pushStack(_.map(this, function(b, c) {
return a.call(b, c, b)
}))
},
slice: function() {
return this.pushStack(R.apply(this, arguments))
},
first: function() {
return this.eq(0)
},
last: function() {
return this.eq(-1)
},
eq: function(a) {
var b = this.length,
c = +a + (0 > a ? b : 0);
return this.pushStack(c >= 0 && b > c ? [this[c]] : [])
},
end: function() {
return this.prevObject || this.constructor(null)
},
push: T,
sort: Q.sort,
splice: Q.splice
}, _.extend = _.fn.extend = function() {
var a, b, c, d, e, f, g = arguments[0] || {},
h = 1,
i = arguments.length,
j = !1;
for ("boolean" == typeof g && (j = g, g = arguments[h] || {}, h++), "object" == typeof g || _.isFunction(g) || (g = {}), h === i && (g = this, h--); i > h; h++)
if (null != (a = arguments[h]))
for (b in a) c = g[b], d = a[b], g !== d && (j && d && (_.isPlainObject(d) || (e = _.isArray(d))) ? (e ? (e = !1, f = c && _.isArray(c) ? c : []) : f = c && _.isPlainObject(c) ? c : {}, g[b] = _.extend(j, f, d)) : void 0 !== d && (g[b] = d));
return g
}, _.extend({
expando: "jQuery" + ($ + Math.random()).replace(/\D/g, ""),
isReady: !0,
error: function(a) {
throw new Error(a)
},
noop: function() {},
isFunction: function(a) {
return "function" === _.type(a)
},
isArray: Array.isArray,
isWindow: function(a) {
return null != a && a === a.window
},
isNumeric: function(a) {
return !_.isArray(a) && a - parseFloat(a) + 1 >= 0
},
isPlainObject: function(a) {
return "object" !== _.type(a) || a.nodeType || _.isWindow(a) ? !1 : a.constructor && !X.call(a.constructor.prototype, "isPrototypeOf") ? !1 : !0
},
isEmptyObject: function(a) {
var b;
for (b in a) return !1;
return !0
},
type: function(a) {
return null == a ? a + "" : "object" == typeof a || "function" == typeof a ? V[W.call(a)] || "object" : typeof a
},
globalEval: function(a) {
var b, c = eval;
a = _.trim(a), a && (1 === a.indexOf("use strict") ? (b = Z.createElement("script"), b.text = a, Z.head.appendChild(b).parentNode.removeChild(b)) : c(a))
},
camelCase: function(a) {
return a.replace(ba, "ms-").replace(ca, da)
},
nodeName: function(a, b) {
return a.nodeName && a.nodeName.toLowerCase() === b.toLowerCase()
},
each: function(a, b, d) {
var e, f = 0,
g = a.length,
h = c(a);
if (d) {
if (h)
for (; g > f && (e = b.apply(a[f], d), e !== !1); f++);
else
for (f in a)
if (e = b.apply(a[f], d), e === !1) break
} else if (h)
for (; g > f && (e = b.call(a[f], f, a[f]), e !== !1); f++);
else
for (f in a)
if (e = b.call(a[f], f, a[f]), e === !1) break; return a
},
trim: function(a) {
return null == a ? "" : (a + "").replace(aa, "")
},
makeArray: function(a, b) {
var d = b || [];
return null != a && (c(Object(a)) ? _.merge(d, "string" == typeof a ? [a] : a) : T.call(d, a)), d
},
inArray: function(a, b, c) {
return null == b ? -1 : U.call(b, a, c)
},
merge: function(a, b) {
for (var c = +b.length, d = 0, e = a.length; c > d; d++) a[e++] = b[d];
return a.length = e, a
},
grep: function(a, b, c) {
for (var d, e = [], f = 0, g = a.length, h = !c; g > f; f++) d = !b(a[f], f), d !== h && e.push(a[f]);
return e
},
map: function(a, b, d) {
var e, f = 0,
g = a.length,
h = c(a),
i = [];
if (h)
for (; g > f; f++) e = b(a[f], f, d), null != e && i.push(e);
else
for (f in a) e = b(a[f], f, d), null != e && i.push(e);
return S.apply([], i)
},
guid: 1,
proxy: function(a, b) {
var c, d, e;
return "string" == typeof b && (c = a[b], b = a, a = c), _.isFunction(a) ? (d = R.call(arguments, 2), e = function() {
return a.apply(b || this, d.concat(R.call(arguments)))
}, e.guid = a.guid = a.guid || _.guid++, e) : void 0
},
now: Date.now,
support: Y
}), _.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(a, b) {
V["[object " + b + "]"] = b.toLowerCase()
});
var ea =
/*!
* Sizzle CSS Selector Engine v2.2.0-pre
* http://sizzlejs.com/
*
* Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-16
*/
function(a) {
function b(a, b, c, d) {
var e, f, g, h, i, j, l, n, o, p;
if ((b ? b.ownerDocument || b : O) !== G && F(b), b = b || G, c = c || [], h = b.nodeType, "string" != typeof a || !a || 1 !== h && 9 !== h && 11 !== h) return c;
if (!d && I) {
if (11 !== h && (e = sa.exec(a)))
if (g = e[1]) {
if (9 === h) {
if (f = b.getElementById(g), !f || !f.parentNode) return c;
if (f.id === g) return c.push(f), c
} else if (b.ownerDocument && (f = b.ownerDocument.getElementById(g)) && M(b, f) && f.id === g) return c.push(f), c
} else {
if (e[2]) return $.apply(c, b.getElementsByTagName(a)), c;
if ((g = e[3]) && v.getElementsByClassName) return $.apply(c, b.getElementsByClassName(g)), c
}
if (v.qsa && (!J || !J.test(a))) {
if (n = l = N, o = b, p = 1 !== h && a, 1 === h && "object" !== b.nodeName.toLowerCase()) {
for (j = z(a), (l = b.getAttribute("id")) ? n = l.replace(ua, "\\$&") : b.setAttribute("id", n), n = "[id='" + n + "'] ", i = j.length; i--;) j[i] = n + m(j[i]);
o = ta.test(a) && k(b.parentNode) || b, p = j.join(",")
}
if (p) try {
return $.apply(c, o.querySelectorAll(p)), c
} catch (q) {} finally {
l || b.removeAttribute("id")
}
}
}
return B(a.replace(ia, "$1"), b, c, d)
}
function c() {
function a(c, d) {
return b.push(c + " ") > w.cacheLength && delete a[b.shift()], a[c + " "] = d
}
var b = [];
return a
}
function d(a) {
return a[N] = !0, a
}
function e(a) {
var b = G.createElement("div");
try {
return !!a(b)
} catch (c) {
return !1
} finally {
b.parentNode && b.parentNode.removeChild(b), b = null
}
}
function f(a, b) {
for (var c = a.split("|"), d = a.length; d--;) w.attrHandle[c[d]] = b
}
function g(a, b) {
var c = b && a,
d = c && 1 === a.nodeType && 1 === b.nodeType && (~b.sourceIndex || V) - (~a.sourceIndex || V);
if (d) return d;
if (c)
for (; c = c.nextSibling;)
if (c === b) return -1;
return a ? 1 : -1
}
function h(a) {
return function(b) {
var c = b.nodeName.toLowerCase();
return "input" === c && b.type === a
}
}
function i(a) {
return function(b) {
var c = b.nodeName.toLowerCase();
return ("input" === c || "button" === c) && b.type === a
}
}
function j(a) {
return d(function(b) {
return b = +b, d(function(c, d) {
for (var e, f = a([], c.length, b), g = f.length; g--;) c[e = f[g]] && (c[e] = !(d[e] = c[e]))
})
})
}
function k(a) {
return a && "undefined" != typeof a.getElementsByTagName && a
}
function l() {}
function m(a) {
for (var b = 0, c = a.length, d = ""; c > b; b++) d += a[b].value;
return d
}
function n(a, b, c) {
var d = b.dir,
e = c && "parentNode" === d,
f = Q++;
return b.first ? function(b, c, f) {
for (; b = b[d];)
if (1 === b.nodeType || e) return a(b, c, f)
} : function(b, c, g) {
var h, i, j = [P, f];
if (g) {
for (; b = b[d];)
if ((1 === b.nodeType || e) && a(b, c, g)) return !0
} else
for (; b = b[d];)
if (1 === b.nodeType || e) {
if (i = b[N] || (b[N] = {}), (h = i[d]) && h[0] === P && h[1] === f) return j[2] = h[2];
if (i[d] = j, j[2] = a(b, c, g)) return !0
}
}
}
function o(a) {
return a.length > 1 ? function(b, c, d) {
for (var e = a.length; e--;)
if (!a[e](b, c, d)) return !1;
return !0
} : a[0]
}
function p(a, c, d) {
for (var e = 0, f = c.length; f > e; e++) b(a, c[e], d);
return d
}
function q(a, b, c, d, e) {
for (var f, g = [], h = 0, i = a.length, j = null != b; i > h; h++)(f = a[h]) && (!c || c(f, d, e)) && (g.push(f), j && b.push(h));
return g
}
function r(a, b, c, e, f, g) {
return e && !e[N] && (e = r(e)), f && !f[N] && (f = r(f, g)), d(function(d, g, h, i) {
var j, k, l, m = [],
n = [],
o = g.length,
r = d || p(b || "*", h.nodeType ? [h] : h, []),
s = !a || !d && b ? r : q(r, m, a, h, i),
t = c ? f || (d ? a : o || e) ? [] : g : s;
if (c && c(s, t, h, i), e)
for (j = q(t, n), e(j, [], h, i), k = j.length; k--;)(l = j[k]) && (t[n[k]] = !(s[n[k]] = l));
if (d) {
if (f || a) {
if (f) {
for (j = [], k = t.length; k--;)(l = t[k]) && j.push(s[k] = l);
f(null, t = [], j, i)
}
for (k = t.length; k--;)(l = t[k]) && (j = f ? aa(d, l) : m[k]) > -1 && (d[j] = !(g[j] = l))
}
} else t = q(t === g ? t.splice(o, t.length) : t), f ? f(null, g, t, i) : $.apply(g, t)
})
}
function s(a) {
for (var b, c, d, e = a.length, f = w.relative[a[0].type], g = f || w.relative[" "], h = f ? 1 : 0, i = n(function(a) {
return a === b
}, g, !0), j = n(function(a) {
return aa(b, a) > -1
}, g, !0), k = [function(a, c, d) {
var e = !f && (d || c !== C) || ((b = c).nodeType ? i(a, c, d) : j(a, c, d));
return b = null, e
}]; e > h; h++)
if (c = w.relative[a[h].type]) k = [n(o(k), c)];
else {
if (c = w.filter[a[h].type].apply(null, a[h].matches), c[N]) {
for (d = ++h; e > d && !w.relative[a[d].type]; d++);
return r(h > 1 && o(k), h > 1 && m(a.slice(0, h - 1).concat({
value: " " === a[h - 2].type ? "*" : ""
})).replace(ia, "$1"), c, d > h && s(a.slice(h, d)), e > d && s(a = a.slice(d)), e > d && m(a))
}
k.push(c)
}
return o(k)
}
function t(a, c) {
var e = c.length > 0,
f = a.length > 0,
g = function(d, g, h, i, j) {
var k, l, m, n = 0,
o = "0",
p = d && [],
r = [],
s = C,
t = d || f && w.find.TAG("*", j),
u = P += null == s ? 1 : Math.random() || .1,
v = t.length;
for (j && (C = g !== G && g); o !== v && null != (k = t[o]); o++) {
if (f && k) {
for (l = 0; m = a[l++];)
if (m(k, g, h)) {
i.push(k);
break
}
j && (P = u)
}
e && ((k = !m && k) && n--, d && p.push(k))
}
if (n += o, e && o !== n) {
for (l = 0; m = c[l++];) m(p, r, g, h);
if (d) {
if (n > 0)
for (; o--;) p[o] || r[o] || (r[o] = Y.call(i));
r = q(r)
}
$.apply(i, r), j && !d && r.length > 0 && n + c.length > 1 && b.uniqueSort(i)
}
return j && (P = u, C = s), p
};
return e ? d(g) : g
}
var u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N = "sizzle" + 1 * new Date,
O = a.document,
P = 0,
Q = 0,
R = c(),
S = c(),
T = c(),
U = function(a, b) {
return a === b && (E = !0), 0
},
V = 1 << 31,
W = {}.hasOwnProperty,
X = [],
Y = X.pop,
Z = X.push,
$ = X.push,
_ = X.slice,
aa = function(a, b) {
for (var c = 0, d = a.length; d > c; c++)
if (a[c] === b) return c;
return -1
},
ba = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
ca = "[\\x20\\t\\r\\n\\f]",
da = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
ea = da.replace("w", "w#"),
fa = "\\[" + ca + "*(" + da + ")(?:" + ca + "*([*^$|!~]?=)" + ca + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + ea + "))|)" + ca + "*\\]",
ga = ":(" + da + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + fa + ")*)|.*)\\)|)",
ha = new RegExp(ca + "+", "g"),
ia = new RegExp("^" + ca + "+|((?:^|[^\\\\])(?:\\\\.)*)" + ca + "+$", "g"),
ja = new RegExp("^" + ca + "*," + ca + "*"),
ka = new RegExp("^" + ca + "*([>+~]|" + ca + ")" + ca + "*"),
la = new RegExp("=" + ca + "*([^\\]'\"]*?)" + ca + "*\\]", "g"),
ma = new RegExp(ga),
na = new RegExp("^" + ea + "$"),
oa = {
ID: new RegExp("^#(" + da + ")"),
CLASS: new RegExp("^\\.(" + da + ")"),
TAG: new RegExp("^(" + da.replace("w", "w*") + ")"),
ATTR: new RegExp("^" + fa),
PSEUDO: new RegExp("^" + ga),
CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + ca + "*(even|odd|(([+-]|)(\\d*)n|)" + ca + "*(?:([+-]|)" + ca + "*(\\d+)|))" + ca + "*\\)|)", "i"),
bool: new RegExp("^(?:" + ba + ")$", "i"),
needsContext: new RegExp("^" + ca + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + ca + "*((?:-\\d)?\\d*)" + ca + "*\\)|)(?=[^-]|$)", "i")
},
pa = /^(?:input|select|textarea|button)$/i,
qa = /^h\d$/i,
ra = /^[^{]+\{\s*\[native \w/,
sa = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
ta = /[+~]/,
ua = /'|\\/g,
va = new RegExp("\\\\([\\da-f]{1,6}" + ca + "?|(" + ca + ")|.)", "ig"),
wa = function(a, b, c) {
var d = "0x" + b - 65536;
return d !== d || c ? b : 0 > d ? String.fromCharCode(d + 65536) : String.fromCharCode(d >> 10 | 55296, 1023 & d | 56320)
},
xa = function() {
F()
};
try {
$.apply(X = _.call(O.childNodes), O.childNodes), X[O.childNodes.length].nodeType
} catch (ya) {
$ = {
apply: X.length ? function(a, b) {
Z.apply(a, _.call(b))
} : function(a, b) {
for (var c = a.length, d = 0; a[c++] = b[d++];);
a.length = c - 1
}
}
}
v = b.support = {}, y = b.isXML = function(a) {
var b = a && (a.ownerDocument || a).documentElement;
return b ? "HTML" !== b.nodeName : !1
}, F = b.setDocument = function(a) {
var b, c, d = a ? a.ownerDocument || a : O;
return d !== G && 9 === d.nodeType && d.documentElement ? (G = d, H = d.documentElement, c = d.defaultView, c && c !== c.top && (c.addEventListener ? c.addEventListener("unload", xa, !1) : c.attachEvent && c.attachEvent("onunload", xa)), I = !y(d), v.attributes = e(function(a) {
return a.className = "i", !a.getAttribute("className")
}), v.getElementsByTagName = e(function(a) {
return a.appendChild(d.createComment("")), !a.getElementsByTagName("*").length
}), v.getElementsByClassName = ra.test(d.getElementsByClassName), v.getById = e(function(a) {
return H.appendChild(a).id = N, !d.getElementsByName || !d.getElementsByName(N).length
}), v.getById ? (w.find.ID = function(a, b) {
if ("undefined" != typeof b.getElementById && I) {
var c = b.getElementById(a);
return c && c.parentNode ? [c] : []
}
}, w.filter.ID = function(a) {
var b = a.replace(va, wa);
return function(a) {
return a.getAttribute("id") === b
}
}) : (delete w.find.ID, w.filter.ID = function(a) {
var b = a.replace(va, wa);
return function(a) {
var c = "undefined" != typeof a.getAttributeNode && a.getAttributeNode("id");
return c && c.value === b
}
}), w.find.TAG = v.getElementsByTagName ? function(a, b) {
return "undefined" != typeof b.getElementsByTagName ? b.getElementsByTagName(a) : v.qsa ? b.querySelectorAll(a) : void 0
} : function(a, b) {
var c, d = [],
e = 0,
f = b.getElementsByTagName(a);
if ("*" === a) {
for (; c = f[e++];) 1 === c.nodeType && d.push(c);
return d
}
return f
}, w.find.CLASS = v.getElementsByClassName && function(a, b) {
return I ? b.getElementsByClassName(a) : void 0
}, K = [], J = [], (v.qsa = ra.test(d.querySelectorAll)) && (e(function(a) {
H.appendChild(a).innerHTML = "
", a.querySelectorAll("[msallowcapture^='']").length && J.push("[*^$]=" + ca + "*(?:''|\"\")"), a.querySelectorAll("[selected]").length || J.push("\\[" + ca + "*(?:value|" + ba + ")"), a.querySelectorAll("[id~=" + N + "-]").length || J.push("~="), a.querySelectorAll(":checked").length || J.push(":checked"), a.querySelectorAll("a#" + N + "+*").length || J.push(".#.+[+~]")
}), e(function(a) {
var b = d.createElement("input");
b.setAttribute("type", "hidden"), a.appendChild(b).setAttribute("name", "D"), a.querySelectorAll("[name=d]").length && J.push("name" + ca + "*[*^$|!~]?="), a.querySelectorAll(":enabled").length || J.push(":enabled", ":disabled"), a.querySelectorAll("*,:x"), J.push(",.*:")
})), (v.matchesSelector = ra.test(L = H.matches || H.webkitMatchesSelector || H.mozMatchesSelector || H.oMatchesSelector || H.msMatchesSelector)) && e(function(a) {
v.disconnectedMatch = L.call(a, "div"), L.call(a, "[s!='']:x"), K.push("!=", ga)
}), J = J.length && new RegExp(J.join("|")), K = K.length && new RegExp(K.join("|")), b = ra.test(H.compareDocumentPosition), M = b || ra.test(H.contains) ? function(a, b) {
var c = 9 === a.nodeType ? a.documentElement : a,
d = b && b.parentNode;
return a === d || !(!d || 1 !== d.nodeType || !(c.contains ? c.contains(d) : a.compareDocumentPosition && 16 & a.compareDocumentPosition(d)))
} : function(a, b) {
if (b)
for (; b = b.parentNode;)
if (b === a) return !0;
return !1
}, U = b ? function(a, b) {
if (a === b) return E = !0, 0;
var c = !a.compareDocumentPosition - !b.compareDocumentPosition;
return c ? c : (c = (a.ownerDocument || a) === (b.ownerDocument || b) ? a.compareDocumentPosition(b) : 1, 1 & c || !v.sortDetached && b.compareDocumentPosition(a) === c ? a === d || a.ownerDocument === O && M(O, a) ? -1 : b === d || b.ownerDocument === O && M(O, b) ? 1 : D ? aa(D, a) - aa(D, b) : 0 : 4 & c ? -1 : 1)
} : function(a, b) {
if (a === b) return E = !0, 0;
var c, e = 0,
f = a.parentNode,
h = b.parentNode,
i = [a],
j = [b];
if (!f || !h) return a === d ? -1 : b === d ? 1 : f ? -1 : h ? 1 : D ? aa(D, a) - aa(D, b) : 0;
if (f === h) return g(a, b);
for (c = a; c = c.parentNode;) i.unshift(c);
for (c = b; c = c.parentNode;) j.unshift(c);
for (; i[e] === j[e];) e++;
return e ? g(i[e], j[e]) : i[e] === O ? -1 : j[e] === O ? 1 : 0
}, d) : G
}, b.matches = function(a, c) {
return b(a, null, null, c)
}, b.matchesSelector = function(a, c) {
if ((a.ownerDocument || a) !== G && F(a), c = c.replace(la, "='$1']"), v.matchesSelector && I && (!K || !K.test(c)) && (!J || !J.test(c))) try {
var d = L.call(a, c);
if (d || v.disconnectedMatch || a.document && 11 !== a.document.nodeType) return d
} catch (e) {}
return b(c, G, null, [a]).length > 0
}, b.contains = function(a, b) {
return (a.ownerDocument || a) !== G && F(a), M(a, b)
}, b.attr = function(a, b) {
(a.ownerDocument || a) !== G && F(a);
var c = w.attrHandle[b.toLowerCase()],
d = c && W.call(w.attrHandle, b.toLowerCase()) ? c(a, b, !I) : void 0;
return void 0 !== d ? d : v.attributes || !I ? a.getAttribute(b) : (d = a.getAttributeNode(b)) && d.specified ? d.value : null
}, b.error = function(a) {
throw new Error("Syntax error, unrecognized expression: " + a)
}, b.uniqueSort = function(a) {
var b, c = [],
d = 0,
e = 0;
if (E = !v.detectDuplicates, D = !v.sortStable && a.slice(0), a.sort(U), E) {
for (; b = a[e++];) b === a[e] && (d = c.push(e));
for (; d--;) a.splice(c[d], 1)
}
return D = null, a
}, x = b.getText = function(a) {
var b, c = "",
d = 0,
e = a.nodeType;
if (e) {
if (1 === e || 9 === e || 11 === e) {
if ("string" == typeof a.textContent) return a.textContent;
for (a = a.firstChild; a; a = a.nextSibling) c += x(a)
} else if (3 === e || 4 === e) return a.nodeValue
} else
for (; b = a[d++];) c += x(b);
return c
}, w = b.selectors = {
cacheLength: 50,
createPseudo: d,
match: oa,
attrHandle: {},
find: {},
relative: {
">": {
dir: "parentNode",
first: !0
},
" ": {
dir: "parentNode"
},
"+": {
dir: "previousSibling",
first: !0
},
"~": {
dir: "previousSibling"
}
},
preFilter: {
ATTR: function(a) {
return a[1] = a[1].replace(va, wa), a[3] = (a[3] || a[4] || a[5] || "").replace(va, wa), "~=" === a[2] && (a[3] = " " + a[3] + " "), a.slice(0, 4)
},
CHILD: function(a) {
return a[1] = a[1].toLowerCase(), "nth" === a[1].slice(0, 3) ? (a[3] || b.error(a[0]), a[4] = +(a[4] ? a[5] + (a[6] || 1) : 2 * ("even" === a[3] || "odd" === a[3])), a[5] = +(a[7] + a[8] || "odd" === a[3])) : a[3] && b.error(a[0]), a
},
PSEUDO: function(a) {
var b, c = !a[6] && a[2];
return oa.CHILD.test(a[0]) ? null : (a[3] ? a[2] = a[4] || a[5] || "" : c && ma.test(c) && (b = z(c, !0)) && (b = c.indexOf(")", c.length - b) - c.length) && (a[0] = a[0].slice(0, b), a[2] = c.slice(0, b)), a.slice(0, 3))
}
},
filter: {
TAG: function(a) {
var b = a.replace(va, wa).toLowerCase();
return "*" === a ? function() {
return !0
} : function(a) {
return a.nodeName && a.nodeName.toLowerCase() === b
}
},
CLASS: function(a) {
var b = R[a + " "];
return b || (b = new RegExp("(^|" + ca + ")" + a + "(" + ca + "|$)")) && R(a, function(a) {
return b.test("string" == typeof a.className && a.className || "undefined" != typeof a.getAttribute && a.getAttribute("class") || "")
})
},
ATTR: function(a, c, d) {
return function(e) {
var f = b.attr(e, a);
return null == f ? "!=" === c : c ? (f += "", "=" === c ? f === d : "!=" === c ? f !== d : "^=" === c ? d && 0 === f.indexOf(d) : "*=" === c ? d && f.indexOf(d) > -1 : "$=" === c ? d && f.slice(-d.length) === d : "~=" === c ? (" " + f.replace(ha, " ") + " ").indexOf(d) > -1 : "|=" === c ? f === d || f.slice(0, d.length + 1) === d + "-" : !1) : !0
}
},
CHILD: function(a, b, c, d, e) {
var f = "nth" !== a.slice(0, 3),
g = "last" !== a.slice(-4),
h = "of-type" === b;
return 1 === d && 0 === e ? function(a) {
return !!a.parentNode
} : function(b, c, i) {
var j, k, l, m, n, o, p = f !== g ? "nextSibling" : "previousSibling",
q = b.parentNode,
r = h && b.nodeName.toLowerCase(),
s = !i && !h;
if (q) {
if (f) {
for (; p;) {
for (l = b; l = l[p];)
if (h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType) return !1;
o = p = "only" === a && !o && "nextSibling"
}
return !0
}
if (o = [g ? q.firstChild : q.lastChild], g && s) {
for (k = q[N] || (q[N] = {}), j = k[a] || [], n = j[0] === P && j[1], m = j[0] === P && j[2], l = n && q.childNodes[n]; l = ++n && l && l[p] || (m = n = 0) || o.pop();)
if (1 === l.nodeType && ++m && l === b) {
k[a] = [P, n, m];
break
}
} else if (s && (j = (b[N] || (b[N] = {}))[a]) && j[0] === P) m = j[1];
else
for (;
(l = ++n && l && l[p] || (m = n = 0) || o.pop()) && ((h ? l.nodeName.toLowerCase() !== r : 1 !== l.nodeType) || !++m || (s && ((l[N] || (l[N] = {}))[a] = [P, m]), l !== b)););
return m -= e, m === d || m % d === 0 && m / d >= 0
}
}
},
PSEUDO: function(a, c) {
var e, f = w.pseudos[a] || w.setFilters[a.toLowerCase()] || b.error("unsupported pseudo: " + a);
return f[N] ? f(c) : f.length > 1 ? (e = [a, a, "", c], w.setFilters.hasOwnProperty(a.toLowerCase()) ? d(function(a, b) {
for (var d, e = f(a, c), g = e.length; g--;) d = aa(a, e[g]), a[d] = !(b[d] = e[g])
}) : function(a) {
return f(a, 0, e)
}) : f
}
},
pseudos: {
not: d(function(a) {
var b = [],
c = [],
e = A(a.replace(ia, "$1"));
return e[N] ? d(function(a, b, c, d) {
for (var f, g = e(a, null, d, []), h = a.length; h--;)(f = g[h]) && (a[h] = !(b[h] = f))
}) : function(a, d, f) {
return b[0] = a, e(b, null, f, c), b[0] = null, !c.pop()
}
}),
has: d(function(a) {
return function(c) {
return b(a, c).length > 0
}
}),
contains: d(function(a) {
return a = a.replace(va, wa),
function(b) {
return (b.textContent || b.innerText || x(b)).indexOf(a) > -1
}
}),
lang: d(function(a) {
return na.test(a || "") || b.error("unsupported lang: " + a), a = a.replace(va, wa).toLowerCase(),
function(b) {
var c;
do
if (c = I ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang")) return c = c.toLowerCase(), c === a || 0 === c.indexOf(a + "-");
while ((b = b.parentNode) && 1 === b.nodeType);
return !1
}
}),
target: function(b) {
var c = a.location && a.location.hash;
return c && c.slice(1) === b.id
},
root: function(a) {
return a === H
},
focus: function(a) {
return a === G.activeElement && (!G.hasFocus || G.hasFocus()) && !!(a.type || a.href || ~a.tabIndex)
},
enabled: function(a) {
return a.disabled === !1
},
disabled: function(a) {
return a.disabled === !0
},
checked: function(a) {
var b = a.nodeName.toLowerCase();
return "input" === b && !!a.checked || "option" === b && !!a.selected
},
selected: function(a) {
return a.parentNode && a.parentNode.selectedIndex, a.selected === !0
},
empty: function(a) {
for (a = a.firstChild; a; a = a.nextSibling)
if (a.nodeType < 6) return !1;
return !0
},
parent: function(a) {
return !w.pseudos.empty(a)
},
header: function(a) {
return qa.test(a.nodeName)
},
input: function(a) {
return pa.test(a.nodeName)
},
button: function(a) {
var b = a.nodeName.toLowerCase();
return "input" === b && "button" === a.type || "button" === b
},
text: function(a) {
var b;
return "input" === a.nodeName.toLowerCase() && "text" === a.type && (null == (b = a.getAttribute("type")) || "text" === b.toLowerCase())
},
first: j(function() {
return [0]
}),
last: j(function(a, b) {
return [b - 1]
}),
eq: j(function(a, b, c) {
return [0 > c ? c + b : c]
}),
even: j(function(a, b) {
for (var c = 0; b > c; c += 2) a.push(c);
return a
}),
odd: j(function(a, b) {
for (var c = 1; b > c; c += 2) a.push(c);
return a
}),
lt: j(function(a, b, c) {
for (var d = 0 > c ? c + b : c; --d >= 0;) a.push(d);
return a
}),
gt: j(function(a, b, c) {
for (var d = 0 > c ? c + b : c; ++d < b;) a.push(d);
return a
})
}
}, w.pseudos.nth = w.pseudos.eq;
for (u in {
radio: !0,
checkbox: !0,
file: !0,
password: !0,
image: !0
}) w.pseudos[u] = h(u);
for (u in {
submit: !0,
reset: !0
}) w.pseudos[u] = i(u);
return l.prototype = w.filters = w.pseudos, w.setFilters = new l, z = b.tokenize = function(a, c) {
var d, e, f, g, h, i, j, k = S[a + " "];
if (k) return c ? 0 : k.slice(0);
for (h = a, i = [], j = w.preFilter; h;) {
(!d || (e = ja.exec(h))) && (e && (h = h.slice(e[0].length) || h), i.push(f = [])), d = !1, (e = ka.exec(h)) && (d = e.shift(), f.push({
value: d,
type: e[0].replace(ia, " ")
}), h = h.slice(d.length));
for (g in w.filter) !(e = oa[g].exec(h)) || j[g] && !(e = j[g](e)) || (d = e.shift(), f.push({
value: d,
type: g,
matches: e
}), h = h.slice(d.length));
if (!d) break
}
return c ? h.length : h ? b.error(a) : S(a, i).slice(0)
}, A = b.compile = function(a, b) {
var c, d = [],
e = [],
f = T[a + " "];
if (!f) {
for (b || (b = z(a)), c = b.length; c--;) f = s(b[c]), f[N] ? d.push(f) : e.push(f);
f = T(a, t(e, d)), f.selector = a
}
return f
}, B = b.select = function(a, b, c, d) {
var e, f, g, h, i, j = "function" == typeof a && a,
l = !d && z(a = j.selector || a);
if (c = c || [], 1 === l.length) {
if (f = l[0] = l[0].slice(0), f.length > 2 && "ID" === (g = f[0]).type && v.getById && 9 === b.nodeType && I && w.relative[f[1].type]) {
if (b = (w.find.ID(g.matches[0].replace(va, wa), b) || [])[0], !b) return c;
j && (b = b.parentNode), a = a.slice(f.shift().value.length)
}
for (e = oa.needsContext.test(a) ? 0 : f.length; e-- && (g = f[e], !w.relative[h = g.type]);)
if ((i = w.find[h]) && (d = i(g.matches[0].replace(va, wa), ta.test(f[0].type) && k(b.parentNode) || b))) {
if (f.splice(e, 1), a = d.length && m(f), !a) return $.apply(c, d), c;
break
}
}
return (j || A(a, l))(d, b, !I, c, ta.test(a) && k(b.parentNode) || b), c
}, v.sortStable = N.split("").sort(U).join("") === N, v.detectDuplicates = !!E, F(), v.sortDetached = e(function(a) {
return 1 & a.compareDocumentPosition(G.createElement("div"))
}), e(function(a) {
return a.innerHTML = "
", "#" === a.firstChild.getAttribute("href")
}) || f("type|href|height|width", function(a, b, c) {
return c ? void 0 : a.getAttribute(b, "type" === b.toLowerCase() ? 1 : 2)
}), v.attributes && e(function(a) {
return a.innerHTML = "
", a.firstChild.setAttribute("value", ""), "" === a.firstChild.getAttribute("value")
}) || f("value", function(a, b, c) {
return c || "input" !== a.nodeName.toLowerCase() ? void 0 : a.defaultValue
}), e(function(a) {
return null == a.getAttribute("disabled")
}) || f(ba, function(a, b, c) {
var d;
return c ? void 0 : a[b] === !0 ? b.toLowerCase() : (d = a.getAttributeNode(b)) && d.specified ? d.value : null
}), b
}(a);
_.find = ea, _.expr = ea.selectors, _.expr[":"] = _.expr.pseudos, _.unique = ea.uniqueSort, _.text = ea.getText, _.isXMLDoc = ea.isXML, _.contains = ea.contains;
var fa = _.expr.match.needsContext,
ga = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
ha = /^.[^:#\[\.,]*$/;
_.filter = function(a, b, c) {
var d = b[0];
return c && (a = ":not(" + a + ")"), 1 === b.length && 1 === d.nodeType ? _.find.matchesSelector(d, a) ? [d] : [] : _.find.matches(a, _.grep(b, function(a) {
return 1 === a.nodeType
}))
}, _.fn.extend({
find: function(a) {
var b, c = this.length,
d = [],
e = this;
if ("string" != typeof a) return this.pushStack(_(a).filter(function() {
for (b = 0; c > b; b++)
if (_.contains(e[b], this)) return !0
}));
for (b = 0; c > b; b++) _.find(a, e[b], d);
return d = this.pushStack(c > 1 ? _.unique(d) : d), d.selector = this.selector ? this.selector + " " + a : a, d
},
filter: function(a) {
return this.pushStack(d(this, a || [], !1))
},
not: function(a) {
return this.pushStack(d(this, a || [], !0))
},
is: function(a) {
return !!d(this, "string" == typeof a && fa.test(a) ? _(a) : a || [], !1).length
}
});
var ia, ja = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
ka = _.fn.init = function(a, b) {
var c, d;
if (!a) return this;
if ("string" == typeof a) {
if (c = "<" === a[0] && ">" === a[a.length - 1] && a.length >= 3 ? [null, a, null] : ja.exec(a), !c || !c[1] && b) return !b || b.jquery ? (b || ia).find(a) : this.constructor(b).find(a);
if (c[1]) {
if (b = b instanceof _ ? b[0] : b, _.merge(this, _.parseHTML(c[1], b && b.nodeType ? b.ownerDocument || b : Z, !0)), ga.test(c[1]) && _.isPlainObject(b))
for (c in b) _.isFunction(this[c]) ? this[c](b[c]) : this.attr(c, b[c]);
return this
}
return d = Z.getElementById(c[2]), d && d.parentNode && (this.length = 1, this[0] = d), this.context = Z, this.selector = a, this
}
return a.nodeType ? (this.context = this[0] = a, this.length = 1, this) : _.isFunction(a) ? "undefined" != typeof ia.ready ? ia.ready(a) : a(_) : (void 0 !== a.selector && (this.selector = a.selector, this.context = a.context), _.makeArray(a, this))
};
ka.prototype = _.fn, ia = _(Z);
var la = /^(?:parents|prev(?:Until|All))/,
ma = {
children: !0,
contents: !0,
next: !0,
prev: !0
};
_.extend({
dir: function(a, b, c) {
for (var d = [], e = void 0 !== c;
(a = a[b]) && 9 !== a.nodeType;)
if (1 === a.nodeType) {
if (e && _(a).is(c)) break;
d.push(a)
}
return d
},
sibling: function(a, b) {
for (var c = []; a; a = a.nextSibling) 1 === a.nodeType && a !== b && c.push(a);
return c
}
}), _.fn.extend({
has: function(a) {
var b = _(a, this),
c = b.length;
return this.filter(function() {
for (var a = 0; c > a; a++)
if (_.contains(this, b[a])) return !0
})
},
closest: function(a, b) {
for (var c, d = 0, e = this.length, f = [], g = fa.test(a) || "string" != typeof a ? _(a, b || this.context) : 0; e > d; d++)
for (c = this[d]; c && c !== b; c = c.parentNode)
if (c.nodeType < 11 && (g ? g.index(c) > -1 : 1 === c.nodeType && _.find.matchesSelector(c, a))) {
f.push(c);
break
}
return this.pushStack(f.length > 1 ? _.unique(f) : f)
},
index: function(a) {
return a ? "string" == typeof a ? U.call(_(a), this[0]) : U.call(this, a.jquery ? a[0] : a) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
},
add: function(a, b) {
return this.pushStack(_.unique(_.merge(this.get(), _(a, b))))
},
addBack: function(a) {
return this.add(null == a ? this.prevObject : this.prevObject.filter(a))
}
}), _.each({
parent: function(a) {
var b = a.parentNode;
return b && 11 !== b.nodeType ? b : null
},
parents: function(a) {
return _.dir(a, "parentNode")
},
parentsUntil: function(a, b, c) {
return _.dir(a, "parentNode", c)
},
next: function(a) {
return e(a, "nextSibling")
},
prev: function(a) {
return e(a, "previousSibling")
},
nextAll: function(a) {
return _.dir(a, "nextSibling")
},
prevAll: function(a) {
return _.dir(a, "previousSibling")
},
nextUntil: function(a, b, c) {
return _.dir(a, "nextSibling", c)
},
prevUntil: function(a, b, c) {
return _.dir(a, "previousSibling", c)
},
siblings: function(a) {
return _.sibling((a.parentNode || {}).firstChild, a)
},
children: function(a) {
return _.sibling(a.firstChild)
},
contents: function(a) {
return a.contentDocument || _.merge([], a.childNodes)
}
}, function(a, b) {
_.fn[a] = function(c, d) {
var e = _.map(this, b, c);
return "Until" !== a.slice(-5) && (d = c), d && "string" == typeof d && (e = _.filter(d, e)), this.length > 1 && (ma[a] || _.unique(e), la.test(a) && e.reverse()), this.pushStack(e)
}
});
var na = /\S+/g,
oa = {};
_.Callbacks = function(a) {
a = "string" == typeof a ? oa[a] || f(a) : _.extend({}, a);
var b, c, d, e, g, h, i = [],
j = !a.once && [],
k = function(f) {
for (b = a.memory && f, c = !0, h = e || 0, e = 0, g = i.length, d = !0; i && g > h; h++)
if (i[h].apply(f[0], f[1]) === !1 && a.stopOnFalse) {
b = !1;
break
}
d = !1, i && (j ? j.length && k(j.shift()) : b ? i = [] : l.disable())
},
l = {
add: function() {
if (i) {
var c = i.length;
! function f(b) {
_.each(b, function(b, c) {
var d = _.type(c);
"function" === d ? a.unique && l.has(c) || i.push(c) : c && c.length && "string" !== d && f(c)
})
}(arguments), d ? g = i.length : b && (e = c, k(b))
}
return this
},
remove: function() {
return i && _.each(arguments, function(a, b) {
for (var c;
(c = _.inArray(b, i, c)) > -1;) i.splice(c, 1), d && (g >= c && g--, h >= c && h--)
}), this
},
has: function(a) {
return a ? _.inArray(a, i) > -1 : !(!i || !i.length)
},
empty: function() {
return i = [], g = 0, this
},
disable: function() {
return i = j = b = void 0, this
},
disabled: function() {
return !i
},
lock: function() {
return j = void 0, b || l.disable(), this
},
locked: function() {
return !j
},
fireWith: function(a, b) {
return !i || c && !j || (b = b || [], b = [a, b.slice ? b.slice() : b], d ? j.push(b) : k(b)), this
},
fire: function() {
return l.fireWith(this, arguments), this
},
fired: function() {
return !!c
}
};
return l
}, _.extend({
Deferred: function(a) {
var b = [
["resolve", "done", _.Callbacks("once memory"), "resolved"],
["reject", "fail", _.Callbacks("once memory"), "rejected"],
["notify", "progress", _.Callbacks("memory")]
],
c = "pending",
d = {
state: function() {
return c
},
always: function() {
return e.done(arguments).fail(arguments), this
},
then: function() {
var a = arguments;
return _.Deferred(function(c) {
_.each(b, function(b, f) {
var g = _.isFunction(a[b]) && a[b];
e[f[1]](function() {
var a = g && g.apply(this, arguments);
a && _.isFunction(a.promise) ? a.promise().done(c.resolve).fail(c.reject).progress(c.notify) : c[f[0] + "With"](this === d ? c.promise() : this, g ? [a] : arguments)
})
}), a = null
}).promise()
},
promise: function(a) {
return null != a ? _.extend(a, d) : d
}
},
e = {};
return d.pipe = d.then, _.each(b, function(a, f) {
var g = f[2],
h = f[3];
d[f[1]] = g.add, h && g.add(function() {
c = h
}, b[1 ^ a][2].disable, b[2][2].lock), e[f[0]] = function() {
return e[f[0] + "With"](this === e ? d : this, arguments), this
}, e[f[0] + "With"] = g.fireWith
}), d.promise(e), a && a.call(e, e), e
},
when: function(a) {
var b, c, d, e = 0,
f = R.call(arguments),
g = f.length,
h = 1 !== g || a && _.isFunction(a.promise) ? g : 0,
i = 1 === h ? a : _.Deferred(),
j = function(a, c, d) {
return function(e) {
c[a] = this, d[a] = arguments.length > 1 ? R.call(arguments) : e, d === b ? i.notifyWith(c, d) : --h || i.resolveWith(c, d)
}
};
if (g > 1)
for (b = new Array(g), c = new Array(g), d = new Array(g); g > e; e++) f[e] && _.isFunction(f[e].promise) ? f[e].promise().done(j(e, d, f)).fail(i.reject).progress(j(e, c, b)) : --h;
return h || i.resolveWith(d, f), i.promise()
}
});
var pa;
_.fn.ready = function(a) {
return _.ready.promise().done(a), this
}, _.extend({
isReady: !1,
readyWait: 1,
holdReady: function(a) {
a ? _.readyWait++ : _.ready(!0)
},
ready: function(a) {
(a === !0 ? --_.readyWait : _.isReady) || (_.isReady = !0, a !== !0 && --_.readyWait > 0 || (pa.resolveWith(Z, [_]), _.fn.triggerHandler && (_(Z).triggerHandler("ready"), _(Z).off("ready"))))
}
}), _.ready.promise = function(b) {
return pa || (pa = _.Deferred(), "complete" === Z.readyState ? setTimeout(_.ready) : (Z.addEventListener("DOMContentLoaded", g, !1), a.addEventListener("load", g, !1))), pa.promise(b)
}, _.ready.promise();
var qa = _.access = function(a, b, c, d, e, f, g) {
var h = 0,
i = a.length,
j = null == c;
if ("object" === _.type(c)) {
e = !0;
for (h in c) _.access(a, b, h, c[h], !0, f, g)
} else if (void 0 !== d && (e = !0, _.isFunction(d) || (g = !0), j && (g ? (b.call(a, d), b = null) : (j = b, b = function(a, b, c) {
return j.call(_(a), c)
})), b))
for (; i > h; h++) b(a[h], c, g ? d : d.call(a[h], h, b(a[h], c)));
return e ? a : j ? b.call(a) : i ? b(a[0], c) : f
};
_.acceptData = function(a) {
return 1 === a.nodeType || 9 === a.nodeType || !+a.nodeType
}, h.uid = 1, h.accepts = _.acceptData, h.prototype = {
key: function(a) {
if (!h.accepts(a)) return 0;
var b = {},
c = a[this.expando];
if (!c) {
c = h.uid++;
try {
b[this.expando] = {
value: c
}, Object.defineProperties(a, b)
} catch (d) {
b[this.expando] = c, _.extend(a, b)
}
}
return this.cache[c] || (this.cache[c] = {}), c
},
set: function(a, b, c) {
var d, e = this.key(a),
f = this.cache[e];
if ("string" == typeof b) f[b] = c;
else if (_.isEmptyObject(f)) _.extend(this.cache[e], b);
else
for (d in b) f[d] = b[d];
return f
},
get: function(a, b) {
var c = this.cache[this.key(a)];
return void 0 === b ? c : c[b]
},
access: function(a, b, c) {
var d;
return void 0 === b || b && "string" == typeof b && void 0 === c ? (d = this.get(a, b), void 0 !== d ? d : this.get(a, _.camelCase(b))) : (this.set(a, b, c), void 0 !== c ? c : b)
},
remove: function(a, b) {
var c, d, e, f = this.key(a),
g = this.cache[f];
if (void 0 === b) this.cache[f] = {};
else {
_.isArray(b) ? d = b.concat(b.map(_.camelCase)) : (e = _.camelCase(b), b in g ? d = [b, e] : (d = e, d = d in g ? [d] : d.match(na) || [])), c = d.length;
for (; c--;) delete g[d[c]]
}
},
hasData: function(a) {
return !_.isEmptyObject(this.cache[a[this.expando]] || {})
},
discard: function(a) {
a[this.expando] && delete this.cache[a[this.expando]]
}
};
var ra = new h,
sa = new h,
ta = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
ua = /([A-Z])/g;
_.extend({
hasData: function(a) {
return sa.hasData(a) || ra.hasData(a)
},
data: function(a, b, c) {
return sa.access(a, b, c)
},
removeData: function(a, b) {
sa.remove(a, b)
},
_data: function(a, b, c) {
return ra.access(a, b, c)
},
_removeData: function(a, b) {
ra.remove(a, b)
}
}), _.fn.extend({
data: function(a, b) {
var c, d, e, f = this[0],
g = f && f.attributes;
if (void 0 === a) {
if (this.length && (e = sa.get(f), 1 === f.nodeType && !ra.get(f, "hasDataAttrs"))) {
for (c = g.length; c--;) g[c] && (d = g[c].name, 0 === d.indexOf("data-") && (d = _.camelCase(d.slice(5)), i(f, d, e[d])));
ra.set(f, "hasDataAttrs", !0)
}
return e
}
return "object" == typeof a ? this.each(function() {
sa.set(this, a)
}) : qa(this, function(b) {
var c, d = _.camelCase(a);
if (f && void 0 === b) {
if (c = sa.get(f, a), void 0 !== c) return c;
if (c = sa.get(f, d), void 0 !== c) return c;
if (c = i(f, d, void 0), void 0 !== c) return c
} else this.each(function() {
var c = sa.get(this, d);
sa.set(this, d, b), -1 !== a.indexOf("-") && void 0 !== c && sa.set(this, a, b)
})
}, null, b, arguments.length > 1, null, !0)
},
removeData: function(a) {
return this.each(function() {
sa.remove(this, a)
})
}
}), _.extend({
queue: function(a, b, c) {
var d;
return a ? (b = (b || "fx") + "queue", d = ra.get(a, b), c && (!d || _.isArray(c) ? d = ra.access(a, b, _.makeArray(c)) : d.push(c)), d || []) : void 0
},
dequeue: function(a, b) {
b = b || "fx";
var c = _.queue(a, b),
d = c.length,
e = c.shift(),
f = _._queueHooks(a, b),
g = function() {
_.dequeue(a, b)
};
"inprogress" === e && (e = c.shift(), d--), e && ("fx" === b && c.unshift("inprogress"), delete f.stop, e.call(a, g, f)), !d && f && f.empty.fire()
},
_queueHooks: function(a, b) {
var c = b + "queueHooks";
return ra.get(a, c) || ra.access(a, c, {
empty: _.Callbacks("once memory").add(function() {
ra.remove(a, [b + "queue", c])
})
})
}
}), _.fn.extend({
queue: function(a, b) {
var c = 2;
return "string" != typeof a && (b = a, a = "fx", c--), arguments.length < c ? _.queue(this[0], a) : void 0 === b ? this : this.each(function() {
var c = _.queue(this, a, b);
_._queueHooks(this, a), "fx" === a && "inprogress" !== c[0] && _.dequeue(this, a)
})
},
dequeue: function(a) {
return this.each(function() {
_.dequeue(this, a)
})
},
clearQueue: function(a) {
return this.queue(a || "fx", [])
},
promise: function(a, b) {
var c, d = 1,
e = _.Deferred(),
f = this,
g = this.length,
h = function() {
--d || e.resolveWith(f, [f])
};
for ("string" != typeof a && (b = a, a = void 0), a = a || "fx"; g--;) c = ra.get(f[g], a + "queueHooks"), c && c.empty && (d++, c.empty.add(h));
return h(), e.promise(b)
}
});
var va = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
wa = ["Top", "Right", "Bottom", "Left"],
xa = function(a, b) {
return a = b || a, "none" === _.css(a, "display") || !_.contains(a.ownerDocument, a)
},
ya = /^(?:checkbox|radio)$/i;
! function() {
var a = Z.createDocumentFragment(),
b = a.appendChild(Z.createElement("div")),
c = Z.createElement("input");
c.setAttribute("type", "radio"), c.setAttribute("checked", "checked"), c.setAttribute("name", "t"), b.appendChild(c), Y.checkClone = b.cloneNode(!0).cloneNode(!0).lastChild.checked, b.innerHTML = "
", Y.noCloneChecked = !!b.cloneNode(!0).lastChild.defaultValue
}();
var za = "undefined";
Y.focusinBubbles = "onfocusin" in a;
var Aa = /^key/,
Ba = /^(?:mouse|pointer|contextmenu)|click/,
Ca = /^(?:focusinfocus|focusoutblur)$/,
Da = /^([^.]*)(?:\.(.+)|)$/;
_.event = {
global: {},
add: function(a, b, c, d, e) {
var f, g, h, i, j, k, l, m, n, o, p, q = ra.get(a);
if (q)
for (c.handler && (f = c, c = f.handler, e = f.selector), c.guid || (c.guid = _.guid++), (i = q.events) || (i = q.events = {}), (g = q.handle) || (g = q.handle = function(b) {
return typeof _ !== za && _.event.triggered !== b.type ? _.event.dispatch.apply(a, arguments) : void 0
}), b = (b || "").match(na) || [""], j = b.length; j--;) h = Da.exec(b[j]) || [], n = p = h[1], o = (h[2] || "").split(".").sort(), n && (l = _.event.special[n] || {}, n = (e ? l.delegateType : l.bindType) || n, l = _.event.special[n] || {}, k = _.extend({
type: n,
origType: p,
data: d,
handler: c,
guid: c.guid,
selector: e,
needsContext: e && _.expr.match.needsContext.test(e),
namespace: o.join(".")
}, f), (m = i[n]) || (m = i[n] = [], m.delegateCount = 0, l.setup && l.setup.call(a, d, o, g) !== !1 || a.addEventListener && a.addEventListener(n, g, !1)), l.add && (l.add.call(a, k), k.handler.guid || (k.handler.guid = c.guid)), e ? m.splice(m.delegateCount++, 0, k) : m.push(k), _.event.global[n] = !0)
},
remove: function(a, b, c, d, e) {
var f, g, h, i, j, k, l, m, n, o, p, q = ra.hasData(a) && ra.get(a);
if (q && (i = q.events)) {
for (b = (b || "").match(na) || [""], j = b.length; j--;)
if (h = Da.exec(b[j]) || [], n = p = h[1], o = (h[2] || "").split(".").sort(), n) {
for (l = _.event.special[n] || {}, n = (d ? l.delegateType : l.bindType) || n, m = i[n] || [], h = h[2] && new RegExp("(^|\\.)" + o.join("\\.(?:.*\\.|)") + "(\\.|$)"), g = f = m.length; f--;) k = m[f], !e && p !== k.origType || c && c.guid !== k.guid || h && !h.test(k.namespace) || d && d !== k.selector && ("**" !== d || !k.selector) || (m.splice(f, 1), k.selector && m.delegateCount--, l.remove && l.remove.call(a, k));
g && !m.length && (l.teardown && l.teardown.call(a, o, q.handle) !== !1 || _.removeEvent(a, n, q.handle), delete i[n])
} else
for (n in i) _.event.remove(a, n + b[j], c, d, !0);
_.isEmptyObject(i) && (delete q.handle, ra.remove(a, "events"))
}
},
trigger: function(b, c, d, e) {
var f, g, h, i, j, k, l, m = [d || Z],
n = X.call(b, "type") ? b.type : b,
o = X.call(b, "namespace") ? b.namespace.split(".") : [];
if (g = h = d = d || Z, 3 !== d.nodeType && 8 !== d.nodeType && !Ca.test(n + _.event.triggered) && (n.indexOf(".") >= 0 && (o = n.split("."), n = o.shift(), o.sort()), j = n.indexOf(":") < 0 && "on" + n, b = b[_.expando] ? b : new _.Event(n, "object" == typeof b && b), b.isTrigger = e ? 2 : 3, b.namespace = o.join("."), b.namespace_re = b.namespace ? new RegExp("(^|\\.)" + o.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, b.result = void 0, b.target || (b.target = d),
c = null == c ? [b] : _.makeArray(c, [b]), l = _.event.special[n] || {}, e || !l.trigger || l.trigger.apply(d, c) !== !1)) {
if (!e && !l.noBubble && !_.isWindow(d)) {
for (i = l.delegateType || n, Ca.test(i + n) || (g = g.parentNode); g; g = g.parentNode) m.push(g), h = g;
h === (d.ownerDocument || Z) && m.push(h.defaultView || h.parentWindow || a)
}
for (f = 0;
(g = m[f++]) && !b.isPropagationStopped();) b.type = f > 1 ? i : l.bindType || n, k = (ra.get(g, "events") || {})[b.type] && ra.get(g, "handle"), k && k.apply(g, c), k = j && g[j], k && k.apply && _.acceptData(g) && (b.result = k.apply(g, c), b.result === !1 && b.preventDefault());
return b.type = n, e || b.isDefaultPrevented() || l._default && l._default.apply(m.pop(), c) !== !1 || !_.acceptData(d) || j && _.isFunction(d[n]) && !_.isWindow(d) && (h = d[j], h && (d[j] = null), _.event.triggered = n, d[n](), _.event.triggered = void 0, h && (d[j] = h)), b.result
}
},
dispatch: function(a) {
a = _.event.fix(a);
var b, c, d, e, f, g = [],
h = R.call(arguments),
i = (ra.get(this, "events") || {})[a.type] || [],
j = _.event.special[a.type] || {};
if (h[0] = a, a.delegateTarget = this, !j.preDispatch || j.preDispatch.call(this, a) !== !1) {
for (g = _.event.handlers.call(this, a, i), b = 0;
(e = g[b++]) && !a.isPropagationStopped();)
for (a.currentTarget = e.elem, c = 0;
(f = e.handlers[c++]) && !a.isImmediatePropagationStopped();)(!a.namespace_re || a.namespace_re.test(f.namespace)) && (a.handleObj = f, a.data = f.data, d = ((_.event.special[f.origType] || {}).handle || f.handler).apply(e.elem, h), void 0 !== d && (a.result = d) === !1 && (a.preventDefault(), a.stopPropagation()));
return j.postDispatch && j.postDispatch.call(this, a), a.result
}
},
handlers: function(a, b) {
var c, d, e, f, g = [],
h = b.delegateCount,
i = a.target;
if (h && i.nodeType && (!a.button || "click" !== a.type))
for (; i !== this; i = i.parentNode || this)
if (i.disabled !== !0 || "click" !== a.type) {
for (d = [], c = 0; h > c; c++) f = b[c], e = f.selector + " ", void 0 === d[e] && (d[e] = f.needsContext ? _(e, this).index(i) >= 0 : _.find(e, this, null, [i]).length), d[e] && d.push(f);
d.length && g.push({
elem: i,
handlers: d
})
}
return h < b.length && g.push({
elem: this,
handlers: b.slice(h)
}), g
},
props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
fixHooks: {},
keyHooks: {
props: "char charCode key keyCode".split(" "),
filter: function(a, b) {
return null == a.which && (a.which = null != b.charCode ? b.charCode : b.keyCode), a
}
},
mouseHooks: {
props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
filter: function(a, b) {
var c, d, e, f = b.button;
return null == a.pageX && null != b.clientX && (c = a.target.ownerDocument || Z, d = c.documentElement, e = c.body, a.pageX = b.clientX + (d && d.scrollLeft || e && e.scrollLeft || 0) - (d && d.clientLeft || e && e.clientLeft || 0), a.pageY = b.clientY + (d && d.scrollTop || e && e.scrollTop || 0) - (d && d.clientTop || e && e.clientTop || 0)), a.which || void 0 === f || (a.which = 1 & f ? 1 : 2 & f ? 3 : 4 & f ? 2 : 0), a
}
},
fix: function(a) {
if (a[_.expando]) return a;
var b, c, d, e = a.type,
f = a,
g = this.fixHooks[e];
for (g || (this.fixHooks[e] = g = Ba.test(e) ? this.mouseHooks : Aa.test(e) ? this.keyHooks : {}), d = g.props ? this.props.concat(g.props) : this.props, a = new _.Event(f), b = d.length; b--;) c = d[b], a[c] = f[c];
return a.target || (a.target = Z), 3 === a.target.nodeType && (a.target = a.target.parentNode), g.filter ? g.filter(a, f) : a
},
special: {
load: {
noBubble: !0
},
focus: {
trigger: function() {
return this !== l() && this.focus ? (this.focus(), !1) : void 0
},
delegateType: "focusin"
},
blur: {
trigger: function() {
return this === l() && this.blur ? (this.blur(), !1) : void 0
},
delegateType: "focusout"
},
click: {
trigger: function() {
return "checkbox" === this.type && this.click && _.nodeName(this, "input") ? (this.click(), !1) : void 0
},
_default: function(a) {
return _.nodeName(a.target, "a")
}
},
beforeunload: {
postDispatch: function(a) {
void 0 !== a.result && a.originalEvent && (a.originalEvent.returnValue = a.result)
}
}
},
simulate: function(a, b, c, d) {
var e = _.extend(new _.Event, c, {
type: a,
isSimulated: !0,
originalEvent: {}
});
d ? _.event.trigger(e, null, b) : _.event.dispatch.call(b, e), e.isDefaultPrevented() && c.preventDefault()
}
}, _.removeEvent = function(a, b, c) {
a.removeEventListener && a.removeEventListener(b, c, !1)
}, _.Event = function(a, b) {
return this instanceof _.Event ? (a && a.type ? (this.originalEvent = a, this.type = a.type, this.isDefaultPrevented = a.defaultPrevented || void 0 === a.defaultPrevented && a.returnValue === !1 ? j : k) : this.type = a, b && _.extend(this, b), this.timeStamp = a && a.timeStamp || _.now(), void(this[_.expando] = !0)) : new _.Event(a, b)
}, _.Event.prototype = {
isDefaultPrevented: k,
isPropagationStopped: k,
isImmediatePropagationStopped: k,
preventDefault: function() {
var a = this.originalEvent;
this.isDefaultPrevented = j, a && a.preventDefault && a.preventDefault()
},
stopPropagation: function() {
var a = this.originalEvent;
this.isPropagationStopped = j, a && a.stopPropagation && a.stopPropagation()
},
stopImmediatePropagation: function() {
var a = this.originalEvent;
this.isImmediatePropagationStopped = j, a && a.stopImmediatePropagation && a.stopImmediatePropagation(), this.stopPropagation()
}
}, _.each({
mouseenter: "mouseover",
mouseleave: "mouseout",
pointerenter: "pointerover",
pointerleave: "pointerout"
}, function(a, b) {
_.event.special[a] = {
delegateType: b,
bindType: b,
handle: function(a) {
var c, d = this,
e = a.relatedTarget,
f = a.handleObj;
return (!e || e !== d && !_.contains(d, e)) && (a.type = f.origType, c = f.handler.apply(this, arguments), a.type = b), c
}
}
}), Y.focusinBubbles || _.each({
focus: "focusin",
blur: "focusout"
}, function(a, b) {
var c = function(a) {
_.event.simulate(b, a.target, _.event.fix(a), !0)
};
_.event.special[b] = {
setup: function() {
var d = this.ownerDocument || this,
e = ra.access(d, b);
e || d.addEventListener(a, c, !0), ra.access(d, b, (e || 0) + 1)
},
teardown: function() {
var d = this.ownerDocument || this,
e = ra.access(d, b) - 1;
e ? ra.access(d, b, e) : (d.removeEventListener(a, c, !0), ra.remove(d, b))
}
}
}), _.fn.extend({
on: function(a, b, c, d, e) {
var f, g;
if ("object" == typeof a) {
"string" != typeof b && (c = c || b, b = void 0);
for (g in a) this.on(g, b, c, a[g], e);
return this
}
if (null == c && null == d ? (d = b, c = b = void 0) : null == d && ("string" == typeof b ? (d = c, c = void 0) : (d = c, c = b, b = void 0)), d === !1) d = k;
else if (!d) return this;
return 1 === e && (f = d, d = function(a) {
return _().off(a), f.apply(this, arguments)
}, d.guid = f.guid || (f.guid = _.guid++)), this.each(function() {
_.event.add(this, a, d, c, b)
})
},
one: function(a, b, c, d) {
return this.on(a, b, c, d, 1)
},
off: function(a, b, c) {
var d, e;
if (a && a.preventDefault && a.handleObj) return d = a.handleObj, _(a.delegateTarget).off(d.namespace ? d.origType + "." + d.namespace : d.origType, d.selector, d.handler), this;
if ("object" == typeof a) {
for (e in a) this.off(e, b, a[e]);
return this
}
return (b === !1 || "function" == typeof b) && (c = b, b = void 0), c === !1 && (c = k), this.each(function() {
_.event.remove(this, a, c, b)
})
},
trigger: function(a, b) {
return this.each(function() {
_.event.trigger(a, b, this)
})
},
triggerHandler: function(a, b) {
var c = this[0];
return c ? _.event.trigger(a, b, c, !0) : void 0
}
});
var Ea = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
Fa = /<([\w:]+)/,
Ga = /<|?\w+;/,
Ha = /<(?:script|style|link)/i,
Ia = /checked\s*(?:[^=]|=\s*.checked.)/i,
Ja = /^$|\/(?:java|ecma)script/i,
Ka = /^true\/(.*)/,
La = /^\s*\s*$/g,
Ma = {
option: [1, "
"],
thead: [1, "
"],
col: [2, "
"],
tr: [2, "
"],
td: [3, "
"],
_default: [0, "", ""]
};
Ma.optgroup = Ma.option, Ma.tbody = Ma.tfoot = Ma.colgroup = Ma.caption = Ma.thead, Ma.th = Ma.td, _.extend({
clone: function(a, b, c) {
var d, e, f, g, h = a.cloneNode(!0),
i = _.contains(a.ownerDocument, a);
if (!(Y.noCloneChecked || 1 !== a.nodeType && 11 !== a.nodeType || _.isXMLDoc(a)))
for (g = r(h), f = r(a), d = 0, e = f.length; e > d; d++) s(f[d], g[d]);
if (b)
if (c)
for (f = f || r(a), g = g || r(h), d = 0, e = f.length; e > d; d++) q(f[d], g[d]);
else q(a, h);
return g = r(h, "script"), g.length > 0 && p(g, !i && r(a, "script")), h
},
buildFragment: function(a, b, c, d) {
for (var e, f, g, h, i, j, k = b.createDocumentFragment(), l = [], m = 0, n = a.length; n > m; m++)
if (e = a[m], e || 0 === e)
if ("object" === _.type(e)) _.merge(l, e.nodeType ? [e] : e);
else if (Ga.test(e)) {
for (f = f || k.appendChild(b.createElement("div")), g = (Fa.exec(e) || ["", ""])[1].toLowerCase(), h = Ma[g] || Ma._default, f.innerHTML = h[1] + e.replace(Ea, "<$1>$2>") + h[2], j = h[0]; j--;) f = f.lastChild;
_.merge(l, f.childNodes), f = k.firstChild, f.textContent = ""
} else l.push(b.createTextNode(e));
for (k.textContent = "", m = 0; e = l[m++];)
if ((!d || -1 === _.inArray(e, d)) && (i = _.contains(e.ownerDocument, e), f = r(k.appendChild(e), "script"), i && p(f), c))
for (j = 0; e = f[j++];) Ja.test(e.type || "") && c.push(e);
return k
},
cleanData: function(a) {
for (var b, c, d, e, f = _.event.special, g = 0; void 0 !== (c = a[g]); g++) {
if (_.acceptData(c) && (e = c[ra.expando], e && (b = ra.cache[e]))) {
if (b.events)
for (d in b.events) f[d] ? _.event.remove(c, d) : _.removeEvent(c, d, b.handle);
ra.cache[e] && delete ra.cache[e]
}
delete sa.cache[c[sa.expando]]
}
}
}), _.fn.extend({
text: function(a) {
return qa(this, function(a) {
return void 0 === a ? _.text(this) : this.empty().each(function() {
(1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) && (this.textContent = a)
})
}, null, a, arguments.length)
},
append: function() {
return this.domManip(arguments, function(a) {
if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
var b = m(this, a);
b.appendChild(a)
}
})
},
prepend: function() {
return this.domManip(arguments, function(a) {
if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
var b = m(this, a);
b.insertBefore(a, b.firstChild)
}
})
},
before: function() {
return this.domManip(arguments, function(a) {
this.parentNode && this.parentNode.insertBefore(a, this)
})
},
after: function() {
return this.domManip(arguments, function(a) {
this.parentNode && this.parentNode.insertBefore(a, this.nextSibling)
})
},
remove: function(a, b) {
for (var c, d = a ? _.filter(a, this) : this, e = 0; null != (c = d[e]); e++) b || 1 !== c.nodeType || _.cleanData(r(c)), c.parentNode && (b && _.contains(c.ownerDocument, c) && p(r(c, "script")), c.parentNode.removeChild(c));
return this
},
empty: function() {
for (var a, b = 0; null != (a = this[b]); b++) 1 === a.nodeType && (_.cleanData(r(a, !1)), a.textContent = "");
return this
},
clone: function(a, b) {
return a = null == a ? !1 : a, b = null == b ? a : b, this.map(function() {
return _.clone(this, a, b)
})
},
html: function(a) {
return qa(this, function(a) {
var b = this[0] || {},
c = 0,
d = this.length;
if (void 0 === a && 1 === b.nodeType) return b.innerHTML;
if ("string" == typeof a && !Ha.test(a) && !Ma[(Fa.exec(a) || ["", ""])[1].toLowerCase()]) {
a = a.replace(Ea, "<$1>$2>");
try {
for (; d > c; c++) b = this[c] || {}, 1 === b.nodeType && (_.cleanData(r(b, !1)), b.innerHTML = a);
b = 0
} catch (e) {}
}
b && this.empty().append(a)
}, null, a, arguments.length)
},
replaceWith: function() {
var a = arguments[0];
return this.domManip(arguments, function(b) {
a = this.parentNode, _.cleanData(r(this)), a && a.replaceChild(b, this)
}), a && (a.length || a.nodeType) ? this : this.remove()
},
detach: function(a) {
return this.remove(a, !0)
},
domManip: function(a, b) {
a = S.apply([], a);
var c, d, e, f, g, h, i = 0,
j = this.length,
k = this,
l = j - 1,
m = a[0],
p = _.isFunction(m);
if (p || j > 1 && "string" == typeof m && !Y.checkClone && Ia.test(m)) return this.each(function(c) {
var d = k.eq(c);
p && (a[0] = m.call(this, c, d.html())), d.domManip(a, b)
});
if (j && (c = _.buildFragment(a, this[0].ownerDocument, !1, this), d = c.firstChild, 1 === c.childNodes.length && (c = d), d)) {
for (e = _.map(r(c, "script"), n), f = e.length; j > i; i++) g = c, i !== l && (g = _.clone(g, !0, !0), f && _.merge(e, r(g, "script"))), b.call(this[i], g, i);
if (f)
for (h = e[e.length - 1].ownerDocument, _.map(e, o), i = 0; f > i; i++) g = e[i], Ja.test(g.type || "") && !ra.access(g, "globalEval") && _.contains(h, g) && (g.src ? _._evalUrl && _._evalUrl(g.src) : _.globalEval(g.textContent.replace(La, "")))
}
return this
}
}), _.each({
appendTo: "append",
prependTo: "prepend",
insertBefore: "before",
insertAfter: "after",
replaceAll: "replaceWith"
}, function(a, b) {
_.fn[a] = function(a) {
for (var c, d = [], e = _(a), f = e.length - 1, g = 0; f >= g; g++) c = g === f ? this : this.clone(!0), _(e[g])[b](c), T.apply(d, c.get());
return this.pushStack(d)
}
});
var Na, Oa = {},
Pa = /^margin/,
Qa = new RegExp("^(" + va + ")(?!px)[a-z%]+$", "i"),
Ra = function(b) {
return b.ownerDocument.defaultView.opener ? b.ownerDocument.defaultView.getComputedStyle(b, null) : a.getComputedStyle(b, null)
};
! function() {
function b() {
g.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute", g.innerHTML = "", e.appendChild(f);
var b = a.getComputedStyle(g, null);
c = "1%" !== b.top, d = "4px" === b.width, e.removeChild(f)
}
var c, d, e = Z.documentElement,
f = Z.createElement("div"),
g = Z.createElement("div");
g.style && (g.style.backgroundClip = "content-box", g.cloneNode(!0).style.backgroundClip = "", Y.clearCloneStyle = "content-box" === g.style.backgroundClip, f.style.cssText = "border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute", f.appendChild(g), a.getComputedStyle && _.extend(Y, {
pixelPosition: function() {
return b(), c
},
boxSizingReliable: function() {
return null == d && b(), d
},
reliableMarginRight: function() {
var b, c = g.appendChild(Z.createElement("div"));
return c.style.cssText = g.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0", c.style.marginRight = c.style.width = "0", g.style.width = "1px", e.appendChild(f), b = !parseFloat(a.getComputedStyle(c, null).marginRight), e.removeChild(f), g.removeChild(c), b
}
}))
}(), _.swap = function(a, b, c, d) {
var e, f, g = {};
for (f in b) g[f] = a.style[f], a.style[f] = b[f];
e = c.apply(a, d || []);
for (f in b) a.style[f] = g[f];
return e
};
var Sa = /^(none|table(?!-c[ea]).+)/,
Ta = new RegExp("^(" + va + ")(.*)$", "i"),
Ua = new RegExp("^([+-])=(" + va + ")", "i"),
Va = {
position: "absolute",
visibility: "hidden",
display: "block"
},
Wa = {
letterSpacing: "0",
fontWeight: "400"
},
Xa = ["Webkit", "O", "Moz", "ms"];
_.extend({
cssHooks: {
opacity: {
get: function(a, b) {
if (b) {
var c = v(a, "opacity");
return "" === c ? "1" : c
}
}
}
},
cssNumber: {
columnCount: !0,
fillOpacity: !0,
flexGrow: !0,
flexShrink: !0,
fontWeight: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
widows: !0,
zIndex: !0,
zoom: !0
},
cssProps: {
"float": "cssFloat"
},
style: function(a, b, c, d) {
if (a && 3 !== a.nodeType && 8 !== a.nodeType && a.style) {
var e, f, g, h = _.camelCase(b),
i = a.style;
return b = _.cssProps[h] || (_.cssProps[h] = x(i, h)), g = _.cssHooks[b] || _.cssHooks[h], void 0 === c ? g && "get" in g && void 0 !== (e = g.get(a, !1, d)) ? e : i[b] : (f = typeof c, "string" === f && (e = Ua.exec(c)) && (c = (e[1] + 1) * e[2] + parseFloat(_.css(a, b)), f = "number"), null != c && c === c && ("number" !== f || _.cssNumber[h] || (c += "px"), Y.clearCloneStyle || "" !== c || 0 !== b.indexOf("background") || (i[b] = "inherit"), g && "set" in g && void 0 === (c = g.set(a, c, d)) || (i[b] = c)), void 0)
}
},
css: function(a, b, c, d) {
var e, f, g, h = _.camelCase(b);
return b = _.cssProps[h] || (_.cssProps[h] = x(a.style, h)), g = _.cssHooks[b] || _.cssHooks[h], g && "get" in g && (e = g.get(a, !0, c)), void 0 === e && (e = v(a, b, d)), "normal" === e && b in Wa && (e = Wa[b]), "" === c || c ? (f = parseFloat(e), c === !0 || _.isNumeric(f) ? f || 0 : e) : e
}
}), _.each(["height", "width"], function(a, b) {
_.cssHooks[b] = {
get: function(a, c, d) {
return c ? Sa.test(_.css(a, "display")) && 0 === a.offsetWidth ? _.swap(a, Va, function() {
return A(a, b, d)
}) : A(a, b, d) : void 0
},
set: function(a, c, d) {
var e = d && Ra(a);
return y(a, c, d ? z(a, b, d, "border-box" === _.css(a, "boxSizing", !1, e), e) : 0)
}
}
}), _.cssHooks.marginRight = w(Y.reliableMarginRight, function(a, b) {
return b ? _.swap(a, {
display: "inline-block"
}, v, [a, "marginRight"]) : void 0
}), _.each({
margin: "",
padding: "",
border: "Width"
}, function(a, b) {
_.cssHooks[a + b] = {
expand: function(c) {
for (var d = 0, e = {}, f = "string" == typeof c ? c.split(" ") : [c]; 4 > d; d++) e[a + wa[d] + b] = f[d] || f[d - 2] || f[0];
return e
}
}, Pa.test(a) || (_.cssHooks[a + b].set = y)
}), _.fn.extend({
css: function(a, b) {
return qa(this, function(a, b, c) {
var d, e, f = {},
g = 0;
if (_.isArray(b)) {
for (d = Ra(a), e = b.length; e > g; g++) f[b[g]] = _.css(a, b[g], !1, d);
return f
}
return void 0 !== c ? _.style(a, b, c) : _.css(a, b)
}, a, b, arguments.length > 1)
},
show: function() {
return B(this, !0)
},
hide: function() {
return B(this)
},
toggle: function(a) {
return "boolean" == typeof a ? a ? this.show() : this.hide() : this.each(function() {
xa(this) ? _(this).show() : _(this).hide()
})
}
}), _.Tween = C, C.prototype = {
constructor: C,
init: function(a, b, c, d, e, f) {
this.elem = a, this.prop = c, this.easing = e || "swing", this.options = b, this.start = this.now = this.cur(), this.end = d, this.unit = f || (_.cssNumber[c] ? "" : "px")
},
cur: function() {
var a = C.propHooks[this.prop];
return a && a.get ? a.get(this) : C.propHooks._default.get(this)
},
run: function(a) {
var b, c = C.propHooks[this.prop];
return this.options.duration ? this.pos = b = _.easing[this.easing](a, this.options.duration * a, 0, 1, this.options.duration) : this.pos = b = a, this.now = (this.end - this.start) * b + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), c && c.set ? c.set(this) : C.propHooks._default.set(this), this
}
}, C.prototype.init.prototype = C.prototype, C.propHooks = {
_default: {
get: function(a) {
var b;
return null == a.elem[a.prop] || a.elem.style && null != a.elem.style[a.prop] ? (b = _.css(a.elem, a.prop, ""), b && "auto" !== b ? b : 0) : a.elem[a.prop]
},
set: function(a) {
_.fx.step[a.prop] ? _.fx.step[a.prop](a) : a.elem.style && (null != a.elem.style[_.cssProps[a.prop]] || _.cssHooks[a.prop]) ? _.style(a.elem, a.prop, a.now + a.unit) : a.elem[a.prop] = a.now
}
}
}, C.propHooks.scrollTop = C.propHooks.scrollLeft = {
set: function(a) {
a.elem.nodeType && a.elem.parentNode && (a.elem[a.prop] = a.now)
}
}, _.easing = {
linear: function(a) {
return a
},
swing: function(a) {
return .5 - Math.cos(a * Math.PI) / 2
}
}, _.fx = C.prototype.init, _.fx.step = {};
var Ya, Za, $a = /^(?:toggle|show|hide)$/,
_a = new RegExp("^(?:([+-])=|)(" + va + ")([a-z%]*)$", "i"),
ab = /queueHooks$/,
bb = [G],
cb = {
"*": [function(a, b) {
var c = this.createTween(a, b),
d = c.cur(),
e = _a.exec(b),
f = e && e[3] || (_.cssNumber[a] ? "" : "px"),
g = (_.cssNumber[a] || "px" !== f && +d) && _a.exec(_.css(c.elem, a)),
h = 1,
i = 20;
if (g && g[3] !== f) {
f = f || g[3], e = e || [], g = +d || 1;
do h = h || ".5", g /= h, _.style(c.elem, a, g + f); while (h !== (h = c.cur() / d) && 1 !== h && --i)
}
return e && (g = c.start = +g || +d || 0, c.unit = f, c.end = e[1] ? g + (e[1] + 1) * e[2] : +e[2]), c
}]
};
_.Animation = _.extend(I, {
tweener: function(a, b) {
_.isFunction(a) ? (b = a, a = ["*"]) : a = a.split(" ");
for (var c, d = 0, e = a.length; e > d; d++) c = a[d], cb[c] = cb[c] || [], cb[c].unshift(b)
},
prefilter: function(a, b) {
b ? bb.unshift(a) : bb.push(a)
}
}), _.speed = function(a, b, c) {
var d = a && "object" == typeof a ? _.extend({}, a) : {
complete: c || !c && b || _.isFunction(a) && a,
duration: a,
easing: c && b || b && !_.isFunction(b) && b
};
return d.duration = _.fx.off ? 0 : "number" == typeof d.duration ? d.duration : d.duration in _.fx.speeds ? _.fx.speeds[d.duration] : _.fx.speeds._default, (null == d.queue || d.queue === !0) && (d.queue = "fx"), d.old = d.complete, d.complete = function() {
_.isFunction(d.old) && d.old.call(this), d.queue && _.dequeue(this, d.queue)
}, d
}, _.fn.extend({
fadeTo: function(a, b, c, d) {
return this.filter(xa).css("opacity", 0).show().end().animate({
opacity: b
}, a, c, d)
},
animate: function(a, b, c, d) {
var e = _.isEmptyObject(a),
f = _.speed(b, c, d),
g = function() {
var b = I(this, _.extend({}, a), f);
(e || ra.get(this, "finish")) && b.stop(!0)
};
return g.finish = g, e || f.queue === !1 ? this.each(g) : this.queue(f.queue, g)
},
stop: function(a, b, c) {
var d = function(a) {
var b = a.stop;
delete a.stop, b(c)
};
return "string" != typeof a && (c = b, b = a, a = void 0), b && a !== !1 && this.queue(a || "fx", []), this.each(function() {
var b = !0,
e = null != a && a + "queueHooks",
f = _.timers,
g = ra.get(this);
if (e) g[e] && g[e].stop && d(g[e]);
else
for (e in g) g[e] && g[e].stop && ab.test(e) && d(g[e]);
for (e = f.length; e--;) f[e].elem !== this || null != a && f[e].queue !== a || (f[e].anim.stop(c), b = !1, f.splice(e, 1));
(b || !c) && _.dequeue(this, a)
})
},
finish: function(a) {
return a !== !1 && (a = a || "fx"), this.each(function() {
var b, c = ra.get(this),
d = c[a + "queue"],
e = c[a + "queueHooks"],
f = _.timers,
g = d ? d.length : 0;
for (c.finish = !0, _.queue(this, a, []), e && e.stop && e.stop.call(this, !0), b = f.length; b--;) f[b].elem === this && f[b].queue === a && (f[b].anim.stop(!0), f.splice(b, 1));
for (b = 0; g > b; b++) d[b] && d[b].finish && d[b].finish.call(this);
delete c.finish
})
}
}), _.each(["toggle", "show", "hide"], function(a, b) {
var c = _.fn[b];
_.fn[b] = function(a, d, e) {
return null == a || "boolean" == typeof a ? c.apply(this, arguments) : this.animate(E(b, !0), a, d, e)
}
}), _.each({
slideDown: E("show"),
slideUp: E("hide"),
slideToggle: E("toggle"),
fadeIn: {
opacity: "show"
},
fadeOut: {
opacity: "hide"
},
fadeToggle: {
opacity: "toggle"
}
}, function(a, b) {
_.fn[a] = function(a, c, d) {
return this.animate(b, a, c, d)
}
}), _.timers = [], _.fx.tick = function() {
var a, b = 0,
c = _.timers;
for (Ya = _.now(); b < c.length; b++) a = c[b], a() || c[b] !== a || c.splice(b--, 1);
c.length || _.fx.stop(), Ya = void 0
}, _.fx.timer = function(a) {
_.timers.push(a), a() ? _.fx.start() : _.timers.pop()
}, _.fx.interval = 13, _.fx.start = function() {
Za || (Za = setInterval(_.fx.tick, _.fx.interval))
}, _.fx.stop = function() {
clearInterval(Za), Za = null
}, _.fx.speeds = {
slow: 600,
fast: 200,
_default: 400
}, _.fn.delay = function(a, b) {
return a = _.fx ? _.fx.speeds[a] || a : a, b = b || "fx", this.queue(b, function(b, c) {
var d = setTimeout(b, a);
c.stop = function() {
clearTimeout(d)
}
})
},
function() {
var a = Z.createElement("input"),
b = Z.createElement("select"),
c = b.appendChild(Z.createElement("option"));
a.type = "checkbox", Y.checkOn = "" !== a.value, Y.optSelected = c.selected, b.disabled = !0, Y.optDisabled = !c.disabled, a = Z.createElement("input"), a.value = "t", a.type = "radio", Y.radioValue = "t" === a.value
}();
var db, eb, fb = _.expr.attrHandle;
_.fn.extend({
attr: function(a, b) {
return qa(this, _.attr, a, b, arguments.length > 1)
},
removeAttr: function(a) {
return this.each(function() {
_.removeAttr(this, a)
})
}
}), _.extend({
attr: function(a, b, c) {
var d, e, f = a.nodeType;
if (a && 3 !== f && 8 !== f && 2 !== f) return typeof a.getAttribute === za ? _.prop(a, b, c) : (1 === f && _.isXMLDoc(a) || (b = b.toLowerCase(), d = _.attrHooks[b] || (_.expr.match.bool.test(b) ? eb : db)), void 0 === c ? d && "get" in d && null !== (e = d.get(a, b)) ? e : (e = _.find.attr(a, b), null == e ? void 0 : e) : null !== c ? d && "set" in d && void 0 !== (e = d.set(a, c, b)) ? e : (a.setAttribute(b, c + ""), c) : void _.removeAttr(a, b))
},
removeAttr: function(a, b) {
var c, d, e = 0,
f = b && b.match(na);
if (f && 1 === a.nodeType)
for (; c = f[e++];) d = _.propFix[c] || c, _.expr.match.bool.test(c) && (a[d] = !1), a.removeAttribute(c)
},
attrHooks: {
type: {
set: function(a, b) {
if (!Y.radioValue && "radio" === b && _.nodeName(a, "input")) {
var c = a.value;
return a.setAttribute("type", b), c && (a.value = c), b
}
}
}
}
}), eb = {
set: function(a, b, c) {
return b === !1 ? _.removeAttr(a, c) : a.setAttribute(c, c), c
}
}, _.each(_.expr.match.bool.source.match(/\w+/g), function(a, b) {
var c = fb[b] || _.find.attr;
fb[b] = function(a, b, d) {
var e, f;
return d || (f = fb[b], fb[b] = e, e = null != c(a, b, d) ? b.toLowerCase() : null, fb[b] = f), e
}
});
var gb = /^(?:input|select|textarea|button)$/i;
_.fn.extend({
prop: function(a, b) {
return qa(this, _.prop, a, b, arguments.length > 1)
},
removeProp: function(a) {
return this.each(function() {
delete this[_.propFix[a] || a]
})
}
}), _.extend({
propFix: {
"for": "htmlFor",
"class": "className"
},
prop: function(a, b, c) {
var d, e, f, g = a.nodeType;
if (a && 3 !== g && 8 !== g && 2 !== g) return f = 1 !== g || !_.isXMLDoc(a), f && (b = _.propFix[b] || b, e = _.propHooks[b]), void 0 !== c ? e && "set" in e && void 0 !== (d = e.set(a, c, b)) ? d : a[b] = c : e && "get" in e && null !== (d = e.get(a, b)) ? d : a[b]
},
propHooks: {
tabIndex: {
get: function(a) {
return a.hasAttribute("tabindex") || gb.test(a.nodeName) || a.href ? a.tabIndex : -1
}
}
}
}), Y.optSelected || (_.propHooks.selected = {
get: function(a) {
var b = a.parentNode;
return b && b.parentNode && b.parentNode.selectedIndex, null
}
}), _.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
_.propFix[this.toLowerCase()] = this
});
var hb = /[\t\r\n\f]/g;
_.fn.extend({
addClass: function(a) {
var b, c, d, e, f, g, h = "string" == typeof a && a,
i = 0,
j = this.length;
if (_.isFunction(a)) return this.each(function(b) {
_(this).addClass(a.call(this, b, this.className))
});
if (h)
for (b = (a || "").match(na) || []; j > i; i++)
if (c = this[i], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(hb, " ") : " ")) {
for (f = 0; e = b[f++];) d.indexOf(" " + e + " ") < 0 && (d += e + " ");
g = _.trim(d), c.className !== g && (c.className = g)
}
return this
},
removeClass: function(a) {
var b, c, d, e, f, g, h = 0 === arguments.length || "string" == typeof a && a,
i = 0,
j = this.length;
if (_.isFunction(a)) return this.each(function(b) {
_(this).removeClass(a.call(this, b, this.className))
});
if (h)
for (b = (a || "").match(na) || []; j > i; i++)
if (c = this[i], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(hb, " ") : "")) {
for (f = 0; e = b[f++];)
for (; d.indexOf(" " + e + " ") >= 0;) d = d.replace(" " + e + " ", " ");
g = a ? _.trim(d) : "", c.className !== g && (c.className = g)
}
return this
},
toggleClass: function(a, b) {
var c = typeof a;
return "boolean" == typeof b && "string" === c ? b ? this.addClass(a) : this.removeClass(a) : _.isFunction(a) ? this.each(function(c) {
_(this).toggleClass(a.call(this, c, this.className, b), b)
}) : this.each(function() {
if ("string" === c)
for (var b, d = 0, e = _(this), f = a.match(na) || []; b = f[d++];) e.hasClass(b) ? e.removeClass(b) : e.addClass(b);
else(c === za || "boolean" === c) && (this.className && ra.set(this, "__className__", this.className), this.className = this.className || a === !1 ? "" : ra.get(this, "__className__") || "")
})
},
hasClass: function(a) {
for (var b = " " + a + " ", c = 0, d = this.length; d > c; c++)
if (1 === this[c].nodeType && (" " + this[c].className + " ").replace(hb, " ").indexOf(b) >= 0) return !0;
return !1
}
});
var ib = /\r/g;
_.fn.extend({
val: function(a) {
var b, c, d, e = this[0]; {
if (arguments.length) return d = _.isFunction(a), this.each(function(c) {
var e;
1 === this.nodeType && (e = d ? a.call(this, c, _(this).val()) : a, null == e ? e = "" : "number" == typeof e ? e += "" : _.isArray(e) && (e = _.map(e, function(a) {
return null == a ? "" : a + ""
})), b = _.valHooks[this.type] || _.valHooks[this.nodeName.toLowerCase()], b && "set" in b && void 0 !== b.set(this, e, "value") || (this.value = e))
});
if (e) return b = _.valHooks[e.type] || _.valHooks[e.nodeName.toLowerCase()], b && "get" in b && void 0 !== (c = b.get(e, "value")) ? c : (c = e.value, "string" == typeof c ? c.replace(ib, "") : null == c ? "" : c)
}
}
}), _.extend({
valHooks: {
option: {
get: function(a) {
var b = _.find.attr(a, "value");
return null != b ? b : _.trim(_.text(a))
}
},
select: {
get: function(a) {
for (var b, c, d = a.options, e = a.selectedIndex, f = "select-one" === a.type || 0 > e, g = f ? null : [], h = f ? e + 1 : d.length, i = 0 > e ? h : f ? e : 0; h > i; i++)
if (c = d[i], (c.selected || i === e) && (Y.optDisabled ? !c.disabled : null === c.getAttribute("disabled")) && (!c.parentNode.disabled || !_.nodeName(c.parentNode, "optgroup"))) {
if (b = _(c).val(), f) return b;
g.push(b)
}
return g
},
set: function(a, b) {
for (var c, d, e = a.options, f = _.makeArray(b), g = e.length; g--;) d = e[g], (d.selected = _.inArray(d.value, f) >= 0) && (c = !0);
return c || (a.selectedIndex = -1), f
}
}
}
}), _.each(["radio", "checkbox"], function() {
_.valHooks[this] = {
set: function(a, b) {
return _.isArray(b) ? a.checked = _.inArray(_(a).val(), b) >= 0 : void 0
}
}, Y.checkOn || (_.valHooks[this].get = function(a) {
return null === a.getAttribute("value") ? "on" : a.value
})
}), _.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(a, b) {
_.fn[b] = function(a, c) {
return arguments.length > 0 ? this.on(b, null, a, c) : this.trigger(b)
}
}), _.fn.extend({
hover: function(a, b) {
return this.mouseenter(a).mouseleave(b || a)
},
bind: function(a, b, c) {
return this.on(a, null, b, c)
},
unbind: function(a, b) {
return this.off(a, null, b)
},
delegate: function(a, b, c, d) {
return this.on(b, a, c, d)
},
undelegate: function(a, b, c) {
return 1 === arguments.length ? this.off(a, "**") : this.off(b, a || "**", c)
}
});
var jb = _.now(),
kb = /\?/;
_.parseJSON = function(a) {
return JSON.parse(a + "")
}, _.parseXML = function(a) {
var b, c;
if (!a || "string" != typeof a) return null;
try {
c = new DOMParser, b = c.parseFromString(a, "text/xml")
} catch (d) {
b = void 0
}
return (!b || b.getElementsByTagName("parsererror").length) && _.error("Invalid XML: " + a), b
};
var lb = /#.*$/,
mb = /([?&])_=[^&]*/,
nb = /^(.*?):[ \t]*([^\r\n]*)$/gm,
ob = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
pb = /^(?:GET|HEAD)$/,
qb = /^\/\//,
rb = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
sb = {},
tb = {},
ub = "*/".concat("*"),
vb = a.location.href,
wb = rb.exec(vb.toLowerCase()) || [];
_.extend({
active: 0,
lastModified: {},
etag: {},
ajaxSettings: {
url: vb,
type: "GET",
isLocal: ob.test(wb[1]),
global: !0,
processData: !0,
async: !0,
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
accepts: {
"*": ub,
text: "text/plain",
html: "text/html",
xml: "application/xml, text/xml",
json: "application/json, text/javascript"
},
contents: {
xml: /xml/,
html: /html/,
json: /json/
},
responseFields: {
xml: "responseXML",
text: "responseText",
json: "responseJSON"
},
converters: {
"* text": String,
"text html": !0,
"text json": _.parseJSON,
"text xml": _.parseXML
},
flatOptions: {
url: !0,
context: !0
}
},
ajaxSetup: function(a, b) {
return b ? L(L(a, _.ajaxSettings), b) : L(_.ajaxSettings, a)
},
ajaxPrefilter: J(sb),
ajaxTransport: J(tb),
ajax: function(a, b) {
function c(a, b, c, g) {
var i, k, r, s, u, w = b;
2 !== t && (t = 2, h && clearTimeout(h), d = void 0, f = g || "", v.readyState = a > 0 ? 4 : 0, i = a >= 200 && 300 > a || 304 === a, c && (s = M(l, v, c)), s = N(l, s, v, i), i ? (l.ifModified && (u = v.getResponseHeader("Last-Modified"), u && (_.lastModified[e] = u), u = v.getResponseHeader("etag"), u && (_.etag[e] = u)), 204 === a || "HEAD" === l.type ? w = "nocontent" : 304 === a ? w = "notmodified" : (w = s.state, k = s.data, r = s.error, i = !r)) : (r = w, (a || !w) && (w = "error", 0 > a && (a = 0))), v.status = a, v.statusText = (b || w) + "", i ? o.resolveWith(m, [k, w, v]) : o.rejectWith(m, [v, w, r]), v.statusCode(q), q = void 0, j && n.trigger(i ? "ajaxSuccess" : "ajaxError", [v, l, i ? k : r]), p.fireWith(m, [v, w]), j && (n.trigger("ajaxComplete", [v, l]), --_.active || _.event.trigger("ajaxStop")))
}
"object" == typeof a && (b = a, a = void 0), b = b || {};
var d, e, f, g, h, i, j, k, l = _.ajaxSetup({}, b),
m = l.context || l,
n = l.context && (m.nodeType || m.jquery) ? _(m) : _.event,
o = _.Deferred(),
p = _.Callbacks("once memory"),
q = l.statusCode || {},
r = {},
s = {},
t = 0,
u = "canceled",
v = {
readyState: 0,
getResponseHeader: function(a) {
var b;
if (2 === t) {
if (!g)
for (g = {}; b = nb.exec(f);) g[b[1].toLowerCase()] = b[2];
b = g[a.toLowerCase()]
}
return null == b ? null : b
},
getAllResponseHeaders: function() {
return 2 === t ? f : null
},
setRequestHeader: function(a, b) {
var c = a.toLowerCase();
return t || (a = s[c] = s[c] || a, r[a] = b), this
},
overrideMimeType: function(a) {
return t || (l.mimeType = a), this
},
statusCode: function(a) {
var b;
if (a)
if (2 > t)
for (b in a) q[b] = [q[b], a[b]];
else v.always(a[v.status]);
return this
},
abort: function(a) {
var b = a || u;
return d && d.abort(b), c(0, b), this
}
};
if (o.promise(v).complete = p.add, v.success = v.done, v.error = v.fail, l.url = ((a || l.url || vb) + "").replace(lb, "").replace(qb, wb[1] + "//"), l.type = b.method || b.type || l.method || l.type, l.dataTypes = _.trim(l.dataType || "*").toLowerCase().match(na) || [""], null == l.crossDomain && (i = rb.exec(l.url.toLowerCase()), l.crossDomain = !(!i || i[1] === wb[1] && i[2] === wb[2] && (i[3] || ("http:" === i[1] ? "80" : "443")) === (wb[3] || ("http:" === wb[1] ? "80" : "443")))), l.data && l.processData && "string" != typeof l.data && (l.data = _.param(l.data, l.traditional)), K(sb, l, b, v), 2 === t) return v;
j = _.event && l.global, j && 0 === _.active++ && _.event.trigger("ajaxStart"), l.type = l.type.toUpperCase(), l.hasContent = !pb.test(l.type), e = l.url, l.hasContent || (l.data && (e = l.url += (kb.test(e) ? "&" : "?") + l.data, delete l.data), l.cache === !1 && (l.url = mb.test(e) ? e.replace(mb, "$1_=" + jb++) : e + (kb.test(e) ? "&" : "?") + "_=" + jb++)), l.ifModified && (_.lastModified[e] && v.setRequestHeader("If-Modified-Since", _.lastModified[e]), _.etag[e] && v.setRequestHeader("If-None-Match", _.etag[e])), (l.data && l.hasContent && l.contentType !== !1 || b.contentType) && v.setRequestHeader("Content-Type", l.contentType), v.setRequestHeader("Accept", l.dataTypes[0] && l.accepts[l.dataTypes[0]] ? l.accepts[l.dataTypes[0]] + ("*" !== l.dataTypes[0] ? ", " + ub + "; q=0.01" : "") : l.accepts["*"]);
for (k in l.headers) v.setRequestHeader(k, l.headers[k]);
if (l.beforeSend && (l.beforeSend.call(m, v, l) === !1 || 2 === t)) return v.abort();
u = "abort";
for (k in {
success: 1,
error: 1,
complete: 1
}) v[k](l[k]);
if (d = K(tb, l, b, v)) {
v.readyState = 1, j && n.trigger("ajaxSend", [v, l]), l.async && l.timeout > 0 && (h = setTimeout(function() {
v.abort("timeout")
}, l.timeout));
try {
t = 1, d.send(r, c)
} catch (w) {
if (!(2 > t)) throw w;
c(-1, w)
}
} else c(-1, "No Transport");
return v
},
getJSON: function(a, b, c) {
return _.get(a, b, c, "json")
},
getScript: function(a, b) {
return _.get(a, void 0, b, "script")
}
}), _.each(["get", "post"], function(a, b) {
_[b] = function(a, c, d, e) {
return _.isFunction(c) && (e = e || d, d = c, c = void 0), _.ajax({
url: a,
type: b,
dataType: e,
data: c,
success: d
})
}
}), _._evalUrl = function(a) {
return _.ajax({
url: a,
type: "GET",
dataType: "script",
async: !1,
global: !1,
"throws": !0
})
}, _.fn.extend({
wrapAll: function(a) {
var b;
return _.isFunction(a) ? this.each(function(b) {
_(this).wrapAll(a.call(this, b))
}) : (this[0] && (b = _(a, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && b.insertBefore(this[0]), b.map(function() {
for (var a = this; a.firstElementChild;) a = a.firstElementChild;
return a
}).append(this)), this)
},
wrapInner: function(a) {
return _.isFunction(a) ? this.each(function(b) {
_(this).wrapInner(a.call(this, b))
}) : this.each(function() {
var b = _(this),
c = b.contents();
c.length ? c.wrapAll(a) : b.append(a)
})
},
wrap: function(a) {
var b = _.isFunction(a);
return this.each(function(c) {
_(this).wrapAll(b ? a.call(this, c) : a)
})
},
unwrap: function() {
return this.parent().each(function() {
_.nodeName(this, "body") || _(this).replaceWith(this.childNodes)
}).end()
}
}), _.expr.filters.hidden = function(a) {
return a.offsetWidth <= 0 && a.offsetHeight <= 0
}, _.expr.filters.visible = function(a) {
return !_.expr.filters.hidden(a)
};
var xb = /%20/g,
yb = /\[\]$/,
zb = /\r?\n/g,
Ab = /^(?:submit|button|image|reset|file)$/i,
Bb = /^(?:input|select|textarea|keygen)/i;
_.param = function(a, b) {
var c, d = [],
e = function(a, b) {
b = _.isFunction(b) ? b() : null == b ? "" : b,
d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(b)
};
if (void 0 === b && (b = _.ajaxSettings && _.ajaxSettings.traditional), _.isArray(a) || a.jquery && !_.isPlainObject(a)) _.each(a, function() {
e(this.name, this.value)
});
else
for (c in a) O(c, a[c], b, e);
return d.join("&").replace(xb, "+")
}, _.fn.extend({
serialize: function() {
return _.param(this.serializeArray())
},
serializeArray: function() {
return this.map(function() {
var a = _.prop(this, "elements");
return a ? _.makeArray(a) : this
}).filter(function() {
var a = this.type;
return this.name && !_(this).is(":disabled") && Bb.test(this.nodeName) && !Ab.test(a) && (this.checked || !ya.test(a))
}).map(function(a, b) {
var c = _(this).val();
return null == c ? null : _.isArray(c) ? _.map(c, function(a) {
return {
name: b.name,
value: a.replace(zb, "\r\n")
}
}) : {
name: b.name,
value: c.replace(zb, "\r\n")
}
}).get()
}
}), _.ajaxSettings.xhr = function() {
try {
return new XMLHttpRequest
} catch (a) {}
};
var Cb = 0,
Db = {},
Eb = {
0: 200,
1223: 204
},
Fb = _.ajaxSettings.xhr();
a.attachEvent && a.attachEvent("onunload", function() {
for (var a in Db) Db[a]()
}), Y.cors = !!Fb && "withCredentials" in Fb, Y.ajax = Fb = !!Fb, _.ajaxTransport(function(a) {
var b;
return Y.cors || Fb && !a.crossDomain ? {
send: function(c, d) {
var e, f = a.xhr(),
g = ++Cb;
if (f.open(a.type, a.url, a.async, a.username, a.password), a.xhrFields)
for (e in a.xhrFields) f[e] = a.xhrFields[e];
a.mimeType && f.overrideMimeType && f.overrideMimeType(a.mimeType), a.crossDomain || c["X-Requested-With"] || (c["X-Requested-With"] = "XMLHttpRequest");
for (e in c) f.setRequestHeader(e, c[e]);
b = function(a) {
return function() {
b && (delete Db[g], b = f.onload = f.onerror = null, "abort" === a ? f.abort() : "error" === a ? d(f.status, f.statusText) : d(Eb[f.status] || f.status, f.statusText, "string" == typeof f.responseText ? {
text: f.responseText
} : void 0, f.getAllResponseHeaders()))
}
}, f.onload = b(), f.onerror = b("error"), b = Db[g] = b("abort");
try {
f.send(a.hasContent && a.data || null)
} catch (h) {
if (b) throw h
}
},
abort: function() {
b && b()
}
} : void 0
}), _.ajaxSetup({
accepts: {
script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
},
contents: {
script: /(?:java|ecma)script/
},
converters: {
"text script": function(a) {
return _.globalEval(a), a
}
}
}), _.ajaxPrefilter("script", function(a) {
void 0 === a.cache && (a.cache = !1), a.crossDomain && (a.type = "GET")
}), _.ajaxTransport("script", function(a) {
if (a.crossDomain) {
var b, c;
return {
send: function(d, e) {
b = _("