function isEqual(e, t) {
    var n = Object.getOwnPropertyNames(e),
        i = Object.getOwnPropertyNames(t);
    if (n.length != i.length) return !1;
    for (var r = 0; r < n.length; r++) {
        var o = n[r];
        if (e[o] !== t[o]) return !1;
    }
    return !0;
}
function imposeMaxLength(e, t) {
    var n = parseInt(t) - e.value.length;
    return (
        $(e)
            .parent()
            .find(".addit")
            .html(_translate("REMAINING") + ": <strong><b>" + n + "</strong>"),
        e.value.length <= t
    );
}
function readableFileSize(e) {
    for (var t = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], n = 0; e >= 1024; ) (e /= 1024), ++n;
    return e.toFixed(1) + " " + t[n];
}
function StartScrollToElement(e, t, n, i) {
    (i && void 0 !== i) || (i = function () {}),
    e.length <= 0 && i(),
        $("html:not(:animated), body:not(:animated)")
            .stop(!0, !1)
            .animate({ scrollTop: e.offset().top - t }, n, "easeInOutCubic", function () {
                "BODY" === this.nodeName && i();
            });
}
function scrollTo(e) {
    $(e).scrollintoview({ duration: 500, direction: "both" });
}
function Message(e, t, n) {
    var i = $(".sirius-message");
    $.blockUI(), 0 === i.length && ((i = $('<div class="sirius-message" ><div><h2></h2><p></p></div><input type="button" value="OK" class="k-button message-backbutton" />')), $("body").append(i)), i.removeClass("error").removeClass("info");
    var r = i.find("h2"),
        o = i.find("p"),
        a = $(i.children()[0]),
        s = i.find(".message-backbutton");
    s.unbind("click"),
        s.click(function (e) {
            e.preventDefault(), f();
        });
    var l = { error: { class: "err_none", wrapClass: "error" }, info: { class: "info_none", wrapClass: "info" }, security: { class: "err_security", wrapClass: "error" } },
        d = l[e];
    a.attr("class", d["class"]), i.addClass(d.wrapClass), r.html(t), o.html(n);
    var c = (-1 * i.height()) / 2;
    i.css({ top: "-500px", opacity: "0" });
    var u = function () {
            i.stop(!0, !1).animate({ opacity: 1, top: "50%", marginTop: c }, 500, "easeOutExpo");
        },
        f = function () {
            i.stop(!0, !1).animate({ opacity: 0, top: "-300px" }, 500, "easeInExpo", function () {
                s.unbind("click"), i.remove(), $.unblockUI();
            });
        };
    return u(), this;
}
function KendoErrorHandler(e) {
    var t = tryParseJson(e.xhr.responseText),
        n = "Forbidden" === e.errorThrown || "Unauthorized" === e.errorThrown ? "security" : "error";
    if (null === t) Message(n, e.errorThrown, e.xhr.responseText);
    else {
        if (t.invalids) return void $("#" + t.invalids[0]).invalid();
        Message(n, t.title, t.error);
    }
}
function KendoErrorParser(e) {
    var t = {},
        n = tryParseJson(e.xhr.responseText),
        i = "Forbidden" === e.errorThrown || "Unauthorized" === e.errorThrown ? "security" : "error";
    return (t = null === n ? { type: i, title: e.errorThrown, error: e.xhr.responseText, invalids: [] } : { type: i, title: n.title, error: n.error, invalids: n.invalids });
}
function AjaxErrorHandler(e, t, n) {
    n = String(n);
    var i = { type: "Forbidden" === n || "Unauthorized" === n ? "security" : "error", title: n, error: "Unknown error", status: e.status, exdata: null };
    if (("parsererror" === t ? (i.error = "Requested JSON parse failed.") : "timeout" === t ? (i.error = "Request timed out.") : "abort" === t && (i.error = "Request aborted."), "" !== e.responseText)) {
        i.error = e.responseText;
        var r = tryParseJson(e.responseText);
        null !== r && (r.invalids && (i.invalids = r.invalids), (i.exdata = r.exdata), (i.error = r.error), (i.title = r.title));
    }
    return i;
}
var BrowserDetect = {
    init: function () {
        (this.browser = this.searchString(this.dataBrowser) || "An unknown browser"),
            (this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"),
            (this.OS = this.searchString(this.dataOS) || "an unknown OS");
    },
    searchString: function (e) {
        for (var t = 0; t < e.length; t++) {
            var n = e[t].string,
                i = e[t].prop;
            if (((this.versionSearchString = e[t].versionSearch || e[t].identity), n)) {
                if (-1 != n.indexOf(e[t].subString)) return e[t].identity;
            } else if (i) return e[t].identity;
        }
    },
    searchVersion: function (e) {
        var t = e.indexOf(this.versionSearchString);
        if (-1 != t) return parseFloat(e.substring(t + this.versionSearchString.length + 1));
    },
    dataBrowser: [
        { string: navigator.userAgent, subString: "Chrome", identity: "Chrome" },
        { string: navigator.userAgent, subString: "OmniWeb", versionSearch: "OmniWeb/", identity: "OmniWeb" },
        { string: navigator.vendor, subString: "Apple", identity: "Safari", versionSearch: "Version" },
        { prop: window.opera, identity: "Opera", versionSearch: "Version" },
        { string: navigator.vendor, subString: "iCab", identity: "iCab" },
        { string: navigator.vendor, subString: "KDE", identity: "Konqueror" },
        { string: navigator.userAgent, subString: "Firefox", identity: "Firefox" },
        { string: navigator.vendor, subString: "Camino", identity: "Camino" },
        { string: navigator.userAgent, subString: "Netscape", identity: "Netscape" },
        { string: navigator.userAgent, subString: "MSIE", identity: "Explorer", versionSearch: "MSIE" },
        { string: navigator.userAgent, subString: "Gecko", identity: "Mozilla", versionSearch: "rv" },
        { string: navigator.userAgent, subString: "Mozilla", identity: "Netscape", versionSearch: "Mozilla" },
    ],
    dataOS: [
        { string: navigator.platform, subString: "Win", identity: "Windows" },
        { string: navigator.platform, subString: "Mac", identity: "Mac" },
        { string: navigator.userAgent, subString: "iPhone", identity: "iPhone/iPod" },
        { string: navigator.platform, subString: "Linux", identity: "Linux" },
    ],
};
BrowserDetect.init(),
    (jQuery.browser = {}),
    (jQuery.browser.mozilla = "Firefox" == BrowserDetect.browser || "Mozilla" == BrowserDetect.browser || "Netscape" == BrowserDetect.browser),
    (jQuery.browser.webkit = "Chrome" == BrowserDetect.browser),
    (jQuery.browser.opera = "Opera" == BrowserDetect.browser),
    (jQuery.browser.msie = "Explorer" == BrowserDetect.browser),
    (jQuery.browser.version = BrowserDetect.version),
window.console || (window.console = { log: function (e) {} }),
window.console.debug || (window.console.debug = function (e) {}),
String.prototype.trim ||
(String.prototype.trim = function () {
    return this.replace(/^\s+|\s+$/g, "");
}),
"function" != typeof String.prototype.startsWith &&
(String.prototype.startsWith = function (e) {
    return 0 == this.indexOf(e);
});
var tryParseJson = function (e) {
        try {
            var t = (JSON && JSON.parse(e)) || $.parseJSON(e);
            return t;
        } catch (n) {
            return null;
        }
    },
    tryParseDate = function (e) {
        var t = null;
        try {
            var n = e.split(".");
            (t = new Date(n[2], n[1] - 1, n[0])), "[object Date]" === Object.prototype.toString.call(t) ? isNaN(t.getTime()) && (t = null) : (t = null);
        } catch (i) {
            t = null;
        }
        return t;
    },
    setHref = function (e) {
        var t = $('<form method="get" action="' + e.reload + '" />');
        e.reloaditems &&
        $.each(e.reloaditems, function (e, n) {
            t.append('<input type="hidden" name="' + n.key + '" value="' + n.value + '" />');
        }),
            $("#container").append(t),
            t.submit();
    };
!(function (e) {
    e.fn.checkbox = function () {
        e(this)
            .css({ position: "absolute", left: "-9999px" })
            .each(function () {
                var t = e(this);
                if (t.next("span.checkbox").length < 1) {
                    var n = e('<span class="checkbox" style="display:inline-block"></span>');
                    t.after(n),
                    t.is(":checked") && n.addClass("checked"),
                    t.is(":disabled") && n.addClass("disabled"),
                        n.click(function () {
                            return n.is(".disabled") ? void 0 : (t.is(":checked") ? (t.removeAttr("checked"), n.removeClass("checked")) : (t.prop("checked", !0), n.addClass("checked")), t.change(), !1);
                        }),
                        t
                            .parent("label")
                            .add('label[for="' + t.attr("id") + '"]')
                            .click(function () {
                                return n.click(), !1;
                            }),
                        t
                            .change(function () {
                                t.is(":checked") ? n.addClass("checked") : n.removeClass("checked");
                            })
                            .keydown(function (e) {
                                !t.parent("label").length || (13 != e.which && 32 != e.which) || n.click();
                            })
                            .focus(function () {
                                n.is(".disabled") || n.addClass("focused");
                            })
                            .blur(function () {
                                n.removeClass("focused");
                            }),
                        t.on("refresh", function () {
                            t.is(":checked") ? n.addClass("checked") : n.removeClass("checked"), t.is(":disabled") ? n.addClass("disabled") : n.removeClass("disabled");
                        });
                }
            });
    };
})(jQuery),
    !(function (e) {
        var t = {},
            n = {
                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 () {},
            };
        e.fn.bxSlider = function (r) {
            if (0 == this.length) return this;
            if (this.length > 1)
                return (
                    this.each(function () {
                        e(this).bxSlider(r);
                    }),
                        this
                );
            var o = {},
                a = this;
            t.el = this;
            var s = e(window).width(),
                l = e(window).height(),
                d = function () {
                    (o.settings = e.extend({}, n, r)),
                        (o.settings.slideWidth = parseInt(o.settings.slideWidth)),
                        (o.children = a.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 e = document.createElement("div"),
                                    t = ["WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"];
                                for (var n in t) if (void 0 !== e.style[t[n]]) return (o.cssPrefix = t[n].replace("Perspective", "").toLowerCase()), (o.animProp = "-" + o.cssPrefix + "-transform"), !0;
                                return !1;
                            })()),
                    "vertical" == o.settings.mode && (o.settings.maxSlides = o.settings.minSlides),
                        a.data("origStyle", a.attr("style")),
                        a.children(o.settings.slideSelector).each(function () {
                            e(this).data("origStyle", e(this).attr("style"));
                        }),
                        c();
                },
                c = function () {
                    a.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),
                        (o.viewport = a.parent()),
                        (o.loader = e('<div class="bx-loading" />')),
                        o.viewport.prepend(o.loader),
                        a.css({ width: "horizontal" == o.settings.mode ? 100 * o.children.length + 215 + "%" : "auto", position: "relative" }),
                        o.usingCSS && o.settings.easing ? a.css("-" + o.cssPrefix + "-transition-timing-function", o.settings.easing) : o.settings.easing || (o.settings.easing = "swing"),
                        v(),
                        o.viewport.css({ width: "100%", overflow: "hidden", position: "relative" }),
                        o.viewport.parent().css({ maxWidth: h() }),
                    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", g()),
                    "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 = e('<div class="bx-controls" />')),
                    o.settings.captions && C(),
                        (o.active.last = o.settings.startSlide == m() - 1),
                    o.settings.video && a.fitVids();
                    var t = o.children.eq(o.settings.startSlide);
                    "all" == o.settings.preloadImages && (t = o.children),
                        o.settings.ticker
                            ? (o.settings.pager = !1)
                            : (o.settings.pager && S(), o.settings.controls && k(), o.settings.auto && o.settings.autoControls && T(), (o.settings.controls || o.settings.autoControls || o.settings.pager) && o.viewport.after(o.controls.el)),
                        u(t, f);
                },
                u = function (t, n) {
                    var i = t.find("img, iframe").length;
                    if (0 == i) return void n();
                    var r = 0;
                    t.find("img, iframe").each(function () {
                        e(this)
                            .one("load", function () {
                                ++r == i && n();
                            })
                            .each(function () {
                                this.complete && e(this).load();
                            });
                    });
                },
                f = function () {
                    if (o.settings.infiniteLoop && "fade" != o.settings.mode && !o.settings.ticker) {
                        var t = "vertical" == o.settings.mode ? o.settings.minSlides : o.settings.maxSlides,
                            n = o.children.slice(0, t).clone().addClass("bx-clone"),
                            i = o.children.slice(-t).clone().addClass("bx-clone");
                        a.append(n).prepend(i);
                    }
                    o.loader.remove(),
                        x(),
                    "vertical" == o.settings.mode && (o.settings.adaptiveHeight = !0),
                        o.viewport.height(p()),
                        a.redrawSlider(),
                        o.settings.onSliderLoad(o.active.index),
                        (o.initialized = !0),
                    o.settings.responsive && e(window).bind("resize", B),
                    o.settings.auto && o.settings.autoStart && z(),
                    o.settings.ticker && N(),
                    o.settings.pager && A(o.settings.startSlide),
                    o.settings.controls && U(),
                    o.settings.touchEnabled && !o.settings.ticker && F();
                },
                p = function () {
                    var t = 0,
                        n = e();
                    if ("vertical" == o.settings.mode || o.settings.adaptiveHeight)
                        if (o.carousel) {
                            var r = 1 == o.settings.moveSlides ? o.active.index : o.active.index * b();
                            for (n = o.children.eq(r), i = 1; i <= o.settings.maxSlides - 1; i++) n = r + i >= o.children.length ? n.add(o.children.eq(i - 1)) : n.add(o.children.eq(r + i));
                        } else n = o.children.eq(o.active.index);
                    else n = o.children;
                    return (
                        "vertical" == o.settings.mode
                            ? (n.each(function () {
                                t += e(this).outerHeight();
                            }),
                            o.settings.slideMargin > 0 && (t += o.settings.slideMargin * (o.settings.minSlides - 1)))
                            : (t = Math.max.apply(
                            Math,
                            n
                                .map(function () {
                                    return e(this).outerHeight(!1);
                                })
                                .get()
                            )),
                            t
                    );
                },
                h = function () {
                    var e = "100%";
                    return o.settings.slideWidth > 0 && (e = "horizontal" == o.settings.mode ? o.settings.maxSlides * o.settings.slideWidth + (o.settings.maxSlides - 1) * o.settings.slideMargin : o.settings.slideWidth), e;
                },
                g = function () {
                    var e = o.settings.slideWidth,
                        t = o.viewport.width();
                    return (
                        0 == o.settings.slideWidth || (o.settings.slideWidth > t && !o.carousel) || "vertical" == o.settings.mode
                            ? (e = t)
                            : o.settings.maxSlides > 1 && "horizontal" == o.settings.mode && (t > o.maxThreshold || (t < o.minThreshold && (e = (t - o.settings.slideMargin * (o.settings.minSlides - 1)) / o.settings.minSlides))),
                            e
                    );
                },
                v = function () {
                    var e = 1;
                    if ("horizontal" == o.settings.mode && o.settings.slideWidth > 0)
                        if (o.viewport.width() < o.minThreshold) e = o.settings.minSlides;
                        else if (o.viewport.width() > o.maxThreshold) e = o.settings.maxSlides;
                        else {
                            var t = o.children.first().width();
                            e = Math.floor(o.viewport.width() / t);
                        }
                    else "vertical" == o.settings.mode && (e = o.settings.minSlides);
                    return e;
                },
                m = function () {
                    var e = 0;
                    if (o.settings.moveSlides > 0)
                        if (o.settings.infiniteLoop) e = o.children.length / b();
                        else for (var t = 0, n = 0; t < o.children.length; ) ++e, (t = n + v()), (n += o.settings.moveSlides <= v() ? o.settings.moveSlides : v());
                    else e = Math.ceil(o.children.length / v());
                    return e;
                },
                b = function () {
                    return o.settings.moveSlides > 0 && o.settings.moveSlides <= v() ? o.settings.moveSlides : v();
                },
                x = function () {
                    if (o.children.length > o.settings.maxSlides && o.active.last && !o.settings.infiniteLoop) {
                        if ("horizontal" == o.settings.mode) {
                            var e = o.children.last(),
                                t = e.position();
                            y(-(t.left - (o.viewport.width() - e.width())), "reset", 0);
                        } else if ("vertical" == o.settings.mode) {
                            var n = o.children.length - o.settings.minSlides,
                                t = o.children.eq(n).position();
                            y(-t.top, "reset", 0);
                        }
                    } else {
                        var t = o.children.eq(o.active.index * b()).position();
                        o.active.index == m() - 1 && (o.active.last = !0), void 0 != t && ("horizontal" == o.settings.mode ? y(-t.left, "reset", 0) : "vertical" == o.settings.mode && y(-t.top, "reset", 0));
                    }
                },
                y = function (e, t, n, i) {
                    if (o.usingCSS) {
                        var r = "vertical" == o.settings.mode ? "translate3d(0, " + e + "px, 0)" : "translate3d(" + e + "px, 0, 0)";
                        a.css("-" + o.cssPrefix + "-transition-duration", n / 1e3 + "s"),
                            "slide" == t
                                ? (a.css(o.animProp, r),
                                    a.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function () {
                                        a.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"), D();
                                    }))
                                : "reset" == t
                                ? a.css(o.animProp, r)
                                : "ticker" == t &&
                                (a.css("-" + o.cssPrefix + "-transition-timing-function", "linear"),
                                    a.css(o.animProp, r),
                                    a.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function () {
                                        a.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"), y(i.resetValue, "reset", 0), L();
                                    }));
                    } else {
                        var s = {};
                        (s[o.animProp] = e),
                            "slide" == t
                                ? a.animate(s, n, o.settings.easing, function () {
                                    D();
                                })
                                : "reset" == t
                                ? a.css(o.animProp, e)
                                : "ticker" == t &&
                                a.animate(s, speed, "linear", function () {
                                    y(i.resetValue, "reset", 0), L();
                                });
                    }
                },
                w = function () {
                    for (var t = "", n = m(), i = 0; n > i; i++) {
                        var r = "";
                        o.settings.buildPager && e.isFunction(o.settings.buildPager) ? ((r = o.settings.buildPager(i)), o.pagerEl.addClass("bx-custom-pager")) : ((r = i + 1), o.pagerEl.addClass("bx-default-pager")),
                            (t += '<div class="bx-pager-item"><a href="" data-slide-index="' + i + '" class="bx-pager-link">' + r + "</a></div>");
                    }
                    o.pagerEl.html(t);
                },
                S = function () {
                    o.settings.pagerCustom
                        ? (o.pagerEl = e(o.settings.pagerCustom))
                        : ((o.pagerEl = e('<div class="bx-pager" />')), o.settings.pagerSelector ? e(o.settings.pagerSelector).html(o.pagerEl) : o.controls.el.addClass("bx-has-pager").append(o.pagerEl), w()),
                        o.pagerEl.on("click", "a", O);
                },
                k = function () {
                    (o.controls.next = e('<a class="bx-next" href="">' + o.settings.nextText + "</a>")),
                        (o.controls.prev = e('<a class="bx-prev" href="">' + o.settings.prevText + "</a>")),
                        o.controls.next.bind("click", E),
                        o.controls.prev.bind("click", I),
                    o.settings.nextSelector && e(o.settings.nextSelector).append(o.controls.next),
                    o.settings.prevSelector && e(o.settings.prevSelector).append(o.controls.prev),
                    o.settings.nextSelector ||
                    o.settings.prevSelector ||
                    ((o.controls.directionEl = e('<div class="bx-controls-direction" />')),
                        o.controls.directionEl.append(o.controls.prev).append(o.controls.next),
                        o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl));
                },
                T = function () {
                    (o.controls.start = e('<div class="bx-controls-auto-item"><a class="bx-start" href="">' + o.settings.startText + "</a></div>")),
                        (o.controls.stop = e('<div class="bx-controls-auto-item"><a class="bx-stop" href="">' + o.settings.stopText + "</a></div>")),
                        (o.controls.autoEl = e('<div class="bx-controls-auto" />')),
                        o.controls.autoEl.on("click", ".bx-start", M),
                        o.controls.autoEl.on("click", ".bx-stop", j),
                        o.settings.autoControlsCombine ? o.controls.autoEl.append(o.controls.start) : o.controls.autoEl.append(o.controls.start).append(o.controls.stop),
                        o.settings.autoControlsSelector ? e(o.settings.autoControlsSelector).html(o.controls.autoEl) : o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),
                        P(o.settings.autoStart ? "stop" : "start");
                },
                C = function () {
                    o.children.each(function () {
                        var t = e(this).find("img:first").attr("title");
                        void 0 != t && ("" + t).length && e(this).append('<div class="bx-caption"><span>' + t + "</span></div>");
                    });
                },
                E = function (e) {
                    o.settings.auto && a.stopAuto(), a.goToNextSlide(), e.preventDefault();
                },
                I = function (e) {
                    o.settings.auto && a.stopAuto(), a.goToPrevSlide(), e.preventDefault();
                },
                M = function (e) {
                    a.startAuto(), e.preventDefault();
                },
                j = function (e) {
                    a.stopAuto(), e.preventDefault();
                },
                O = function (t) {
                    o.settings.auto && a.stopAuto();
                    var n = e(t.currentTarget),
                        i = parseInt(n.attr("data-slide-index"));
                    i != o.active.index && a.goToSlide(i), t.preventDefault();
                },
                A = function (t) {
                    var n = o.children.length;
                    return "short" == o.settings.pagerType
                        ? (o.settings.maxSlides > 1 && (n = Math.ceil(o.children.length / o.settings.maxSlides)), void o.pagerEl.html(t + 1 + o.settings.pagerShortSeparator + n))
                        : (o.pagerEl.find("a").removeClass("active"),
                            void o.pagerEl.each(function (n, i) {
                                e(i).find("a").eq(t).addClass("active");
                            }));
                },
                D = function () {
                    if (o.settings.infiniteLoop) {
                        var e = "";
                        0 == o.active.index
                            ? (e = o.children.eq(0).position())
                            : o.active.index == m() - 1 && o.carousel
                            ? (e = o.children.eq((m() - 1) * b()).position())
                            : o.active.index == o.children.length - 1 && (e = o.children.eq(o.children.length - 1).position()),
                        e && ("horizontal" == o.settings.mode ? y(-e.left, "reset", 0) : "vertical" == o.settings.mode && y(-e.top, "reset", 0));
                    }
                    (o.working = !1), o.settings.onSlideAfter(o.children.eq(o.active.index), o.oldIndex, o.active.index);
                },
                P = function (e) {
                    o.settings.autoControlsCombine ? o.controls.autoEl.html(o.controls[e]) : (o.controls.autoEl.find("a").removeClass("active"), o.controls.autoEl.find("a:not(.bx-" + e + ")").addClass("active"));
                },
                U = function () {
                    1 == m()
                        ? (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 == m() - 1
                                ? (o.controls.next.addClass("disabled"), o.controls.prev.removeClass("disabled"))
                                : (o.controls.prev.removeClass("disabled"), o.controls.next.removeClass("disabled")));
                },
                z = function () {
                    o.settings.autoDelay > 0 ? setTimeout(a.startAuto, o.settings.autoDelay) : a.startAuto(),
                    o.settings.autoHover &&
                    a.hover(
                        function () {
                            o.interval && (a.stopAuto(!0), (o.autoPaused = !0));
                        },
                        function () {
                            o.autoPaused && (a.startAuto(!0), (o.autoPaused = null));
                        }
                    );
                },
                N = function () {
                    var t = 0;
                    if ("next" == o.settings.autoDirection) a.append(o.children.clone().addClass("bx-clone"));
                    else {
                        a.prepend(o.children.clone().addClass("bx-clone"));
                        var n = o.children.first().position();
                        t = "horizontal" == o.settings.mode ? -n.left : -n.top;
                    }
                    y(t, "reset", 0),
                        (o.settings.pager = !1),
                        (o.settings.controls = !1),
                        (o.settings.autoControls = !1),
                    o.settings.tickerHover &&
                    !o.usingCSS &&
                    o.viewport.hover(
                        function () {
                            a.stop();
                        },
                        function () {
                            var t = 0;
                            o.children.each(function () {
                                t += "horizontal" == o.settings.mode ? e(this).outerWidth(!0) : e(this).outerHeight(!0);
                            });
                            var n = o.settings.speed / t,
                                i = "horizontal" == o.settings.mode ? "left" : "top",
                                r = n * (t - Math.abs(parseInt(a.css(i))));
                            L(r);
                        }
                    ),
                        L();
                },
                L = function (e) {
                    speed = e ? e : o.settings.speed;
                    var t = { left: 0, top: 0 },
                        n = { left: 0, top: 0 };
                    "next" == o.settings.autoDirection ? (t = a.find(".bx-clone").first().position()) : (n = o.children.first().position());
                    var i = "horizontal" == o.settings.mode ? -t.left : -t.top,
                        r = "horizontal" == o.settings.mode ? -n.left : -n.top,
                        s = { resetValue: r };
                    y(i, "ticker", speed, s);
                },
                F = function () {
                    (o.touch = { start: { x: 0, y: 0 }, end: { x: 0, y: 0 } }), o.viewport.bind("touchstart", W);
                },
                W = function (e) {
                    if (o.working) e.preventDefault();
                    else {
                        o.touch.originalPos = a.position();
                        var t = e.originalEvent;
                        (o.touch.start.x = t.changedTouches[0].pageX), (o.touch.start.y = t.changedTouches[0].pageY), o.viewport.bind("touchmove", q), o.viewport.bind("touchend", H);
                    }
                },
                q = function (e) {
                    var t = e.originalEvent,
                        n = Math.abs(t.changedTouches[0].pageX - o.touch.start.x),
                        i = Math.abs(t.changedTouches[0].pageY - o.touch.start.y);
                    if ((3 * n > i && o.settings.preventDefaultSwipeX ? e.preventDefault() : 3 * i > n && o.settings.preventDefaultSwipeY && e.preventDefault(), "fade" != o.settings.mode && o.settings.oneToOneTouch)) {
                        var r = 0;
                        if ("horizontal" == o.settings.mode) {
                            var a = t.changedTouches[0].pageX - o.touch.start.x;
                            r = o.touch.originalPos.left + a;
                        } else {
                            var a = t.changedTouches[0].pageY - o.touch.start.y;
                            r = o.touch.originalPos.top + a;
                        }
                        y(r, "reset", 0);
                    }
                },
                H = function (e) {
                    o.viewport.unbind("touchmove", q);
                    var t = e.originalEvent,
                        n = 0;
                    if (((o.touch.end.x = t.changedTouches[0].pageX), (o.touch.end.y = t.changedTouches[0].pageY), "fade" == o.settings.mode)) {
                        var i = Math.abs(o.touch.start.x - o.touch.end.x);
                        i >= o.settings.swipeThreshold && (o.touch.start.x > o.touch.end.x ? a.goToNextSlide() : a.goToPrevSlide(), a.stopAuto());
                    } else {
                        var i = 0;
                        "horizontal" == o.settings.mode ? ((i = o.touch.end.x - o.touch.start.x), (n = o.touch.originalPos.left)) : ((i = o.touch.end.y - o.touch.start.y), (n = o.touch.originalPos.top)),
                            !o.settings.infiniteLoop && ((0 == o.active.index && i > 0) || (o.active.last && 0 > i))
                                ? y(n, "reset", 200)
                                : Math.abs(i) >= o.settings.swipeThreshold
                                ? (0 > i ? a.goToNextSlide() : a.goToPrevSlide(), a.stopAuto())
                                : y(n, "reset", 200);
                    }
                    o.viewport.unbind("touchend", H);
                },
                B = function () {
                    var t = e(window).width(),
                        n = e(window).height();
                    (s != t || l != n) && ((s = t), (l = n), a.redrawSlider(), o.settings.onSliderResize.call(a, o.active.index));
                };
            return (
                (a.goToSlide = function (t, n) {
                    if (!o.working && o.active.index != t)
                        if (
                            ((o.working = !0),
                                (o.oldIndex = o.active.index),
                                (o.active.index = 0 > t ? m() - 1 : t >= m() ? 0 : t),
                                o.settings.onSlideBefore(o.children.eq(o.active.index), o.oldIndex, o.active.index),
                                "next" == n ? o.settings.onSlideNext(o.children.eq(o.active.index), o.oldIndex, o.active.index) : "prev" == n && o.settings.onSlidePrev(o.children.eq(o.active.index), o.oldIndex, o.active.index),
                                (o.active.last = o.active.index >= m() - 1),
                            o.settings.pager && A(o.active.index),
                            o.settings.controls && U(),
                            "fade" == o.settings.mode)
                        )
                            o.settings.adaptiveHeight && o.viewport.height() != p() && o.viewport.animate({ height: p() }, 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 () {
                                        e(this).css("zIndex", o.settings.slideZIndex), D();
                                    });
                        else {
                            o.settings.adaptiveHeight && o.viewport.height() != p() && o.viewport.animate({ height: p() }, o.settings.adaptiveHeightSpeed);
                            var i = 0,
                                r = { left: 0, top: 0 };
                            if (!o.settings.infiniteLoop && o.carousel && o.active.last)
                                if ("horizontal" == o.settings.mode) {
                                    var s = o.children.eq(o.children.length - 1);
                                    (r = s.position()), (i = o.viewport.width() - s.outerWidth());
                                } else {
                                    var l = o.children.length - o.settings.minSlides;
                                    r = o.children.eq(l).position();
                                }
                            else if (o.carousel && o.active.last && "prev" == n) {
                                var d = 1 == o.settings.moveSlides ? o.settings.maxSlides - b() : (m() - 1) * b() - (o.children.length - o.settings.maxSlides),
                                    s = a.children(".bx-clone").eq(d);
                                r = s.position();
                            } else if ("next" == n && 0 == o.active.index) (r = a.find("> .bx-clone").eq(o.settings.maxSlides).position()), (o.active.last = !1);
                            else if (t >= 0) {
                                var c = t * b();
                                r = o.children.eq(c).position();
                            }
                            if ("undefined" != typeof r) {
                                var u = "horizontal" == o.settings.mode ? -(r.left - i) : -r.top;
                                y(u, "slide", o.settings.speed);
                            }
                        }
                }),
                    (a.goToNextSlide = function () {
                        if (o.settings.infiniteLoop || !o.active.last) {
                            var e = parseInt(o.active.index) + 1;
                            a.goToSlide(e, "next");
                        }
                    }),
                    (a.goToPrevSlide = function () {
                        if (o.settings.infiniteLoop || 0 != o.active.index) {
                            var e = parseInt(o.active.index) - 1;
                            a.goToSlide(e, "prev");
                        }
                    }),
                    (a.startAuto = function (e) {
                        o.interval ||
                        ((o.interval = setInterval(function () {
                            "next" == o.settings.autoDirection ? a.goToNextSlide() : a.goToPrevSlide();
                        }, o.settings.pause)),
                        o.settings.autoControls && 1 != e && P("stop"));
                    }),
                    (a.stopAuto = function (e) {
                        o.interval && (clearInterval(o.interval), (o.interval = null), o.settings.autoControls && 1 != e && P("start"));
                    }),
                    (a.getCurrentSlide = function () {
                        return o.active.index;
                    }),
                    (a.getCurrentSlideElement = function () {
                        return o.children.eq(o.active.index);
                    }),
                    (a.getSlideCount = function () {
                        return o.children.length;
                    }),
                    (a.redrawSlider = function () {
                        o.children.add(a.find(".bx-clone")).outerWidth(g()),
                            o.viewport.css("height", p()),
                        o.settings.ticker || x(),
                        o.active.last && (o.active.index = m() - 1),
                        o.active.index >= m() && (o.active.last = !0),
                        o.settings.pager && !o.settings.pagerCustom && (w(), A(o.active.index));
                    }),
                    (a.destroySlider = function () {
                        o.initialized &&
                        ((o.initialized = !1),
                            e(".bx-clone", this).remove(),
                            o.children.each(function () {
                                void 0 != e(this).data("origStyle") ? e(this).attr("style", e(this).data("origStyle")) : e(this).removeAttr("style");
                            }),
                            void 0 != e(this).data("origStyle") ? this.attr("style", e(this).data("origStyle")) : e(this).removeAttr("style"),
                            e(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(),
                            e(".bx-caption", this).remove(),
                        o.controls.autoEl && o.controls.autoEl.remove(),
                            clearInterval(o.interval),
                        o.settings.responsive && e(window).unbind("resize", B));
                    }),
                    (a.reloadSlider = function (e) {
                        void 0 != e && (r = e), a.destroySlider(), d();
                    }),
                    d(),
                    this
            );
        };
    })(jQuery),
    !(function (e, t) {
        function n(e, t, n) {
            var i = e.children(),
                r = !1;
            e.empty();
            for (var a = 0, s = i.length; s > a; a++) {
                var l = i.eq(a);
                if ((e.append(l), n && e.append(n), o(e, t))) {
                    l.remove(), (r = !0);
                    break;
                }
                n && n.detach();
            }
            return r;
        }
        function i(t, n, a, s, l) {
            var d = !1,
                c = "table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",
                u = "script";
            return (
                t
                    .contents()
                    .detach()
                    .each(function () {
                        var f = this,
                            p = e(f);
                        if ("undefined" == typeof f || (3 == f.nodeType && 0 == e.trim(f.data).length)) return !0;
                        if (p.is(u)) t.append(p);
                        else {
                            if (d) return !0;
                            t.append(p), l && t[t.is(c) ? "after" : "append"](l), o(a, s) && ((d = 3 == f.nodeType ? r(p, n, a, s, l) : i(p, n, a, s, l)), d || (p.detach(), (d = !0))), d || (l && l.detach());
                        }
                    }),
                    d
            );
        }
        function r(t, n, i, r, s) {
            var c = t[0];
            if (!c) return !1;
            var f = d(c),
                p = -1 !== f.indexOf(" ") ? " " : "　",
                h = "letter" == r.wrap ? "" : p,
                g = f.split(h),
                v = -1,
                m = -1,
                b = 0,
                x = g.length - 1;
            for (r.fallbackToLetter && 0 == b && 0 == x && ((h = ""), (g = f.split(h)), (x = g.length - 1)); x >= b && (0 != b || 0 != x); ) {
                var y = Math.floor((b + x) / 2);
                if (y == m) break;
                (m = y), l(c, g.slice(0, m + 1).join(h) + r.ellipsis), o(i, r) ? ((x = m), r.fallbackToLetter && 0 == b && 0 == x && ((h = ""), (g = g[0].split(h)), (v = -1), (m = -1), (b = 0), (x = g.length - 1))) : ((v = m), (b = m));
            }
            if (-1 == v || (1 == g.length && 0 == g[0].length)) {
                var w = t.parent();
                t.detach();
                var S = s && s.closest(w).length ? s.length : 0;
                w.contents().length > S ? (c = u(w.contents().eq(-1 - S), n)) : ((c = u(w, n, !0)), S || w.detach()), c && ((f = a(d(c), r)), l(c, f), S && s && e(c).parent().append(s));
            } else (f = a(g.slice(0, v + 1).join(h), r)), l(c, f);
            return !0;
        }
        function o(e, t) {
            return e.innerHeight() > t.maxHeight;
        }
        function a(t, n) {
            for (; e.inArray(t.slice(-1), n.lastCharacter.remove) > -1; ) t = t.slice(0, -1);
            return e.inArray(t.slice(-1), n.lastCharacter.noEllipsis) < 0 && (t += n.ellipsis), t;
        }
        function s(e) {
            return { width: e.innerWidth(), height: e.innerHeight() };
        }
        function l(e, t) {
            e.innerText ? (e.innerText = t) : e.nodeValue ? (e.nodeValue = t) : e.textContent && (e.textContent = t);
        }
        function d(e) {
            return e.innerText ? e.innerText : e.nodeValue ? e.nodeValue : e.textContent ? e.textContent : "";
        }
        function c(e) {
            do e = e.previousSibling;
            while (e && 1 !== e.nodeType && 3 !== e.nodeType);
            return e;
        }
        function u(t, n, i) {
            var r,
                o = t && t[0];
            if (o) {
                if (!i) {
                    if (3 === o.nodeType) return o;
                    if (e.trim(t.text())) return u(t.contents().last(), n);
                }
                for (r = c(o); !r; ) {
                    if (((t = t.parent()), t.is(n) || !t.length)) return !1;
                    r = c(t[0]);
                }
                if (r) return u(e(r), n);
            }
            return !1;
        }
        function f(t, n) {
            return t ? ("string" == typeof t ? ((t = e(t, n)), t.length ? t : !1) : t.jquery ? t : !1) : !1;
        }
        function p(e) {
            for (var t = e.innerHeight(), n = ["paddingTop", "paddingBottom"], i = 0, r = n.length; r > i; i++) {
                var o = parseInt(e.css(n[i]), 10);
                isNaN(o) && (o = 0), (t -= o);
            }
            return t;
        }
        if (!e.fn.dotdotdot) {
            (e.fn.dotdotdot = function (t) {
                if (0 == this.length) return e.fn.dotdotdot.debug('No element found for "' + this.selector + '".'), this;
                if (this.length > 1)
                    return this.each(function () {
                        e(this).dotdotdot(t);
                    });
                var r = this;
                r.data("dotdotdot") && r.trigger("destroy.dot"),
                    r.data("dotdotdot-style", r.attr("style") || ""),
                    r.css("word-wrap", "break-word"),
                "nowrap" === r.css("white-space") && r.css("white-space", "normal"),
                    (r.bind_events = function () {
                        return (
                            r
                                .bind("update.dot", function (t, s) {
                                    t.preventDefault(),
                                        t.stopPropagation(),
                                        (l.maxHeight = "number" == typeof l.height ? l.height : p(r)),
                                        (l.maxHeight += l.tolerance),
                                    "undefined" != typeof s && (("string" == typeof s || s instanceof HTMLElement) && (s = e("<div />").append(s).contents()), s instanceof e && (a = s)),
                                        (g = r.wrapInner('<div class="dotdotdot" />').children()),
                                        g.contents().detach().end().append(a.clone(!0)).find("br").replaceWith("  <br />  ").end().css({ height: "auto", width: "auto", border: "none", padding: 0, margin: 0 });
                                    var c = !1,
                                        u = !1;
                                    return (
                                        d.afterElement && ((c = d.afterElement.clone(!0)), c.show(), d.afterElement.detach()),
                                        o(g, l) && (u = "children" == l.wrap ? n(g, l, c) : i(g, r, g, l, c)),
                                            g.replaceWith(g.contents()),
                                            (g = null),
                                        e.isFunction(l.callback) && l.callback.call(r[0], u, a),
                                            (d.isTruncated = u),
                                            u
                                    );
                                })
                                .bind("isTruncated.dot", function (e, t) {
                                    return e.preventDefault(), e.stopPropagation(), "function" == typeof t && t.call(r[0], d.isTruncated), d.isTruncated;
                                })
                                .bind("originalContent.dot", function (e, t) {
                                    return e.preventDefault(), e.stopPropagation(), "function" == typeof t && t.call(r[0], a), a;
                                })
                                .bind("destroy.dot", function (e) {
                                    e.preventDefault(),
                                        e.stopPropagation(),
                                        r
                                            .unwatch()
                                            .unbind_events()
                                            .contents()
                                            .detach()
                                            .end()
                                            .append(a)
                                            .attr("style", r.data("dotdotdot-style") || "")
                                            .data("dotdotdot", !1);
                                }),
                                r
                        );
                    }),
                    (r.unbind_events = function () {
                        return r.unbind(".dot"), r;
                    }),
                    (r.watch = function () {
                        if ((r.unwatch(), "window" == l.watch)) {
                            var t = e(window),
                                n = t.width(),
                                i = t.height();
                            t.bind("resize.dot" + d.dotId, function () {
                                (n == t.width() && i == t.height() && l.windowResizeFix) ||
                                ((n = t.width()),
                                    (i = t.height()),
                                u && clearInterval(u),
                                    (u = setTimeout(function () {
                                        r.trigger("update.dot");
                                    }, 100)));
                            });
                        } else
                            (c = s(r)),
                                (u = setInterval(function () {
                                    if (r.is(":visible")) {
                                        var e = s(r);
                                        (c.width != e.width || c.height != e.height) && (r.trigger("update.dot"), (c = e));
                                    }
                                }, 500));
                        return r;
                    }),
                    (r.unwatch = function () {
                        return e(window).unbind("resize.dot" + d.dotId), u && clearInterval(u), r;
                    });
                var a = r.contents(),
                    l = e.extend(!0, {}, e.fn.dotdotdot.defaults, t),
                    d = {},
                    c = {},
                    u = null,
                    g = null;
                return (
                    l.lastCharacter.remove instanceof Array || (l.lastCharacter.remove = e.fn.dotdotdot.defaultArrays.lastCharacter.remove),
                    l.lastCharacter.noEllipsis instanceof Array || (l.lastCharacter.noEllipsis = e.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),
                        (d.afterElement = f(l.after, r)),
                        (d.isTruncated = !1),
                        (d.dotId = h++),
                        r.data("dotdotdot", !0).bind_events().trigger("update.dot"),
                    l.watch && r.watch(),
                        r
                );
            }),
                (e.fn.dotdotdot.defaults = { ellipsis: "... ", wrap: "word", fallbackToLetter: !0, lastCharacter: {}, tolerance: 0, callback: null, after: null, height: null, watch: !1, windowResizeFix: !0 }),
                (e.fn.dotdotdot.defaultArrays = { lastCharacter: { remove: [" ", "　", ",", ";", ".", "!", "?"], noEllipsis: [] } }),
                (e.fn.dotdotdot.debug = function () {});
            var h = 1,
                g = e.fn.html;
            e.fn.html = function (n) {
                return n != t && !e.isFunction(n) && this.data("dotdotdot") ? this.trigger("update", [n]) : g.apply(this, arguments);
            };
            var v = e.fn.text;
            e.fn.text = function (n) {
                return n != t && !e.isFunction(n) && this.data("dotdotdot") ? ((n = e("<div />").text(n).html()), this.trigger("update", [n])) : v.apply(this, arguments);
            };
        }
    })(jQuery),
    !(function (e) {
        "use strict";
        "function" == typeof define && define.amd ? define(["jquery"], e) : e("undefined" != typeof jQuery ? jQuery : window.Zepto);
    })(function (e) {
        "use strict";
        function t(t) {
            var n = t.data;
            t.isDefaultPrevented() || (t.preventDefault(), e(t.target).ajaxSubmit(n));
        }
        function n(t) {
            var n = t.target,
                i = e(n);
            if (!i.is("[type=submit],[type=image]")) {
                var r = i.closest("[type=submit]");
                if (0 === r.length) return;
                n = r[0];
            }
            var o = this;
            if (((o.clk = n), "image" == n.type))
                if (void 0 !== t.offsetX) (o.clk_x = t.offsetX), (o.clk_y = t.offsetY);
                else if ("function" == typeof e.fn.offset) {
                    var a = i.offset();
                    (o.clk_x = t.pageX - a.left), (o.clk_y = t.pageY - a.top);
                } else (o.clk_x = t.pageX - n.offsetLeft), (o.clk_y = t.pageY - n.offsetTop);
            setTimeout(function () {
                o.clk = o.clk_x = o.clk_y = null;
            }, 100);
        }
        function i() {
            if (e.fn.ajaxSubmit.debug) {
                var t = "[jquery.form] " + Array.prototype.join.call(arguments, "");
                window.console && window.console.log ? window.console.log(t) : window.opera && window.opera.postError && window.opera.postError(t);
            }
        }
        var r = {};
        (r.fileapi = void 0 !== e("<input type='file'/>").get(0).files), (r.formdata = void 0 !== window.FormData);
        var o = !!e.fn.prop;
        (e.fn.attr2 = function () {
            if (!o) return this.attr.apply(this, arguments);
            var e = this.prop.apply(this, arguments);
            return (e && e.jquery) || "string" == typeof e ? e : this.attr.apply(this, arguments);
        }),
            (e.fn.ajaxSubmit = function (t) {
                function n(n) {
                    var i,
                        r,
                        o = e.param(n, t.traditional).split("&"),
                        a = o.length,
                        s = [];
                    for (i = 0; a > i; i++) (o[i] = o[i].replace(/\+/g, " ")), (r = o[i].split("=")), s.push([decodeURIComponent(r[0]), decodeURIComponent(r[1])]);
                    return s;
                }
                function a(i) {
                    for (var r = new FormData(), o = 0; o < i.length; o++) r.append(i[o].name, i[o].value);
                    if (t.extraData) {
                        var a = n(t.extraData);
                        for (o = 0; o < a.length; o++) a[o] && r.append(a[o][0], a[o][1]);
                    }
                    t.data = null;
                    var s = e.extend(!0, {}, e.ajaxSettings, t, { contentType: !1, processData: !1, cache: !1, type: l || "POST" });
                    t.uploadProgress &&
                    (s.xhr = function () {
                        var n = e.ajaxSettings.xhr();
                        return (
                            n.upload &&
                            n.upload.addEventListener(
                                "progress",
                                function (e) {
                                    var n = 0,
                                        i = e.loaded || e.position,
                                        r = e.total;
                                    e.lengthComputable && (n = Math.ceil((i / r) * 100)), t.uploadProgress(e, i, r, n);
                                },
                                !1
                            ),
                                n
                        );
                    }),
                        (s.data = null);
                    var d = s.beforeSend;
                    return (
                        (s.beforeSend = function (e, n) {
                            (n.data = t.formData ? t.formData : r), d && d.call(this, e, n);
                        }),
                            e.ajax(s)
                    );
                }
                function s(n) {
                    function r(e) {
                        var t = null;
                        try {
                            e.contentWindow && (t = e.contentWindow.document);
                        } catch (n) {
                            i("cannot get iframe.contentWindow document: " + n);
                        }
                        if (t) return t;
                        try {
                            t = e.contentDocument ? e.contentDocument : e.document;
                        } catch (n) {
                            i("cannot get iframe.contentDocument: " + n), (t = e.document);
                        }
                        return t;
                    }
                    function a() {
                        function t() {
                            try {
                                var e = r(m).readyState;
                                i("state = " + e), e && "uninitialized" == e.toLowerCase() && setTimeout(t, 50);
                            } catch (n) {
                                i("Server abort: ", n, " (", n.name, ")"), s(E), S && clearTimeout(S), (S = void 0);
                            }
                        }
                        var n = u.attr2("target"),
                            o = u.attr2("action"),
                            a = "multipart/form-data",
                            d = u.attr("enctype") || u.attr("encoding") || a;
                        k.setAttribute("target", h),
                        (!l || /post/i.test(l)) && k.setAttribute("method", "POST"),
                        o != f.url && k.setAttribute("action", f.url),
                        f.skipEncodingOverride || (l && !/post/i.test(l)) || u.attr({ encoding: "multipart/form-data", enctype: "multipart/form-data" }),
                        f.timeout &&
                        (S = setTimeout(function () {
                            (w = !0), s(C);
                        }, f.timeout));
                        var c = [];
                        try {
                            if (f.extraData)
                                for (var p in f.extraData)
                                    f.extraData.hasOwnProperty(p) &&
                                    (e.isPlainObject(f.extraData[p]) && f.extraData[p].hasOwnProperty("name") && f.extraData[p].hasOwnProperty("value")
                                        ? c.push(
                                            e('<input type="hidden" name="' + f.extraData[p].name + '">')
                                                .val(f.extraData[p].value)
                                                .appendTo(k)[0]
                                        )
                                        : c.push(
                                            e('<input type="hidden" name="' + p + '">')
                                                .val(f.extraData[p])
                                                .appendTo(k)[0]
                                        ));
                            f.iframeTarget || v.appendTo("body"), m.attachEvent ? m.attachEvent("onload", s) : m.addEventListener("load", s, !1), setTimeout(t, 15);
                            try {
                                k.submit();
                            } catch (g) {
                                var b = document.createElement("form").submit;
                                b.apply(k);
                            }
                        } finally {
                            k.setAttribute("action", o), k.setAttribute("enctype", d), n ? k.setAttribute("target", n) : u.removeAttr("target"), e(c).remove();
                        }
                    }
                    function s(t) {
                        if (!b.aborted && !A) {
                            if (((O = r(m)), O || (i("cannot access response document"), (t = E)), t === C && b)) return b.abort("timeout"), void T.reject(b, "timeout");
                            if (t == E && b) return b.abort("server abort"), void T.reject(b, "error", "server abort");
                            if ((O && O.location.href != f.iframeSrc) || w) {
                                m.detachEvent ? m.detachEvent("onload", s) : m.removeEventListener("load", s, !1);
                                var n,
                                    o = "success";
                                try {
                                    if (w) throw "timeout";
                                    var a = "xml" == f.dataType || O.XMLDocument || e.isXMLDoc(O);
                                    if ((i("isXml=" + a), !a && window.opera && (null === O.body || !O.body.innerHTML) && --D)) return i("requeing onLoad callback, DOM not available"), void setTimeout(s, 250);
                                    var l = O.body ? O.body : O.documentElement;
                                    (b.responseText = l ? l.innerHTML : null),
                                        (b.responseXML = O.XMLDocument ? O.XMLDocument : O),
                                    a && (f.dataType = "xml"),
                                        (b.getResponseHeader = function (e) {
                                            var t = { "content-type": f.dataType };
                                            return t[e.toLowerCase()];
                                        }),
                                    l && ((b.status = Number(l.getAttribute("status")) || b.status), (b.statusText = l.getAttribute("statusText") || b.statusText));
                                    var d = (f.dataType || "").toLowerCase(),
                                        c = /(json|script|text)/.test(d);
                                    if (c || f.textarea) {
                                        var u = O.getElementsByTagName("textarea")[0];
                                        if (u) (b.responseText = u.value), (b.status = Number(u.getAttribute("status")) || b.status), (b.statusText = u.getAttribute("statusText") || b.statusText);
                                        else if (c) {
                                            var h = O.getElementsByTagName("pre")[0],
                                                g = O.getElementsByTagName("body")[0];
                                            h ? (b.responseText = h.textContent ? h.textContent : h.innerText) : g && (b.responseText = g.textContent ? g.textContent : g.innerText);
                                        }
                                    } else "xml" == d && !b.responseXML && b.responseText && (b.responseXML = P(b.responseText));
                                    try {
                                        j = z(b, d, f);
                                    } catch (x) {
                                        (o = "parsererror"), (b.error = n = x || o);
                                    }
                                } catch (x) {
                                    i("error caught: ", x), (o = "error"), (b.error = n = x || o);
                                }
                                b.aborted && (i("upload aborted"), (o = null)),
                                b.status && (o = (b.status >= 200 && b.status < 300) || 304 === b.status ? "success" : "error"),
                                    "success" === o
                                        ? (f.success && f.success.call(f.context, j, "success", b), T.resolve(b.responseText, "success", b), p && e.event.trigger("ajaxSuccess", [b, f]))
                                        : o && (void 0 === n && (n = b.statusText), f.error && f.error.call(f.context, b, o, n), T.reject(b, "error", n), p && e.event.trigger("ajaxError", [b, f, n])),
                                p && e.event.trigger("ajaxComplete", [b, f]),
                                p && !--e.active && e.event.trigger("ajaxStop"),
                                f.complete && f.complete.call(f.context, b, o),
                                    (A = !0),
                                f.timeout && clearTimeout(S),
                                    setTimeout(function () {
                                        f.iframeTarget ? v.attr("src", f.iframeSrc) : v.remove(), (b.responseXML = null);
                                    }, 100);
                            }
                        }
                    }
                    var d,
                        c,
                        f,
                        p,
                        h,
                        v,
                        m,
                        b,
                        x,
                        y,
                        w,
                        S,
                        k = u[0],
                        T = e.Deferred();
                    if (
                        ((T.abort = function (e) {
                            b.abort(e);
                        }),
                            n)
                    )
                        for (c = 0; c < g.length; c++) (d = e(g[c])), o ? d.prop("disabled", !1) : d.removeAttr("disabled");
                    if (
                        ((f = e.extend(!0, {}, e.ajaxSettings, t)),
                            (f.context = f.context || f),
                            (h = "jqFormIO" + new Date().getTime()),
                            f.iframeTarget
                                ? ((v = e(f.iframeTarget)), (y = v.attr2("name")), y ? (h = y) : v.attr2("name", h))
                                : ((v = e('<iframe name="' + h + '" src="' + f.iframeSrc + '" />')), v.css({ position: "absolute", top: "-1000px", left: "-1000px" })),
                            (m = v[0]),
                            (b = {
                                aborted: 0,
                                responseText: null,
                                responseXML: null,
                                status: 0,
                                statusText: "n/a",
                                getAllResponseHeaders: function () {},
                                getResponseHeader: function () {},
                                setRequestHeader: function () {},
                                abort: function (t) {
                                    var n = "timeout" === t ? "timeout" : "aborted";
                                    i("aborting upload... " + n), (this.aborted = 1);
                                    try {
                                        m.contentWindow.document.execCommand && m.contentWindow.document.execCommand("Stop");
                                    } catch (r) {}
                                    v.attr("src", f.iframeSrc), (b.error = n), f.error && f.error.call(f.context, b, n, t), p && e.event.trigger("ajaxError", [b, f, n]), f.complete && f.complete.call(f.context, b, n);
                                },
                            }),
                            (p = f.global),
                        p && 0 === e.active++ && e.event.trigger("ajaxStart"),
                        p && e.event.trigger("ajaxSend", [b, f]),
                        f.beforeSend && f.beforeSend.call(f.context, b, f) === !1)
                    )
                        return f.global && e.active--, T.reject(), T;
                    if (b.aborted) return T.reject(), T;
                    (x = k.clk), x && ((y = x.name), y && !x.disabled && ((f.extraData = f.extraData || {}), (f.extraData[y] = x.value), "image" == x.type && ((f.extraData[y + ".x"] = k.clk_x), (f.extraData[y + ".y"] = k.clk_y))));
                    var C = 1,
                        E = 2,
                        I = e("meta[name=csrf-token]").attr("content"),
                        M = e("meta[name=csrf-param]").attr("content");
                    M && I && ((f.extraData = f.extraData || {}), (f.extraData[M] = I)), f.forceSync ? a() : setTimeout(a, 10);
                    var j,
                        O,
                        A,
                        D = 50,
                        P =
                            e.parseXML ||
                            function (e, t) {
                                return (
                                    window.ActiveXObject ? ((t = new ActiveXObject("Microsoft.XMLDOM")), (t.async = "false"), t.loadXML(e)) : (t = new DOMParser().parseFromString(e, "text/xml")),
                                        t && t.documentElement && "parsererror" != t.documentElement.nodeName ? t : null
                                );
                            },
                        U =
                            e.parseJSON ||
                            function (e) {
                                return window.eval("(" + e + ")");
                            },
                        z = function (t, n, i) {
                            var r = t.getResponseHeader("content-type") || "",
                                o = "xml" === n || (!n && r.indexOf("xml") >= 0),
                                a = o ? t.responseXML : t.responseText;
                            return (
                                o && "parsererror" === a.documentElement.nodeName && e.error && e.error("parsererror"),
                                i && i.dataFilter && (a = i.dataFilter(a, n)),
                                "string" == typeof a && ("json" === n || (!n && r.indexOf("json") >= 0) ? (a = U(a)) : ("script" === n || (!n && r.indexOf("javascript") >= 0)) && e.globalEval(a)),
                                    a
                            );
                        };
                    return T;
                }
                if (!this.length) return i("ajaxSubmit: skipping submit process - no element selected"), this;
                var l,
                    d,
                    c,
                    u = this;
                "function" == typeof t ? (t = { success: t }) : void 0 === t && (t = {}),
                    (l = t.type || this.attr2("method")),
                    (d = t.url || this.attr2("action")),
                    (c = "string" == typeof d ? e.trim(d) : ""),
                    (c = c || window.location.href || ""),
                c && (c = (c.match(/^([^#]+)/) || [])[1]),
                    (t = e.extend(!0, { url: c, success: e.ajaxSettings.success, type: l || e.ajaxSettings.type, iframeSrc: /^https/i.test(window.location.href || "") ? "javascript:false" : "about:blank" }, t));
                var f = {};
                if ((this.trigger("form-pre-serialize", [this, t, f]), f.veto)) return i("ajaxSubmit: submit vetoed via form-pre-serialize trigger"), this;
                if (t.beforeSerialize && t.beforeSerialize(this, t) === !1) return i("ajaxSubmit: submit aborted via beforeSerialize callback"), this;
                var p = t.traditional;
                void 0 === p && (p = e.ajaxSettings.traditional);
                var h,
                    g = [],
                    v = this.formToArray(t.semantic, g);
                if ((t.data && ((t.extraData = t.data), (h = e.param(t.data, p))), t.beforeSubmit && t.beforeSubmit(v, this, t) === !1)) return i("ajaxSubmit: submit aborted via beforeSubmit callback"), this;
                if ((this.trigger("form-submit-validate", [v, this, t, f]), f.veto)) return i("ajaxSubmit: submit vetoed via form-submit-validate trigger"), this;
                var m = e.param(v, p);
                h && (m = m ? m + "&" + h : h), "GET" == t.type.toUpperCase() ? ((t.url += (t.url.indexOf("?") >= 0 ? "&" : "?") + m), (t.data = null)) : (t.data = m);
                var b = [];
                if (
                    (t.resetForm &&
                    b.push(function () {
                        u.resetForm();
                    }),
                    t.clearForm &&
                    b.push(function () {
                        u.clearForm(t.includeHidden);
                    }),
                    !t.dataType && t.target)
                ) {
                    var x = t.success || function () {};
                    b.push(function (n) {
                        var i = t.replaceTarget ? "replaceWith" : "html";
                        e(t.target)[i](n).each(x, arguments);
                    });
                } else t.success && b.push(t.success);
                if (
                    ((t.success = function (e, n, i) {
                        for (var r = t.context || this, o = 0, a = b.length; a > o; o++) b[o].apply(r, [e, n, i || u, u]);
                    }),
                        t.error)
                ) {
                    var y = t.error;
                    t.error = function (e, n, i) {
                        var r = t.context || this;
                        y.apply(r, [e, n, i, u]);
                    };
                }
                if (t.complete) {
                    var w = t.complete;
                    t.complete = function (e, n) {
                        var i = t.context || this;
                        w.apply(i, [e, n, u]);
                    };
                }
                var S = e("input[type=file]:enabled", this).filter(function () {
                        return "" !== e(this).val();
                    }),
                    k = S.length > 0,
                    T = "multipart/form-data",
                    C = u.attr("enctype") == T || u.attr("encoding") == T,
                    E = r.fileapi && r.formdata;
                i("fileAPI :" + E);
                var I,
                    M = (k || C) && !E;
                t.iframe !== !1 && (t.iframe || M)
                    ? t.closeKeepAlive
                    ? e.get(t.closeKeepAlive, function () {
                        I = s(v);
                    })
                    : (I = s(v))
                    : (I = (k || C) && E ? a(v) : e.ajax(t)),
                    u.removeData("jqxhr").data("jqxhr", I);
                for (var j = 0; j < g.length; j++) g[j] = null;
                return this.trigger("form-submit-notify", [this, t]), this;
            }),
            (e.fn.ajaxForm = function (r) {
                if (((r = r || {}), (r.delegation = r.delegation && e.isFunction(e.fn.on)), !r.delegation && 0 === this.length)) {
                    var o = { s: this.selector, c: this.context };
                    return !e.isReady && o.s
                        ? (i("DOM not ready, queuing ajaxForm"),
                            e(function () {
                                e(o.s, o.c).ajaxForm(r);
                            }),
                            this)
                        : (i("terminating; zero elements found by selector" + (e.isReady ? "" : " (DOM not ready)")), this);
                }
                return r.delegation
                    ? (e(document).off("submit.form-plugin", this.selector, t).off("click.form-plugin", this.selector, n).on("submit.form-plugin", this.selector, r, t).on("click.form-plugin", this.selector, r, n), this)
                    : this.ajaxFormUnbind().bind("submit.form-plugin", r, t).bind("click.form-plugin", r, n);
            }),
            (e.fn.ajaxFormUnbind = function () {
                return this.unbind("submit.form-plugin click.form-plugin");
            }),
            (e.fn.formToArray = function (t, n) {
                var i = [];
                if (0 === this.length) return i;
                var o,
                    a = this[0],
                    s = this.attr("id"),
                    l = t ? a.getElementsByTagName("*") : a.elements;
                if ((l && !/MSIE 8/.test(navigator.userAgent) && (l = e(l).get()), s && ((o = e(":input[form=" + s + "]").get()), o.length && (l = (l || []).concat(o))), !l || !l.length)) return i;
                var d, c, u, f, p, h, g;
                for (d = 0, h = l.length; h > d; d++)
                    if (((p = l[d]), (u = p.name), u && !p.disabled))
                        if (t && a.clk && "image" == p.type) a.clk == p && (i.push({ name: u, value: e(p).val(), type: p.type }), i.push({ name: u + ".x", value: a.clk_x }, { name: u + ".y", value: a.clk_y }));
                        else if (((f = e.fieldValue(p, !0)), f && f.constructor == Array)) for (n && n.push(p), c = 0, g = f.length; g > c; c++) i.push({ name: u, value: f[c] });
                        else if (r.fileapi && "file" == p.type) {
                            n && n.push(p);
                            var v = p.files;
                            if (v.length) for (c = 0; c < v.length; c++) i.push({ name: u, value: v[c], type: p.type });
                            else i.push({ name: u, value: "", type: p.type });
                        } else null !== f && "undefined" != typeof f && (n && n.push(p), i.push({ name: u, value: f, type: p.type, required: p.required }));
                if (!t && a.clk) {
                    var m = e(a.clk),
                        b = m[0];
                    (u = b.name), u && !b.disabled && "image" == b.type && (i.push({ name: u, value: m.val() }), i.push({ name: u + ".x", value: a.clk_x }, { name: u + ".y", value: a.clk_y }));
                }
                return i;
            }),
            (e.fn.formSerialize = function (t) {
                return e.param(this.formToArray(t));
            }),
            (e.fn.fieldSerialize = function (t) {
                var n = [];
                return (
                    this.each(function () {
                        var i = this.name;
                        if (i) {
                            var r = e.fieldValue(this, t);
                            if (r && r.constructor == Array) for (var o = 0, a = r.length; a > o; o++) n.push({ name: i, value: r[o] });
                            else null !== r && "undefined" != typeof r && n.push({ name: this.name, value: r });
                        }
                    }),
                        e.param(n)
                );
            }),
            (e.fn.fieldValue = function (t) {
                for (var n = [], i = 0, r = this.length; r > i; i++) {
                    var o = this[i],
                        a = e.fieldValue(o, t);
                    null === a || "undefined" == typeof a || (a.constructor == Array && !a.length) || (a.constructor == Array ? e.merge(n, a) : n.push(a));
                }
                return n;
            }),
            (e.fieldValue = function (t, n) {
                var i = t.name,
                    r = t.type,
                    o = t.tagName.toLowerCase();
                if (
                    (void 0 === n && (n = !0),
                    n && (!i || t.disabled || "reset" == r || "button" == r || (("checkbox" == r || "radio" == r) && !t.checked) || (("submit" == r || "image" == r) && t.form && t.form.clk != t) || ("select" == o && -1 == t.selectedIndex)))
                )
                    return null;
                if ("select" == o) {
                    var a = t.selectedIndex;
                    if (0 > a) return null;
                    for (var s = [], l = t.options, d = "select-one" == r, c = d ? a + 1 : l.length, u = d ? a : 0; c > u; u++) {
                        var f = l[u];
                        if (f.selected) {
                            var p = f.value;
                            if ((p || (p = f.attributes && f.attributes.value && !f.attributes.value.specified ? f.text : f.value), d)) return p;
                            s.push(p);
                        }
                    }
                    return s;
                }
                return e(t).val();
            }),
            (e.fn.clearForm = function (t) {
                return this.each(function () {
                    e("input,select,textarea", this).clearFields(t);
                });
            }),
            (e.fn.clearFields = e.fn.clearInputs = function (t) {
                var n = /^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;
                return this.each(function () {
                    var i = this.type,
                        r = this.tagName.toLowerCase();
                    n.test(i) || "textarea" == r
                        ? (this.value = "")
                        : "checkbox" == i || "radio" == i
                        ? (this.checked = !1)
                        : "select" == r
                            ? (this.selectedIndex = -1)
                            : "file" == i
                                ? /MSIE/.test(navigator.userAgent)
                                    ? e(this).replaceWith(e(this).clone(!0))
                                    : e(this).val("")
                                : t && ((t === !0 && /hidden/.test(i)) || ("string" == typeof t && e(this).is(t))) && (this.value = "");
                });
            }),
            (e.fn.resetForm = function () {
                return this.each(function () {
                    ("function" == typeof this.reset || ("object" == typeof this.reset && !this.reset.nodeType)) && this.reset();
                });
            }),
            (e.fn.enable = function (e) {
                return (
                    void 0 === e && (e = !0),
                        this.each(function () {
                            this.disabled = !e;
                        })
                );
            }),
            (e.fn.selected = function (t) {
                return (
                    void 0 === t && (t = !0),
                        this.each(function () {
                            var n = this.type;
                            if ("checkbox" == n || "radio" == n) this.checked = t;
                            else if ("option" == this.tagName.toLowerCase()) {
                                var i = e(this).parent("select");
                                t && i[0] && "select-one" == i[0].type && i.find("option").selected(!1), (this.selected = t);
                            }
                        })
                );
            }),
            (e.fn.ajaxSubmit.debug = !1);
    }),
    (function () {
        "use strict";
        function e(e) {
            function t(t, i) {
                var o,
                    g,
                    v = t == window,
                    m = i && void 0 !== i.message ? i.message : void 0;
                if (((i = e.extend({}, e.blockUI.defaults, i || {})), !i.ignoreIfBlocked || !e(t).data("blockUI.isBlocked"))) {
                    if (
                        ((i.overlayCSS = e.extend({}, e.blockUI.defaults.overlayCSS, i.overlayCSS || {})),
                            (o = e.extend({}, e.blockUI.defaults.css, i.css || {})),
                        i.onOverlayClick && (i.overlayCSS.cursor = "pointer"),
                            (g = e.extend({}, e.blockUI.defaults.themedCSS, i.themedCSS || {})),
                            (m = void 0 === m ? i.message : m),
                        v && p && n(window, { fadeOut: 0 }),
                        m && "string" != typeof m && (m.parentNode || m.jquery))
                    ) {
                        var b = m.jquery ? m[0] : m,
                            x = {};
                        e(t).data("blockUI.history", x), (x.el = b), (x.parent = b.parentNode), (x.display = b.style.display), (x.position = b.style.position), x.parent && x.parent.removeChild(b);
                    }
                    e(t).data("blockUI.onUnblock", i.onUnblock);
                    var y,
                        w,
                        S,
                        k,
                        T = i.baseZ;
                    (y = e(
                        c || i.forceIframe
                            ? '<iframe class="blockUI" style="z-index:' + T++ + ';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="' + i.iframeSrc + '"></iframe>'
                            : '<div class="blockUI" style="display:none"></div>'
                    )),
                        (w = e(
                            i.theme
                                ? '<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:' + T++ + ';display:none"></div>'
                                : '<div class="blockUI blockOverlay" style="z-index:' + T++ + ';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'
                        )),
                        i.theme && v
                            ? ((k = '<div class="blockUI ' + i.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:' + (T + 10) + ';display:none;position:fixed">'),
                            i.title && (k += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">' + (i.title || "&nbsp;") + "</div>"),
                                (k += '<div class="ui-widget-content ui-dialog-content"></div>'),
                                (k += "</div>"))
                            : i.theme
                            ? ((k = '<div class="blockUI ' + i.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:' + (T + 10) + ';display:none;position:absolute">'),
                            i.title && (k += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">' + (i.title || "&nbsp;") + "</div>"),
                                (k += '<div class="ui-widget-content ui-dialog-content"></div>'),
                                (k += "</div>"))
                            : (k = v
                                ? '<div class="blockUI ' + i.blockMsgClass + ' blockPage" style="z-index:' + (T + 10) + ';display:none;position:fixed"></div>'
                                : '<div class="blockUI ' + i.blockMsgClass + ' blockElement" style="z-index:' + (T + 10) + ';display:none;position:absolute"></div>'),
                        (S = e(k)),
                    m && (i.theme ? (S.css(g), S.addClass("ui-widget-content")) : S.css(o)),
                    i.theme || w.css(i.overlayCSS),
                        w.css("position", v ? "fixed" : "absolute"),
                    (c || i.forceIframe) && y.css("opacity", 0);
                    var C = [y, w, S],
                        E = e(v ? "body" : t);
                    e.each(C, function () {
                        this.appendTo(E);
                    }),
                    i.theme && i.draggable && e.fn.draggable && S.draggable({ handle: ".ui-dialog-titlebar", cancel: "li" });
                    var I = f && (!e.support.boxModel || e("object,embed", v ? null : t).length > 0);
                    if (u || I) {
                        if ((v && i.allowBodyStretch && e.support.boxModel && e("html,body").css("height", "100%"), (u || !e.support.boxModel) && !v))
                            var M = l(t, "borderTopWidth"),
                                j = l(t, "borderLeftWidth"),
                                O = M ? "(0 - " + M + ")" : 0,
                                A = j ? "(0 - " + j + ")" : 0;
                        e.each(C, function (e, t) {
                            var n = t[0].style;
                            if (((n.position = "absolute"), 2 > e))
                                v
                                    ? n.setExpression("height", "Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:" + i.quirksmodeOffsetHack + ') + "px"')
                                    : n.setExpression("height", 'this.parentNode.offsetHeight + "px"'),
                                    v ? n.setExpression("width", 'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"') : n.setExpression("width", 'this.parentNode.offsetWidth + "px"'),
                                A && n.setExpression("left", A),
                                O && n.setExpression("top", O);
                            else if (i.centerY)
                                v &&
                                n.setExpression(
                                    "top",
                                    '(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'
                                ),
                                    (n.marginTop = 0);
                            else if (!i.centerY && v) {
                                var r = i.css && i.css.top ? parseInt(i.css.top, 10) : 0,
                                    o = "((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + " + r + ') + "px"';
                                n.setExpression("top", o);
                            }
                        });
                    }
                    if ((m && (i.theme ? S.find(".ui-widget-content").append(m) : S.append(m), (m.jquery || m.nodeType) && e(m).show()), (c || i.forceIframe) && i.showOverlay && y.show(), i.fadeIn)) {
                        var D = i.onBlock ? i.onBlock : d,
                            P = i.showOverlay && !m ? D : d,
                            U = m ? D : d;
                        i.showOverlay && w._fadeIn(i.fadeIn, P), m && S._fadeIn(i.fadeIn, U);
                    } else i.showOverlay && w.show(), m && S.show(), i.onBlock && i.onBlock();
                    if ((r(1, t, i), v ? ((p = S[0]), (h = e(i.focusableElements, p)), i.focusInput && setTimeout(a, 20)) : s(S[0], i.centerX, i.centerY), i.timeout)) {
                        var z = setTimeout(function () {
                            v ? e.unblockUI(i) : e(t).unblock(i);
                        }, i.timeout);
                        e(t).data("blockUI.timeout", z);
                    }
                }
            }
            function n(t, n) {
                var o,
                    a = t == window,
                    s = e(t),
                    l = s.data("blockUI.history"),
                    d = s.data("blockUI.timeout");
                d && (clearTimeout(d), s.removeData("blockUI.timeout")), (n = e.extend({}, e.blockUI.defaults, n || {})), r(0, t, n), null === n.onUnblock && ((n.onUnblock = s.data("blockUI.onUnblock")), s.removeData("blockUI.onUnblock"));
                var c;
                (c = a ? e("body").children().filter(".blockUI").add("body > .blockUI") : s.find(">.blockUI")),
                n.cursorReset && (c.length > 1 && (c[1].style.cursor = n.cursorReset), c.length > 2 && (c[2].style.cursor = n.cursorReset)),
                a && (p = h = null),
                    n.fadeOut
                        ? ((o = c.length),
                            c.stop().fadeOut(n.fadeOut, function () {
                                0 === --o && i(c, l, n, t);
                            }))
                        : i(c, l, n, t);
            }
            function i(t, n, i, r) {
                var o = e(r);
                if (!o.data("blockUI.isBlocked")) {
                    t.each(function (e, t) {
                        this.parentNode && this.parentNode.removeChild(this);
                    }),
                    n && n.el && ((n.el.style.display = n.display), (n.el.style.position = n.position), n.parent && n.parent.appendChild(n.el), o.removeData("blockUI.history")),
                    o.data("blockUI.static") && o.css("position", "static"),
                    "function" == typeof i.onUnblock && i.onUnblock(r, i);
                    var a = e(document.body),
                        s = a.width(),
                        l = a[0].style.width;
                    a.width(s - 1).width(s), (a[0].style.width = l);
                }
            }
            function r(t, n, i) {
                var r = n == window,
                    a = e(n);
                if ((t || ((!r || p) && (r || a.data("blockUI.isBlocked")))) && (a.data("blockUI.isBlocked", t), r && i.bindEvents && (!t || i.showOverlay))) {
                    var s = "mousedown mouseup keydown keypress keyup touchstart touchend touchmove";
                    t ? e(document).bind(s, i, o) : e(document).unbind(s, o);
                }
            }
            function o(t) {
                if ("keydown" === t.type && t.keyCode && 9 == t.keyCode && p && t.data.constrainTabKey) {
                    var n = h,
                        i = !t.shiftKey && t.target === n[n.length - 1],
                        r = t.shiftKey && t.target === n[0];
                    if (i || r)
                        return (
                            setTimeout(function () {
                                a(r);
                            }, 10),
                                !1
                        );
                }
                var o = t.data,
                    s = e(t.target);
                return s.hasClass("blockOverlay") && o.onOverlayClick && o.onOverlayClick(t), s.parents("div." + o.blockMsgClass).length > 0 ? !0 : 0 === s.parents().children().filter("div.blockUI").length;
            }
            function a(e) {
                if (h) {
                    var t = h[e === !0 ? h.length - 1 : 0];
                    t && t.focus();
                }
            }
            function s(e, t, n) {
                var i = e.parentNode,
                    r = e.style,
                    o = (i.offsetWidth - e.offsetWidth) / 2 - l(i, "borderLeftWidth"),
                    a = (i.offsetHeight - e.offsetHeight) / 2 - l(i, "borderTopWidth");
                t && (r.left = o > 0 ? o + "px" : "0"), n && (r.top = a > 0 ? a + "px" : "0");
            }
            function l(t, n) {
                return parseInt(e.css(t, n), 10) || 0;
            }
            e.fn._fadeIn = e.fn.fadeIn;
            var d = e.noop || function () {},
                c = /MSIE/.test(navigator.userAgent),
                u = /MSIE 6.0/.test(navigator.userAgent) && !/MSIE 8.0/.test(navigator.userAgent),
                f = (document.documentMode || 0, e.isFunction(document.createElement("div").style.setExpression));
            (e.blockUI = function (e) {
                t(window, e);
            }),
                (e.unblockUI = function (e) {
                    n(window, e);
                }),
                (e.growlUI = function (t, n, i, r) {
                    var o = e('<div class="growlUI"></div>');
                    t && o.append("<h1>" + t + "</h1>"), n && o.append("<h2>" + n + "</h2>"), void 0 === i && (i = 3e3);
                    var a = function (t) {
                        (t = t || {}),
                            e.blockUI({
                                message: o,
                                fadeIn: "undefined" != typeof t.fadeIn ? t.fadeIn : 700,
                                fadeOut: "undefined" != typeof t.fadeOut ? t.fadeOut : 1e3,
                                timeout: "undefined" != typeof t.timeout ? t.timeout : i,
                                centerY: !1,
                                showOverlay: !1,
                                onUnblock: r,
                                css: e.blockUI.defaults.growlCSS,
                            });
                    };
                    a();
                    o.css("opacity");
                    o.mouseover(function () {
                        a({ fadeIn: 0, timeout: 3e4 });
                        var t = e(".blockMsg");
                        t.stop(), t.fadeTo(300, 1);
                    }).mouseout(function () {
                        e(".blockMsg").fadeOut(1e3);
                    });
                }),
                (e.fn.block = function (n) {
                    if (this[0] === window) return e.blockUI(n), this;
                    var i = e.extend({}, e.blockUI.defaults, n || {});
                    return (
                        this.each(function () {
                            var t = e(this);
                            (i.ignoreIfBlocked && t.data("blockUI.isBlocked")) || t.unblock({ fadeOut: 0 });
                        }),
                            this.each(function () {
                                "static" == e.css(this, "position") && ((this.style.position = "relative"), e(this).data("blockUI.static", !0)), (this.style.zoom = 1), t(this, n);
                            })
                    );
                }),
                (e.fn.unblock = function (t) {
                    return this[0] === window
                        ? (e.unblockUI(t), this)
                        : this.each(function () {
                            n(this, t);
                        });
                }),
                (e.blockUI.version = 2.66),
                (e.blockUI.defaults = {
                    message: '<img src="img/loading.gif" />',
                    title: null,
                    draggable: !0,
                    theme: !1,
                    css: { padding: 0, margin: 0, left: "50%", textAlign: "center", color: "#fff", backgroundColor: "transparent", cursor: "wait", marginLeft: "-16px", marginTop: "-16px" },
                    themedCSS: { width: "30%", top: "40%", left: "35%" },
                    overlayCSS: { backgroundColor: "#000", opacity: 0.3, cursor: "wait" },
                    cursorReset: "default",
                    growlCSS: {
                        width: "350px",
                        top: "70px",
                        left: "",
                        right: "10px",
                        border: "1px solid #a5ce39",
                        padding: "5px",
                        opacity: 1,
                        cursor: "default",
                        color: "#fff",
                        backgroundColor: "#a5ce39",
                        background: "rgba(128, 176, 1, 0.7)",
                        "-webkit-border-radius": "10px",
                        "-moz-border-radius": "10px",
                        "border-radius": "10px",
                    },
                    iframeSrc: /^https/i.test(window.location.href || "") ? "javascript:false" : "about:blank",
                    forceIframe: !1,
                    baseZ: 1e5,
                    centerX: !0,
                    centerY: !0,
                    allowBodyStretch: !0,
                    bindEvents: !0,
                    constrainTabKey: !0,
                    fadeIn: 200,
                    fadeOut: 400,
                    timeout: 0,
                    showOverlay: !0,
                    focusInput: !0,
                    focusableElements: ":input:enabled:visible",
                    onBlock: null,
                    onUnblock: null,
                    onOverlayClick: null,
                    quirksmodeOffsetHack: 4,
                    blockMsgClass: "blockMsg",
                    ignoreIfBlocked: !1,
                });
            var p = null,
                h = [];
        }
        "function" == typeof define && define.amd && define.amd.jQuery ? define(["jquery"], e) : e(jQuery);
    })(),
    (function (e, t, n) {
        var i = "TEXTAREA",
            r = "function",
            o = "password",
            a = "maxLength",
            s = "type",
            l = "",
            d = !0,
            c = "placeholder",
            u = !1,
            f = "watermark",
            p = f,
            h = "watermarkClass",
            g = "watermarkFocus",
            v = "watermarkSubmit",
            m = "watermarkMaxLength",
            b = "watermarkPassword",
            x = "watermarkText",
            y = /\r/g,
            w = /^(button|checkbox|hidden|image|radio|range|reset|submit)$/i,
            S = "input:data(" + p + "),textarea:data(" + p + ")",
            k = ":watermarkable",
            T = ["Page_ClientValidate"],
            C = u,
            E = c in document.createElement("input");
        (e.watermark = e.watermark || {
            version: "3.1.4",
            runOnce: d,
            options: { className: f, useNative: d, hideBeforeUnload: d },
            hide: function (t) {
                e(t)
                    .filter(S)
                    .each(function () {
                        e.watermark._hide(e(this));
                    });
            },
            _hide: function (e, n) {
                var i,
                    r,
                    o = e[0],
                    d = (o.value || l).replace(y, l),
                    c = e.data(x) || l,
                    u = e.data(m) || 0,
                    f = e.data(h);
                c.length &&
                d == c &&
                ((o.value = l),
                e.data(b) && "text" === (e.attr(s) || l) && ((i = e.data(b) || []), (r = e.parent() || []), i.length && r.length && (r[0].removeChild(e[0]), r[0].appendChild(i[0]), (e = i))),
                u && (e.attr(a, u), e.removeData(m)),
                n &&
                (e.attr("autocomplete", "off"),
                    t.setTimeout(function () {
                        e.select();
                    }, 1))),
                f && e.removeClass(f);
            },
            show: function (t) {
                e(t)
                    .filter(S)
                    .each(function () {
                        e.watermark._show(e(this));
                    });
            },
            _show: function (t) {
                var n,
                    i,
                    r,
                    c = t[0],
                    u = (c.value || l).replace(y, l),
                    f = t.data(x) || l,
                    p = t.attr(s) || l,
                    v = t.data(h);
                (0 != u.length && u != f) || t.data(g)
                    ? e.watermark._hide(t)
                    : ((C = d),
                    t.data(b) && p === o && ((n = t.data(b) || []), (i = t.parent() || []), n.length && i.length && (i[0].removeChild(t[0]), i[0].appendChild(n[0]), (t = n), t.attr(a, f.length), (c = t[0]))),
                    ("text" === p || "search" === p) && ((r = t.attr(a) || 0), r > 0 && f.length > r && (t.data(m, r), t.attr(a, f.length))),
                    v && t.addClass(v),
                        (c.value = f));
            },
            hideAll: function () {
                C && (e.watermark.hide(k), (C = u));
            },
            showAll: function () {
                e.watermark.show(k);
            },
        }),
            (e.fn.watermark =
                e.fn.watermark ||
                function (n, f) {
                    var m = "string";
                    if (!this.length) return this;
                    var w = u,
                        S = typeof n == m;
                    return (
                        S && (n = n.replace(y, l)),
                            "object" == typeof f ? ((w = typeof f.className == m), (f = e.extend({}, e.watermark.options, f))) : typeof f == m ? ((w = d), (f = e.extend({}, e.watermark.options, { className: f }))) : (f = e.watermark.options),
                        typeof f.useNative != r &&
                        (f.useNative = f.useNative
                            ? function () {
                                return d;
                            }
                            : function () {
                                return u;
                            }),
                            this.each(function () {
                                var r,
                                    u,
                                    m,
                                    T,
                                    C = "dragleave",
                                    I = "dragenter",
                                    M = this,
                                    j = e(M);
                                if (j.is(k)) {
                                    if (j.data(p)) (S || w) && (e.watermark._hide(j), S && j.data(x, n), w && j.data(h, f.className));
                                    else {
                                        if (E && f.useNative.call(M, j) && (j.attr("tagName") || l) !== i) return void (S && j.attr(c, n));
                                        j.data(x, S ? n : l),
                                            j.data(h, f.className),
                                            j.data(p, 1),
                                            (j.attr(s) || l) === o
                                                ? ((r = j.wrap("<span>").parent()),
                                                    (u = e(r.html().replace(/type=["']?password["']?/i, 'type="text"'))),
                                                    u.data(x, j.data(x)),
                                                    u.data(h, j.data(h)),
                                                    u.data(p, 1),
                                                    u.attr(a, n.length),
                                                    u
                                                        .focus(function () {
                                                            e.watermark._hide(u, d);
                                                        })
                                                        .bind(I, function () {
                                                            e.watermark._hide(u);
                                                        })
                                                        .bind("dragend", function () {
                                                            t.setTimeout(function () {
                                                                u.blur();
                                                            }, 1);
                                                        }),
                                                    j
                                                        .blur(function () {
                                                            e.watermark._show(j);
                                                        })
                                                        .bind(C, function () {
                                                            e.watermark._show(j);
                                                        }),
                                                    u.data(b, j),
                                                    j.data(b, u))
                                                : j
                                                    .focus(function () {
                                                        j.data(g, 1), e.watermark._hide(j, d);
                                                    })
                                                    .blur(function () {
                                                        j.data(g, 0), e.watermark._show(j);
                                                    })
                                                    .bind(I, function () {
                                                        e.watermark._hide(j);
                                                    })
                                                    .bind(C, function () {
                                                        e.watermark._show(j);
                                                    })
                                                    .bind("dragend", function () {
                                                        t.setTimeout(function () {
                                                            e.watermark._show(j);
                                                        }, 1);
                                                    })
                                                    .bind("drop", function (e) {
                                                        var t = j[0],
                                                            n = e.originalEvent.dataTransfer.getData("Text");
                                                        (t.value || l).replace(y, l).replace(n, l) === j.data(x) && (t.value = n), j.focus();
                                                    }),
                                        M.form &&
                                        ((m = M.form),
                                            (T = e(m)),
                                        T.data(v) ||
                                        (T.submit(e.watermark.hideAll),
                                            m.submit
                                                ? (T.data(v, m.submit),
                                                    (m.submit = (function (t, n) {
                                                        return function () {
                                                            var i = n.data(v);
                                                            e.watermark.hideAll(), i.apply ? i.apply(t, Array.prototype.slice.call(arguments)) : i();
                                                        };
                                                    })(m, T)))
                                                : (T.data(v, 1),
                                                    (m.submit = (function (t) {
                                                        return function () {
                                                            e.watermark.hideAll(), delete t.submit, t.submit();
                                                        };
                                                    })(m)))));
                                    }
                                    e.watermark._show(j);
                                }
                            })
                    );
                }),
        e.watermark.runOnce &&
        ((e.watermark.runOnce = u),
            e.extend(e.expr[":"], {
                data: e.expr.createPseudo
                    ? e.expr.createPseudo(function (t) {
                        return function (n) {
                            return !!e.data(n, t);
                        };
                    })
                    : function (t, n, i) {
                        return !!e.data(t, i[3]);
                    },
                watermarkable: function (e) {
                    var t,
                        n = e.nodeName;
                    return n === i ? d : "INPUT" !== n ? u : ((t = e.getAttribute(s)), !t || !w.test(t));
                },
            }),
            (function (t) {
                e.fn.val = function () {
                    var i,
                        r = this,
                        o = Array.prototype.slice.call(arguments);
                    return r.length ? (o.length ? (t.apply(r, o), e.watermark.show(r), r) : r.data(p) ? ((i = (r[0].value || l).replace(y, l)), i === (r.data(x) || l) ? l : i) : t.apply(r)) : o.length ? r : n;
                };
            })(e.fn.val),
        T.length &&
        e(function () {
            for (var n, i, o = T.length - 1; o >= 0; o--)
                (n = T[o]),
                    (i = t[n]),
                typeof i == r &&
                (t[n] = (function (t) {
                    return function () {
                        return e.watermark.hideAll(), t.apply(null, Array.prototype.slice.call(arguments));
                    };
                })(i));
        }),
            e(t).bind("beforeunload", function () {
                e.watermark.options.hideBeforeUnload && e.watermark.hideAll();
            }));
    })(jQuery, window),
    (function (e) {
        e.fn.regexMask = function (t) {
            if (!t) throw "mandatory mask argument missing";
            if ("float-ptbr" == t) t = /^((\d{1,3}(\.\d{3})*(((\.\d{0,2}))|((\,\d*)?)))|(\d+(\,\d*)?))$/;
            else if ("float-enus" == t) t = /^((\d{1,3}(\,\d{3})*(((\,\d{0,2}))|((\.\d*)?)))|(\d+(\.\d*)?))$/;
            else if ("float" == t) t = /^((\d+(\.\d*)?))$/;
            else if ("int" == t) t = /^(\d+)$/;
            else
                try {
                    t.test("");
                } catch (n) {
                    throw "mask regex need to support test method";
                }
            e(this).keypress(function (e) {
                if (!e.charCode) return !0;
                var n = this.value.substring(0, this.selectionStart),
                    i = this.value.substring(this.selectionEnd, this.value.length);
                return t.test(n + String.fromCharCode(e.charCode) + i) ? void 0 : !1;
            });
        };
    })(jQuery),
    (function (e) {
        var t = { vertical: { x: !1, y: !0 }, horizontal: { x: !0, y: !1 }, both: { x: !0, y: !0 }, x: { x: !0, y: !1 }, y: { x: !1, y: !0 } },
            n = { duration: "fast", direction: "both" },
            i = /^(?:html)$/i,
            r = function (t, n) {
                n = n || (document.defaultView && document.defaultView.getComputedStyle ? document.defaultView.getComputedStyle(t, null) : t.currentStyle);
                var i = document.defaultView && document.defaultView.getComputedStyle ? !0 : !1,
                    r = {
                        top: parseFloat(i ? n.borderTopWidth : e.css(t, "borderTopWidth")) || 0,
                        left: parseFloat(i ? n.borderLeftWidth : e.css(t, "borderLeftWidth")) || 0,
                        bottom: parseFloat(i ? n.borderBottomWidth : e.css(t, "borderBottomWidth")) || 0,
                        right: parseFloat(i ? n.borderRightWidth : e.css(t, "borderRightWidth")) || 0,
                    };
                return { top: r.top, left: r.left, bottom: r.bottom, right: r.right, vertical: r.top + r.bottom, horizontal: r.left + r.right };
            },
            o = function (t) {
                var n = e(window),
                    o = i.test(t[0].nodeName);
                return {
                    border: o ? { top: 0, left: 0, bottom: 0, right: 0 } : r(t[0]),
                    scroll: { top: (o ? n : t).scrollTop(), left: (o ? n : t).scrollLeft() },
                    scrollbar: { right: o ? 0 : t.innerWidth() - t[0].clientWidth, bottom: o ? 0 : t.innerHeight() - t[0].clientHeight },
                    rect: (function () {
                        var e = t[0].getBoundingClientRect();
                        return { top: o ? 0 : e.top, left: o ? 0 : e.left, bottom: o ? t[0].clientHeight : e.bottom, right: o ? t[0].clientWidth : e.right };
                    })(),
                };
            };
        e.fn.extend({
            scrollintoview: function (r) {
                (r = e.extend({}, n, r)), (r.direction = t["string" == typeof r.direction && r.direction.toLowerCase()] || t.both);
                var a = "";
                r.direction.x === !0 && (a = "horizontal"), r.direction.y === !0 && (a = a ? "both" : "vertical");
                var s = this.eq(0),
                    l = s.closest(":scrollable(" + a + ")");
                if (l.length > 0) {
                    l = l.eq(0);
                    var d = { e: o(s), s: o(l) },
                        c = {
                            top: d.e.rect.top - (d.s.rect.top + d.s.border.top),
                            bottom: d.s.rect.bottom - d.s.border.bottom - d.s.scrollbar.bottom - d.e.rect.bottom,
                            left: d.e.rect.left - (d.s.rect.left + d.s.border.left),
                            right: d.s.rect.right - d.s.border.right - d.s.scrollbar.right - d.e.rect.right,
                        },
                        u = {};
                    r.direction.y === !0 && (c.top < 0 ? (u.scrollTop = d.s.scroll.top + c.top) : c.top > 0 && c.bottom < 0 && (u.scrollTop = d.s.scroll.top + Math.min(c.top, -c.bottom))),
                    r.direction.x === !0 && (c.left < 0 ? (u.scrollLeft = d.s.scroll.left + c.left) : c.left > 0 && c.right < 0 && (u.scrollLeft = d.s.scroll.left + Math.min(c.left, -c.right))),
                        e.isEmptyObject(u)
                            ? e.isFunction(r.complete) && r.complete.call(l[0])
                            : (i.test(l[0].nodeName) && (l = e("html,body")),
                                l
                                    .animate(u, r.duration)
                                    .eq(0)
                                    .queue(function (t) {
                                        e.isFunction(r.complete) && r.complete.call(l[0]), t();
                                    }));
                } else e.isFunction(r.complete) && r.complete.call(null);
                return this;
            },
        });
        var a = { auto: !0, scroll: !0, visible: !1, hidden: !1 };
        e.extend(e.expr[":"], {
            scrollable: function (e, n, r, o) {
                var s = t["string" == typeof r[3] && r[3].toLowerCase()] || t.both,
                    l = document.defaultView && document.defaultView.getComputedStyle ? document.defaultView.getComputedStyle(e, null) : e.currentStyle,
                    d = { x: a[l.overflowX.toLowerCase()] || !1, y: a[l.overflowY.toLowerCase()] || !1, isRoot: i.test(e.nodeName) };
                if (!d.x && !d.y && !d.isRoot) return !1;
                var c = {
                    height: { scroll: e.scrollHeight, client: e.clientHeight },
                    width: { scroll: e.scrollWidth, client: e.clientWidth },
                    scrollableX: function () {
                        return (d.x || d.isRoot) && this.width.scroll > this.width.client;
                    },
                    scrollableY: function () {
                        return (d.y || d.isRoot) && this.height.scroll > this.height.client;
                    },
                };
                return (s.y && c.scrollableY()) || (s.x && c.scrollableX());
            },
        });
    })(jQuery),
    (function (e) {
        e.fn.invalid = function () {
            if (this) {
                var t = e(this),
                    n = t;
                return (
                    "dropdownlist" == t.data("role") && (n = t.closest("span").find(".k-dropdown-wrap")),
                        n.scrollintoview({
                            duration: 500,
                            direction: "both",
                            complete: function () {
                                n.css("background-color", "#FF0000"),
                                    n.stop().animate({ backgroundColor: "#FFFFFF" }, 1e3, function () {
                                        n.css("background-color", "");
                                    });
                            },
                        }),
                        this
                );
            }
        };
    })(jQuery);
var makeRequest = function (e) {
    var t = $.extend(
        {
            url: "",
            method: "POST",
            dataType: "json",
            data: { response: "json" },
            onSuccess: function (e, t) {},
            onError: function (e, t) {
                return !0;
            },
            wrapper: "#main-content-wrapper",
            loading: "img/loading.gif",
            showSuccess: !1,
            SuccessMessage: "",
        },
        e,
        !0
        ),
        n = "" !== t.wrapper ? $(t.wrapper) : null;
    return (
        null !== n && n.block({ message: '<img src="' + t.loading + '" />' }),
            $.post(
                t.url,
                t.data,
                function (e) {
                    if ((null !== n && n.unblock(), 0 != t.onSuccess(e, "OK")))
                        if (e.reload) {
                            var i = "GET";
                            e.method && (i = "POST");
                            var r = $('<form method="' + i + '" action="' + e.url + '" />');
                            $.each(e.reload, function (e, t) {
                                r.append('<input type="hidden" name="' + t.key + '" value="' + t.value + '" />');
                            }),
                                null !== n ? n.append(r) : $("body").append(r),
                                r.submit();
                        } else t.showSuccess && Message("info", "Ok", t.SuccessMessage);
                },
                t.dataType
            ).error(function (e, i, r) {
                null !== n && n.unblock();
                var o = AjaxErrorHandler(e, i, r);
                if (0 != t.onError(o, r)) return o.invalids ? void $("#" + o.invalids[0]).invalid() : void Message(o.type, o.title, o.error);
            }),
            !0
    );
};
!(function (e) {
    e.fn.myForm = function (t) {
        var n = e.extend(
            {
                data: { response: "json" },
                onSuccess: function (e, t) {},
                onError: function (e, t) {
                    return !0;
                },
                beforeSubmit: function (e, t, n) {
                    return !0;
                },
                uploadProgress: function (e, t, n, i) {},
                wrapper: "",
                showSuccess: !1,
                SuccessMessage: "saved",
            },
            t
            ),
            i = (e(this), e(n.wrapper)),
            r = {
                data: n.data,
                dataType: "json",
                clearForm: !1,
                resetForm: !1,
                beforeSerialize: function () {},
                beforeSubmit: function (e, t, r) {
                    return n.beforeSubmit(e, t, r) === !1 ? !1 : (i.block({ message: '<img src="img/loading.gif" />' }), !0);
                },
                success: function (t, r) {
                    if ((i.unblock(), 0 != n.onSuccess(t, r)))
                        if (t.reload) {
                            var o = "GET";
                            t.method && (o = "POST");
                            var a = e('<form method="' + o + '" action="' + t.url + '" />');
                            e.each(t.reload, function (e, t) {
                                a.append('<input type="hidden" name="' + t.key + '" value="' + t.value + '" />');
                            }),
                                e(n.wrapper).append(a),
                                a.submit();
                        } else n.showSuccess && Message("info", "Ok", n.SuccessMessage);
                },
                error: function (t, r, o) {
                    i.unblock();
                    var a = AjaxErrorHandler(t, r, o);
                    if (0 != n.onError(a, o)) return a.invalids ? void e("#" + a.invalids[0]).invalid() : void Message(a.type, a.title, a.error);
                },
                uploadProgress: function (e, t, n, i) {},
            };
        return e(this).ajaxForm(r), this;
    };
})(jQuery),
    (function () {
        $.post("hy/helper/rates.html", { response: "json" }, function (e) {}, "json");
    })();
