if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}e.fn.emulateTransitionEnd=function(t){var i=!1,a=this;e(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||e(a).trigger(e.support.transition.end)};return setTimeout(s,t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new a(this)),"string"==typeof t&&s[t].call(i)})}var i='[data-dismiss="alert"]',a=function(t){e(t).on("click",i,this.close)};a.VERSION="3.3.7",a.TRANSITION_DURATION=150,a.prototype.close=function(t){function i(){o.detach().trigger("closed.bs.alert").remove()}var s=e(this),n=s.attr("data-target");n||(n=s.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,""));var o=e("#"===n?[]:n);t&&t.preventDefault(),o.length||(o=s.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(a.TRANSITION_DURATION):i())};var s=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=a,e.fn.alert.noConflict=function(){return e.fn.alert=s,this},e(document).on("click.bs.alert.data-api",i,a.prototype.close)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var a=e(this),s=a.data("bs.button"),n="object"==typeof t&&t;s||a.data("bs.button",s=new i(this,n)),"toggle"==t?s.toggle():t&&s.setState(t)})}var i=function(t,a){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,a),this.isLoading=!1};i.VERSION="3.3.7",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var i="disabled",a=this.$element,s=a.is("input")?"val":"html",n=a.data();t+="Text",null==n.resetText&&a.data("resetText",a[s]()),setTimeout(e.proxy(function(){a[s](null==n[t]?this.options[t]:n[t]),"loadingText"==t?(this.isLoading=!0,a.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,a.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},i.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),e&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var a=e.fn.button;e.fn.button=t,e.fn.button.Constructor=i,e.fn.button.noConflict=function(){return e.fn.button=a,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var a=e(i.target).closest(".btn");t.call(a,"toggle"),e(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),a.is("input,button")?a.trigger("focus"):a.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var a=e(this),s=a.data("bs.carousel"),n=e.extend({},i.DEFAULTS,a.data(),"object"==typeof t&&t),o="string"==typeof t?t:n.slide;s||a.data("bs.carousel",s=new i(this,n)),"number"==typeof t?s.to(t):o?s[o]():n.interval&&s.pause().cycle()})}var i=function(t,i){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},i.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},i.prototype.getItemForDirection=function(e,t){var i=this.getItemIndex(t),a="prev"==e&&0===i||"next"==e&&i==this.$items.length-1;if(a&&!this.options.wrap)return t;var s="prev"==e?-1:1,n=(i+s)%this.$items.length;return this.$items.eq(n)},i.prototype.to=function(e){var t=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):i==e?this.pause().cycle():this.slide(e>i?"next":"prev",this.$items.eq(e))},i.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(t,a){var s=this.$element.find(".item.active"),n=a||this.getItemForDirection(t,s),o=this.interval,r="next"==t?"left":"right",l=this;if(n.hasClass("active"))return this.sliding=!1;var d=n[0],c=e.Event("slide.bs.carousel",{relatedTarget:d,direction:r});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var p=e(this.$indicators.children()[this.getItemIndex(n)]);p&&p.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:d,direction:r});return e.support.transition&&this.$element.hasClass("slide")?(n.addClass(t),n[0].offsetWidth,s.addClass(r),n.addClass(r),s.one("bsTransitionEnd",function(){n.removeClass([t,r].join(" ")).addClass("active"),s.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(s.removeClass("active"),n.addClass("active"),this.sliding=!1,this.$element.trigger(h)),o&&this.cycle(),this}};var a=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=i,e.fn.carousel.noConflict=function(){return e.fn.carousel=a,this};var s=function(i){var a,s=e(this),n=e(s.attr("data-target")||(a=s.attr("href"))&&a.replace(/.*(?=#[^\s]+$)/,""));if(n.hasClass("carousel")){var o=e.extend({},n.data(),s.data()),r=s.attr("data-slide-to");r&&(o.interval=!1),t.call(n,o),r&&n.data("bs.carousel").to(r),i.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var i=e(this);t.call(i,i.data())})})}(jQuery),+function(e){"use strict";function t(t){var i,a=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return e(a)}function i(t){return this.each(function(){var i=e(this),s=i.data("bs.collapse"),n=e.extend({},a.DEFAULTS,i.data(),"object"==typeof t&&t);!s&&n.toggle&&/show|hide/.test(t)&&(n.toggle=!1),s||i.data("bs.collapse",s=new a(this,n)),"string"==typeof t&&s[t]()})}var a=function(t,i){this.$element=e(t),this.options=e.extend({},a.DEFAULTS,i),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};a.VERSION="3.3.7",a.TRANSITION_DURATION=350,a.DEFAULTS={toggle:!0},a.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},a.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(t=s.data("bs.collapse"),t&&t.transitioning))){var n=e.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){s&&s.length&&(i.call(s,"hide"),t||s.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return r.call(this);var l=e.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(a.TRANSITION_DURATION)[o](this.$element[0][l])}}}},a.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[i](0).one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(a.TRANSITION_DURATION):s.call(this)}}},a.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},a.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(i,a){var s=e(a);this.addAriaAndCollapsedClass(t(s),s)},this)).end()},a.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=e.fn.collapse;e.fn.collapse=i,e.fn.collapse.Constructor=a,e.fn.collapse.noConflict=function(){return e.fn.collapse=s,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(a){var s=e(this);s.attr("data-target")||a.preventDefault();var n=t(s),o=n.data("bs.collapse"),r=o?"toggle":s.data();i.call(n,r)})}(jQuery),+function(e){"use strict";function t(t){var i=t.attr("data-target");i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var a=i&&e(i);return a&&a.length?a:t.parent()}function i(i){i&&3===i.which||(e(s).remove(),e(n).each(function(){var a=e(this),s=t(a),n={relatedTarget:this};s.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&e.contains(s[0],i.target)||(s.trigger(i=e.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(a.attr("aria-expanded","false"),s.removeClass("open").trigger(e.Event("hidden.bs.dropdown",n)))))}))}function a(t){return this.each(function(){var i=e(this),a=i.data("bs.dropdown");a||i.data("bs.dropdown",a=new o(this)),"string"==typeof t&&a[t].call(i)})}var s=".dropdown-backdrop",n='[data-toggle="dropdown"]',o=function(t){e(t).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.7",o.prototype.toggle=function(a){var s=e(this);if(!s.is(".disabled, :disabled")){var n=t(s),o=n.hasClass("open");if(i(),!o){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",i);var r={relatedTarget:this};if(n.trigger(a=e.Event("show.bs.dropdown",r)),a.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(e.Event("shown.bs.dropdown",r))}return!1}},o.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var a=e(this);if(i.preventDefault(),i.stopPropagation(),!a.is(".disabled, :disabled")){var s=t(a),o=s.hasClass("open");if(!o&&27!=i.which||o&&27==i.which)return 27==i.which&&s.find(n).trigger("focus"),a.trigger("click");var r=" li:not(.disabled):visible a",l=s.find(".dropdown-menu"+r);if(l.length){var d=l.index(i.target);38==i.which&&d>0&&d--,40==i.which&&ddocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(t,i,a){if(this.enabled=!0,this.type=t,this.$element=e(i),this.options=this.getOptions(a),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var s=this.options.trigger.split(" "),n=s.length;n--;){var o=s[n];if("click"==o)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=o){var r="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},i.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&e.each(this._options,function(e,a){i[e]!=a&&(t[e]=a)}),t},i.prototype.enter=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},i.prototype.leave=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var a=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!a)return;var s=this,n=this.tip(),o=this.getUID(this.type);this.setContent(),n.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&n.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,d=l.test(r);d&&(r=r.replace(l,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),p=n[0].offsetWidth,h=n[0].offsetHeight;if(d){var u=r,f=this.getPosition(this.$viewport);r="bottom"==r&&c.bottom+h>f.bottom?"top":"top"==r&&c.top-hf.width?"left":"left"==r&&c.left-po.top+o.height&&(s.top=o.top+o.height-l)}else{var d=t.left-n,c=t.left+n+i;do.right&&(s.left=o.left+o.width-c)}return s},i.prototype.getTitle=function(){var e,t=this.$element,i=this.options;return e=t.attr("data-original-title")||("function"==typeof i.title?i.title.call(t[0]):i.title)},i.prototype.getUID=function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e));return e},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(t){var i=this;t&&(i=e(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i))),t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var a=e.fn.tooltip;e.fn.tooltip=t,e.fn.tooltip.Constructor=i,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=a,this}}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var a=e(this),s=a.data("bs.popover"),n="object"==typeof t&&t;!s&&/destroy|hide/.test(t)||(s||a.data("bs.popover",s=new i(this,n)),"string"==typeof t&&s[t]())})}var i=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.7",i.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),i.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),i=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var a=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=i,e.fn.popover.noConflict=function(){return e.fn.popover=a,this}}(jQuery),+function(e){"use strict";function t(i,a){this.$body=e(document.body),this.$scrollElement=e(e(i).is(document.body)?window:i),this.options=e.extend({},t.DEFAULTS,a),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var a=e(this),s=a.data("bs.scrollspy"),n="object"==typeof i&&i;s||a.data("bs.scrollspy",s=new t(this,n)),"string"==typeof i&&s[i]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,i="offset",a=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(i="position",a=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),s=t.data("target")||t.attr("href"),n=/^#./.test(s)&&e(s);return n&&n.length&&n.is(":visible")&&[[n[i]().top+a,s]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),a=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,n=this.targets,o=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),t>=a)return o!=(e=n[n.length-1])&&this.activate(e);if(o&&t=s[e]&&(void 0===s[e+1]||t .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}var o=a.find("> .active"),r=s&&e.support.transition&&(o.length&&o.hasClass("fade")||!!a.find("> .fade").length);o.length&&r?o.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n(),o.removeClass("in")};var a=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=i,e.fn.tab.noConflict=function(){return e.fn.tab=a,this};var s=function(i){i.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var a=e(this),s=a.data("bs.affix"),n="object"==typeof t&&t;s||a.data("bs.affix",s=new i(this,n)),"string"==typeof t&&s[t]()})}var i=function(t,a){this.options=e.extend({},i.DEFAULTS,a),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.7",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(e,t,i,a){var s=this.$target.scrollTop(),n=this.$element.offset(),o=this.$target.height();if(null!=i&&"top"==this.affixed)return s=e-a&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},i.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),a=this.options.offset,s=a.top,n=a.bottom,o=Math.max(e(document).height(),e(document.body).height());"object"!=typeof a&&(n=s=a),"function"==typeof s&&(s=a.top(this.$element)),"function"==typeof n&&(n=a.bottom(this.$element));var r=this.getState(o,t,s,n);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var l="affix"+(r?"-"+r:""),d=e.Event(l+".bs.affix");if(this.$element.trigger(d),d.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:o-t-n})}};var a=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=i,e.fn.affix.noConflict=function(){return e.fn.affix=a,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var i=e(this),a=i.data();a.offset=a.offset||{},null!=a.offsetBottom&&(a.offset.bottom=a.offsetBottom),null!=a.offsetTop&&(a.offset.top=a.offsetTop),t.call(i,a)})})}(jQuery),function(){"use strict";function e(e){e.fn.swiper=function(t){var a;return e(this).each(function(){var e=new i(this,t);a||(a=e)}),a}}var t,i=function(e,a){function s(e){return Math.floor(e)}function n(){var e=x.params.autoplay,t=x.slides.eq(x.activeIndex);t.attr("data-swiper-autoplay")&&(e=t.attr("data-swiper-autoplay")||x.params.autoplay),x.autoplayTimeoutId=setTimeout(function(){x.params.loop?(x.fixLoop(),x._slideNext(),x.emit("onAutoplay",x)):x.isEnd?a.autoplayStopOnLast?x.stopAutoplay():(x._slideTo(0),x.emit("onAutoplay",x)):(x._slideNext(),x.emit("onAutoplay",x))},e)}function o(e,i){var a=t(e.target);if(!a.is(i))if("string"==typeof i)a=a.parents(i);else if(i.nodeType){var s;return a.parents().each(function(e,t){t===i&&(s=i)}),s?i:void 0}if(0!==a.length)return a[0]}function r(e,t){t=t||{};var i=window.MutationObserver||window.WebkitMutationObserver,a=new i(function(e){e.forEach(function(e){x.onResize(!0),x.emit("onObserverUpdate",x,e)})});a.observe(e,{attributes:"undefined"==typeof t.attributes||t.attributes,childList:"undefined"==typeof t.childList||t.childList,characterData:"undefined"==typeof t.characterData||t.characterData}),x.observers.push(a)}function l(e){e.originalEvent&&(e=e.originalEvent);var t=e.keyCode||e.charCode;if(!x.params.allowSwipeToNext&&(x.isHorizontal()&&39===t||!x.isHorizontal()&&40===t))return!1;if(!x.params.allowSwipeToPrev&&(x.isHorizontal()&&37===t||!x.isHorizontal()&&38===t))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===t||39===t||38===t||40===t){var i=!1;if(x.container.parents("."+x.params.slideClass).length>0&&0===x.container.parents("."+x.params.slideActiveClass).length)return;var a={left:window.pageXOffset,top:window.pageYOffset},s=window.innerWidth,n=window.innerHeight,o=x.container.offset();x.rtl&&(o.left=o.left-x.container[0].scrollLeft);for(var r=[[o.left,o.top],[o.left+x.width,o.top],[o.left,o.top+x.height],[o.left+x.width,o.top+x.height]],l=0;l=a.left&&d[0]<=a.left+s&&d[1]>=a.top&&d[1]<=a.top+n&&(i=!0)}if(!i)return}x.isHorizontal()?(37!==t&&39!==t||(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===t&&!x.rtl||37===t&&x.rtl)&&x.slideNext(),(37===t&&!x.rtl||39===t&&x.rtl)&&x.slidePrev()):(38!==t&&40!==t||(e.preventDefault?e.preventDefault():e.returnValue=!1),40===t&&x.slideNext(),38===t&&x.slidePrev()),x.emit("onKeyPress",x,t)}}function d(){var e="onwheel",t=e in document;if(!t){var i=document.createElement("div");i.setAttribute(e,"return;"),t="function"==typeof i[e]}return!t&&document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0&&(t=document.implementation.hasFeature("Events.wheel","3.0")),t}function c(e){var t=10,i=40,a=800,s=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(s=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(s=n,n=0),o=s*t,r=n*t,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1===e.deltaMode?(o*=i,r*=i):(o*=a,r*=a)),o&&!s&&(s=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:s,spinY:n,pixelX:o,pixelY:r}}function p(e){e.originalEvent&&(e=e.originalEvent);var t=0,i=x.rtl?-1:1,a=c(e);if(x.params.mousewheelForceToAxis)if(x.isHorizontal()){if(!(Math.abs(a.pixelX)>Math.abs(a.pixelY)))return;t=a.pixelX*i}else{if(!(Math.abs(a.pixelY)>Math.abs(a.pixelX)))return;t=a.pixelY}else t=Math.abs(a.pixelX)>Math.abs(a.pixelY)?-a.pixelX*i:-a.pixelY;if(0!==t){if(x.params.mousewheelInvert&&(t=-t),x.params.freeMode){var s=x.getWrapperTranslate()+t*x.params.mousewheelSensitivity,n=x.isBeginning,o=x.isEnd;if(s>=x.minTranslate()&&(s=x.minTranslate()),s<=x.maxTranslate()&&(s=x.maxTranslate()),x.setWrapperTransition(0),x.setWrapperTranslate(s),x.updateProgress(),x.updateActiveIndex(),(!n&&x.isBeginning||!o&&x.isEnd)&&x.updateClasses(),x.params.freeModeSticky?(clearTimeout(x.mousewheel.timeout),x.mousewheel.timeout=setTimeout(function(){x.slideReset()},300)):x.params.lazyLoading&&x.lazy&&x.lazy.load(),x.emit("onScroll",x,e),x.params.autoplay&&x.params.autoplayDisableOnInteraction&&x.stopAutoplay(),0===s||s===x.maxTranslate())return}else{if((new window.Date).getTime()-x.mousewheel.lastScrollTime>60)if(t<0)if(x.isEnd&&!x.params.loop||x.animating){if(x.params.mousewheelReleaseOnEdges)return!0}else x.slideNext(),x.emit("onScroll",x,e);else if(x.isBeginning&&!x.params.loop||x.animating){if(x.params.mousewheelReleaseOnEdges)return!0}else x.slidePrev(),x.emit("onScroll",x,e);x.mousewheel.lastScrollTime=(new window.Date).getTime()}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function h(e,i){e=t(e);var a,s,n,o=x.rtl?-1:1;a=e.attr("data-swiper-parallax")||"0",s=e.attr("data-swiper-parallax-x"),n=e.attr("data-swiper-parallax-y"),s||n?(s=s||"0",n=n||"0"):x.isHorizontal()?(s=a,n="0"):(n=a,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*i*o+"%":s*i*o+"px",n=n.indexOf("%")>=0?parseInt(n,10)*i+"%":n*i+"px",e.transform("translate3d("+s+", "+n+",0px)")}function u(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof i))return new i(e,a);var f={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,zoom:!1,zoomMax:3,zoomMin:1,zoomToggle:!0,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,mousewheelEventsTarged:"container",hashnav:!1,hashnavWatchState:!1,history:!1,replaceState:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",normalizeSlideIndex:!0,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",paginationClickableClass:"swiper-pagination-clickable",paginationModifierClass:"swiper-pagination-",lazyLoadingClass:"swiper-lazy",lazyStatusLoadingClass:"swiper-lazy-loading",lazyStatusLoadedClass:"swiper-lazy-loaded",lazyPreloaderClass:"swiper-lazy-preloader",notificationClass:"swiper-notification",preloaderClass:"preloader",zoomContainerClass:"swiper-zoom-container",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},m=a&&a.virtualTranslate;a=a||{};var g={};for(var v in a)if("object"!=typeof a[v]||null===a[v]||(a[v].nodeType||a[v]===window||a[v]===document||"undefined"!=typeof Dom7&&a[v]instanceof Dom7||"undefined"!=typeof jQuery&&a[v]instanceof jQuery))g[v]=a[v];else{g[v]={};for(var b in a[v])g[v][b]=a[v][b]}for(var w in f)if("undefined"==typeof a[w])a[w]=f[w];else if("object"==typeof a[w])for(var y in f[w])"undefined"==typeof a[w][y]&&(a[w][y]=f[w][y]);var x=this;if(x.params=a,x.originalParams=g,x.classNames=[],"undefined"!=typeof t&&"undefined"!=typeof Dom7&&(t=Dom7),("undefined"!=typeof t||(t="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7))&&(x.$=t,x.currentBreakpoint=void 0,x.getActiveBreakpoint=function(){if(!x.params.breakpoints)return!1;var e,t=!1,i=[];for(e in x.params.breakpoints)x.params.breakpoints.hasOwnProperty(e)&&i.push(e);i.sort(function(e,t){return parseInt(e,10)>parseInt(t,10)});for(var a=0;a=window.innerWidth&&!t&&(t=e);return t||"max"},x.setBreakpoint=function(){var e=x.getActiveBreakpoint();if(e&&x.currentBreakpoint!==e){var t=e in x.params.breakpoints?x.params.breakpoints[e]:x.originalParams,i=x.params.loop&&t.slidesPerView!==x.params.slidesPerView;for(var a in t)x.params[a]=t[a];x.currentBreakpoint=e,i&&x.destroyLoop&&x.reLoop(!0)}},x.params.breakpoints&&x.setBreakpoint(),x.container=t(e),0!==x.container.length)){if(x.container.length>1){var C=[];return x.container.each(function(){C.push(new i(this,a))}),C}x.container[0].swiper=x,x.container.data("swiper",x),x.classNames.push(x.params.containerModifierClass+x.params.direction),x.params.freeMode&&x.classNames.push(x.params.containerModifierClass+"free-mode"),x.support.flexbox||(x.classNames.push(x.params.containerModifierClass+"no-flexbox"),x.params.slidesPerColumn=1),x.params.autoHeight&&x.classNames.push(x.params.containerModifierClass+"autoheight"),(x.params.parallax||x.params.watchSlidesVisibility)&&(x.params.watchSlidesProgress=!0),x.params.touchReleaseOnEdges&&(x.params.resistanceRatio=0),["cube","coverflow","flip"].indexOf(x.params.effect)>=0&&(x.support.transforms3d?(x.params.watchSlidesProgress=!0,x.classNames.push(x.params.containerModifierClass+"3d")):x.params.effect="slide"),"slide"!==x.params.effect&&x.classNames.push(x.params.containerModifierClass+x.params.effect),"cube"===x.params.effect&&(x.params.resistanceRatio=0,x.params.slidesPerView=1,x.params.slidesPerColumn=1,x.params.slidesPerGroup=1,x.params.centeredSlides=!1,x.params.spaceBetween=0,x.params.virtualTranslate=!0),"fade"!==x.params.effect&&"flip"!==x.params.effect||(x.params.slidesPerView=1,x.params.slidesPerColumn=1,x.params.slidesPerGroup=1,x.params.watchSlidesProgress=!0,x.params.spaceBetween=0,"undefined"==typeof m&&(x.params.virtualTranslate=!0)),x.params.grabCursor&&x.support.touch&&(x.params.grabCursor=!1),x.wrapper=x.container.children("."+x.params.wrapperClass),x.params.pagination&&(x.paginationContainer=t(x.params.pagination),x.params.uniqueNavElements&&"string"==typeof x.params.pagination&&x.paginationContainer.length>1&&1===x.container.find(x.params.pagination).length&&(x.paginationContainer=x.container.find(x.params.pagination)),"bullets"===x.params.paginationType&&x.params.paginationClickable?x.paginationContainer.addClass(x.params.paginationModifierClass+"clickable"):x.params.paginationClickable=!1,x.paginationContainer.addClass(x.params.paginationModifierClass+x.params.paginationType)),(x.params.nextButton||x.params.prevButton)&&(x.params.nextButton&&(x.nextButton=t(x.params.nextButton),x.params.uniqueNavElements&&"string"==typeof x.params.nextButton&&x.nextButton.length>1&&1===x.container.find(x.params.nextButton).length&&(x.nextButton=x.container.find(x.params.nextButton))),x.params.prevButton&&(x.prevButton=t(x.params.prevButton),x.params.uniqueNavElements&&"string"==typeof x.params.prevButton&&x.prevButton.length>1&&1===x.container.find(x.params.prevButton).length&&(x.prevButton=x.container.find(x.params.prevButton)))),x.isHorizontal=function(){return"horizontal"===x.params.direction},x.rtl=x.isHorizontal()&&("rtl"===x.container[0].dir.toLowerCase()||"rtl"===x.container.css("direction")),x.rtl&&x.classNames.push(x.params.containerModifierClass+"rtl"),x.rtl&&(x.wrongRTL="-webkit-box"===x.wrapper.css("display")),x.params.slidesPerColumn>1&&x.classNames.push(x.params.containerModifierClass+"multirow"),x.device.android&&x.classNames.push(x.params.containerModifierClass+"android"),x.container.addClass(x.classNames.join(" ")),x.translate=0,x.progress=0,x.velocity=0,x.lockSwipeToNext=function(){x.params.allowSwipeToNext=!1,x.params.allowSwipeToPrev===!1&&x.params.grabCursor&&x.unsetGrabCursor()},x.lockSwipeToPrev=function(){x.params.allowSwipeToPrev=!1,x.params.allowSwipeToNext===!1&&x.params.grabCursor&&x.unsetGrabCursor()},x.lockSwipes=function(){x.params.allowSwipeToNext=x.params.allowSwipeToPrev=!1,x.params.grabCursor&&x.unsetGrabCursor()},x.unlockSwipeToNext=function(){x.params.allowSwipeToNext=!0,x.params.allowSwipeToPrev===!0&&x.params.grabCursor&&x.setGrabCursor()},x.unlockSwipeToPrev=function(){x.params.allowSwipeToPrev=!0,x.params.allowSwipeToNext===!0&&x.params.grabCursor&&x.setGrabCursor()},x.unlockSwipes=function(){x.params.allowSwipeToNext=x.params.allowSwipeToPrev=!0,x.params.grabCursor&&x.setGrabCursor()},x.setGrabCursor=function(e){x.container[0].style.cursor="move",x.container[0].style.cursor=e?"-webkit-grabbing":"-webkit-grab",x.container[0].style.cursor=e?"-moz-grabbin":"-moz-grab",x.container[0].style.cursor=e?"grabbing":"grab"},x.unsetGrabCursor=function(){x.container[0].style.cursor=""},x.params.grabCursor&&x.setGrabCursor(),x.imagesToLoad=[],x.imagesLoaded=0,x.loadImage=function(e,t,i,a,s,n){function o(){n&&n()}var r;e.complete&&s?o():t?(r=new window.Image,r.onload=o,r.onerror=o,a&&(r.sizes=a),i&&(r.srcset=i),t&&(r.src=t)):o()},x.preloadImages=function(){function e(){"undefined"!=typeof x&&null!==x&&x&&(void 0!==x.imagesLoaded&&x.imagesLoaded++,x.imagesLoaded===x.imagesToLoad.length&&(x.params.updateOnImagesReady&&x.update(),x.emit("onImagesReady",x)))}x.imagesToLoad=x.container.find("img");for(var t=0;t1)for(e=0;ex.slides.length)break;t.push(x.slides.eq(a)[0])}else t.push(x.slides.eq(x.activeIndex)[0]);for(e=0;ei?s:i}i&&x.wrapper.css("height",i+"px")},x.updateContainerSize=function(){var e,t;e="undefined"!=typeof x.params.width?x.params.width:x.container[0].clientWidth,t="undefined"!=typeof x.params.height?x.params.height:x.container[0].clientHeight,0===e&&x.isHorizontal()||0===t&&!x.isHorizontal()||(e=e-parseInt(x.container.css("padding-left"),10)-parseInt(x.container.css("padding-right"),10),t=t-parseInt(x.container.css("padding-top"),10)-parseInt(x.container.css("padding-bottom"),10),x.width=e,x.height=t,x.size=x.isHorizontal()?x.width:x.height)},x.updateSlidesSize=function(){x.slides=x.wrapper.children("."+x.params.slideClass),x.snapGrid=[],x.slidesGrid=[],x.slidesSizesGrid=[];var e,t=x.params.spaceBetween,i=-x.params.slidesOffsetBefore,a=0,n=0;if("undefined"!=typeof x.size){"string"==typeof t&&t.indexOf("%")>=0&&(t=parseFloat(t.replace("%",""))/100*x.size),x.virtualSize=-t,x.rtl?x.slides.css({marginLeft:"",marginTop:""}):x.slides.css({marginRight:"",marginBottom:""});var o;x.params.slidesPerColumn>1&&(o=Math.floor(x.slides.length/x.params.slidesPerColumn)===x.slides.length/x.params.slidesPerColumn?x.slides.length:Math.ceil(x.slides.length/x.params.slidesPerColumn)*x.params.slidesPerColumn,"auto"!==x.params.slidesPerView&&"row"===x.params.slidesPerColumnFill&&(o=Math.max(o,x.params.slidesPerView*x.params.slidesPerColumn)));var r,l=x.params.slidesPerColumn,d=o/l,c=d-(x.params.slidesPerColumn*d-x.slides.length);for(e=0;e1){var h,u,f;"column"===x.params.slidesPerColumnFill?(u=Math.floor(e/l),f=e-u*l,(u>c||u===c&&f===l-1)&&++f>=l&&(f=0,u++),h=u+f*o/l,p.css({"-webkit-box-ordinal-group":h,"-moz-box-ordinal-group":h,"-ms-flex-order":h,"-webkit-order":h,order:h})):(f=Math.floor(e/d),u=e-f*d),p.css("margin-"+(x.isHorizontal()?"top":"left"),0!==f&&x.params.spaceBetween&&x.params.spaceBetween+"px").attr("data-swiper-column",u).attr("data-swiper-row",f)}"none"!==p.css("display")&&("auto"===x.params.slidesPerView?(r=x.isHorizontal()?p.outerWidth(!0):p.outerHeight(!0),x.params.roundLengths&&(r=s(r))):(r=(x.size-(x.params.slidesPerView-1)*t)/x.params.slidesPerView,x.params.roundLengths&&(r=s(r)),x.isHorizontal()?x.slides[e].style.width=r+"px":x.slides[e].style.height=r+"px"),x.slides[e].swiperSlideSize=r,x.slidesSizesGrid.push(r),x.params.centeredSlides?(i=i+r/2+a/2+t,0===a&&0!==e&&(i=i-x.size/2-t),0===e&&(i=i-x.size/2-t),Math.abs(i)<.001&&(i=0),n%x.params.slidesPerGroup===0&&x.snapGrid.push(i),x.slidesGrid.push(i)):(n%x.params.slidesPerGroup===0&&x.snapGrid.push(i),x.slidesGrid.push(i),i=i+r+t),x.virtualSize+=r+t,a=r,n++)}x.virtualSize=Math.max(x.virtualSize,x.size)+x.params.slidesOffsetAfter;var m;if(x.rtl&&x.wrongRTL&&("slide"===x.params.effect||"coverflow"===x.params.effect)&&x.wrapper.css({width:x.virtualSize+x.params.spaceBetween+"px"}),x.support.flexbox&&!x.params.setWrapperSize||(x.isHorizontal()?x.wrapper.css({width:x.virtualSize+x.params.spaceBetween+"px"}):x.wrapper.css({height:x.virtualSize+x.params.spaceBetween+"px"})),x.params.slidesPerColumn>1&&(x.virtualSize=(r+x.params.spaceBetween)*o,x.virtualSize=Math.ceil(x.virtualSize/x.params.slidesPerColumn)-x.params.spaceBetween,x.isHorizontal()?x.wrapper.css({width:x.virtualSize+x.params.spaceBetween+"px"}):x.wrapper.css({height:x.virtualSize+x.params.spaceBetween+"px"}),x.params.centeredSlides)){for(m=[],e=0;e1&&x.snapGrid.push(x.virtualSize-x.size)}0===x.snapGrid.length&&(x.snapGrid=[0]),0!==x.params.spaceBetween&&(x.isHorizontal()?x.rtl?x.slides.css({marginLeft:t+"px"}):x.slides.css({marginRight:t+"px"}):x.slides.css({marginBottom:t+"px"})),x.params.watchSlidesProgress&&x.updateSlidesOffset()}},x.updateSlidesOffset=function(){for(var e=0;ex.size&&(a=!0));for(t=x.activeIndex-1;t>=0;t--)x.slides[t]&&!a&&(s+=x.slides[t].swiperSlideSize,i++,s>x.size&&(a=!0))}else for(e=x.activeIndex+1;e=0&&n0&&o<=x.size||n<=0&&o>=x.size;r&&x.slides.eq(i).addClass(x.params.slideVisibleClass)}a.progress=x.rtl?-s:s}}},x.updateProgress=function(e){"undefined"==typeof e&&(e=x.translate||0);var t=x.maxTranslate()-x.minTranslate(),i=x.isBeginning,a=x.isEnd;0===t?(x.progress=0,x.isBeginning=x.isEnd=!0):(x.progress=(e-x.minTranslate())/t,x.isBeginning=x.progress<=0,x.isEnd=x.progress>=1),x.isBeginning&&!i&&x.emit("onReachBeginning",x),x.isEnd&&!a&&x.emit("onReachEnd",x),x.params.watchSlidesProgress&&x.updateSlidesProgress(e),x.emit("onProgress",x,x.progress)},x.updateActiveIndex=function(){var e,t,i,a=x.rtl?x.translate:-x.translate;for(t=0;t=x.slidesGrid[t]&&a=x.slidesGrid[t]&&a=x.slidesGrid[t]&&(e=t);x.params.normalizeSlideIndex&&(e<0||"undefined"==typeof e)&&(e=0),i=Math.floor(e/x.params.slidesPerGroup),i>=x.snapGrid.length&&(i=x.snapGrid.length-1),e!==x.activeIndex&&(x.snapIndex=i,x.previousIndex=x.activeIndex,x.activeIndex=e,x.updateClasses(),x.updateRealIndex())},x.updateRealIndex=function(){x.realIndex=parseInt(x.slides.eq(x.activeIndex).attr("data-swiper-slide-index")||x.activeIndex,10)},x.updateClasses=function(){x.slides.removeClass(x.params.slideActiveClass+" "+x.params.slideNextClass+" "+x.params.slidePrevClass+" "+x.params.slideDuplicateActiveClass+" "+x.params.slideDuplicateNextClass+" "+x.params.slideDuplicatePrevClass);var e=x.slides.eq(x.activeIndex);e.addClass(x.params.slideActiveClass),a.loop&&(e.hasClass(x.params.slideDuplicateClass)?x.wrapper.children("."+x.params.slideClass+":not(."+x.params.slideDuplicateClass+')[data-swiper-slide-index="'+x.realIndex+'"]').addClass(x.params.slideDuplicateActiveClass):x.wrapper.children("."+x.params.slideClass+"."+x.params.slideDuplicateClass+'[data-swiper-slide-index="'+x.realIndex+'"]').addClass(x.params.slideDuplicateActiveClass));var i=e.next("."+x.params.slideClass).addClass(x.params.slideNextClass);x.params.loop&&0===i.length&&(i=x.slides.eq(0),i.addClass(x.params.slideNextClass));var s=e.prev("."+x.params.slideClass).addClass(x.params.slidePrevClass);if(x.params.loop&&0===s.length&&(s=x.slides.eq(-1),s.addClass(x.params.slidePrevClass)),a.loop&&(i.hasClass(x.params.slideDuplicateClass)?x.wrapper.children("."+x.params.slideClass+":not(."+x.params.slideDuplicateClass+')[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]').addClass(x.params.slideDuplicateNextClass):x.wrapper.children("."+x.params.slideClass+"."+x.params.slideDuplicateClass+'[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]').addClass(x.params.slideDuplicateNextClass),s.hasClass(x.params.slideDuplicateClass)?x.wrapper.children("."+x.params.slideClass+":not(."+x.params.slideDuplicateClass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(x.params.slideDuplicatePrevClass):x.wrapper.children("."+x.params.slideClass+"."+x.params.slideDuplicateClass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(x.params.slideDuplicatePrevClass)),x.paginationContainer&&x.paginationContainer.length>0){var n,o=x.params.loop?Math.ceil((x.slides.length-2*x.loopedSlides)/x.params.slidesPerGroup):x.snapGrid.length;if(x.params.loop?(n=Math.ceil((x.activeIndex-x.loopedSlides)/x.params.slidesPerGroup),n>x.slides.length-1-2*x.loopedSlides&&(n-=x.slides.length-2*x.loopedSlides),n>o-1&&(n-=o),n<0&&"bullets"!==x.params.paginationType&&(n=o+n)):n="undefined"!=typeof x.snapIndex?x.snapIndex:x.activeIndex||0,"bullets"===x.params.paginationType&&x.bullets&&x.bullets.length>0&&(x.bullets.removeClass(x.params.bulletActiveClass),x.paginationContainer.length>1?x.bullets.each(function(){t(this).index()===n&&t(this).addClass(x.params.bulletActiveClass)}):x.bullets.eq(n).addClass(x.params.bulletActiveClass)),"fraction"===x.params.paginationType&&(x.paginationContainer.find("."+x.params.paginationCurrentClass).text(n+1),x.paginationContainer.find("."+x.params.paginationTotalClass).text(o)),"progress"===x.params.paginationType){var r=(n+1)/o,l=r,d=1;x.isHorizontal()||(d=r,l=1),x.paginationContainer.find("."+x.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+l+") scaleY("+d+")").transition(x.params.speed)}"custom"===x.params.paginationType&&x.params.paginationCustomRender&&(x.paginationContainer.html(x.params.paginationCustomRender(x,n+1,o)),x.emit("onPaginationRendered",x,x.paginationContainer[0]))}x.params.loop||(x.params.prevButton&&x.prevButton&&x.prevButton.length>0&&(x.isBeginning?(x.prevButton.addClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.disable(x.prevButton)):(x.prevButton.removeClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.enable(x.prevButton))),x.params.nextButton&&x.nextButton&&x.nextButton.length>0&&(x.isEnd?(x.nextButton.addClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.disable(x.nextButton)):(x.nextButton.removeClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.enable(x.nextButton))))},x.updatePagination=function(){if(x.params.pagination&&x.paginationContainer&&x.paginationContainer.length>0){var e="";if("bullets"===x.params.paginationType){for(var t=x.params.loop?Math.ceil((x.slides.length-2*x.loopedSlides)/x.params.slidesPerGroup):x.snapGrid.length,i=0;i"; x.paginationContainer.html(e),x.bullets=x.paginationContainer.find("."+x.params.bulletClass),x.params.paginationClickable&&x.params.a11y&&x.a11y&&x.a11y.initPagination()}"fraction"===x.params.paginationType&&(e=x.params.paginationFractionRender?x.params.paginationFractionRender(x,x.params.paginationCurrentClass,x.params.paginationTotalClass):' / ',x.paginationContainer.html(e)),"progress"===x.params.paginationType&&(e=x.params.paginationProgressRender?x.params.paginationProgressRender(x,x.params.paginationProgressbarClass):'',x.paginationContainer.html(e)),"custom"!==x.params.paginationType&&x.emit("onPaginationRendered",x,x.paginationContainer[0])}},x.update=function(e){function t(){x.rtl?-x.translate:x.translate;i=Math.min(Math.max(x.translate,x.maxTranslate()),x.minTranslate()),x.setWrapperTranslate(i),x.updateActiveIndex(),x.updateClasses()}if(x){x.updateContainerSize(),x.updateSlidesSize(),x.updateProgress(),x.updatePagination(),x.updateClasses(),x.params.scrollbar&&x.scrollbar&&x.scrollbar.set();var i;if(e){var a;x.controller&&x.controller.spline&&(x.controller.spline=void 0),x.params.freeMode?(t(),x.params.autoHeight&&x.updateAutoHeight()):(a=("auto"===x.params.slidesPerView||x.params.slidesPerView>1)&&x.isEnd&&!x.params.centeredSlides?x.slideTo(x.slides.length-1,0,!1,!0):x.slideTo(x.activeIndex,0,!1,!0),a||t())}else x.params.autoHeight&&x.updateAutoHeight()}},x.onResize=function(e){x.params.onBeforeResize&&x.params.onBeforeResize(x),x.params.breakpoints&&x.setBreakpoint();var t=x.params.allowSwipeToPrev,i=x.params.allowSwipeToNext;x.params.allowSwipeToPrev=x.params.allowSwipeToNext=!0,x.updateContainerSize(),x.updateSlidesSize(),("auto"===x.params.slidesPerView||x.params.freeMode||e)&&x.updatePagination(),x.params.scrollbar&&x.scrollbar&&x.scrollbar.set(),x.controller&&x.controller.spline&&(x.controller.spline=void 0);var a=!1;if(x.params.freeMode){var s=Math.min(Math.max(x.translate,x.maxTranslate()),x.minTranslate());x.setWrapperTranslate(s),x.updateActiveIndex(),x.updateClasses(),x.params.autoHeight&&x.updateAutoHeight()}else x.updateClasses(),a=("auto"===x.params.slidesPerView||x.params.slidesPerView>1)&&x.isEnd&&!x.params.centeredSlides?x.slideTo(x.slides.length-1,0,!1,!0):x.slideTo(x.activeIndex,0,!1,!0);x.params.lazyLoading&&!a&&x.lazy&&x.lazy.load(),x.params.allowSwipeToPrev=t,x.params.allowSwipeToNext=i,x.params.onAfterResize&&x.params.onAfterResize(x)},x.touchEventsDesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerEnabled?x.touchEventsDesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled&&(x.touchEventsDesktop={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}),x.touchEvents={start:x.support.touch||!x.params.simulateTouch?"touchstart":x.touchEventsDesktop.start,move:x.support.touch||!x.params.simulateTouch?"touchmove":x.touchEventsDesktop.move,end:x.support.touch||!x.params.simulateTouch?"touchend":x.touchEventsDesktop.end},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===x.params.touchEventsTarget?x.container:x.wrapper).addClass("swiper-wp8-"+x.params.direction),x.initEvents=function(e){var t=e?"off":"on",i=e?"removeEventListener":"addEventListener",s="container"===x.params.touchEventsTarget?x.container[0]:x.wrapper[0],n=x.support.touch?s:document,o=!!x.params.nested;if(x.browser.ie)s[i](x.touchEvents.start,x.onTouchStart,!1),n[i](x.touchEvents.move,x.onTouchMove,o),n[i](x.touchEvents.end,x.onTouchEnd,!1);else{if(x.support.touch){var r=!("touchstart"!==x.touchEvents.start||!x.support.passiveListener||!x.params.passiveListeners)&&{passive:!0,capture:!1};s[i](x.touchEvents.start,x.onTouchStart,r),s[i](x.touchEvents.move,x.onTouchMove,o),s[i](x.touchEvents.end,x.onTouchEnd,r)}(a.simulateTouch&&!x.device.ios&&!x.device.android||a.simulateTouch&&!x.support.touch&&x.device.ios)&&(s[i]("mousedown",x.onTouchStart,!1),document[i]("mousemove",x.onTouchMove,o),document[i]("mouseup",x.onTouchEnd,!1))}window[i]("resize",x.onResize),x.params.nextButton&&x.nextButton&&x.nextButton.length>0&&(x.nextButton[t]("click",x.onClickNext),x.params.a11y&&x.a11y&&x.nextButton[t]("keydown",x.a11y.onEnterKey)),x.params.prevButton&&x.prevButton&&x.prevButton.length>0&&(x.prevButton[t]("click",x.onClickPrev),x.params.a11y&&x.a11y&&x.prevButton[t]("keydown",x.a11y.onEnterKey)),x.params.pagination&&x.params.paginationClickable&&(x.paginationContainer[t]("click","."+x.params.bulletClass,x.onClickIndex),x.params.a11y&&x.a11y&&x.paginationContainer[t]("keydown","."+x.params.bulletClass,x.a11y.onEnterKey)),(x.params.preventClicks||x.params.preventClicksPropagation)&&s[i]("click",x.preventClicks,!0)},x.attachEvents=function(){x.initEvents()},x.detachEvents=function(){x.initEvents(!0)},x.allowClick=!0,x.preventClicks=function(e){x.allowClick||(x.params.preventClicks&&e.preventDefault(),x.params.preventClicksPropagation&&x.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},x.onClickNext=function(e){e.preventDefault(),x.isEnd&&!x.params.loop||x.slideNext()},x.onClickPrev=function(e){e.preventDefault(),x.isBeginning&&!x.params.loop||x.slidePrev()},x.onClickIndex=function(e){e.preventDefault();var i=t(this).index()*x.params.slidesPerGroup;x.params.loop&&(i+=x.loopedSlides),x.slideTo(i)},x.updateClickedSlide=function(e){var i=o(e,"."+x.params.slideClass),a=!1;if(i)for(var s=0;sx.slides.length-x.loopedSlides+l/2?(x.fixLoop(),r=x.wrapper.children("."+x.params.slideClass+'[data-swiper-slide-index="'+n+'"]:not(.'+x.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){x.slideTo(r)},0)):x.slideTo(r):r>x.slides.length-l?(x.fixLoop(),r=x.wrapper.children("."+x.params.slideClass+'[data-swiper-slide-index="'+n+'"]:not(.'+x.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){x.slideTo(r)},0)):x.slideTo(r)}else x.slideTo(r)}};var T,S,D,k,I,E,M,$,z,P,j="input, select, textarea, button, video",_=Date.now(),O=[];x.animating=!1,x.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var A,N;x.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),A="touchstart"===e.type,A||!("which"in e)||3!==e.which){if(x.params.noSwiping&&o(e,"."+x.params.noSwipingClass))return void(x.allowClick=!0);if(!x.params.swipeHandler||o(e,x.params.swipeHandler)){var i=x.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,a=x.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(x.device.ios&&x.params.iOSEdgeSwipeDetection&&i<=x.params.iOSEdgeSwipeThreshold)){if(T=!0,S=!1,D=!0,I=void 0,N=void 0,x.touches.startX=i,x.touches.startY=a,k=Date.now(),x.allowClick=!0,x.updateContainerSize(),x.swipeDirection=void 0,x.params.threshold>0&&($=!1),"touchstart"!==e.type){var s=!0;t(e.target).is(j)&&(s=!1),document.activeElement&&t(document.activeElement).is(j)&&document.activeElement.blur(),s&&e.preventDefault()}x.emit("onTouchStart",x,e)}}}},x.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!A||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return x.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(x.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(x.params.onlyExternal)return x.allowClick=!1,void(T&&(x.touches.startX=x.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,x.touches.startY=x.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,k=Date.now()));if(A&&x.params.touchReleaseOnEdges&&!x.params.loop)if(x.isHorizontal()){if(x.touches.currentXx.touches.startX&&x.translate>=x.minTranslate())return}else if(x.touches.currentYx.touches.startY&&x.translate>=x.minTranslate())return;if(A&&document.activeElement&&e.target===document.activeElement&&t(e.target).is(j))return S=!0,void(x.allowClick=!1);if(D&&x.emit("onTouchMove",x,e),!(e.targetTouches&&e.targetTouches.length>1)){if(x.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,x.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof I){var i;x.isHorizontal()&&x.touches.currentY===x.touches.startY||!x.isHorizontal()&&x.touches.currentX===x.touches.startX?I=!1:(i=180*Math.atan2(Math.abs(x.touches.currentY-x.touches.startY),Math.abs(x.touches.currentX-x.touches.startX))/Math.PI,I=x.isHorizontal()?i>x.params.touchAngle:90-i>x.params.touchAngle)}if(I&&x.emit("onTouchMoveOpposite",x,e),"undefined"==typeof N&&(x.touches.currentX===x.touches.startX&&x.touches.currentY===x.touches.startY||(N=!0)),T){if(I)return void(T=!1);if(N){x.allowClick=!1,x.emit("onSliderMove",x,e),e.preventDefault(),x.params.touchMoveStopPropagation&&!x.params.nested&&e.stopPropagation(),S||(a.loop&&x.fixLoop(),M=x.getWrapperTranslate(),x.setWrapperTransition(0),x.animating&&x.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),x.params.autoplay&&x.autoplaying&&(x.params.autoplayDisableOnInteraction?x.stopAutoplay():x.pauseAutoplay()),P=!1,!x.params.grabCursor||x.params.allowSwipeToNext!==!0&&x.params.allowSwipeToPrev!==!0||x.setGrabCursor(!0)),S=!0;var s=x.touches.diff=x.isHorizontal()?x.touches.currentX-x.touches.startX:x.touches.currentY-x.touches.startY;s*=x.params.touchRatio,x.rtl&&(s=-s),x.swipeDirection=s>0?"prev":"next",E=s+M;var n=!0;if(s>0&&E>x.minTranslate()?(n=!1,x.params.resistance&&(E=x.minTranslate()-1+Math.pow(-x.minTranslate()+M+s,x.params.resistanceRatio))):s<0&&EM&&(E=M),x.params.threshold>0){if(!(Math.abs(s)>x.params.threshold||$))return void(E=M);if(!$)return $=!0,x.touches.startX=x.touches.currentX,x.touches.startY=x.touches.currentY,E=M,void(x.touches.diff=x.isHorizontal()?x.touches.currentX-x.touches.startX:x.touches.currentY-x.touches.startY)}x.params.followFinger&&((x.params.freeMode||x.params.watchSlidesProgress)&&x.updateActiveIndex(),x.params.freeMode&&(0===O.length&&O.push({position:x.touches[x.isHorizontal()?"startX":"startY"],time:k}),O.push({position:x.touches[x.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),x.updateProgress(E),x.setWrapperTranslate(E))}}}}},x.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),D&&x.emit("onTouchEnd",x,e),D=!1,T){x.params.grabCursor&&S&&T&&(x.params.allowSwipeToNext===!0||x.params.allowSwipeToPrev===!0)&&x.setGrabCursor(!1);var i=Date.now(),a=i-k;if(x.allowClick&&(x.updateClickedSlide(e),x.emit("onTap",x,e),a<300&&i-_>300&&(z&&clearTimeout(z),z=setTimeout(function(){x&&(x.params.paginationHide&&x.paginationContainer.length>0&&!t(e.target).hasClass(x.params.bulletClass)&&x.paginationContainer.toggleClass(x.params.paginationHiddenClass),x.emit("onClick",x,e))},300)),a<300&&i-_<300&&(z&&clearTimeout(z),x.emit("onDoubleTap",x,e))),_=Date.now(),setTimeout(function(){x&&(x.allowClick=!0)},0),!T||!S||!x.swipeDirection||0===x.touches.diff||E===M)return void(T=S=!1);T=S=!1;var s;if(s=x.params.followFinger?x.rtl?x.translate:-x.translate:-E,x.params.freeMode){if(s<-x.minTranslate())return void x.slideTo(x.activeIndex);if(s>-x.maxTranslate())return void(x.slides.length1){var n=O.pop(),o=O.pop(),r=n.position-o.position,l=n.time-o.time;x.velocity=r/l,x.velocity=x.velocity/2,Math.abs(x.velocity)150||(new window.Date).getTime()-n.time>300)&&(x.velocity=0)}else x.velocity=0;x.velocity=x.velocity*x.params.freeModeMomentumVelocityRatio,O.length=0;var d=1e3*x.params.freeModeMomentumRatio,c=x.velocity*d,p=x.translate+c;x.rtl&&(p=-p);var h,u=!1,f=20*Math.abs(x.velocity)*x.params.freeModeMomentumBounceRatio;if(px.minTranslate())x.params.freeModeMomentumBounce?(p-x.minTranslate()>f&&(p=x.minTranslate()+f),h=x.minTranslate(),u=!0,P=!0):p=x.minTranslate();else if(x.params.freeModeSticky){var m,g=0;for(g=0;g-p){m=g;break}p=Math.abs(x.snapGrid[m]-p)=x.params.longSwipesMs)&&(x.updateProgress(),x.updateActiveIndex()))}var v,b=0,w=x.slidesSizesGrid[0];for(v=0;v=x.slidesGrid[v]&&s=x.slidesGrid[v]&&(b=v,w=x.slidesGrid[x.slidesGrid.length-1]-x.slidesGrid[x.slidesGrid.length-2]);var y=(s-x.slidesGrid[b])/w;if(a>x.params.longSwipesMs){if(!x.params.longSwipes)return void x.slideTo(x.activeIndex);"next"===x.swipeDirection&&(y>=x.params.longSwipesRatio?x.slideTo(b+x.params.slidesPerGroup):x.slideTo(b)),"prev"===x.swipeDirection&&(y>1-x.params.longSwipesRatio?x.slideTo(b+x.params.slidesPerGroup):x.slideTo(b))}else{if(!x.params.shortSwipes)return void x.slideTo(x.activeIndex);"next"===x.swipeDirection&&x.slideTo(b+x.params.slidesPerGroup),"prev"===x.swipeDirection&&x.slideTo(b)}}},x._slideTo=function(e,t){return x.slideTo(e,t,!0,!0)},x.slideTo=function(e,t,i,a){"undefined"==typeof i&&(i=!0),"undefined"==typeof e&&(e=0),e<0&&(e=0),x.snapIndex=Math.floor(e/x.params.slidesPerGroup),x.snapIndex>=x.snapGrid.length&&(x.snapIndex=x.snapGrid.length-1);var s=-x.snapGrid[x.snapIndex];if(x.params.autoplay&&x.autoplaying&&(a||!x.params.autoplayDisableOnInteraction?x.pauseAutoplay(t):x.stopAutoplay()),x.updateProgress(s),x.params.normalizeSlideIndex)for(var n=0;n=Math.floor(100*x.slidesGrid[n])&&(e=n);return!(!x.params.allowSwipeToNext&&sx.translate&&s>x.maxTranslate()&&(x.activeIndex||0)!==e)&&("undefined"==typeof t&&(t=x.params.speed),x.previousIndex=x.activeIndex||0,x.activeIndex=e,x.updateRealIndex(),x.rtl&&-s===x.translate||!x.rtl&&s===x.translate?(x.params.autoHeight&&x.updateAutoHeight(),x.updateClasses(),"slide"!==x.params.effect&&x.setWrapperTranslate(s),!1):(x.updateClasses(),x.onTransitionStart(i),0===t||x.browser.lteIE9?(x.setWrapperTranslate(s),x.setWrapperTransition(0),x.onTransitionEnd(i)):(x.setWrapperTranslate(s),x.setWrapperTransition(t),x.animating||(x.animating=!0,x.wrapper.transitionEnd(function(){x&&x.onTransitionEnd(i)}))),!0)))},x.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),x.params.autoHeight&&x.updateAutoHeight(),x.lazy&&x.lazy.onTransitionStart(),e&&(x.emit("onTransitionStart",x),x.activeIndex!==x.previousIndex&&(x.emit("onSlideChangeStart",x),x.activeIndex>x.previousIndex?x.emit("onSlideNextStart",x):x.emit("onSlidePrevStart",x)))},x.onTransitionEnd=function(e){x.animating=!1,x.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),x.lazy&&x.lazy.onTransitionEnd(),e&&(x.emit("onTransitionEnd",x),x.activeIndex!==x.previousIndex&&(x.emit("onSlideChangeEnd",x),x.activeIndex>x.previousIndex?x.emit("onSlideNextEnd",x):x.emit("onSlidePrevEnd",x))),x.params.history&&x.history&&x.history.setHistory(x.params.history,x.activeIndex),x.params.hashnav&&x.hashnav&&x.hashnav.setHash()},x.slideNext=function(e,t,i){if(x.params.loop){if(x.animating)return!1;x.fixLoop();x.container[0].clientLeft;return x.slideTo(x.activeIndex+x.params.slidesPerGroup,t,e,i)}return x.slideTo(x.activeIndex+x.params.slidesPerGroup,t,e,i)},x._slideNext=function(e){return x.slideNext(!0,e,!0)},x.slidePrev=function(e,t,i){if(x.params.loop){if(x.animating)return!1;x.fixLoop();x.container[0].clientLeft;return x.slideTo(x.activeIndex-1,t,e,i)}return x.slideTo(x.activeIndex-1,t,e,i)},x._slidePrev=function(e){return x.slidePrev(!0,e,!0)},x.slideReset=function(e,t,i){return x.slideTo(x.activeIndex,t,e)},x.disableTouchControl=function(){return x.params.onlyExternal=!0,!0},x.enableTouchControl=function(){return x.params.onlyExternal=!1,!0},x.setWrapperTransition=function(e,t){x.wrapper.transition(e),"slide"!==x.params.effect&&x.effects[x.params.effect]&&x.effects[x.params.effect].setTransition(e),x.params.parallax&&x.parallax&&x.parallax.setTransition(e),x.params.scrollbar&&x.scrollbar&&x.scrollbar.setTransition(e),x.params.control&&x.controller&&x.controller.setTransition(e,t),x.emit("onSetTransition",x,e)},x.setWrapperTranslate=function(e,t,i){var a=0,n=0,o=0;x.isHorizontal()?a=x.rtl?-e:e:n=e,x.params.roundLengths&&(a=s(a),n=s(n)),x.params.virtualTranslate||(x.support.transforms3d?x.wrapper.transform("translate3d("+a+"px, "+n+"px, "+o+"px)"):x.wrapper.transform("translate("+a+"px, "+n+"px)")),x.translate=x.isHorizontal()?a:n;var r,l=x.maxTranslate()-x.minTranslate();r=0===l?0:(e-x.minTranslate())/l,r!==x.progress&&x.updateProgress(e),t&&x.updateActiveIndex(),"slide"!==x.params.effect&&x.effects[x.params.effect]&&x.effects[x.params.effect].setTranslate(x.translate),x.params.parallax&&x.parallax&&x.parallax.setTranslate(x.translate),x.params.scrollbar&&x.scrollbar&&x.scrollbar.setTranslate(x.translate),x.params.control&&x.controller&&x.controller.setTranslate(x.translate,i),x.emit("onSetTranslate",x,x.translate)},x.getTranslate=function(e,t){var i,a,s,n;return"undefined"==typeof t&&(t="x"),x.params.virtualTranslate?x.rtl?-x.translate:x.translate:(s=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),n=new window.WebKitCSSMatrix("none"===a?"":a)):(n=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),"x"===t&&(a=window.WebKitCSSMatrix?n.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(a=window.WebKitCSSMatrix?n.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),x.rtl&&a&&(a=-a),a||0)},x.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=x.isHorizontal()?"x":"y"),x.getTranslate(x.wrapper[0],e)},x.observers=[],x.initObservers=function(){if(x.params.observeParents)for(var e=x.container.parents(),t=0;te.length&&(x.loopedSlides=e.length);var i,a=[],s=[];for(e.each(function(i,n){var o=t(this);i=e.length-x.loopedSlides&&a.push(n),o.attr("data-swiper-slide-index",i)}),i=0;i=0;i--)x.wrapper.prepend(t(a[i].cloneNode(!0)).addClass(x.params.slideDuplicateClass))},x.destroyLoop=function(){x.wrapper.children("."+x.params.slideClass+"."+x.params.slideDuplicateClass).remove(),x.slides.removeAttr("data-swiper-slide-index")},x.reLoop=function(e){var t=x.activeIndex-x.loopedSlides;x.destroyLoop(),x.createLoop(),x.updateSlidesSize(),e&&x.slideTo(t+x.loopedSlides,0,!1)},x.fixLoop=function(){var e;x.activeIndex=2*x.loopedSlides||x.activeIndex>x.slides.length-2*x.params.slidesPerView)&&(e=-x.slides.length+x.activeIndex+x.loopedSlides,e+=x.loopedSlides,x.slideTo(e,0,!1,!0))},x.appendSlide=function(e){if(x.params.loop&&x.destroyLoop(),"object"==typeof e&&e.length)for(var t=0;t'),i.append(c)),0===p.length&&(p=t('
'),i.append(p)),c.length&&(c[0].style.opacity=Math.max(-a,0)),p.length&&(p[0].style.opacity=Math.max(a,0))}i.transform("translate3d("+l+"px, "+d+"px, 0px) rotateX("+r+"deg) rotateY("+o+"deg)")}},setTransition:function(e){if(x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),x.params.virtualTranslate&&0!==e){var i=!1;x.slides.eq(x.activeIndex).transitionEnd(function(){if(!i&&x&&t(this).hasClass(x.params.slideActiveClass)){i=!0,x.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],a=0;a'),x.wrapper.append(e)),e.css({height:x.width+"px"})):(e=x.container.find(".swiper-cube-shadow"),0===e.length&&(e=t('
'),x.container.append(e))));for(var a=0;a-1&&(i=90*a+90*r,x.rtl&&(i=90*-a-90*r)),s.transform(p),x.params.cube.slideShadows){var h=x.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),u=x.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===h.length&&(h=t('
'),s.append(h)),0===u.length&&(u=t('
'),s.append(u)),h.length&&(h[0].style.opacity=Math.max(-r,0)),u.length&&(u[0].style.opacity=Math.max(r,0))}}if(x.wrapper.css({"-webkit-transform-origin":"50% 50% -"+x.size/2+"px","-moz-transform-origin":"50% 50% -"+x.size/2+"px","-ms-transform-origin":"50% 50% -"+x.size/2+"px","transform-origin":"50% 50% -"+x.size/2+"px"}),x.params.cube.shadow)if(x.isHorizontal())e.transform("translate3d(0px, "+(x.width/2+x.params.cube.shadowOffset)+"px, "+-x.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+x.params.cube.shadowScale+")");else{var f=Math.abs(i)-90*Math.floor(Math.abs(i)/90),m=1.5-(Math.sin(2*f*Math.PI/360)/2+Math.cos(2*f*Math.PI/360)/2),g=x.params.cube.shadowScale,v=x.params.cube.shadowScale/m,b=x.params.cube.shadowOffset;e.transform("scale3d("+g+", 1, "+v+") translate3d(0px, "+(x.height/2+b)+"px, "+-x.height/2/v+"px) rotateX(-90deg)")}var w=x.isSafari||x.isUiWebView?-x.size/2:0;x.wrapper.transform("translate3d(0px,0,"+w+"px) rotateX("+(x.isHorizontal()?0:i)+"deg) rotateY("+(x.isHorizontal()?-i:0)+"deg)")},setTransition:function(e){x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),x.params.cube.shadow&&!x.isHorizontal()&&x.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=x.translate,i=x.isHorizontal()?-e+x.width/2:-e+x.height/2,a=x.isHorizontal()?x.params.coverflow.rotate:-x.params.coverflow.rotate,s=x.params.coverflow.depth,n=0,o=x.slides.length;n'),r.append(v)),0===b.length&&(b=t('
'),r.append(b)),v.length&&(v[0].style.opacity=c>0?c:0),b.length&&(b[0].style.opacity=-c>0?-c:0)}}if(x.browser.ie){var w=x.wrapper[0].style;w.perspectiveOrigin=i+"px 50%"}},setTransition:function(e){x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},x.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,i){if("undefined"!=typeof e&&("undefined"==typeof i&&(i=!0),0!==x.slides.length)){var a=x.slides.eq(e),s=a.find("."+x.params.lazyLoadingClass+":not(."+x.params.lazyStatusLoadedClass+"):not(."+x.params.lazyStatusLoadingClass+")");!a.hasClass(x.params.lazyLoadingClass)||a.hasClass(x.params.lazyStatusLoadedClass)||a.hasClass(x.params.lazyStatusLoadingClass)||(s=s.add(a[0])),0!==s.length&&s.each(function(){var e=t(this);e.addClass(x.params.lazyStatusLoadingClass);var s=e.attr("data-background"),n=e.attr("data-src"),o=e.attr("data-srcset"),r=e.attr("data-sizes");x.loadImage(e[0],n||s,o,r,!1,function(){if("undefined"!=typeof x&&null!==x&&x){if(s?(e.css("background-image",'url("'+s+'")'),e.removeAttr("data-background")):(o&&(e.attr("srcset",o),e.removeAttr("data-srcset")),r&&(e.attr("sizes",r),e.removeAttr("data-sizes")),n&&(e.attr("src",n),e.removeAttr("data-src"))),e.addClass(x.params.lazyStatusLoadedClass).removeClass(x.params.lazyStatusLoadingClass),a.find("."+x.params.lazyPreloaderClass+", ."+x.params.preloaderClass).remove(),x.params.loop&&i){var t=a.attr("data-swiper-slide-index");if(a.hasClass(x.params.slideDuplicateClass)){var l=x.wrapper.children('[data-swiper-slide-index="'+t+'"]:not(.'+x.params.slideDuplicateClass+")");x.lazy.loadImageInSlide(l.index(),!1)}else{var d=x.wrapper.children("."+x.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');x.lazy.loadImageInSlide(d.index(),!1)}}x.emit("onLazyImageReady",x,a[0],e[0])}}),x.emit("onLazyImageLoad",x,a[0],e[0])})}},load:function(){var e,i=x.params.slidesPerView;if("auto"===i&&(i=0),x.lazy.initialImageLoaded||(x.lazy.initialImageLoaded=!0),x.params.watchSlidesVisibility)x.wrapper.children("."+x.params.slideVisibleClass).each(function(){x.lazy.loadImageInSlide(t(this).index())});else if(i>1)for(e=x.activeIndex;e1||x.params.lazyLoadingInPrevNextAmount&&x.params.lazyLoadingInPrevNextAmount>1){var a=x.params.lazyLoadingInPrevNextAmount,s=i,n=Math.min(x.activeIndex+s+Math.max(a,s),x.slides.length),o=Math.max(x.activeIndex-Math.max(s,a),0);for(e=x.activeIndex+i;e0&&x.lazy.loadImageInSlide(r.index());var l=x.wrapper.children("."+x.params.slidePrevClass);l.length>0&&x.lazy.loadImageInSlide(l.index())}},onTransitionStart:function(){x.params.lazyLoading&&(x.params.lazyLoadingOnTransitionStart||!x.params.lazyLoadingOnTransitionStart&&!x.lazy.initialImageLoaded)&&x.lazy.load()},onTransitionEnd:function(){x.params.lazyLoading&&!x.params.lazyLoadingOnTransitionStart&&x.lazy.load(); }},x.scrollbar={isTouched:!1,setDragPosition:function(e){var t=x.scrollbar,i=x.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,a=i-t.track.offset()[x.isHorizontal()?"left":"top"]-t.dragSize/2,s=-x.minTranslate()*t.moveDivider,n=-x.maxTranslate()*t.moveDivider;an&&(a=n),a=-a/t.moveDivider,x.updateProgress(a),x.setWrapperTranslate(a,!0)},dragStart:function(e){var t=x.scrollbar;t.isTouched=!0,e.preventDefault(),e.stopPropagation(),t.setDragPosition(e),clearTimeout(t.dragTimeout),t.track.transition(0),x.params.scrollbarHide&&t.track.css("opacity",1),x.wrapper.transition(100),t.drag.transition(100),x.emit("onScrollbarDragStart",x)},dragMove:function(e){var t=x.scrollbar;t.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),x.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),x.emit("onScrollbarDragMove",x))},dragEnd:function(e){var t=x.scrollbar;t.isTouched&&(t.isTouched=!1,x.params.scrollbarHide&&(clearTimeout(t.dragTimeout),t.dragTimeout=setTimeout(function(){t.track.css("opacity",0),t.track.transition(400)},1e3)),x.emit("onScrollbarDragEnd",x),x.params.scrollbarSnapOnRelease&&x.slideReset())},draggableEvents:function(){return x.params.simulateTouch!==!1||x.support.touch?x.touchEvents:x.touchEventsDesktop}(),enableDraggable:function(){var e=x.scrollbar,i=x.support.touch?e.track:document;t(e.track).on(e.draggableEvents.start,e.dragStart),t(i).on(e.draggableEvents.move,e.dragMove),t(i).on(e.draggableEvents.end,e.dragEnd)},disableDraggable:function(){var e=x.scrollbar,i=x.support.touch?e.track:document;t(e.track).off(e.draggableEvents.start,e.dragStart),t(i).off(e.draggableEvents.move,e.dragMove),t(i).off(e.draggableEvents.end,e.dragEnd)},set:function(){if(x.params.scrollbar){var e=x.scrollbar;e.track=t(x.params.scrollbar),x.params.uniqueNavElements&&"string"==typeof x.params.scrollbar&&e.track.length>1&&1===x.container.find(x.params.scrollbar).length&&(e.track=x.container.find(x.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=t('
'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=x.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=x.size/x.virtualSize,e.moveDivider=e.divider*(e.trackSize/x.size),e.dragSize=e.trackSize*e.divider,x.isHorizontal()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",x.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(x.params.scrollbar){var e,t=x.scrollbar,i=(x.translate||0,t.dragSize);e=(t.trackSize-t.dragSize)*x.progress,x.rtl&&x.isHorizontal()?(e=-e,e>0?(i=t.dragSize-e,e=0):-e+t.dragSize>t.trackSize&&(i=t.trackSize+e)):e<0?(i=t.dragSize+e,e=0):e+t.dragSize>t.trackSize&&(i=t.trackSize-e),x.isHorizontal()?(x.support.transforms3d?t.drag.transform("translate3d("+e+"px, 0, 0)"):t.drag.transform("translateX("+e+"px)"),t.drag[0].style.width=i+"px"):(x.support.transforms3d?t.drag.transform("translate3d(0px, "+e+"px, 0)"):t.drag.transform("translateY("+e+"px)"),t.drag[0].style.height=i+"px"),x.params.scrollbarHide&&(clearTimeout(t.timeout),t.track[0].style.opacity=1,t.timeout=setTimeout(function(){t.track[0].style.opacity=0,t.track.transition(400)},1e3))}},setTransition:function(e){x.params.scrollbar&&x.scrollbar.drag.transition(e)}},x.controller={LinearSpline:function(e,t){var i=function(){var e,t,i;return function(a,s){for(t=-1,e=a.length;e-t>1;)a[i=e+t>>1]<=s?t=i:e=i;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1;var a,s;this.x.length;this.interpolate=function(e){return e?(s=i(this.x,e),a=s-1,(e-this.x[a])*(this.y[s]-this.y[a])/(this.x[s]-this.x[a])+this.y[a]):0}},getInterpolateFunction:function(e){x.controller.spline||(x.controller.spline=x.params.loop?new x.controller.LinearSpline(x.slidesGrid,e.slidesGrid):new x.controller.LinearSpline(x.snapGrid,e.snapGrid))},setTranslate:function(e,t){function a(t){e=t.rtl&&"horizontal"===t.params.direction?-x.translate:x.translate,"slide"===x.params.controlBy&&(x.controller.getInterpolateFunction(t),n=-x.controller.spline.interpolate(-e)),n&&"container"!==x.params.controlBy||(s=(t.maxTranslate()-t.minTranslate())/(x.maxTranslate()-x.minTranslate()),n=(e-x.minTranslate())*s+t.minTranslate()),x.params.controlInverse&&(n=t.maxTranslate()-n),t.updateProgress(n),t.setWrapperTranslate(n,!1,x),t.updateActiveIndex()}var s,n,o=x.params.control;if(Array.isArray(o))for(var r=0;r-1?"DOMMouseScroll":d()?"wheel":"mousewheel"),x.disableMousewheelControl=function(){if(!x.mousewheel.event)return!1;var e=x.container;return"container"!==x.params.mousewheelEventsTarged&&(e=t(x.params.mousewheelEventsTarged)),e.off(x.mousewheel.event,p),x.params.mousewheelControl=!1,!0},x.enableMousewheelControl=function(){if(!x.mousewheel.event)return!1;var e=x.container;return"container"!==x.params.mousewheelEventsTarged&&(e=t(x.params.mousewheelEventsTarged)),e.on(x.mousewheel.event,p),x.params.mousewheelControl=!0,!0},x.parallax={setTranslate:function(){x.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){h(this,x.progress)}),x.slides.each(function(){var e=t(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=Math.min(Math.max(e[0].progress,-1),1);h(this,t)})})},setTransition:function(e){"undefined"==typeof e&&(e=x.params.speed),x.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var i=t(this),a=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),i.transition(a)})}},x.zoom={scale:1,currentScale:1,isScaling:!1,gesture:{slide:void 0,slideWidth:void 0,slideHeight:void 0,image:void 0,imageWrap:void 0,zoomMax:x.params.zoomMax},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,a=e.targetTouches[1].pageX,s=e.targetTouches[1].pageY,n=Math.sqrt(Math.pow(a-t,2)+Math.pow(s-i,2));return n},onGestureStart:function(e){var i=x.zoom;if(!x.support.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.gesture.scaleStart=i.getDistanceBetweenTouches(e)}return i.gesture.slide&&i.gesture.slide.length||(i.gesture.slide=t(this),0===i.gesture.slide.length&&(i.gesture.slide=x.slides.eq(x.activeIndex)),i.gesture.image=i.gesture.slide.find("img, svg, canvas"),i.gesture.imageWrap=i.gesture.image.parent("."+x.params.zoomContainerClass),i.gesture.zoomMax=i.gesture.imageWrap.attr("data-swiper-zoom")||x.params.zoomMax,0!==i.gesture.imageWrap.length)?(i.gesture.image.transition(0),void(i.isScaling=!0)):void(i.gesture.image=void 0)},onGestureChange:function(e){var t=x.zoom;if(!x.support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;t.gesture.scaleMove=t.getDistanceBetweenTouches(e)}t.gesture.image&&0!==t.gesture.image.length&&(x.support.gestures?t.scale=e.scale*t.currentScale:t.scale=t.gesture.scaleMove/t.gesture.scaleStart*t.currentScale,t.scale>t.gesture.zoomMax&&(t.scale=t.gesture.zoomMax-1+Math.pow(t.scale-t.gesture.zoomMax+1,.5)),t.scalet.image.touchesStart.x)return void(t.image.isTouched=!1);if(!x.isHorizontal()&&Math.floor(t.image.minY)===Math.floor(t.image.startY)&&t.image.touchesCurrent.yt.image.touchesStart.y)return void(t.image.isTouched=!1)}e.preventDefault(),e.stopPropagation(),t.image.isMoved=!0,t.image.currentX=t.image.touchesCurrent.x-t.image.touchesStart.x+t.image.startX,t.image.currentY=t.image.touchesCurrent.y-t.image.touchesStart.y+t.image.startY,t.image.currentXt.image.maxX&&(t.image.currentX=t.image.maxX-1+Math.pow(t.image.currentX-t.image.maxX+1,.8)),t.image.currentYt.image.maxY&&(t.image.currentY=t.image.maxY-1+Math.pow(t.image.currentY-t.image.maxY+1,.8)),t.velocity.prevPositionX||(t.velocity.prevPositionX=t.image.touchesCurrent.x),t.velocity.prevPositionY||(t.velocity.prevPositionY=t.image.touchesCurrent.y),t.velocity.prevTime||(t.velocity.prevTime=Date.now()),t.velocity.x=(t.image.touchesCurrent.x-t.velocity.prevPositionX)/(Date.now()-t.velocity.prevTime)/2,t.velocity.y=(t.image.touchesCurrent.y-t.velocity.prevPositionY)/(Date.now()-t.velocity.prevTime)/2,Math.abs(t.image.touchesCurrent.x-t.velocity.prevPositionX)<2&&(t.velocity.x=0),Math.abs(t.image.touchesCurrent.y-t.velocity.prevPositionY)<2&&(t.velocity.y=0),t.velocity.prevPositionX=t.image.touchesCurrent.x,t.velocity.prevPositionY=t.image.touchesCurrent.y,t.velocity.prevTime=Date.now(),t.gesture.imageWrap.transform("translate3d("+t.image.currentX+"px, "+t.image.currentY+"px,0)")}}},onTouchEnd:function(e,t){var i=e.zoom;if(i.gesture.image&&0!==i.gesture.image.length){if(!i.image.isTouched||!i.image.isMoved)return i.image.isTouched=!1,void(i.image.isMoved=!1);i.image.isTouched=!1,i.image.isMoved=!1;var a=300,s=300,n=i.velocity.x*a,o=i.image.currentX+n,r=i.velocity.y*s,l=i.image.currentY+r;0!==i.velocity.x&&(a=Math.abs((o-i.image.currentX)/i.velocity.x)),0!==i.velocity.y&&(s=Math.abs((l-i.image.currentY)/i.velocity.y));var d=Math.max(a,s);i.image.currentX=o,i.image.currentY=l;var c=i.image.width*i.scale,p=i.image.height*i.scale;i.image.minX=Math.min(i.gesture.slideWidth/2-c/2,0),i.image.maxX=-i.image.minX,i.image.minY=Math.min(i.gesture.slideHeight/2-p/2,0),i.image.maxY=-i.image.minY,i.image.currentX=Math.max(Math.min(i.image.currentX,i.image.maxX),i.image.minX),i.image.currentY=Math.max(Math.min(i.image.currentY,i.image.maxY),i.image.minY),i.gesture.imageWrap.transition(d).transform("translate3d("+i.image.currentX+"px, "+i.image.currentY+"px,0)")}},onTransitionEnd:function(e){var t=e.zoom;t.gesture.slide&&e.previousIndex!==e.activeIndex&&(t.gesture.image.transform("translate3d(0,0,0) scale(1)"),t.gesture.imageWrap.transform("translate3d(0,0,0)"),t.gesture.slide=t.gesture.image=t.gesture.imageWrap=void 0,t.scale=t.currentScale=1)},toggleZoom:function(e,i){var a=e.zoom;if(a.gesture.slide||(a.gesture.slide=e.clickedSlide?t(e.clickedSlide):e.slides.eq(e.activeIndex),a.gesture.image=a.gesture.slide.find("img, svg, canvas"),a.gesture.imageWrap=a.gesture.image.parent("."+e.params.zoomContainerClass)),a.gesture.image&&0!==a.gesture.image.length){var s,n,o,r,l,d,c,p,h,u,f,m,g,v,b,w,y,x;"undefined"==typeof a.image.touchesStart.x&&i?(s="touchend"===i.type?i.changedTouches[0].pageX:i.pageX,n="touchend"===i.type?i.changedTouches[0].pageY:i.pageY):(s=a.image.touchesStart.x,n=a.image.touchesStart.y),a.scale&&1!==a.scale?(a.scale=a.currentScale=1,a.gesture.imageWrap.transition(300).transform("translate3d(0,0,0)"),a.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),a.gesture.slide=void 0):(a.scale=a.currentScale=a.gesture.imageWrap.attr("data-swiper-zoom")||e.params.zoomMax,i?(y=a.gesture.slide[0].offsetWidth,x=a.gesture.slide[0].offsetHeight,o=a.gesture.slide.offset().left,r=a.gesture.slide.offset().top,l=o+y/2-s,d=r+x/2-n,h=a.gesture.image[0].offsetWidth,u=a.gesture.image[0].offsetHeight,f=h*a.scale,m=u*a.scale,g=Math.min(y/2-f/2,0),v=Math.min(x/2-m/2,0),b=-g,w=-v,c=l*a.scale,p=d*a.scale,cb&&(c=b),pw&&(p=w)):(c=0,p=0),a.gesture.imageWrap.transition(300).transform("translate3d("+c+"px, "+p+"px,0)"),a.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+a.scale+")"))}},attachEvents:function(e){var i=e?"off":"on";if(x.params.zoom){var a=(x.slides,!("touchstart"!==x.touchEvents.start||!x.support.passiveListener||!x.params.passiveListeners)&&{passive:!0,capture:!1});x.support.gestures?(x.slides[i]("gesturestart",x.zoom.onGestureStart,a),x.slides[i]("gesturechange",x.zoom.onGestureChange,a),x.slides[i]("gestureend",x.zoom.onGestureEnd,a)):"touchstart"===x.touchEvents.start&&(x.slides[i](x.touchEvents.start,x.zoom.onGestureStart,a),x.slides[i](x.touchEvents.move,x.zoom.onGestureChange,a),x.slides[i](x.touchEvents.end,x.zoom.onGestureEnd,a)),x[i]("touchStart",x.zoom.onTouchStart),x.slides.each(function(e,a){t(a).find("."+x.params.zoomContainerClass).length>0&&t(a)[i](x.touchEvents.move,x.zoom.onTouchMove)}),x[i]("touchEnd",x.zoom.onTouchEnd),x[i]("transitionEnd",x.zoom.onTransitionEnd),x.params.zoomToggle&&x.on("doubleTap",x.zoom.toggleZoom)}},init:function(){x.zoom.attachEvents()},destroy:function(){x.zoom.attachEvents(!0)}},x._plugins=[];for(var H in x.plugins){var L=x.plugins[H](x,x.params[H]);L&&x._plugins.push(L)}return x.callPlugins=function(e){for(var t=0;t'),notify:function(e){var t=x.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},init:function(){x.params.nextButton&&x.nextButton&&x.nextButton.length>0&&(x.a11y.makeFocusable(x.nextButton),x.a11y.addRole(x.nextButton,"button"),x.a11y.addLabel(x.nextButton,x.params.nextSlideMessage)),x.params.prevButton&&x.prevButton&&x.prevButton.length>0&&(x.a11y.makeFocusable(x.prevButton),x.a11y.addRole(x.prevButton,"button"),x.a11y.addLabel(x.prevButton,x.params.prevSlideMessage)),t(x.container).append(x.a11y.liveRegion)},initPagination:function(){x.params.pagination&&x.params.paginationClickable&&x.bullets&&x.bullets.length&&x.bullets.each(function(){var e=t(this);x.a11y.makeFocusable(e),x.a11y.addRole(e,"button"),x.a11y.addLabel(e,x.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){x.a11y.liveRegion&&x.a11y.liveRegion.length>0&&x.a11y.liveRegion.remove()}},x.init=function(){x.params.loop&&x.createLoop(),x.updateContainerSize(),x.updateSlidesSize(),x.updatePagination(),x.params.scrollbar&&x.scrollbar&&(x.scrollbar.set(),x.params.scrollbarDraggable&&x.scrollbar.enableDraggable()),"slide"!==x.params.effect&&x.effects[x.params.effect]&&(x.params.loop||x.updateProgress(),x.effects[x.params.effect].setTranslate()),x.params.loop?x.slideTo(x.params.initialSlide+x.loopedSlides,0,x.params.runCallbacksOnInit):(x.slideTo(x.params.initialSlide,0,x.params.runCallbacksOnInit),0===x.params.initialSlide&&(x.parallax&&x.params.parallax&&x.parallax.setTranslate(),x.lazy&&x.params.lazyLoading&&(x.lazy.load(),x.lazy.initialImageLoaded=!0))),x.attachEvents(),x.params.observer&&x.support.observer&&x.initObservers(),x.params.preloadImages&&!x.params.lazyLoading&&x.preloadImages(),x.params.zoom&&x.zoom&&x.zoom.init(),x.params.autoplay&&x.startAutoplay(),x.params.keyboardControl&&x.enableKeyboardControl&&x.enableKeyboardControl(),x.params.mousewheelControl&&x.enableMousewheelControl&&x.enableMousewheelControl(),x.params.hashnavReplaceState&&(x.params.replaceState=x.params.hashnavReplaceState),x.params.history&&x.history&&x.history.init(),x.params.hashnav&&x.hashnav&&x.hashnav.init(),x.params.a11y&&x.a11y&&x.a11y.init(),x.emit("onInit",x)},x.cleanupStyles=function(){x.container.removeClass(x.classNames.join(" ")).removeAttr("style"),x.wrapper.removeAttr("style"),x.slides&&x.slides.length&&x.slides.removeClass([x.params.slideVisibleClass,x.params.slideActiveClass,x.params.slideNextClass,x.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),x.paginationContainer&&x.paginationContainer.length&&x.paginationContainer.removeClass(x.params.paginationHiddenClass),x.bullets&&x.bullets.length&&x.bullets.removeClass(x.params.bulletActiveClass),x.params.prevButton&&t(x.params.prevButton).removeClass(x.params.buttonDisabledClass),x.params.nextButton&&t(x.params.nextButton).removeClass(x.params.buttonDisabledClass),x.params.scrollbar&&x.scrollbar&&(x.scrollbar.track&&x.scrollbar.track.length&&x.scrollbar.track.removeAttr("style"),x.scrollbar.drag&&x.scrollbar.drag.length&&x.scrollbar.drag.removeAttr("style"))},x.destroy=function(e,t){x.detachEvents(),x.stopAutoplay(),x.params.scrollbar&&x.scrollbar&&x.params.scrollbarDraggable&&x.scrollbar.disableDraggable(),x.params.loop&&x.destroyLoop(),t&&x.cleanupStyles(),x.disconnectObservers(),x.params.zoom&&x.zoom&&x.zoom.destroy(),x.params.keyboardControl&&x.disableKeyboardControl&&x.disableKeyboardControl(),x.params.mousewheelControl&&x.disableMousewheelControl&&x.disableMousewheelControl(),x.params.a11y&&x.a11y&&x.a11y.destroy(),x.params.history&&!x.params.replaceState&&window.removeEventListener("popstate",x.history.setHistoryPopState),x.params.hashnav&&x.hashnav&&x.hashnav.destroy(),x.emit("onDestroy"),e!==!1&&(x=null)},x.init(),x}};i.prototype={isSafari:function(){var e=window.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1,lteIE9:function(){var e=document.createElement("div");return e.innerHTML="",1===e.getElementsByTagName("i").length}()},device:function(){var e=window.navigator.userAgent,t=e.match(/(Android);?[\s\/]+([\d.]+)?/),i=e.match(/(iPad).*OS\s([\d_]+)/),a=e.match(/(iPod)(.*OS\s([\d_]+))?/),s=!i&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);return{ios:i||s||a,android:t}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null})),window.Swiper=i}(),"undefined"!=typeof module?module.exports=window.Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.Swiper}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(e){"use strict";function t(t){var i=[{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}];return e.each(i,function(){t=t?t.replace(this.re,this.ch):""}),t}function i(t){var i=arguments,a=t;[].shift.apply(i);var s,n=this.each(function(){var t=e(this);if(t.is("select")){var n=t.data("selectpicker"),o="object"==typeof a&&a;if(n){if(o)for(var r in o)o.hasOwnProperty(r)&&(n.options[r]=o[r])}else{var l=e.extend({},c.DEFAULTS,e.fn.selectpicker.defaults||{},t.data(),o);l.template=e.extend({},c.DEFAULTS.template,e.fn.selectpicker.defaults?e.fn.selectpicker.defaults.template:{},t.data().template,o.template),t.data("selectpicker",n=new c(this,l))}"string"==typeof a&&(s=n[a]instanceof Function?n[a].apply(n,i):n.options[a])}});return"undefined"!=typeof s?s:n}String.prototype.includes||!function(){var e={}.toString,t=function(){try{var e={},t=Object.defineProperty,i=t(e,e,e)&&t}catch(a){}return i}(),i="".indexOf,a=function(t){if(null==this)throw new TypeError;var a=String(this);if(t&&"[object RegExp]"==e.call(t))throw new TypeError;var s=a.length,n=String(t),o=n.length,r=arguments.length>1?arguments[1]:void 0,l=r?Number(r):0;l!=l&&(l=0);var d=Math.min(Math.max(l,0),s);return!(o+d>s)&&i.call(a,n,l)!=-1};t?t(String.prototype,"includes",{value:a,configurable:!0,writable:!0}):String.prototype.includes=a}(),String.prototype.startsWith||!function(){var e=function(){try{var e={},t=Object.defineProperty,i=t(e,e,e)&&t}catch(a){}return i}(),t={}.toString,i=function(e){if(null==this)throw new TypeError;var i=String(this);if(e&&"[object RegExp]"==t.call(e))throw new TypeError;var a=i.length,s=String(e),n=s.length,o=arguments.length>1?arguments[1]:void 0,r=o?Number(o):0;r!=r&&(r=0);var l=Math.min(Math.max(r,0),a);if(n+l>a)return!1;for(var d=-1;++d":">",'"':""","'":"'","`":"`"},o={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},r=function(e){var t=function(t){return e[t]},i="(?:"+Object.keys(e).join("|")+")",a=RegExp(i),s=RegExp(i,"g");return function(e){return e=null==e?"":""+e,a.test(e)?e.replace(s,t):e}},l=r(n),d=r(o),c=function(t,i){a.useDefault||(e.valHooks.select.set=a._set,a.useDefault=!0),this.$element=e(t),this.$newElement=null,this.$button=null,this.$menu=null,this.$lis=null,this.options=i,null===this.options.title&&(this.options.title=this.$element.attr("title"));var s=this.options.windowPadding;"number"==typeof s&&(this.options.windowPadding=[s,s,s,s]), this.val=c.prototype.val,this.render=c.prototype.render,this.refresh=c.prototype.refresh,this.setStyle=c.prototype.setStyle,this.selectAll=c.prototype.selectAll,this.deselectAll=c.prototype.deselectAll,this.destroy=c.prototype.destroy,this.remove=c.prototype.remove,this.show=c.prototype.show,this.hide=c.prototype.hide,this.init()};c.VERSION="1.12.2",c.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(e,t){return 1==e?"{0} item selected":"{0} items selected"},maxOptionsText:function(e,t){return[1==e?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:!1,template:{caret:''},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0},c.prototype={constructor:c,init:function(){var t=this,i=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.liObj={},this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement).appendTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),this.options.dropdownAlignRight===!0&&this.$menu.addClass("dropdown-menu-right"),"undefined"!=typeof i&&(this.$button.attr("data-id",i),e('label[for="'+i+'"]').click(function(e){e.preventDefault(),t.$button.focus()})),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){t.$menuInner.attr("aria-expanded",!1),t.$element.trigger("hide.bs.select",e)},"hidden.bs.dropdown":function(e){t.$element.trigger("hidden.bs.select",e)},"show.bs.dropdown":function(e){t.$menuInner.attr("aria-expanded",!0),t.$element.trigger("show.bs.select",e)},"shown.bs.dropdown":function(e){t.$element.trigger("shown.bs.select",e)}}),t.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){t.$button.addClass("bs-invalid").focus(),t.$element.on({"focus.bs.select":function(){t.$button.focus(),t.$element.off("focus.bs.select")},"shown.bs.select":function(){t.$element.val(t.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&t.$button.removeClass("bs-invalid"),t.$element.off("rendered.bs.select")}})}),setTimeout(function(){t.$element.trigger("loaded.bs.select")})},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",a=this.autofocus?" autofocus":"",s=this.options.header?'
'+this.options.header+"
":"",n=this.options.liveSearch?'':"",o=this.multiple&&this.options.actionsBox?'
":"",r=this.multiple&&this.options.doneButton?'
":"",d='
";return e(d)},createView:function(){var e=this.createDropdown(),t=this.createLi();return e.find("ul")[0].innerHTML=t,e},reloadLi:function(){var e=this.createLi();this.$menuInner[0].innerHTML=e},createLi:function(){var i=this,a=[],s=0,n=document.createElement("option"),o=-1,r=function(e,t,i,a){return""+e+""},d=function(a,s,n,o){return''+a+''};if(this.options.title&&!this.multiple&&(o--,!this.$element.find(".bs-title-option").length)){var c=this.$element[0];n.className="bs-title-option",n.innerHTML=this.options.title,n.value="",c.insertBefore(n,c.firstChild);var p=e(c.options[c.selectedIndex]);void 0===p.attr("selected")&&void 0===this.$element.data("selected")&&(n.selected=!0)}return this.$element.find("option").each(function(t){var n=e(this);if(o++,!n.hasClass("bs-title-option")){var c=this.className||"",p=this.style.cssText,h=n.data("content")?n.data("content"):n.html(),u=n.data("tokens")?n.data("tokens"):null,f="undefined"!=typeof n.data("subtext")?''+n.data("subtext")+"":"",m="undefined"!=typeof n.data("icon")?' ':"",g=n.parent(),v="OPTGROUP"===g[0].tagName,b=v&&g[0].disabled,w=this.disabled||b;if(""!==m&&w&&(m=""+m+""),i.options.hideDisabled&&(w&&!v||b))return void o--;if(n.data("content")||(h=m+''+h+f+""),v&&n.data("divider")!==!0){if(i.options.hideDisabled&&w){if(void 0===g.data("allOptionsDisabled")){var y=g.children();g.data("allOptionsDisabled",y.filter(":disabled").length===y.length)}if(g.data("allOptionsDisabled"))return void o--}var x=" "+g[0].className||"";if(0===n.index()){s+=1;var C=g[0].label,T="undefined"!=typeof g.data("subtext")?''+g.data("subtext")+"":"",S=g.data("icon")?' ':"";C=S+''+l(C)+T+"",0!==t&&a.length>0&&(o++,a.push(r("",null,"divider",s+"div"))),o++,a.push(r(C,null,"dropdown-header"+x,s))}if(i.options.hideDisabled&&w)return void o--;a.push(r(d(h,"opt "+c+x,p,u),t,"",s))}else if(n.data("divider")===!0)a.push(r("",t,"divider"));else if(n.data("hidden")===!0)a.push(r(d(h,c,p,u),t,"hidden is-hidden"));else{var D=this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName;if(!D&&i.options.hideDisabled)for(var k=e(this).prevAll(),I=0;I ':"";return t=a.options.showSubtext&&i.data("subtext")&&!a.multiple?' '+i.data("subtext")+"":"","undefined"!=typeof i.attr("title")?i.attr("title"):i.data("content")&&a.options.showContent?i.data("content").toString():s+i.html()+t}}).toArray(),n=this.multiple?s.join(this.options.multipleSeparator):s[0];if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var o=this.options.selectedTextFormat.split(">");if(o.length>1&&s.length>o[1]||1==o.length&&s.length>=2){i=this.options.hideDisabled?", [disabled]":"";var r=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+i).length,l="function"==typeof this.options.countSelectedText?this.options.countSelectedText(s.length,r):this.options.countSelectedText;n=l.replace("{0}",s.length.toString()).replace("{1}",r.toString())}}void 0==this.options.title&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(n=this.options.title),n||(n="undefined"!=typeof this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",d(e.trim(n.replace(/<[^>]*>?/g,"")))),this.$button.children(".filter-option").html(n),this.$element.trigger("rendered.bs.select")},setStyle:function(e,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var i=e?e:this.options.style;"add"==t?this.$button.addClass(i):"remove"==t?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(t){if(t||this.options.size!==!1&&!this.sizeInfo){var i=document.createElement("div"),a=document.createElement("div"),s=document.createElement("ul"),n=document.createElement("li"),o=document.createElement("li"),r=document.createElement("a"),l=document.createElement("span"),d=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(!0):null,c=this.options.liveSearch?document.createElement("div"):null,p=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,h=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;if(l.className="text",i.className=this.$menu[0].parentNode.className+" open",a.className="dropdown-menu open",s.className="dropdown-menu inner",n.className="divider",l.appendChild(document.createTextNode("Inner text")),r.appendChild(l),o.appendChild(r),s.appendChild(o),s.appendChild(n),d&&a.appendChild(d),c){var u=document.createElement("input");c.className="bs-searchbox",u.className="form-control",c.appendChild(u),a.appendChild(c)}p&&a.appendChild(p),a.appendChild(s),h&&a.appendChild(h),i.appendChild(a),document.body.appendChild(i);var f=r.offsetHeight,m=d?d.offsetHeight:0,g=c?c.offsetHeight:0,v=p?p.offsetHeight:0,b=h?h.offsetHeight:0,w=e(n).outerHeight(!0),y="function"==typeof getComputedStyle&&getComputedStyle(a),x=y?null:e(a),C={vert:parseInt(y?y.paddingTop:x.css("paddingTop"))+parseInt(y?y.paddingBottom:x.css("paddingBottom"))+parseInt(y?y.borderTopWidth:x.css("borderTopWidth"))+parseInt(y?y.borderBottomWidth:x.css("borderBottomWidth")),horiz:parseInt(y?y.paddingLeft:x.css("paddingLeft"))+parseInt(y?y.paddingRight:x.css("paddingRight"))+parseInt(y?y.borderLeftWidth:x.css("borderLeftWidth"))+parseInt(y?y.borderRightWidth:x.css("borderRightWidth"))},T={vert:C.vert+parseInt(y?y.marginTop:x.css("marginTop"))+parseInt(y?y.marginBottom:x.css("marginBottom"))+2,horiz:C.horiz+parseInt(y?y.marginLeft:x.css("marginLeft"))+parseInt(y?y.marginRight:x.css("marginRight"))+2};document.body.removeChild(i),this.sizeInfo={liHeight:f,headerHeight:m,searchHeight:g,actionsHeight:v,doneButtonHeight:b,dividerHeight:w,menuPadding:C,menuExtras:T}}},setSize:function(){if(this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),this.options.size!==!1){var t,i,a,s,n,o,r,l,d=this,c=this.$menu,p=this.$menuInner,h=e(window),u=this.$newElement[0].offsetHeight,f=this.$newElement[0].offsetWidth,m=this.sizeInfo.liHeight,g=this.sizeInfo.headerHeight,v=this.sizeInfo.searchHeight,b=this.sizeInfo.actionsHeight,w=this.sizeInfo.doneButtonHeight,y=this.sizeInfo.dividerHeight,x=this.sizeInfo.menuPadding,C=this.sizeInfo.menuExtras,T=this.options.hideDisabled?".disabled":"",S=function(){var t,i=d.$newElement.offset(),a=e(d.options.container);d.options.container&&!a.is("body")?(t=a.offset(),t.top+=parseInt(a.css("borderTopWidth")),t.left+=parseInt(a.css("borderLeftWidth"))):t={top:0,left:0};var s=d.options.windowPadding;n=i.top-t.top-h.scrollTop(),o=h.height()-n-u-t.top-s[2],r=i.left-t.left-h.scrollLeft(),l=h.width()-r-f-t.left-s[1],n-=s[0],r-=s[3]};if(S(),"auto"===this.options.size){var D=function(){var h,u=function(t,i){return function(a){return i?a.classList?a.classList.contains(t):e(a).hasClass(t):!(a.classList?a.classList.contains(t):e(a).hasClass(t))}},y=d.$menuInner[0].getElementsByTagName("li"),T=Array.prototype.filter?Array.prototype.filter.call(y,u("hidden",!1)):d.$lis.not(".hidden"),D=Array.prototype.filter?Array.prototype.filter.call(T,u("dropdown-header",!0)):T.filter(".dropdown-header");S(),t=o-C.vert,i=l-C.horiz,d.options.container?(c.data("height")||c.data("height",c.height()),a=c.data("height"),c.data("width")||c.data("width",c.width()),s=c.data("width")):(a=c.height(),s=c.width()),d.options.dropupAuto&&d.$newElement.toggleClass("dropup",n>o&&t-C.vertl&&i-C.horiz3?3*m+C.vert-2:0,c.css({"max-height":t+"px",overflow:"hidden","min-height":h+g+v+b+w+"px"}),p.css({"max-height":t-g-v-b-w-x.vert+"px","overflow-y":"auto","min-height":Math.max(h-x.vert,0)+"px"})};D(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",D),h.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",D)}else if(this.options.size&&"auto"!=this.options.size&&this.$lis.not(T).length>this.options.size){var k=this.$lis.not(".divider").not(T).children().slice(0,this.options.size).last().parent().index(),I=this.$lis.slice(0,k+1).filter(".divider").length;t=m*this.options.size+I*y+x.vert,d.options.container?(c.data("height")||c.data("height",c.height()),a=c.data("height")):a=c.height(),d.options.dropupAuto&&this.$newElement.toggleClass("dropup",n>o&&t-C.vert');var t,i,a,s=this,n=e(this.options.container),o=function(e){s.$bsContainer.addClass(e.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",e.hasClass("dropup")),t=e.offset(),n.is("body")?i={top:0,left:0}:(i=n.offset(),i.top+=parseInt(n.css("borderTopWidth"))-n.scrollTop(),i.left+=parseInt(n.css("borderLeftWidth"))-n.scrollLeft()),a=e.hasClass("dropup")?0:e[0].offsetHeight,s.$bsContainer.css({top:t.top-i.top+a,left:t.left-i.left,width:e[0].offsetWidth})};this.$button.on("click",function(){var t=e(this);s.isDisabled()||(o(s.$newElement),s.$bsContainer.appendTo(s.options.container).toggleClass("open",!t.hasClass("open")).append(s.$menu))}),e(window).on("resize scroll",function(){o(s.$newElement)}),this.$element.on("hide.bs.select",function(){s.$menu.data("height",s.$menu.height()),s.$bsContainer.detach()})},setSelected:function(e,t,i){i||(this.togglePlaceholder(),i=this.findLis().eq(this.liObj[e])),i.toggleClass("selected",t).find("a").attr("aria-selected",t)},setDisabled:function(e,t,i){i||(i=this.findLis().eq(this.liObj[e])),t?i.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1).attr("aria-disabled",!0):i.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0).attr("aria-disabled",!1)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var e=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled").attr("aria-disabled",!1)),this.$button.attr("tabindex")!=-1||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!e.isDisabled()})},togglePlaceholder:function(){var e=this.$element.val();this.$button.toggleClass("bs-placeholder",null===e||""===e||e.constructor===Array&&0===e.length)},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&this.$element.attr("tabindex")!==-98&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var t=this,i=e(document);i.data("spaceSelect",!1),this.$button.on("keyup",function(e){/(32)/.test(e.keyCode.toString(10))&&i.data("spaceSelect")&&(e.preventDefault(),i.data("spaceSelect",!1))}),this.$button.on("click",function(){t.setSize()}),this.$element.on("shown.bs.select",function(){if(t.options.liveSearch||t.multiple){if(!t.multiple){var e=t.liObj[t.$element[0].selectedIndex];if("number"!=typeof e||t.options.size===!1)return;var i=t.$lis.eq(e)[0].offsetTop-t.$menuInner[0].offsetTop;i=i-t.$menuInner[0].offsetHeight/2+t.sizeInfo.liHeight/2,t.$menuInner[0].scrollTop=i}}else t.$menuInner.find(".selected a").focus()}),this.$menuInner.on("click","li a",function(i){var a=e(this),n=a.parent().data("originalIndex"),o=t.$element.val(),r=t.$element.prop("selectedIndex"),l=!0;if(t.multiple&&1!==t.options.maxOptions&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!a.parent().hasClass("disabled")){var d=t.$element.find("option"),c=d.eq(n),p=c.prop("selected"),h=c.parent("optgroup"),u=t.options.maxOptions,f=h.data("maxOptions")||!1;if(t.multiple){if(c.prop("selected",!p),t.setSelected(n,!p),a.blur(),u!==!1||f!==!1){var m=u');w[2]&&(y=y.replace("{var}",w[2][u>1?0:1]),x=x.replace("{var}",w[2][f>1?0:1])),c.prop("selected",!1),t.$menu.append(C),u&&m&&(C.append(e("
"+y+"
")),l=!1,t.$element.trigger("maxReached.bs.select")),f&&g&&(C.append(e("
"+x+"
")),l=!1,t.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){t.setSelected(n,!1)},10),C.delay(750).fadeOut(300,function(){e(this).remove()})}}}else d.prop("selected",!1),c.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected").find("a").attr("aria-selected",!1),t.setSelected(n,!0);!t.multiple||t.multiple&&1===t.options.maxOptions?t.$button.focus():t.options.liveSearch&&t.$searchbox.focus(),l&&(o!=t.$element.val()&&t.multiple||r!=t.$element.prop("selectedIndex")&&!t.multiple)&&(s=[n,c.prop("selected"),p],t.$element.triggerNative("change"))}}),this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),t.options.liveSearch&&!e(i.target).hasClass("close")?t.$searchbox.focus():t.$button.focus())}),this.$menuInner.on("click",".divider, .dropdown-header",function(e){e.preventDefault(),e.stopPropagation(),t.options.liveSearch?t.$searchbox.focus():t.$button.focus()}),this.$menu.on("click",".popover-title .close",function(){t.$button.click()}),this.$searchbox.on("click",function(e){e.stopPropagation()}),this.$menu.on("click",".actions-btn",function(i){t.options.liveSearch?t.$searchbox.focus():t.$button.focus(),i.preventDefault(),i.stopPropagation(),e(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll()}),this.$element.change(function(){t.render(!1),t.$element.trigger("changed.bs.select",s),s=null})},liveSearchListener:function(){var i=this,a=e('
  • ');this.$button.on("click.dropdown.data-api",function(){i.$menuInner.find(".active").removeClass("active"),i.$searchbox.val()&&(i.$searchbox.val(""),i.$lis.not(".is-hidden").removeClass("hidden"),a.parent().length&&a.remove()),i.multiple||i.$menuInner.find(".selected").addClass("active"),setTimeout(function(){i.$searchbox.focus()},10)}),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(e){e.stopPropagation()}),this.$searchbox.on("input propertychange",function(){if(i.$lis.not(".is-hidden").removeClass("hidden"),i.$lis.filter(".active").removeClass("active"),a.remove(),i.$searchbox.val()){var s,n=i.$lis.not(".is-hidden, .divider, .dropdown-header");if(s=i.options.liveSearchNormalize?n.find("a").not(":a"+i._searchStyle()+'("'+t(i.$searchbox.val())+'")'):n.find("a").not(":"+i._searchStyle()+'("'+i.$searchbox.val()+'")'),s.length===n.length)a.html(i.options.noneResultsText.replace("{0}",'"'+l(i.$searchbox.val())+'"')),i.$menuInner.append(a),i.$lis.addClass("hidden");else{s.parent().addClass("hidden");var o,r=i.$lis.not(".hidden");r.each(function(t){var i=e(this);i.hasClass("divider")?void 0===o?i.addClass("hidden"):(o&&o.addClass("hidden"),o=i):i.hasClass("dropdown-header")&&r.eq(t+1).data("optgroup")!==i.data("optgroup")?i.addClass("hidden"):o=null}),o&&o.addClass("hidden"),n.not(".hidden").first().addClass("active")}}})},_searchStyle:function(){var e={begins:"ibegins",startsWith:"ibegins"};return e[this.options.liveSearchStyle]||"icontains"},val:function(e){return"undefined"!=typeof e?(this.$element.val(e),this.render(),this.$element):this.$element.val()},changeAll:function(t){if(this.multiple){"undefined"==typeof t&&(t=!0),this.findLis();var i=this.$element.find("option"),a=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden"),s=a.length,n=[];if(t){if(a.filter(".selected").length===a.length)return}else if(0===a.filter(".selected").length)return;a.toggleClass("selected",t);for(var o=0;o=48&&i.keyCode<=57||i.keyCode>=96&&i.keyCode<=105||i.keyCode>=65&&i.keyCode<=90))return f.options.container?f.$button.trigger("click"):(f.setSize(),f.$menu.parent().addClass("open"),p=!0),void f.$searchbox.focus();if(f.options.liveSearch&&(/(^9$|27)/.test(i.keyCode.toString(10))&&p&&(i.preventDefault(),i.stopPropagation(),f.$menuInner.click(),f.$button.focus()),a=e('[role="listbox"] li'+m,u),h.val()||/(38|40)/.test(i.keyCode.toString(10))||0===a.filter(".active").length&&(a=f.$menuInner.find("li"),a=f.options.liveSearchNormalize?a.filter(":a"+f._searchStyle()+"("+t(g[i.keyCode])+")"):a.filter(":"+f._searchStyle()+"("+g[i.keyCode]+")"))),a.length){if(/(38|40)/.test(i.keyCode.toString(10)))s=a.index(a.find("a").filter(":focus").parent()),o=a.filter(m).first().index(),r=a.filter(m).last().index(),n=a.eq(s).nextAll(m).eq(0).index(),l=a.eq(s).prevAll(m).eq(0).index(),d=a.eq(n).prevAll(m).eq(0).index(),f.options.liveSearch&&(a.each(function(t){e(this).hasClass("disabled")||e(this).data("index",t)}),s=a.index(a.filter(".active")),o=a.first().data("index"),r=a.last().data("index"),n=a.eq(s).nextAll().eq(0).data("index"),l=a.eq(s).prevAll().eq(0).data("index"),d=a.eq(n).prevAll().eq(0).data("index")),c=h.data("prevIndex"),38==i.keyCode?(f.options.liveSearch&&s--,s!=d&&s>l&&(s=l),sr&&(s=r),s==c&&(s=o)),h.data("prevIndex",s),f.options.liveSearch?(i.preventDefault(),h.hasClass("dropdown-toggle")||(a.removeClass("active").eq(s).addClass("active").children("a").focus(),h.focus())):a.eq(s).children("a").focus();else if(!h.is("input")){var v,b,w=[];a.each(function(){e(this).hasClass("disabled")||e.trim(e(this).children("a").text().toLowerCase()).substring(0,1)==g[i.keyCode]&&w.push(e(this).index())}),v=e(document).data("keycount"),v++,e(document).data("keycount",v),b=e.trim(e(":focus").text().toLowerCase()).substring(0,1),b!=g[i.keyCode]?(v=1,e(document).data("keycount",v)):v>=w.length&&(e(document).data("keycount",0),v>w.length&&(v=1)),a.eq(w[v-1]).children("a").focus()}if((/(13|32)/.test(i.keyCode.toString(10))||/(^9$)/.test(i.keyCode.toString(10))&&f.options.selectOnTab)&&p){if(/(32)/.test(i.keyCode.toString(10))||i.preventDefault(),f.options.liveSearch)/(32)/.test(i.keyCode.toString(10))||(f.$menuInner.find(".active a").click(),h.focus());else{var y=e(":focus");y.click(),y.focus(),i.preventDefault(),e(document).data("spaceSelect",!0)}e(document).data("keycount",0)}(/(^9$|27)/.test(i.keyCode.toString(10))&&p&&(f.multiple||f.options.liveSearch)||/(27)/.test(i.keyCode.toString(10))&&!p)&&(f.$menu.parent().removeClass("open"),f.options.container&&f.$newElement.removeClass("open"),f.$button.focus())}},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null,this.liObj={},this.reloadLi(),this.render(),this.checkDisabled(),this.liHeight(!0),this.setStyle(),this.setWidth(),this.$lis&&this.$searchbox.trigger("propertychange"),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};var p=e.fn.selectpicker;e.fn.selectpicker=i,e.fn.selectpicker.Constructor=c,e.fn.selectpicker.noConflict=function(){return e.fn.selectpicker=p,this},e(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',c.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',function(e){e.stopPropagation()}),e(window).on("load.bs.select.data-api",function(){e(".selectpicker").each(function(){var t=e(this);i.call(t,t.data())})})}(e)}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e,t){function i(){return new Date(Date.UTC.apply(Date,arguments))}function a(){var e=new Date;return i(e.getFullYear(),e.getMonth(),e.getDate())}function s(e,t){return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate()}function n(e){return function(){return this[e].apply(this,arguments)}}function o(e){return e&&!isNaN(e.getTime())}function r(t,i){function a(e,t){return t.toLowerCase()}var s,n=e(t).data(),o={},r=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var l in n)i.test(l)&&(s=l.replace(r,a),o[s]=n[l]);return o}function l(t){var i={};if(g[t]||(t=t.split("-")[0],g[t])){var a=g[t];return e.each(m,function(e,t){t in a&&(i[t]=a[t])}),i}}var d=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),i=0,a=this.length;i]/g)||[]).length<=0)return!0;var a=e(i);return a.length>0}catch(s){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var s=this.o=e.extend({},this._o),n=s.language;g[n]||(n=n.split("-")[0],g[n]||(n=f.language)),s.language=n,s.startView=this._resolveViewName(s.startView,0),s.minViewMode=this._resolveViewName(s.minViewMode,0),s.maxViewMode=this._resolveViewName(s.maxViewMode,4),s.startView=Math.min(s.startView,s.maxViewMode),s.startView=Math.max(s.startView,s.minViewMode),s.multidate!==!0&&(s.multidate=Number(s.multidate)||!1,s.multidate!==!1&&(s.multidate=Math.max(0,s.multidate))),s.multidateSeparator=String(s.multidateSeparator),s.weekStart%=7,s.weekEnd=(s.weekStart+6)%7;var o=v.parseFormat(s.format);s.startDate!==-(1/0)&&(s.startDate?s.startDate instanceof Date?s.startDate=this._local_to_utc(this._zero_time(s.startDate)):s.startDate=v.parseDate(s.startDate,o,s.language,s.assumeNearbyYear):s.startDate=-(1/0)),s.endDate!==1/0&&(s.endDate?s.endDate instanceof Date?s.endDate=this._local_to_utc(this._zero_time(s.endDate)):s.endDate=v.parseDate(s.endDate,o,s.language,s.assumeNearbyYear):s.endDate=1/0),s.daysOfWeekDisabled=s.daysOfWeekDisabled||[],e.isArray(s.daysOfWeekDisabled)||(s.daysOfWeekDisabled=s.daysOfWeekDisabled.split(/[,\s]*/)),s.daysOfWeekDisabled=e.map(s.daysOfWeekDisabled,function(e){return parseInt(e,10)}),s.daysOfWeekHighlighted=s.daysOfWeekHighlighted||[],e.isArray(s.daysOfWeekHighlighted)||(s.daysOfWeekHighlighted=s.daysOfWeekHighlighted.split(/[,\s]*/)),s.daysOfWeekHighlighted=e.map(s.daysOfWeekHighlighted,function(e){return parseInt(e,10)}),s.datesDisabled=s.datesDisabled||[],e.isArray(s.datesDisabled)||(s.datesDisabled=[s.datesDisabled]),s.datesDisabled=e.map(s.datesDisabled,function(e){return v.parseDate(e,o,s.language,s.assumeNearbyYear)});var r=String(s.orientation).toLowerCase().split(/\s+/g),l=s.orientation.toLowerCase();if(r=e.grep(r,function(e){return/^auto|left|right|top|bottom$/.test(e)}),s.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===r.length)switch(r[0]){case"top":case"bottom":s.orientation.y=r[0];break;case"left":case"right":s.orientation.x=r[0]}else l=e.grep(r,function(e){return/^left|right$/.test(e)}),s.orientation.x=l[0]||"auto",l=e.grep(r,function(e){return/^top|bottom$/.test(e)}),s.orientation.y=l[0]||"auto";else;if(s.defaultViewDate){var d=s.defaultViewDate.year||(new Date).getFullYear(),c=s.defaultViewDate.month||0,p=s.defaultViewDate.day||1;s.defaultViewDate=i(d,c,p)}else s.defaultViewDate=a()},_events:[],_secondaryEvents:[],_applyEvents:function(e){for(var i,a,s,n=0;nn?(this.picker.addClass("datepicker-orient-right"),u+=h-t):this.picker.addClass("datepicker-orient-left");var m,g=this.o.orientation.y;if("auto"===g&&(m=-o+f-i,g=m<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+g),"top"===g?f-=i+parseInt(this.picker.css("padding-top")):f+=p,this.o.rtl){var v=n-(u+h);this.picker.css({top:f,right:v,zIndex:d})}else this.picker.css({top:f,left:u,zIndex:d});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),i=[],a=!1;return arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),i.push(t)},this)),a=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=e.map(i,e.proxy(function(e){return v.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=e.grep(i,e.proxy(function(e){return!this.dateWithinRange(e)||!e},this),!0),this.dates.replace(i),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate,a?this.setValue():i.length&&String(t)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&t.length&&this._trigger("clearDate"),this.fill(),this.element.change(),this},fillDow:function(){var t=this.o.weekStart,i="";for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days .datepicker-switch").attr("colspan",function(e,t){return parseInt(t)+1}),i+=' ');t";i+="",this.picker.find(".datepicker-days thead").append(i)},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",i=0;i<12;){var a=e&&e.getMonth()===i?" focused":"";t+=''+g[this.o.language].monthsShort[i++]+""}this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var i=[],a=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),n=new Date;return t.getUTCFullYear()a||t.getUTCFullYear()===a&&t.getUTCMonth()>s)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===n.getFullYear()&&t.getUTCMonth()===n.getMonth()&&t.getUTCDate()===n.getDate()&&i.push("today"),this.dates.contains(t)!==-1&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)!==-1&&i.push("highlighted"),this.range&&(t>this.range[0]&&tm)&&b.push("disabled"),g===this.viewDate.getFullYear()&&b.push("focused"),d!==e.noop&&(y=d(new Date(g,0,1)),y===t?y={}:"boolean"==typeof y?y={enabled:y}:"string"==typeof y&&(y={classes:y}),y.enabled===!1&&b.push("disabled"),y.classes&&(b=b.concat(y.classes.split(/\s+/))),y.tooltip&&(w=y.tooltip)),c+='"+g+"",g+=n;p.find("td").html(c)},fill:function(){var a,s,n=new Date(this.viewDate),o=n.getUTCFullYear(),r=n.getUTCMonth(),l=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),d=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),c=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,p=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,h=g[this.o.language].today||g.en.today||"",u=g[this.o.language].clear||g.en.clear||"",f=g[this.o.language].titleFormat||g.en.titleFormat;if(!isNaN(o)&&!isNaN(r)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(n,f,this.o.language)),this.picker.find("tfoot .today").text(h).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot .clear").text(u).toggle(this.o.clearBtn!==!1),this.picker.find("thead .datepicker-title").text(this.o.title).toggle(""!==this.o.title),this.updateNavArrows(),this.fillMonths();var m=i(o,r-1,28),b=v.getDaysInMonth(m.getUTCFullYear(),m.getUTCMonth());m.setUTCDate(b),m.setUTCDate(b-(m.getUTCDay()-this.o.weekStart+7)%7);var w=new Date(m);m.getUTCFullYear()<100&&w.setUTCFullYear(m.getUTCFullYear()),w.setUTCDate(w.getUTCDate()+42),w=w.valueOf();for(var y,x=[];m.valueOf()"),this.o.calendarWeeks)){var C=new Date(+m+(this.o.weekStart-m.getUTCDay()-7)%7*864e5),T=new Date(Number(C)+(11-C.getUTCDay())%7*864e5),S=new Date(Number(S=i(T.getUTCFullYear(),0,1))+(11-S.getUTCDay())%7*864e5),D=(T-S)/864e5/7+1;x.push(''+D+"")}y=this.getClassNames(m),y.push("day"),this.o.beforeShowDay!==e.noop&&(s=this.o.beforeShowDay(this._utc_to_local(m)),s===t?s={}:"boolean"==typeof s?s={enabled:s}:"string"==typeof s&&(s={classes:s}),s.enabled===!1&&y.push("disabled"),s.classes&&(y=y.concat(s.classes.split(/\s+/))),s.tooltip&&(a=s.tooltip)),y=e.isFunction(e.uniqueSort)?e.uniqueSort(y):e.unique(y),x.push('"+m.getUTCDate()+""),a=null,m.getUTCDay()===this.o.weekEnd&&x.push(""),m.setUTCDate(m.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(x.join(""));var k=g[this.o.language].monthsTitle||g.en.monthsTitle||"Months",I=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?k:o).end().find("span").removeClass("active");if(e.each(this.dates,function(e,t){t.getUTCFullYear()===o&&I.eq(t.getUTCMonth()).addClass("active")}),(oc)&&I.addClass("disabled"),o===l&&I.slice(0,d).addClass("disabled"),o===c&&I.slice(p+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var E=this;e.each(I,function(i,a){var s=new Date(o,i,1),n=E.o.beforeShowMonth(s);n===t?n={}:"boolean"==typeof n?n={enabled:n}:"string"==typeof n&&(n={classes:n}),n.enabled!==!1||e(a).hasClass("disabled")||e(a).addClass("disabled"),n.classes&&e(a).addClass(n.classes),n.tooltip&&e(a).prop("title",n.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,1,o,l,c,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,10,o,l,c,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,100,o,l,c,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e=new Date(this.viewDate),t=e.getUTCFullYear(),i=e.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&t<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&t>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:case 3:case 4:this.o.startDate!==-(1/0)&&t<=this.o.startDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&t>=this.o.endDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){t.preventDefault(),t.stopPropagation();var s,n,o,r,l,d,c;s=e(t.target),s.hasClass("datepicker-switch")&&this.showMode(1);var p=s.closest(".prev, .next");p.length>0&&(n=v.modes[this.viewMode].navStep*(p.hasClass("prev")?-1:1),0===this.viewMode?(this.viewDate=this.moveMonth(this.viewDate,n),this._trigger("changeMonth",this.viewDate)):(this.viewDate=this.moveYear(this.viewDate,n),1===this.viewMode&&this._trigger("changeYear",this.viewDate)),this.fill()),s.hasClass("today")&&!s.hasClass("day")&&(this.showMode(-2),this._setDate(a(),"linked"===this.o.todayBtn?null:"view")),s.hasClass("clear")&&this.clearDates(),s.hasClass("disabled")||(s.hasClass("day")&&(o=parseInt(s.text(),10)||1,r=this.viewDate.getUTCFullYear(),l=this.viewDate.getUTCMonth(),s.hasClass("old")&&(0===l?(l=11,r-=1,d=!0,c=!0):(l-=1,d=!0)),s.hasClass("new")&&(11===l?(l=0,r+=1,d=!0,c=!0):(l+=1,d=!0)),this._setDate(i(r,l,o)),c&&this._trigger("changeYear",this.viewDate),d&&this._trigger("changeMonth",this.viewDate)),s.hasClass("month")&&(this.viewDate.setUTCDate(1),o=1,l=s.parent().find("span").index(s),r=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(l),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode?(this._setDate(i(r,l,o)),this.showMode()):this.showMode(-1),this.fill()),(s.hasClass("year")||s.hasClass("decade")||s.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,l=0,r=parseInt(s.text(),10)||0,this.viewDate.setUTCFullYear(r),s.hasClass("year")&&(this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(i(r,l,o))),s.hasClass("decade")&&(this._trigger("changeDecade",this.viewDate),3===this.o.minViewMode&&this._setDate(i(r,l,o))),s.hasClass("century")&&(this._trigger("changeCentury",this.viewDate),4===this.o.minViewMode&&this._setDate(i(r,l,o))),this.showMode(-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&e(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),t!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),t&&"view"!==t||(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField&&this.inputField.change(),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var i=new Date(e);return i.setUTCDate(e.getUTCDate()+t),i},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!o(e))return this.o.defaultViewDate;if(!t)return e;var i,a,s=new Date(e.valueOf()),n=s.getUTCDate(),r=s.getUTCMonth(),l=Math.abs(t);if(t=t>0?1:-1,1===l)a=t===-1?function(){return s.getUTCMonth()===r}:function(){return s.getUTCMonth()!==i},i=r+t,s.setUTCMonth(i),(i<0||i>11)&&(i=(i+12)%12);else{for(var d=0;d0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(!this.picker.is(":visible"))return void(40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation()));var t,i,a=!1,s=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(i=this.moveAvailableDate(s,t,"moveYear"),i&&this._trigger("changeYear",this.viewDate)):e.shiftKey?(i=this.moveAvailableDate(s,t,"moveMonth"),i&&this._trigger("changeMonth",this.viewDate)):37===e.keyCode||39===e.keyCode?i=this.moveAvailableDate(s,t,"moveDay"):this.weekOfDateIsDisabled(s)||(i=this.moveAvailableDate(s,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t=4*t),i=this.moveAvailableDate(s,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t=4*t),i=this.moveAvailableDate(s,t,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),a=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}a&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField&&this.inputField.change())},showMode:function(e){e&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,this.viewMode+e))),this.picker.children("div").hide().filter(".datepicker-"+v.modes[this.viewMode].clsName).show(),this.updateNavArrows()}};var p=function(t,i){e(t).data("datepicker",this),this.element=e(t),this.inputs=e.map(i.inputs,function(e){return e.jquery?e[0]:e}),delete i.inputs,u.call(e(this.inputs),i).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e(t).data("datepicker")}),this.updateDates()};p.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,i){i.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var i=e(t.target).data("datepicker");if("undefined"!=typeof i){var a=i.getUTCDate(),s=e.inArray(t.target,this.inputs),n=s-1,o=s+1,r=this.inputs.length;if(s!==-1){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t.setUTCDate(a)}),a=0&&athis.dates[o])for(;othis.dates[o];)this.pickers[o++].setUTCDate(a);this.updateDates(),delete this.updating}}}},remove:function(){e.map(this.pickers,function(e){e.remove()}),delete this.element.data().datepicker}};var h=e.fn.datepicker,u=function(i){var a=Array.apply(null,arguments);a.shift();var s;if(this.each(function(){var t=e(this),n=t.data("datepicker"),o="object"==typeof i&&i;if(!n){var d=r(this,"date"),h=e.extend({},f,d,o),u=l(h.language),m=e.extend({},f,u,d,o);t.hasClass("input-daterange")||m.inputs?(e.extend(m,{inputs:m.inputs||t.find("input").toArray()}),n=new p(this,m)):n=new c(this,m),t.data("datepicker",n)}"string"==typeof i&&"function"==typeof n[i]&&(s=n[i].apply(n,a))}),s===t||s instanceof c||s instanceof p)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return s};e.fn.datepicker=u;var f=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"}},m=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=c;var g=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10},{clsName:"decades",navFnc:"FullDecade",navStep:100},{clsName:"centuries",navFnc:"FullCentury",navStep:1e3}],isLeapYear:function(e){return e%4===0&&e%100!==0||e%400===0},getDaysInMonth:function(e,t){return[31,v.isLeapYear(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),i=e.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(s,n,o,r){function l(e,t){return t===!0&&(t=10),e<100&&(e+=2e3,e>(new Date).getFullYear()+t&&(e-=100)),e}function d(){var e=this.slice(0,b[u].length),t=b[u].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!s)return t;if(s instanceof Date)return s;if("string"==typeof n&&(n=v.parseFormat(n)),n.toValue)return n.toValue(s,n,o);var p,h,u,f,m=/([\-+]\d+)([dmwy])/,b=s.match(/([\-+]\d+)([dmwy])/g),w={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},y={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(s)){for(s=new Date,u=0;u«»',contTemplate:'',footTemplate:''};v.template='
    '+v.headTemplate+""+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+"
    ",e.fn.datepicker.DPGlobal=v,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=h,this},e.fn.datepicker.version="1.6.4",e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=e(this);i.data("datepicker")||(t.preventDefault(),u.call(i,"show"))}),e(function(){u.call(e('[data-provide="datepicker-inline"]'))})}),function(e,t,i){"function"==typeof define&&define.amd?define(["jquery"],function(a){return i(a,e,t),a.mobile}):i(e.jQuery,e,t)}(this,document,function(e,t,i,a){!function(e,t,i,a){function s(e){for(;e&&"undefined"!=typeof e.originalEvent;)e=e.originalEvent;return e}function n(t,i){var n,o,r,l,d,c,p,h,u,f=t.type;if(t=e.Event(t),t.type=i,n=t.originalEvent,o=e.event.props,f.search(/^(mouse|click)/)>-1&&(o=$),n)for(p=o.length,l;p;)l=o[--p],t[l]=n[l];if(f.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),f.search(/^touch/)!==-1&&(r=s(n),f=r.touches,d=r.changedTouches,c=f&&f.length?f[0]:d&&d.length?d[0]:a,c))for(h=0,u=E.length;hn||Math.abs(i.pageY-_)>n,O&&!a&&f("vmousecancel",t,r),f("vmousemove",t,r),h()}}function w(e){if(!H){d();var t,i,a=o(e.target);f("vmouseup",e,a),O||(t=f("vclick",e,a),t&&t.isDefaultPrevented()&&(i=s(e).changedTouches[0],A.push({touchID:B,x:i.clientX,y:i.clientY}),N=!0)),f("vmouseout",e,a),O=!1,h()}}function y(t){var i,a=e.data(t,D);if(a)for(i in a)if(a[i])return!0;return!1}function x(){}function C(t){var i=t.substr(1);return{setup:function(){y(this)||e.data(this,D,{});var a=e.data(this,D);a[t]=!0,z[t]=(z[t]||0)+1,1===z[t]&&W.bind(i,m),e(this).bind(i,x),L&&(z.touchstart=(z.touchstart||0)+1,1===z.touchstart&&W.bind("touchstart",g).bind("touchend",w).bind("touchmove",b).bind("scroll",v))},teardown:function(){--z[t],z[t]||W.unbind(i,m),L&&(--z.touchstart,z.touchstart||W.unbind("touchstart",g).unbind("touchmove",b).unbind("touchend",w).unbind("scroll",v));var a=e(this),s=e.data(this,D);s&&(s[t]=!1),a.unbind(i,x),y(this)||a.removeData(D)}}}var T,S,D="virtualMouseBindings",k="virtualTouchID",I="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),E="clientX clientY pageX pageY screenX screenY".split(" "),M=e.event.mouseHooks?e.event.mouseHooks.props:[],$=e.event.props.concat(M),z={},P=0,j=0,_=0,O=!1,A=[],N=!1,H=!1,L="addEventListener"in i,W=e(i),U=1,B=0;for(e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},S=0;SMath.floor(e.pageY)||0===e.pageX&&Math.floor(s)>Math.floor(e.pageX)?(s-=i,n-=a):(ne.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-i.coords[1])i.coords[0]?"swipeleft":"swiperight";return s(a,"swipe",e.Event("swipe",{target:n,swipestart:t,swipestop:i}),!0),s(a,o,e.Event(o,{target:n,swipestart:t,swipestop:i}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,i=this,a=e(i),s={};t=e.data(this,"mobile-events"),t||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=s,s.start=function(t){if(!e.event.special.swipe.eventInProgress){e.event.special.swipe.eventInProgress=!0;var a,o=e.event.special.swipe.start(t),r=t.target,l=!1;s.move=function(t){o&&!t.isDefaultPrevented()&&(a=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,a,i,r),l&&(e.event.special.swipe.eventInProgress=!1)),Math.abs(o.coords[0]-a.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault())},s.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,n.off(c,s.move),s.move=null},n.on(c,s.move).one(d,s.stop)}},a.on(l,s.start)},teardown:function(){var t,i;t=e.data(this,"mobile-events"),t&&(i=t.swipe,delete t.swipe,t.length--,0===t.length&&e.removeData(this,"mobile-events")),i&&(i.start&&e(this).off(l,i.start),i.move&&n.off(c,i.move),i.stop&&n.off(d,i.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,i){e.event.special[t]={setup:function(){e(this).bind(i,e.noop)},teardown:function(){e(this).unbind(i)}}})}(e,this)}),function(e){"use strict";var t={cache:{},support:{},objects:{},init:function(t){return this.each(function(){e(this).unbind("click.lightcase").bind("click.lightcase",function(i){i.preventDefault(),e(this).lightcase("start",t)})})},start:function(i){t.origin=lightcase.origin=this,t.settings=lightcase.settings=e.extend(!0,{idPrefix:"lightcase-",classPrefix:"lightcase-",attrPrefix:"lc-",transition:"elastic",transitionOpen:null,transitionClose:null,transitionIn:null,transitionOut:null,cssTransitions:!0,speedIn:250,speedOut:250,width:null,height:null,maxWidth:800,maxHeight:500,forceWidth:!1,forceHeight:!1,liveResize:!0,fullScreenModeForMobile:!0,mobileMatchExpression:/(iphone|ipod|ipad|android|blackberry|symbian)/,disableShrink:!1,fixedRatio:!0,shrinkFactor:.75,overlayOpacity:.9,slideshow:!1,slideshowAutoStart:!0,timeout:5e3,swipe:!0,useKeys:!0,useCategories:!0,useAsCollection:!1,navigateEndless:!0,closeOnOverlayClick:!0,title:null,caption:null,showTitle:!0,showCaption:!0,showSequenceInfo:!0,inline:{width:"auto",height:"auto"},ajax:{width:"auto",height:"auto",type:"get",dataType:"html",data:{}},iframe:{width:800,height:500,frameborder:0},flash:{width:400,height:205,wmode:"transparent"},video:{width:400,height:225,poster:"",preload:"auto",controls:!0,autobuffer:!0,autoplay:!0,loop:!1},attr:"data-rel",href:null,type:null,typeMapping:{image:"jpg,jpeg,gif,png,bmp",flash:"swf",video:"mp4,mov,ogv,ogg,webm",iframe:"html,php",ajax:"json,txt",inline:"#"},errorMessage:function(){return'

    '+t.settings.labels.errorMessage+"

    "},labels:{errorMessage:"Source could not be found...","sequenceInfo.of":" of ",close:"Close","navigator.prev":"Prev","navigator.next":"Next","navigator.play":"Play","navigator.pause":"Pause"},markup:function(){t.objects.body.append(t.objects.overlay=e('
    '),t.objects.loading=e('
    '),t.objects["case"]=e('')),t.objects["case"].after(t.objects.close=e(''+t.settings.labels.close+""),t.objects.nav=e('
    ')),t.objects.nav.append(t.objects.prev=e(''+t.settings.labels["navigator.prev"]+"").hide(),t.objects.next=e(''+t.settings.labels["navigator.next"]+"").hide(),t.objects.play=e(''+t.settings.labels["navigator.play"]+"").hide(),t.objects.pause=e(''+t.settings.labels["navigator.pause"]+"").hide()),t.objects["case"].append(t.objects.content=e('
    '),t.objects.info=e('
    ')),t.objects.content.append(t.objects.contentInner=e('
    ')),t.objects.info.append(t.objects.sequenceInfo=e('
    '),t.objects.title=e('

    '),t.objects.caption=e('

    '))},onInit:{},onStart:{},onFinish:{},onResize:{},onClose:{},onCleanup:{}},i,t.origin.data?t.origin.data("lc-options"):{}),t.objects.document=e("html"),t.objects.body=e("body"),t._callHooks(t.settings.onInit),t.objectData=t._setObjectData(this),t._addElements(),t._open(),t.dimensions=t.getViewportDimensions()},get:function(e){return t.objects[e]},getObjectData:function(){return t.objectData},_setObjectData:function(i){var a=e(i),s={"this":e(i),title:t.settings.title||a.attr(t._prefixAttributeName("title"))||a.attr("title"),caption:t.settings.caption||a.attr(t._prefixAttributeName("caption"))||a.children("img").attr("alt"),url:t._determineUrl(),requestType:t.settings.ajax.type,requestData:t.settings.ajax.data,requestDataType:t.settings.ajax.dataType,rel:a.attr(t._determineAttributeSelector()),type:t.settings.type||t._verifyDataType(t._determineUrl()),isPartOfSequence:t.settings.useAsCollection||t._isPartOfSequence(a.attr(t.settings.attr),":"),isPartOfSequenceWithSlideshow:t._isPartOfSequence(a.attr(t.settings.attr),":slideshow"),currentIndex:e(t._determineAttributeSelector()).index(a),sequenceLength:e(t._determineAttributeSelector()).length};return s.sequenceInfo=s.currentIndex+1+t.settings.labels["sequenceInfo.of"]+s.sequenceLength,s.prevIndex=s.currentIndex-1,s.nextIndex=s.currentIndex+1,s},_prefixAttributeName:function(e){return"data-"+t.settings.attrPrefix+e},_determineLinkTarget:function(){return t.settings.href||e(t.origin).attr(t._prefixAttributeName("href"))||e(t.origin).attr("href")},_determineAttributeSelector:function(){var i=e(t.origin),a="";if("undefined"!=typeof t.cache.selector)a=t.cache.selector;else if(t.settings.useCategories===!0&&i.attr(t._prefixAttributeName("categories"))){var s=i.attr(t._prefixAttributeName("categories")).split(" ");e.each(s,function(e,i){e>0&&(a+=","),a+="["+t._prefixAttributeName("categories")+'~="'+i+'"]'})}else a="["+t.settings.attr+'="'+i.attr(t.settings.attr)+'"]';return t.cache.selector=a,a},_determineUrl:function(){var i,a=t._verifyDataUrl(t._determineLinkTarget()),s=0,n=0,o="";return e.each(a,function(e,a){switch(t._verifyDataType(a.url)){case"video":var r=document.createElement("video"),l=t._verifyDataType(a.url)+"/"+t._getFileUrlSuffix(a.url);"probably"!==o&&o!==r.canPlayType(l)&&""!==r.canPlayType(l)&&(o=r.canPlayType(l),i=a.url);break;default:t._devicePixelRatio()>=a.density&&a.density>=n&&t._matchMedia()("screen and (min-width:"+a.width+"px)").matches&&a.width>=s&&(s=a.width,n=a.density,i=a.url)}}),i},_normalizeUrl:function(e){var t=/^\d+$/;return e.split(",").map(function(e){var i={width:0,density:0};return e.trim().split(/\s+/).forEach(function(e,a){if(0===a)return i.url=e;var s=e.substring(0,e.length-1),n=e[e.length-1],o=parseInt(s,10),r=parseFloat(s);"w"===n&&t.test(s)?i.width=o:"h"===n&&t.test(s)?i.height=o:"x"!==n||isNaN(r)||(i.density=r)}),i})},_isPartOfSequence:function(i,a){var s=e("["+t.settings.attr+'="'+i+'"]'),n=new RegExp(a);return n.test(i)&&s.length>1},isSlideshowEnabled:function(){return t.objectData.isPartOfSequence&&(t.settings.slideshow===!0||t.objectData.isPartOfSequenceWithSlideshow===!0)},_loadContent:function(){t.cache.originalObject&&t._restoreObject(),t._createObject()},_createObject:function(){var i;switch(t.objectData.type){case"image":i=e(new Image),i.attr({src:t.objectData.url,alt:t.objectData.title});break;case"inline":i=e('
    '),i.html(t._cloneObject(e(t.objectData.url))),e.each(t.settings.inline,function(e,a){i.attr(t._prefixAttributeName(e),a)});break;case"ajax":i=e('
    '),e.each(t.settings.ajax,function(e,a){"data"!==e&&i.attr(t._prefixAttributeName(e),a)});break;case"flash":i=e(''),e.each(t.settings.flash,function(e,t){i.attr(e,t)});break;case"video":i=e(""),i.attr("src",t.objectData.url),e.each(t.settings.video,function(e,t){i.attr(e,t)});break;default:i=e(""),i.attr({src:t.objectData.url}),e.each(t.settings.iframe,function(e,t){i.attr(e,t)})}t._addObject(i),t._loadObject(i)},_addObject:function(e){t.objects.contentInner.html(e),t._loading("start"),t._callHooks(t.settings.onStart),t.settings.showSequenceInfo===!0&&t.objectData.isPartOfSequence?(t.objects.sequenceInfo.html(t.objectData.sequenceInfo),t.objects.sequenceInfo.show()):(t.objects.sequenceInfo.empty(),t.objects.sequenceInfo.hide()),t.settings.showTitle===!0&&void 0!==t.objectData.title&&""!==t.objectData.title?(t.objects.title.html(t.objectData.title),t.objects.title.show()):(t.objects.title.empty(),t.objects.title.hide()),t.settings.showCaption===!0&&void 0!==t.objectData.caption&&""!==t.objectData.caption?(t.objects.caption.html(t.objectData.caption),t.objects.caption.show()):(t.objects.caption.empty(),t.objects.caption.hide())},_loadObject:function(i){switch(t.objectData.type){case"inline":e(t.objectData.url)?t._showContent(i):t.error();break;case"ajax":e.ajax(e.extend({},t.settings.ajax,{url:t.objectData.url,type:t.objectData.requestType,dataType:t.objectData.requestDataType,data:t.objectData.requestData,success:function(e,a,s){"json"===t.objectData.requestDataType?t.objectData.data=e:i.html(e),t._showContent(i)},error:function(e,i,a){t.error()}}));break;case"flash":t._showContent(i);break;case"video":"function"==typeof i.get(0).canPlayType||0===t.objects["case"].find("video").length?t._showContent(i):t.error();break;default:t.objectData.url?(i.on("load",function(){t._showContent(i)}),i.on("error",function(){t.error()})):t.error()}},error:function(){t.objectData.type="error";var i=e('
    ');i.html(t.settings.errorMessage),t.objects.contentInner.html(i),t._showContent(t.objects.contentInner)},_calculateDimensions:function(e){t._cleanupDimensions();var i={ratio:1,objectWidth:e.attr("width")?e.attr("width"):e.attr(t._prefixAttributeName("width")),objectHeight:e.attr("height")?e.attr("height"):e.attr(t._prefixAttributeName("height"))};if(!t.settings.disableShrink)switch(i.maxWidth=parseInt(t.dimensions.windowWidth*t.settings.shrinkFactor),i.maxHeight=parseInt(t.dimensions.windowHeight*t.settings.shrinkFactor),i.maxWidth>t.settings.maxWidth&&(i.maxWidth=t.settings.maxWidth),i.maxHeight>t.settings.maxHeight&&(i.maxHeight=t.settings.maxHeight),i.differenceWidthAsPercent=parseInt(100/i.maxWidth*i.objectWidth),i.differenceHeightAsPercent=parseInt(100/i.maxHeight*i.objectHeight),t.objectData.type){case"image":case"flash":case"video":case"iframe":case"ajax":case"inline":if("image"===t.objectData.type||t.settings.fixedRatio===!0){i.differenceWidthAsPercent>100&&i.differenceWidthAsPercent>i.differenceHeightAsPercent&&(i.objectWidth=i.maxWidth,i.objectHeight=parseInt(i.objectHeight/i.differenceWidthAsPercent*100)),i.differenceHeightAsPercent>100&&i.differenceHeightAsPercent>i.differenceWidthAsPercent&&(i.objectWidth=parseInt(i.objectWidth/i.differenceHeightAsPercent*100),i.objectHeight=i.maxHeight),i.differenceHeightAsPercent>100&&i.differenceWidthAsPercenti.maxWidth&&(i.objectWidth=i.maxWidth);break;default:(isNaN(i.objectWidth)||i.objectWidth>i.maxWidth)&&!t.settings.forceWidth&&(i.objectWidth=i.maxWidth),(isNaN(i.objectHeight)&&"auto"!==i.objectHeight||i.objectHeight>i.maxHeight)&&!t.settings.forceHeight&&(i.objectHeight=i.maxHeight)}if(t.settings.forceWidth){try{i.objectWidth=t.settings[t.objectData.type].width}catch(a){i.objectWidth=t.settings.width||i.objectWidth}i.maxWidth=null}if(e.attr(t._prefixAttributeName("max-width"))&&(i.maxWidth=e.attr(t._prefixAttributeName("max-width"))),t.settings.forceHeight){try{i.objectHeight=t.settings[t.objectData.type].height}catch(a){i.objectHeight=t.settings.height||i.objectHeight}i.maxHeight=null}e.attr(t._prefixAttributeName("max-height"))&&(i.maxHeight=e.attr(t._prefixAttributeName("max-height"))),t._adjustDimensions(e,i)},_adjustDimensions:function(e,i){e.css({width:i.objectWidth,height:i.objectHeight,"max-width":i.maxWidth,"max-height":i.maxHeight}),t.objects.contentInner.css({width:e.outerWidth(),height:e.outerHeight(),"max-width":"100%"}),t.objects["case"].css({width:t.objects.contentInner.outerWidth()}),t.objects["case"].css({"margin-top":parseInt(-(t.objects["case"].outerHeight()/2)),"margin-left":parseInt(-(t.objects["case"].outerWidth()/2))})},_loading:function(e){"start"===e?(t.objects["case"].addClass(t.settings.classPrefix+"loading"),t.objects.loading.show()):"end"===e&&(t.objects["case"].removeClass(t.settings.classPrefix+"loading"),t.objects.loading.hide())},getViewportDimensions:function(){return{windowWidth:e(window).innerWidth(),windowHeight:e(window).innerHeight()}},_verifyDataUrl:function(e){return!(!e||void 0===e||""===e)&&(e.indexOf("#")>-1&&(e=e.split("#"),e="#"+e[e.length-1]),t._normalizeUrl(e.toString()))},_getFileUrlSuffix:function(e){return e.toLowerCase().split("?")[0].split(".")[1]},_verifyDataType:function(e){var i=t.settings.typeMapping;if(!e)return!1;for(var a in i)if(i.hasOwnProperty(a))for(var s=i[a].split(","),n=0;n-1)return a}return"iframe"},_addElements:function(){"undefined"!=typeof t.objects["case"]&&e("#"+t.objects["case"].attr("id")).length||t.settings.markup()},_showContent:function(e){switch(t.objects.document.attr(t._prefixAttributeName("type"),t.objectData.type),t.cache.object=e,t._calculateDimensions(e),t._callHooks(t.settings.onFinish),t.transition["in"]()){case"scrollTop":case"scrollRight":case"scrollBottom":case"scrollLeft":case"scrollHorizontal":case"scrollVertical":t.transition.scroll(t.objects["case"],"in",t.settings.speedIn),t.transition.fade(t.objects.contentInner,"in",t.settings.speedIn);break;case"elastic":t.objects["case"].css("opacity")<1&&(t.transition.zoom(t.objects["case"],"in",t.settings.speedIn),t.transition.fade(t.objects.contentInner,"in",t.settings.speedIn));case"fade":case"fadeInline":t.transition.fade(t.objects["case"],"in",t.settings.speedIn),t.transition.fade(t.objects.contentInner,"in",t.settings.speedIn);break;default:t.transition.fade(t.objects["case"],"in",0)}t._loading("end"),t.isBusy=!1,t.cache.firstOpened||(t.cache.firstOpened=t.objectData["this"]),t.objects.info.hide(),setTimeout(function(){t.transition.fade(t.objects.info,"in",t.settings.speedIn)},t.settings.speedIn)},_processContent:function(){switch(t.isBusy=!0,t.transition.fade(t.objects.info,"out",0),t.settings.transitionOut){case"scrollTop":case"scrollRight":case"scrollBottom":case"scrollLeft":case"scrollVertical":case"scrollHorizontal":t.objects["case"].is(":hidden")?(t.transition.fade(t.objects.contentInner,"out",0),t.transition.fade(t.objects["case"],"out",0,0,function(){t._loadContent()})):t.transition.scroll(t.objects["case"],"out",t.settings.speedOut,function(){t._loadContent()});break;case"fade":t.objects["case"].is(":hidden")?t.transition.fade(t.objects["case"],"out",0,0,function(){t._loadContent()}):t.transition.fade(t.objects["case"],"out",t.settings.speedOut,0,function(){t._loadContent()});break;case"fadeInline":case"elastic":t.objects["case"].is(":hidden")?t.transition.fade(t.objects["case"],"out",0,0,function(){t._loadContent()}):t.transition.fade(t.objects.contentInner,"out",t.settings.speedOut,0,function(){t._loadContent()});break;default:t.transition.fade(t.objects["case"],"out",0,0,function(){t._loadContent()})}},_handleEvents:function(){t._unbindEvents(),t.objects.nav.children().not(t.objects.close).hide(),t.isSlideshowEnabled()&&(t.settings.slideshowAutoStart!==!0&&!t.isSlideshowStarted||t.objects.nav.hasClass(t.settings.classPrefix+"paused")?t._stopTimeout():t._startTimeout()),t.settings.liveResize&&t._watchResizeInteraction(),t.objects.close.click(function(e){e.preventDefault(),t.close()}),t.settings.closeOnOverlayClick===!0&&t.objects.overlay.css("cursor","pointer").click(function(e){e.preventDefault(),t.close()}),t.settings.useKeys===!0&&t._addKeyEvents(),t.objectData.isPartOfSequence&&(t.objects.nav.attr(t._prefixAttributeName("ispartofsequence"),!0),t.objects.nav.data("items",t._setNavigation()),t.objects.prev.click(function(e){e.preventDefault(),t.settings.navigateEndless!==!0&&t.item.isFirst()||(t.objects.prev.unbind("click"),t.cache.action="prev",t.objects.nav.data("items").prev.click(),t.isSlideshowEnabled()&&t._stopTimeout())}),t.objects.next.click(function(e){e.preventDefault(),t.settings.navigateEndless!==!0&&t.item.isLast()||(t.objects.next.unbind("click"),t.cache.action="next",t.objects.nav.data("items").next.click(),t.isSlideshowEnabled()&&t._stopTimeout())}),t.isSlideshowEnabled()&&(t.objects.play.click(function(e){e.preventDefault(),t._startTimeout()}),t.objects.pause.click(function(e){e.preventDefault(),t._stopTimeout()})),t.settings.swipe===!0&&(e.isPlainObject(e.event.special.swipeleft)&&t.objects["case"].on("swipeleft",function(e){e.preventDefault(),t.objects.next.click(),t.isSlideshowEnabled()&&t._stopTimeout()}),e.isPlainObject(e.event.special.swiperight)&&t.objects["case"].on("swiperight",function(e){e.preventDefault(),t.objects.prev.click(),t.isSlideshowEnabled()&&t._stopTimeout()})))},_addKeyEvents:function(){e(document).bind("keyup.lightcase",function(e){if(!t.isBusy)switch(e.keyCode){case 27:t.objects.close.click();break;case 37:t.objectData.isPartOfSequence&&t.objects.prev.click();break;case 39:t.objectData.isPartOfSequence&&t.objects.next.click()}})},_startTimeout:function(){t.isSlideshowStarted=!0,t.objects.play.hide(),t.objects.pause.show(),t.cache.action="next",t.objects.nav.removeClass(t.settings.classPrefix+"paused"),t.timeout=setTimeout(function(){t.objects.nav.data("items").next.click()},t.settings.timeout)},_stopTimeout:function(){t.objects.play.show(),t.objects.pause.hide(),t.objects.nav.addClass(t.settings.classPrefix+"paused"),clearTimeout(t.timeout)},_setNavigation:function(){var i=e(t.cache.selector||t.settings.attr),a=t.objectData.sequenceLength-1,s={prev:i.eq(t.objectData.prevIndex),next:i.eq(t.objectData.nextIndex)};return t.objectData.currentIndex>0?t.objects.prev.show():s.prevItem=i.eq(a),t.objectData.nextIndex<=a?t.objects.next.show():s.next=i.eq(0),t.settings.navigateEndless===!0&&(t.objects.prev.show(),t.objects.next.show()),s},item:{isFirst:function(){return 0===t.objectData.currentIndex},isFirstOpened:function(){return t.objectData["this"].is(t.cache.firstOpened)},isLast:function(){return t.objectData.currentIndex===t.objectData.sequenceLength-1}},_cloneObject:function(e){var i=e.clone(),a=e.attr("id");return e.is(":hidden")?(t._cacheObjectData(e),e.attr("id",t.settings.idPrefix+"temp-"+a).empty()):i.removeAttr("id"),i.show()},isMobileDevice:function(){var e=navigator.userAgent.toLowerCase(),i=e.match(t.settings.mobileMatchExpression);return!!i},isTransitionSupported:function(){var e=t.objects.body.get(0),i=!1,a={transition:"",WebkitTransition:"-webkit-",MozTransition:"-moz-",OTransition:"-o-",MsTransition:"-ms-"};for(var s in a)a.hasOwnProperty(s)&&s in e.style&&(t.support.transition=a[s],i=!0);return i},transition:{"in":function(){return t.settings.transitionOpen&&!t.cache.firstOpened?t.settings.transitionOpen:t.settings.transitionIn},fade:function(e,i,a,s,n){var o="in"===i,r={},l=e.css("opacity"),d={},c=s?s:o?1:0;!t.isOpen&&o||(r.opacity=l,d.opacity=c,e.css(r).show(),t.support.transitions?(d[t.support.transition+"transition"]=a+"ms ease",setTimeout(function(){e.css(d),setTimeout(function(){e.css(t.support.transition+"transition",""),!n||!t.isOpen&&o||n()},a)},15)):(e.stop(),e.animate(d,a,n)))},scroll:function(e,i,a,s){var n="in"===i,o=n?t.settings.transitionIn:t.settings.transitionOut,r="left",l={},d=n?0:1,c=n?"-50%":"50%",p={},h=n?1:0,u=n?"50%":"-50%";if(t.isOpen||!n){switch(o){case"scrollTop":r="top";break;case"scrollRight":c=n?"150%":"50%",u=n?"50%":"150%";break;case"scrollBottom":r="top",c=n?"150%":"50%",u=n?"50%":"150%";break;case"scrollHorizontal":c=n?"150%":"50%",u=n?"50%":"-50%";break;case"scrollVertical":r="top",c=n?"-50%":"50%",u=n?"50%":"150%"}if("prev"===t.cache.action)switch(o){case"scrollHorizontal":c=n?"-50%":"50%",u=n?"50%":"150%";break;case"scrollVertical":c=n?"150%":"50%",u=n?"50%":"-50%"}l.opacity=d,l[r]=c,p.opacity=h,p[r]=u,e.css(l).show(),t.support.transitions?(p[t.support.transition+"transition"]=a+"ms ease",setTimeout(function(){e.css(p),setTimeout(function(){e.css(t.support.transition+"transition",""),!s||!t.isOpen&&n||s()},a)},15)):(e.stop(),e.animate(p,a,s))}},zoom:function(e,i,a,s){var n="in"===i,o={},r=e.css("opacity"),l=n?"scale(0.75)":"scale(1)",d={},c=n?1:0,p=n?"scale(1)":"scale(0.75)";!t.isOpen&&n||(o.opacity=r,o[t.support.transition+"transform"]=l,d.opacity=c,e.css(o).show(),t.support.transitions?(d[t.support.transition+"transform"]=p,d[t.support.transition+"transition"]=a+"ms ease",setTimeout(function(){e.css(d),setTimeout(function(){e.css(t.support.transition+"transform",""),e.css(t.support.transition+"transition",""),!s||!t.isOpen&&n||s()},a)},15)):(e.stop(),e.animate(d,a,s)))}},_callHooks:function(i){"object"==typeof i&&e.each(i,function(e,i){"function"==typeof i&&i.call(t.origin)})},_cacheObjectData:function(i){e.data(i,"cache",{id:i.attr("id"),content:i.html()}),t.cache.originalObject=i},_restoreObject:function(){var i=e('[id^="'+t.settings.idPrefix+'temp-"]');i.attr("id",e.data(t.cache.originalObject,"cache").id),i.html(e.data(t.cache.originalObject,"cache").content)},resize:function(){t.isOpen&&(t.isSlideshowEnabled()&&t._stopTimeout(),t.dimensions=t.getViewportDimensions(),t._calculateDimensions(t.cache.object),t._callHooks(t.settings.onResize))},_watchResizeInteraction:function(){e(window).resize(t.resize)},_unwatchResizeInteraction:function(){e(window).off("resize",t.resize)},_switchToFullScreenMode:function(){t.settings.shrinkFactor=1,t.settings.overlayOpacity=1,e("html").addClass(t.settings.classPrefix+"fullScreenMode")},_open:function(){switch(t.isOpen=!0,t.support.transitions=!!t.settings.cssTransitions&&t.isTransitionSupported(),t.support.mobileDevice=t.isMobileDevice(),t.support.mobileDevice&&(e("html").addClass(t.settings.classPrefix+"isMobileDevice"),t.settings.fullScreenModeForMobile&&t._switchToFullScreenMode()),t.settings.transitionIn||(t.settings.transitionIn=t.settings.transition),t.settings.transitionOut||(t.settings.transitionOut=t.settings.transition),t.transition["in"]()){case"fade":case"fadeInline":case"elastic":case"scrollTop":case"scrollRight":case"scrollBottom":case"scrollLeft":case"scrollVertical":case"scrollHorizontal":t.objects["case"].is(":hidden")&&(t.objects.close.css("opacity",0),t.objects.overlay.css("opacity",0),t.objects["case"].css("opacity",0),t.objects.contentInner.css("opacity",0)),t.transition.fade(t.objects.overlay,"in",t.settings.speedIn,t.settings.overlayOpacity,function(){t.transition.fade(t.objects.close,"in",t.settings.speedIn),t._handleEvents(),t._processContent()});break;default:t.transition.fade(t.objects.overlay,"in",0,t.settings.overlayOpacity,function(){t.transition.fade(t.objects.close,"in",0),t._handleEvents(),t._processContent()})}t.objects.document.addClass(t.settings.classPrefix+"open"),t.objects["case"].attr("aria-hidden","false")},close:function(){switch(t.isOpen=!1,t.isSlideshowEnabled()&&(t._stopTimeout(),t.isSlideshowStarted=!1,t.objects.nav.removeClass(t.settings.classPrefix+"paused")),t.objects.loading.hide(),t._unbindEvents(),t._unwatchResizeInteraction(),e("html").removeClass(t.settings.classPrefix+"open"),t.objects["case"].attr("aria-hidden","true"),t.objects.nav.children().hide(),t.objects.close.hide(),t._callHooks(t.settings.onClose),t.transition.fade(t.objects.info,"out",0),t.settings.transitionClose||t.settings.transitionOut){case"fade":case"fadeInline":case"scrollTop":case"scrollRight":case"scrollBottom":case"scrollLeft":case"scrollHorizontal":case"scrollVertical":t.transition.fade(t.objects["case"],"out",t.settings.speedOut,0,function(){t.transition.fade(t.objects.overlay,"out",t.settings.speedOut,0,function(){t.cleanup()})});break;case"elastic":t.transition.zoom(t.objects["case"],"out",t.settings.speedOut,function(){t.transition.fade(t.objects.overlay,"out",t.settings.speedOut,0,function(){t.cleanup()})});break;default:t.cleanup()}},_unbindEvents:function(){t.objects.overlay.unbind("click"),e(document).unbind("keyup.lightcase"),t.objects["case"].unbind("swipeleft").unbind("swiperight"),t.objects.prev.unbind("click"),t.objects.next.unbind("click"),t.objects.play.unbind("click"),t.objects.pause.unbind("click"),t.objects.close.unbind("click")},_cleanupDimensions:function(){var e=t.objects.contentInner.css("opacity");t.objects["case"].css({width:"",height:"",top:"",left:"","margin-top":"","margin-left":""}),t.objects.contentInner.removeAttr("style").css("opacity",e),t.objects.contentInner.children().removeAttr("style")},cleanup:function(){t._cleanupDimensions(),t.objects.loading.hide(),t.objects.overlay.hide(),t.objects["case"].hide(),t.objects.prev.hide(),t.objects.next.hide(),t.objects.play.hide(),t.objects.pause.hide(),t.objects.document.removeAttr(t._prefixAttributeName("type")),t.objects.nav.removeAttr(t._prefixAttributeName("ispartofsequence")),t.objects.contentInner.empty().hide(),t.objects.info.children().empty(),t.cache.originalObject&&t._restoreObject(),t._callHooks(t.settings.onCleanup),t.cache={}},_matchMedia:function(){return window.matchMedia||window.msMatchMedia},_devicePixelRatio:function(){return window.devicePixelRatio||1},_isPublicMethod:function(e){return"function"==typeof t[e]&&"_"!==e.charAt(0); },_export:function(){window.lightcase={},e.each(t,function(e){t._isPublicMethod(e)&&(lightcase[e]=t[e])})}};t._export(),e.fn.lightcase=function(i){return t._isPublicMethod(i)?t[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void e.error("Method "+i+" does not exist on jQuery.lightcase"):t.init.apply(this,arguments)}}(jQuery),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function t(e){return r.raw?e:encodeURIComponent(e)}function i(e){return r.raw?e:decodeURIComponent(e)}function a(e){return t(r.json?JSON.stringify(e):String(e))}function s(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(o," ")),r.json?JSON.parse(e):e}catch(t){}}function n(t,i){var a=r.raw?t:s(t);return e.isFunction(i)?i(a):a}var o=/\+/g,r=e.cookie=function(s,o,l){if(void 0!==o&&!e.isFunction(o)){if(l=e.extend({},r.defaults,l),"number"==typeof l.expires){var d=l.expires,c=l.expires=new Date;c.setTime(+c+864e5*d)}return document.cookie=[t(s),"=",a(o),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var p=s?void 0:{},h=document.cookie?document.cookie.split("; "):[],u=0,f=h.length;f>u;u++){var m=h[u].split("="),g=i(m.shift()),v=m.join("=");if(s&&s===g){p=n(v,o);break}s||void 0===(v=n(v))||(p[g]=v)}return p};r.defaults={},e.removeCookie=function(t,i){return void 0!==e.cookie(t)&&(e.cookie(t,"",e.extend({},i,{expires:-1})),!e.cookie(t))}});