!function(t){"use strict";t.matchMedia=t.matchMedia||function(t,e){var i,n=t.documentElement,s=n.firstElementChild||n.firstChild,o=t.createElement("body"),r=t.createElement("div");return r.id="mq-test-1",r.style.cssText="position:absolute;top:-100em",o.style.background="none",o.appendChild(r),function(t){return r.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(o,s),i=42===r.offsetWidth,n.removeChild(o),{matches:i,media:t}}}(t.document)}(this),function(t){"use strict";function e(){b(!0)}var i={};t.respond=i,i.update=function(){};var n=[],s=function(){var e=!1;try{e=new t.XMLHttpRequest}catch(i){e=new t.ActiveXObject("Microsoft.XMLHTTP")}return function(){return e}}(),o=function(t,e){var i=s();i&&(i.open("GET",t,!0),i.onreadystatechange=function(){4!==i.readyState||200!==i.status&&304!==i.status||e(i.responseText)},4!==i.readyState&&i.send(null))};if(i.ajax=o,i.queue=n,i.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},i.mediaQueriesSupported=t.matchMedia&&null!==t.matchMedia("only all")&&t.matchMedia("only all").matches,!i.mediaQueriesSupported){var r,a,l,h=t.document,c=h.documentElement,d=[],u=[],p=[],f={},g=30,m=h.getElementsByTagName("head")[0]||c,v=h.getElementsByTagName("base")[0],y=m.getElementsByTagName("link"),w=function(){var t,e=h.createElement("div"),i=h.body,n=c.style.fontSize,s=i&&i.style.fontSize,o=!1;return e.style.cssText="position:absolute;font-size:1em;width:1em",i||(i=o=h.createElement("body"),i.style.background="none"),c.style.fontSize="100%",i.style.fontSize="100%",i.appendChild(e),o&&c.insertBefore(i,c.firstChild),t=e.offsetWidth,o?c.removeChild(i):i.removeChild(e),c.style.fontSize=n,s&&(i.style.fontSize=s),t=l=parseFloat(t)},b=function(e){var i="clientWidth",n=c[i],s="CSS1Compat"===h.compatMode&&n||h.body[i]||n,o={},f=y[y.length-1],v=(new Date).getTime();if(e&&r&&v-r<g)return t.clearTimeout(a),void(a=t.setTimeout(b,g));r=v;for(var x in d)if(d.hasOwnProperty(x)){var C=d[x],_=C.minw,$=C.maxw,S=null===_,E=null===$,T="em";_&&(_=parseFloat(_)*(_.indexOf(T)>-1?l||w():1)),$&&($=parseFloat($)*($.indexOf(T)>-1?l||w():1)),C.hasquery&&(S&&E||!(S||s>=_)||!(E||s<=$))||(o[C.media]||(o[C.media]=[]),o[C.media].push(u[C.rules]))}for(var k in p)p.hasOwnProperty(k)&&p[k]&&p[k].parentNode===m&&m.removeChild(p[k]);p.length=0;for(var D in o)if(o.hasOwnProperty(D)){var N=h.createElement("style"),O=o[D].join("\n");N.type="text/css",N.media=D,m.insertBefore(N,f.nextSibling),N.styleSheet?N.styleSheet.cssText=O:N.appendChild(h.createTextNode(O)),p.push(N)}},x=function(t,e,n){var s=t.replace(i.regex.keyframes,"").match(i.regex.media),o=s&&s.length||0;e=e.substring(0,e.lastIndexOf("/"));var r=function(t){return t.replace(i.regex.urls,"$1"+e+"$2$3")},a=!o&&n;e.length&&(e+="/"),a&&(o=1);for(var l=0;l<o;l++){var h,c,p,f;a?(h=n,u.push(r(t))):(h=s[l].match(i.regex.findStyles)&&RegExp.$1,u.push(RegExp.$2&&r(RegExp.$2))),p=h.split(","),f=p.length;for(var g=0;g<f;g++)c=p[g],d.push({media:c.split("(")[0].match(i.regex.only)&&RegExp.$2||"all",rules:u.length-1,hasquery:c.indexOf("(")>-1,minw:c.match(i.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:c.match(i.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}b()},C=function(){if(n.length){var e=n.shift();o(e.href,function(i){x(i,e.href,e.media),f[e.href]=!0,t.setTimeout(function(){C()},0)})}},_=function(){for(var e=0;e<y.length;e++){var i=y[e],s=i.href,o=i.media,r=i.rel&&"stylesheet"===i.rel.toLowerCase();s&&r&&!f[s]&&(i.styleSheet&&i.styleSheet.rawCssText?(x(i.styleSheet.rawCssText,s,o),f[s]=!0):(/^([a-zA-Z:]*\/\/)/.test(s)||v)&&s.replace(RegExp.$1,"").split("/")[0]!==t.location.host||("//"===s.substring(0,2)&&(s=t.location.protocol+s),n.push({href:s,media:o})))}C()};_(),i.update=_,i.getEmValue=w,t.addEventListener?t.addEventListener("resize",e,!1):t.attachEvent&&t.attachEvent("onresize",e)}}(this),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new n(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){r.detach().trigger("closed.bs.alert").remove()}var s=t(this),o=s.attr("data-target");o||(o=s.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var r=t(o);e&&e.preventDefault(),r.length||(r=s.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.button"),o="object"==typeof e&&e;s||n.data("bs.button",s=new i(this,o)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.6",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,s=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[s]()),setTimeout(t.proxy(function(){n[s](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target);n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),t(i.target).is('input[type="radio"]')||t(i.target).is('input[type="checkbox"]')||i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.carousel"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),r="string"==typeof e?e:o.slide;s||n.data("bs.carousel",s=new i(this,o)),"number"==typeof e?s.to(e):r?s[r]():o.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e),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",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.6",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e),n="prev"==t&&0===i||"next"==t&&i==this.$items.length-1;if(n&&!this.options.wrap)return e;var s="prev"==t?-1:1,o=(i+s)%this.$items.length;return this.$items.eq(o)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.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(e,n){var s=this.$element.find(".item.active"),o=n||this.getItemForDirection(e,s),r=this.interval,a="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var h=o[0],c=t.Event("slide.bs.carousel",{relatedTarget:h,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var u=t.Event("slid.bs.carousel",{relatedTarget:h,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,s.addClass(a),o.addClass(a),s.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(u)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(s.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(u)),r&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var s=function(i){var n,s=t(this),o=t(s.attr("data-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var r=t.extend({},o.data(),s.data()),a=s.attr("data-slide-to");a&&(r.interval=!1),e.call(o,r),a&&o.data("bs.carousel").to(a),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each(function(){var i=t(this),s=i.data("bs.collapse"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!s&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),s||i.data("bs.collapse",s=new n(this,o)),"string"==typeof e&&s[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.6",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(e=s.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){s&&s.length&&(i.call(s,"hide"),e||s.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[r](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.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 t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION):s.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var s=t(n);this.addAriaAndCollapsedClass(e(s),s)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var s=t(this);s.attr("data-target")||n.preventDefault();var o=e(s),r=o.data("bs.collapse"),a=r?"toggle":s.data();i.call(o,a)})}(jQuery),+function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function i(i){i&&3===i.which||(t(s).remove(),t(o).each(function(){var n=t(this),s=e(n),o={relatedTarget:this};s.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(s[0],i.target)||(s.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),s.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new r(this)),"string"==typeof e&&n[e].call(i)})}var s=".dropdown-backdrop",o='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.6",r.prototype.toggle=function(n){var s=t(this);if(!s.is(".disabled, :disabled")){var o=e(s),r=o.hasClass("open");if(i(),!r){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var a={relatedTarget:this};if(o.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var s=e(n),r=s.hasClass("open");if(!r&&27!=i.which||r&&27==i.which)return 27==i.which&&s.find(o).trigger("focus"),n.trigger("click");var a=" li:not(.disabled):visible a",l=s.find(".dropdown-menu"+a);if(l.length){var h=l.index(i.target);38==i.which&&h>0&&h--,40==i.which&&h<l.length-1&&h++,~h||(h=0),l.eq(h).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=n,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,n){return this.each(function(){var s=t(this),o=s.data("bs.modal"),r=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);o||s.data("bs.modal",o=new i(this,r)),"string"==typeof e?o[e](n):r.show&&o.show(n)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.3.6",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var n=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var s=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),s&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});s?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var n=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&s;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+s).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){n.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var n=t(this),s=n.attr("href"),o=t(n.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),r=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},o.data(),n.data());n.is("a")&&i.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(o,r,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tooltip"),o="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||n.data("bs.tooltip",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};i.VERSION="3.3.6",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.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(" "),o=s.length;o--;){var r=s[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.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 t in this.inState)if(this.inState[t])return!0;return!1},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.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 e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var s=this,o=this.tip(),r=this.getUID(this.type);this.setContent(),o.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,h=l.test(a);h&&(a=a.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=o[0].offsetWidth,u=o[0].offsetHeight;if(h){var p=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+u>f.bottom?"top":"top"==a&&c.top-u<f.top?"bottom":"right"==a&&c.right+d>f.width?"left":"left"==a&&c.left-d<f.left?"right":a,o.removeClass(p).addClass(a)}var g=this.getCalculatedOffset(a,c,d,u);this.applyPlacement(g,a);var m=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(i.TRANSITION_DURATION):m()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),s=n[0].offsetWidth,o=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top+=r,e.left+=a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,h=n[0].offsetHeight;"top"==i&&h!=o&&(e.top=e.top+o-h);var c=this.getViewportAdjustedDelta(i,e,l,h);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(i),u=d?2*c.left-s+l:2*c.top-o+h,p=d?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(u,n[0][p],d)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(e){function n(){"in"!=s.hoverState&&o.detach(),s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),e&&e()}var s=this,o=t(this.$tip),r=t.Event("hide.bs."+this.type);if(this.$element.trigger(r),!r.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n(),this.hoverState=null,this},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],n="BODY"==i.tagName,s=i.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));var o=n?{top:0,left:0}:e.offset(),r={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},s,r,a,o)},i.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-r.scroll,l=e.top+o-r.scroll+n;a<r.top?s.top=r.top-a:l>r.top+r.height&&(s.top=r.top+r.height-l)}else{var h=e.left-o,c=e.left+o+i;h<r.left?s.left=r.left-h:c>r.right&&(s.left=r.left+r.width-c)}return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(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(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(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 t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.popover"),o="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||n.data("bs.popover",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.6",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),+function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),s=n.data("bs.scrollspy"),o="object"==typeof i&&i;s||n.data("bs.scrollspy",s=new e(this,o)),"string"==typeof i&&s[i]()})}e.VERSION="3.3.6",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),s=e.data("target")||e.attr("href"),o=/^#./.test(s)&&t(s);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)r!=o[t]&&e>=s[t]&&(void 0===s[t+1]||e<s[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tab");s||n.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.3.6",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(o),e.trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(n);this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})})}}},i.prototype.activate=function(e,n,s){function o(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}var r=n.find("> .active"),a=s&&t.support.transition&&(r.length&&r.hasClass("fade")||!!n.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),r.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var s=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.affix"),o="object"==typeof e&&e;s||n.data("bs.affix",s=new i(this,o)),"string"==typeof e&&s[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.6",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return s<i&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=o.top)&&"bottom":!(s+r<=t-n)&&"bottom";var a=null==this.affixed,l=a?s:o.top,h=a?r:e;return null!=i&&s<=i?"top":null!=n&&l+h>=t-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),n=this.options.offset,s=n.top,o=n.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof n&&(o=s=n),"function"==typeof s&&(s=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var a=this.getState(r,e,s,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),h=t.Event(l+".bs.affix");if(this.$element.trigger(h),h.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-o})}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),function(t){function e(e,i){"disable"===e?(t("input, textarea",i).each(function(){t(this).prop("disabled","disabled")}),t(".button.submit, select",i).css("opacity",.4),t(".button.submit",i).data("temp",t(".button.submit",i).html()),t(".button.submit",i).html("Processing...").attr("disabled","disabled")):(t("input,textarea",i).each(function(){t(this).removeAttr("disabled")}),t(".button.submit, select",i).css("opacity",1),t(".button.submit",i).removeAttr("disabled"),t(".button.submit",i).html(t(".button.submit",i).data("temp")))}function i(e){var i="/jobs/search/",n=!0;t("input,textarea,select","#searchBar").each(function(){n=!0,t(this).data("incifvalid")&&""==t(this).val()&&(n=!1),n&&(i+=t(this).attr("name")+"/"+(null==t(this).val()?"all-"+t(this).attr("name"):t(this).val())+"/")})}function n(t){for(var e=t+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var s=i[n];" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(e))return s.substring(e.length,s.length)}return""}function s(){t(".autoHeightParent").each(function(){o=t(this),r=0,t(".autoHeight",t(this)).each(function(){t(this).css("height","auto")}),function(e){setTimeout(function(){r=0,t(".autoHeight",e).each(function(){parseFloat(t(this).css("height").replace("px",""))>parseFloat(r)&&(r=t(this).css("height").replace("px","")),parseFloat(t(this).find(".entry-content").height())>parseFloat(r)&&(r=t(this).find(".entry-content").height()+162)}),t(".autoHeight",e).each(function(){void 0===t(this).attr("data-auto")||parseInt(t(this).attr("data-auto"))<parseInt(t(window).width())?t(this).css("height",r+"px"):t(this).css("height","auto")})},10)}(o)})}var o,r,a={common:{init:function(){function o(e){m=e.target.files,t(this).prev().html("uploaded "+e.target.files[0].name)}function r(i){var n=i.parents("form");if(i.attr("disabled"))return!1;if(n.hasClass("get-uri")){var s=t("body").hasClass("accountancy_daily")?"/accountancy-daily":"",o=s+"/jobs/search/";t("input,textarea,select",n).each(function(){valid=!0,t(this).data("incifvalid")&&""==t(this).val()&&(valid=!1),valid&&(o+=t(this).attr("name")+"/"+(null==t(this).val()?"all-"+t(this).attr("name"):t(this).val())+"/")});var r=t(".jobs-search .filter select option:selected").val();valid=!0,""!=r&&void 0!==r&&(o+=t(".jobs-search .filter select").attr("name")+"/"+r+"/"),window.location=o}else n.hasClass("ajax-submit")?grecaptcha.ready(function(){grecaptcha.execute("6LcdpeMmAAAAAHmG23AakMaRZ0X5ptkBCmssablZ",{action:"verifyForm"}).then(function(i){t(n).find("[name=token]").remove(),t(n).find("[name=form-action]").remove(),t(n).prepend('<input type="hidden" name="token" value="'+i+'">'),t(n).prepend('<input type="hidden" name="form-action" value="verifyForm">'),e("disable",n);var s=new FormData;return t.each(m,function(t,e){s.append(t,e)}),t("input[type=text],input[type=tel],input[type=file],input[type=email],input[type=hidden],input[type=password],select,textarea,input[type=radio]:checked,input[type=checkbox]:checked",n).each(function(e,i){s.append(t(this).attr("name"),t(this).val())}),t.ajax({type:"POST",url:n.attr("action"),data:s,cache:!1,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){n.find("span.error").remove()},success:function(i){if(e("enable",n),"error"===i.status){errors=i.response;for(var s in errors){var o=t('input[name="'+s+'"],textarea[name="'+s+'"]',n),r="<span class='error'>"+errors[s]+"</span>";o.before(r)}}else{if("returnMsg"===i.status)return alert(i.message),!1;if("ok"===i.status)if(t("span.error",n).remove(),t('input[type="text"]',n).val(""),"popup"===i.action){var a=window[i.popup];"function"==typeof a&&a(),i.actionLocation&&(window.location=i.actionLocation,t(".modal-form.in").length&&t("#"+t(".modal-form.in").attr("id")).modal("hide"))}else window.location=i.actionLocation}},error:function(t,e,i){console.log("ERRORS: "+e)}}),!1})}):t(n).submit();return!1}var a=wNumb({mark:".",thousand:",",prefix:"£",suffix:"",decimals:0}),l=document.getElementById("html5-salary"),h=document.getElementById("html5-salary-value"),c=h.value.split("-"),d={contract:{range:{min:[1e4,2500],"60%":[5e4,1e4],max:16e4},start:[1e4,16e4]},temporary:{range:{min:[0,100],max:5e5},start:[0,5e5]},"":{range:{min:[1e4,2500],"60%":[5e4,1e4],max:16e4},start:[1e4,16e4]},permanent:{range:{min:[1e4,2500],"60%":[5e4,1e4],max:16e4},start:[1e4,16e4]}},u=d[t("#html5-jobtype").val()];switch("temporary"!=t("#html5-jobtype").val()&&null!=c[0]&&null!=c[1]&&(u.start=[c[0],c[1]]),t("#html5-jobtype").val()){case"temporary":t("#search-salary").css("display","none"),t("#salary-range span").html("Hour");break;default:case"contract":case"permanent":t("#salary-range span").html("Annum")}var p={tooltips:[a,a],connect:!0};noUiSlider.create(l,Object.assign(p,u)),l.noUiSlider.on("end",function(t,e){i()}),l.noUiSlider.on("update",function(t,e){var i=t[e],n=h.value.split("-");e?h.value=parseInt(n[0])+"-"+parseInt(i):h.value=parseInt(i)+"-"+parseInt(n[1])}),t(".adv-search-tog").click(function(){t(this).toggleClass("active"),t(".advanced-search").toggleClass("open")}),t("#job-type-select").on("change",function(){switch(t(this).val()){case"temporary":t("#search-salary").css("display","nonde"),console.log(d[t(this).val()]),l.noUiSlider.updateOptions(d[t(this).val()]);break;case"contract":case"permanent":default:t("#salary-range span").html("Annum"),t("#search-salary").css("display","inline-block"),l.noUiSlider.updateOptions(d[t(this).val()])}i()}),t("#advanced-search").click(function(){return t(this).toggleClass("open"),!1}),t(".modal").click(function(){t("iframe").each(function(){var e=t(this).attr("src");t(this).attr("src",e)})}),jQuery.getJSON("/wp-admin/admin-ajax.php?action=get_preload_user_meta",function(t){if(null!==t.results&&Object.keys(t.results).length>0){var e=[];for(key in t.results)jQuery("input[name="+key+"]").length>0&&(e=jQuery("input[name="+key+"]"),jQuery("input[name="+key+"]").val(t.results[key])),jQuery("select[name="+key+"]").length>0}}),t("li.menu-item-has-children > a",".menu").click(function(){return t(this).parent().hasClass("active")?window.location=t(this).attr("href"):(t("li.menu-item-has-children.active",".menu").removeClass("active"),t(this).parent().addClass("active")),!1}),t(".owl-carousel").each(function(){var e={loop:!0,margin:0,nav:!1},i=t(this),n=void 0!==i.data("config")&&i.data("config");e=t.extend(e,n),dataStopAt=t(this).data("carousel-stop-at"),void 0!==dataStopAt?t(window).width()<parseInt(dataStopAt)?i.owlCarousel(e):t(this).removeClass("owl-carousel").addClass("owl-carousel-list"):i.owlCarousel(e)}),t(".tab-control").click(function(){t('[data-target="'+t(this).data("target")+'"]').tab("show")});var f=n("saved_jobs");if(f.length>0){f=t.parseJSON(decodeURIComponent(f));var g=Object.keys(f).length;g>0?(t("#savedJobs","#sign-in").html(g),t("a.button span","#sign-in-form").html(g)):(t("a.button.saved","#sign-in-form").hide(),t("#savedJobs","#sign-in").hide())}t(".searchgoal").click(function(){_gaq.push(["Homepage","Click","SearchJob"])}),t(".toggleSavedJob").click(function(){var e=t(this);t.ajax({type:"POST",url:"wp-admin/admin-ajax.php?action=wp_saved_jobs",data:{func:e.hasClass("saved")?"remove_saved_job":"add_saved_job",job_id:e.data("job-id")},success:function(i){e.hasClass("saved")?e.html("Save Job <span>&gt;</span>"):e.html("Remove Job <span>&gt;</span>"),i>0?(t("#savedJobs","#sign-in").html(i),t("a.button span","#sign-in-form").html(i),t("a.button.saved","#sign-in-form").show(),t("#savedJobs","#sign-in").show()):(t("a.button.saved","#sign-in-form").hide(),t("#savedJobs","#sign-in").hide()),e.toggleClass("saved")},error:function(t,e,i){}})}),i(!0);var m;t("input[type=file]").on("change",o),t(".linkBlock").click(function(){window.location=t("a",t(this)).attr("href")}),t(".mobClick").click(function(){if(t(window).width()<768)return window.location=t("a",t(this)).attr("href"),!1}),t(".submit, .login").click(function(e){e.stopPropagation(),e.preventDefault(),r(t(this),e)}),t(".jobs-search .filter select").change(function(e){e.stopPropagation(),e.preventDefault(),r(t("#search-container .submit"),e)}),s(),t(window).resize(function(){s()}),t(".asideController","header").click(function(e){var i=t(this);t(".asideController","header").each(function(){i.attr("id")!==t(this).attr("id")&&t(this).removeClass("open"),"#menu-sidebar"===t(this).attr("data-target")&&(e.preventDefault(),t("#menu-sidebar").hasClass("closed")?t("#menu-sidebar").show():setTimeout(function(){t("#menu-sidebar").hide()},400),t("#menu-sidebar").css("min-height",t(window).height()-t("#menu-sidebar").position().top+"px"))}),t("aside","header").each(function(){i.attr("data-target")!=="#"+t(this).attr("id")&&t(this).addClass("closed")}),i.toggleClass("open"),void 0!==t(this).attr("data-target")&&(t(t(this).attr("data-target")).toggleClass("closed"),t(window).width()<780&&(t(t(this).attr("data-target")).hasClass("closed")?t("html").css("overflow","scroll"):t("html").css("overflow","hidden")))}),t(".dk-select").hover(function(){},function(){});var v=t(window).scrollTop();t(window).on("scroll",function(){t(window).scrollTop()<v?(t("form.get-uri").removeClass("slideOut"),t("header.banner").removeClass("scrolled")):t(window).scrollTop()>100&&(t("header.banner").addClass("scrolled"),t("form.get-uri").addClass("slideOut")),v=t(window).scrollTop()})},finalize:function(){setTimeout(function(){},200)}},home:{init:function(){function e(){jQuery(".fourBlocks .circle").each(function(){var t=jQuery(this),e=t.children("span").text();jQuery({Counter:0}).animate({Counter:e},{duration:800,easing:"swing",step:function(){t.children("span").addClass("count"),t.children("span").text(Math.ceil(this.Counter))}})})}function i(e,i){var n=t(window).scrollTop(),s=n+t(window).height(),o=t(e).offset().top+200,r=o+t(e).height();return 1==i?n<o&&s>r:r<s&&o>n}t("article",".banner").click(function(e){t(".button",t(this)).is(":visible")||(window.location=t(".button",t(this)).attr("href"))}),t(".counter").countimator();var n=!0;t(window).on("scroll load",function(){if(t(".fourBlocks").length>0){var s=i(t(".fourBlocks"),!1);s&&1==n&&(e(),n=!1)}})},finalize:function(){}},contact_us:{init:function(){}},about_us:{init:function(){}}},l={fire:function(t,e,i){var n,s=a;e=void 0===e?"init":e,n=""!==t,n=n&&s[t],n=n&&"function"==typeof s[t][e],n&&s[t][e](i)},loadEvents:function(){l.fire("common"),t.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(t,e){l.fire(e),l.fire(e,"finalize")}),l.fire("common","finalize")}};t(document).ready(l.loadEvents)}(jQuery),function(t,e){function i(i,c){function d(){function n(){c.animateOnInit&&c.animateOnAppear&&l(i)&&(t(e).off("scroll touchmove",n),C.call(T))}var s,o,r,a=(f(),g()),h=p();a||(s=v(),s&&("number"!=typeof c.value?c.value=s.nodeValue:c.count=s.nodeValue)),h||(o=y(),o&&(c.max=o.nodeValue)),r=k.find("script[type*='text/x-']"),r.length&&(c.template=r.html(),r.remove()),t(e).on("resize",function(){m.call(T)}),t(e).on("scroll touchmove",n),c.animateOnInit?c.animateOnAppear&&l(i)?(c.count="number"==typeof a?a:0,C.call(T)):b.call(this):(c.count=f(),b.call(this)),m.call(this)}function u(){var t=parseFloat(c.min);return isNaN(t)?0:t}function p(){var t=parseFloat(c.max);return isNaN(t)?0:t}function f(){var t=(p(),u()),e=(g(),parseFloat(c.value));return isNaN(e)&&(e=t),e}function g(){var t=(p(),u()),e=parseFloat(c.count);return isNaN(e)&&(e=t),e}function m(){}function v(t){var e=k.find(c.countSelector)[0];return e||(e=k.find("*").last().siblings().addBack()[0]),a(e||i)[0]}function y(t){var e=k.find(c.maxSelector)[0];return e?a(e)[0]:null}function w(t){var e=c.decimals,i=c.decimalDelimiter,n=c.thousandDelimiter,s=o(t,e,i,n);return s=r(s,c.pad)}function b(){var s,o,r,a,l,h,d,m,b,x=p(),C=u(),_=f(),$=g(),S=w($),E=w(_),T=w(x),k=w(C),D=c.engine||"undefined"!=typeof e.Handlebars?e.Handlebars:null,N=c.template;try{r=t(c.template),N=r.length&&r[0].innerHTML||N}catch(O){}D&&N?(a=D.compile(N),a&&(l=t.extend({},c,{count:S,value:E,max:T,min:k}),s=a(l)),o=document.createElement("div"),o.innerHTML=s,h=o.childNodes,t(i).contents().remove(),t(i).append(h)):(d=v(),d&&(d.nodeValue=S),m=y(),m&&(m.nodeValue=T),d||m||(i.innerHTML=S)),c.style&&(b=t.fn[n].getStyle(c.style),b&&b.render&&b.render.call(i,$,c))}function x(t){c.value=t,D||C()}function C(){D||(S=(new Date).getTime(),E=g(),D=!0,"function"==typeof c.start&&c.start.call(i),h(_))}function _(){var t=c.duration,e=(p(),f()),n=(new Date).getTime(),s=S+t,o=Math.min((t-(s-n))/t,1),r=E+o*(e-E);c.count=r,b.call(this),"function"==typeof c.step&&c.step.call(i,r,c),o<1&&D?h(_):$.call(this)}function $(){D=!1,"function"==typeof c.complete&&c.complete.call(i)}var S,E,T=this,k=t(i),D=!1;c=t.extend({},s,c,k.data()),this.resize=function(){m.call(this)},this.animate=function(t){x.call(this,t)},this.setOptions=function(e){var i=this.getOptions();t.extend(!0,c,e),c.value!==i.value&&C()},this.getOptions=function(){return t.extend(!0,{},c)},d.call(this)}var n="countimator",s={count:0,value:null,min:null,max:0,duration:1e3,countSelector:".counter-count",maxSelector:".counter-max",template:null,engine:null,animateOnInit:!0,animateOnAppear:!0,decimals:0,decimalDelimiter:".",thousandDelimiter:null,pad:!1,style:null,start:function(){},step:function(t){},complete:function(){}},o=function(t,e,i,n){e=isNaN(e=Math.abs(e))?2:e,i="undefined"==typeof i?".":i,n="undefined"==typeof n?",":n,n="string"==typeof n?n:"";var s=t<0?"-":"",o=Math.abs(+t||0).toFixed(e),r=String(parseInt(o)),a=r.length>3?r.length%3:0;return s+(a?r.substr(0,a)+n:"")+r.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+n)+(e?i+Math.abs(o-r).toFixed(e).slice(2):"")},r=function(t,e){for(var i=""+t;i.length<e;)i="0"+i;return i},a=function(e){return t(e).contents().filter(function(){return 3===this.nodeType})},l=function(i){var n=t(i),s=t(e),o=s.scrollTop(),r=o+s.height(),a=n.offset().top,l=a+n.height();return l<=r&&a>=o},h=e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame||e.oRequestAnimationFrame||function(t){e.setTimeout(t,1e3/60)};t.fn[n]=function(e){return this.each(function(){var s=t.extend(!0,{},e),o=t(this).data(n);return o?o.setOptions(s):t(this).data(n,new i(this,s)),t(this)})},function(){var e={};t.fn[n].registerStyle=function(t,i){e[t]=i},t.fn[n].getStyle=function(t){return e[t]}}()}(jQuery,window),!function(t,e,i,n){function s(e,i){this.settings=null,this.options=t.extend({},s.Defaults,i),this.$element=t(e),this.drag=t.extend({},u),this.state=t.extend({},p),this.e=t.extend({},f),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],t.each(s.Plugins,t.proxy(function(t,e){this._plugins[t[0].toLowerCase()+t.slice(1)]=new e(this)},this)),t.each(s.Pipe,t.proxy(function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})},this)),this.setup(),this.initialize()}function o(t){if(t.touches!==n)return{x:t.touches[0].pageX,y:t.touches[0].pageY};if(t.touches===n){if(t.pageX!==n)return{x:t.pageX,y:t.pageY};if(t.pageX===n)return{x:t.clientX,y:t.clientY}}}function r(t){var e,n,s=i.createElement("div"),o=t;for(e in o)if(n=o[e],"undefined"!=typeof s.style[n])return s=null,[n,e];return[!1]}function a(){return r(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function l(){return r(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function h(){return r(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function c(){return"ontouchstart"in e||!!navigator.msMaxTouchPoints}function d(){return e.navigator.msPointerEnabled}var u,p,f;u={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},p={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},f={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},s.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},s.Width={Default:"default",Inner:"inner",Outer:"outer"},s.Plugins={},s.Pipe=[{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var t=this._clones,e=this.$stage.children(".cloned");(e.length!==t.length||!this.settings.loop&&t.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var t,e,i=this._clones,n=this._items,s=this.settings.loop?i.length-Math.max(2*this.settings.items,4):0;for(t=0,e=Math.abs(s/2);e>t;t++)s>0?(this.$stage.children().eq(n.length+i.length-1).remove(),i.pop(),this.$stage.children().eq(0).remove(),i.pop()):(i.push(i.length/2),this.$stage.append(n[i[i.length-1]].clone().addClass("cloned")),i.push(n.length-1-(i.length-1)/2),this.$stage.prepend(n[i[i.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var t,e,i,n=this.settings.rtl?1:-1,s=(this.width()/this.settings.items).toFixed(3),o=0;for(this._coordinates=[],e=0,i=this._clones.length+this._items.length;i>e;e++)t=this._mergers[this.relative(e)],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,o+=(this.settings.autoWidth?this._items[this.relative(e)].width()+this.settings.margin:s*t)*n,this._coordinates.push(o)}},{filter:["width","items","settings"],run:function(){var e,i,n=(this.width()/this.settings.items).toFixed(3),s={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(s),s={width:this.settings.autoWidth?"auto":n-this.settings.margin},s[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&t.grep(this._mergers,function(t){return t>1}).length>0)for(e=0,i=this._coordinates.length;i>e;e++)s.width=Math.abs(this._coordinates[e])-Math.abs(this._coordinates[e-1]||0)-this.settings.margin,this.$stage.children().eq(e).css(s);else this.$stage.children().css(s)}},{filter:["width","items","settings"],run:function(t){t.current&&this.reset(this.$stage.children().index(t.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,s=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*s,l=[];for(i=0,n=this._coordinates.length;n>i;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*s,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],s.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var e,i,s;if(e=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:n,s=this.$element.children(i).width(),e.length&&0>=s)return this.preloadAutoWidthImages(e),!1}this.$element.addClass("owl-loading"),this.$stage=t("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},s.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,n=-1,s=null;i?(t.each(i,function(t){e>=t&&t>n&&(n=Number(t))}),s=t.extend({},this.options,i[n]),delete s.responsive,s.responsiveClass&&this.$element.attr("class",function(t,e){return e.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+n)):s=t.extend({},this.options),(null===this.settings||this._breakpoint!==n)&&(this.trigger("change",{property:{name:"settings",value:s}}),this._breakpoint=n,this.settings=s,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},s.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},s.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},s.prototype.update=function(){for(var e=0,i=this._pipe.length,n=t.proxy(function(t){return this[t]},this._invalidated),s={};i>e;)(this._invalidated.all||t.grep(this._pipe[e].filter,n).length>0)&&this._pipe[e].run(s),e++;this._invalidated={}},s.prototype.width=function(t){switch(t=t||s.Width.Default){case s.Width.Inner:case s.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},s.prototype.refresh=function(){return 0!==this._items.length&&((new Date).getTime(),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=e.orientation,this.watchVisibility(),this.trigger("refreshed"),void 0)},s.prototype.eventsCall=function(){this.e._onDragStart=t.proxy(function(t){this.onDragStart(t)},this),this.e._onDragMove=t.proxy(function(t){this.onDragMove(t)},this),this.e._onDragEnd=t.proxy(function(t){this.onDragEnd(t)},this),this.e._onResize=t.proxy(function(t){this.onResize(t)},this),this.e._transitionEnd=t.proxy(function(t){this.transitionEnd(t)},this),this.e._preventClick=t.proxy(function(t){this.preventClick(t)},this)},s.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},s.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!this.trigger("resize").isDefaultPrevented()&&(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized"))))},s.prototype.eventsRouter=function(t){var e=t.type;"mousedown"===e||"touchstart"===e?this.onDragStart(t):"mousemove"===e||"touchmove"===e?this.onDragMove(t):"mouseup"===e||"touchend"===e?this.onDragEnd(t):"touchcancel"===e&&this.onDragEnd(t)},s.prototype.internalEvents=function(){
var i=(c(),d());this.settings.mouseDrag?(this.$stage.on("mousedown",t.proxy(function(t){this.eventsRouter(t)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!i&&this.$stage.on("touchstart touchcancel",t.proxy(function(t){this.eventsRouter(t)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(e,"resize",t.proxy(this.onThrottledResize,this))},s.prototype.onDragStart=function(n){var s,r,a,l;if(s=n.originalEvent||n||e.event,3===s.which||this.state.isTouch)return!1;if("mousedown"===s.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,r=o(s).x,a=o(s).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)l=this.getTransformProperty(),this.drag.offsetX=l,this.animate(l),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=r-this.drag.offsetX,this.drag.startY=a-this.drag.offsetY,this.drag.start=r-this.drag.startX,this.drag.targetEl=s.target||s.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),t(i).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",t.proxy(function(t){this.eventsRouter(t)},this))},s.prototype.onDragMove=function(t){var i,s,r,a,l,h;this.state.isTouch&&(this.state.isScrolling||(i=t.originalEvent||t||e.event,s=o(i).x,r=o(i).y,this.drag.currentX=s-this.drag.startX,this.drag.currentY=r-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(a=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),l=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),h=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,a+h),l+h)),(this.drag.distance>8||this.drag.distance<-8)&&(i.preventDefault!==n?i.preventDefault():i.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},s.prototype.onDragEnd=function(e){var n,s,o;if(this.state.isTouch){if("mouseup"===e.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),n=this.drag.endTime-this.drag.startTime,s=Math.abs(this.drag.distance),(s>3||n>300)&&this.removeClick(this.drag.targetEl),o=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(o),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(o)||this.transitionEnd(),this.drag.distance=0,t(i).off(".owl.dragEvents")}},s.prototype.removeClick=function(i){this.drag.targetEl=i,t(i).on("click.preventClick",this.e._preventClick),e.setTimeout(function(){t(i).off("click.preventClick")},300)},s.prototype.preventClick=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),t(e.target).off("click.preventClick")},s.prototype.getTransformProperty=function(){var t,i;return t=e.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),t=t.replace(/matrix(3d)?\(|\)/g,"").split(","),i=16===t.length,i!==!0?t[4]:t[12]},s.prototype.closest=function(e){var i=-1,n=30,s=this.width(),o=this.coordinates();return this.settings.freeDrag||t.each(o,t.proxy(function(t,r){return e>r-n&&r+n>e?i=t:this.op(e,"<",r)&&this.op(e,">",o[t+1]||r-s)&&(i="left"===this.state.direction?t+1:t),-1===i},this)),this.settings.loop||(this.op(e,">",o[this.minimum()])?i=e=this.minimum():this.op(e,"<",o[this.maximum()])&&(i=e=this.maximum())),i},s.prototype.animate=function(e){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+e+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:e+"px"}):this.$stage.animate({left:e},this.speed()/1e3,this.settings.fallbackEasing,t.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},s.prototype.current=function(t){if(t===n)return this._current;if(0===this._items.length)return n;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==n&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},s.prototype.invalidate=function(t){this._invalidated[t]=!0},s.prototype.reset=function(t){t=this.normalize(t),t!==n&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},s.prototype.normalize=function(e,i){var s=i?this._items.length:this._items.length+this._clones.length;return!t.isNumeric(e)||1>s?n:e=this._clones.length?(e%s+s)%s:Math.max(this.minimum(i),Math.min(this.maximum(i),e))},s.prototype.relative=function(t){return t=this.normalize(t),t-=this._clones.length/2,this.normalize(t,!0)},s.prototype.maximum=function(t){var e,i,n,s=0,o=this.settings;if(t)return this._items.length-1;if(!o.loop&&o.center)e=this._items.length-1;else if(o.loop||o.center)if(o.loop||o.center)e=this._items.length+o.items;else{if(!o.autoWidth&&!o.merge)throw"Can not detect maximum absolute position.";for(revert=o.rtl?1:-1,i=this.$stage.width()-this.$element.width();(n=this.coordinates(s))&&!(n*revert>=i);)e=++s}else e=this._items.length-o.items;return e},s.prototype.minimum=function(t){return t?0:this._clones.length/2},s.prototype.items=function(t){return t===n?this._items.slice():(t=this.normalize(t,!0),this._items[t])},s.prototype.mergers=function(t){return t===n?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},s.prototype.clones=function(e){var i=this._clones.length/2,s=i+this._items.length,o=function(t){return t%2===0?s+t/2:i-(t+1)/2};return e===n?t.map(this._clones,function(t,e){return o(e)}):t.map(this._clones,function(t,i){return t===e?o(i):null})},s.prototype.speed=function(t){return t!==n&&(this._speed=t),this._speed},s.prototype.coordinates=function(e){var i=null;return e===n?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[e-1]||0))/2*(this.settings.rtl?-1:1)):i=this._coordinates[e-1]||0,i)},s.prototype.duration=function(t,e,i){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},s.prototype.to=function(i,n){if(this.settings.loop){var s=i-this.relative(this.current()),o=this.current(),r=this.current(),a=this.current()+s,l=0>r-a,h=this._clones.length+this._items.length;a<this.settings.items&&l===!1?(o=r+this._items.length,this.reset(o)):a>=h-this.settings.items&&l===!0&&(o=r-this._items.length,this.reset(o)),e.clearTimeout(this.e._goToLoop),this.e._goToLoop=e.setTimeout(t.proxy(function(){this.speed(this.duration(this.current(),o+s,n)),this.current(o+s),this.update()},this),30)}else this.speed(this.duration(this.current(),i,n)),this.current(i),this.update()},s.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},s.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},s.prototype.transitionEnd=function(t){return(t===n||(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)===this.$stage.get(0)))&&(this.state.inMotion=!1,void this.trigger("translated"))},s.prototype.viewport=function(){var n;if(this.options.responsiveBaseElement!==e)n=t(this.options.responsiveBaseElement).width();else if(e.innerWidth)n=e.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";n=i.documentElement.clientWidth}return n},s.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(t.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},s.prototype.add=function(t,e){e=e===n?this._items.length:this.normalize(e,!0),this.trigger("add",{content:t,position:e}),0===this._items.length||e===this._items.length?(this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:t,position:e})},s.prototype.remove=function(t){t=this.normalize(t,!0),t!==n&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},s.prototype.addTriggerableEvents=function(){var e=t.proxy(function(e,i){return t.proxy(function(t){t.relatedTarget!==this&&(this.suppress([i]),e.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);t.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},t.proxy(function(t,i){this.$element.on(t+".owl.carousel",e(i,t+".owl.carousel"))},this))},s.prototype.watchVisibility=function(){function i(t){return t.offsetWidth>0&&t.offsetHeight>0}function n(){i(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),e.clearInterval(this.e._checkVisibile))}i(this.$element.get(0))||(this.$element.addClass("owl-hidden"),e.clearInterval(this.e._checkVisibile),this.e._checkVisibile=e.setInterval(t.proxy(n,this),500))},s.prototype.preloadAutoWidthImages=function(e){var i,n,s,o;i=0,n=this,e.each(function(r,a){s=t(a),o=new Image,o.onload=function(){i++,s.attr("src",o.src),s.css("opacity",1),i>=e.length&&(n.state.imagesLoaded=!0,n.initialize())},o.src=s.attr("src")||s.attr("data-src")||s.attr("data-src-retina")})},s.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&t(e).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var n in this._plugins)this._plugins[n].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),t(i).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},s.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?t>i:i>t;case">":return n?i>t:t>i;case">=":return n?i>=t:t>=i;case"<=":return n?t>=i:i>=t}},s.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},s.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},s.prototype.trigger=function(e,i,n){var s={item:{count:this._items.length,index:this.current()}},o=t.camelCase(t.grep(["on",e,n],function(t){return t}).join("-").toLowerCase()),r=t.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},s,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(r)}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].apply(this,r)),r},s.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},s.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},s.prototype.browserSupport=function(){if(this.support3d=h(),this.support3d){this.transformVendor=l();var t=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=t[a()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=e.orientation},t.fn.owlCarousel=function(e){return this.each(function(){t(this).data("owlCarousel")||t(this).data("owlCarousel",new s(this,e))})},t.fn.owlCarousel.Constructor=s}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,s=i.center&&-1*n||0,o=(e.property&&e.property.value||this._core.current())+s,r=this._core.clones().length,a=t.proxy(function(t,e){this.load(e)},this);s++<n;)this.load(r/2+this._core.relative(o)),r&&t.each(this._core.clones(this._core.relative(o++)),a)},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1},i.prototype.load=function(i){var n=this._core.$stage.children().eq(i),s=n&&n.find(".owl-lazy");!s||t.inArray(n.get(0),this._loaded)>-1||(s.each(t.proxy(function(i,n){var s,o=t(n),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("src",r):(s=new Image,s.onload=t.proxy(function(){o.css({"background-image":"url("+r+")",opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")},this),s.src=r)},this)),this._loaded.push(n.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(t){var e=function(i){this._core=i,this._handlers={"initialized.owl.carousel":t.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(t,e,i){var n=function(e){this._core=e,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":t.proxy(function(t){this._core.settings.video&&!this.isInFullScreen()&&t.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":t.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":"youtube",n=t.attr("data-vimeo-id")||t.attr("data-youtube-id"),s=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(n=r.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),n[3].indexOf("youtu")>-1)i="youtube";else{if(!(n[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");i="vimeo"}n=n[6],this._videos[r]={type:i,id:n,width:s,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},n.prototype.thumbnail=function(e,i){var n,s,o,r=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",a=e.find("img"),l="src",h="",c=this._core.settings,d=function(t){s='<div class="owl-video-play-icon"></div>',n=c.lazyLoad?'<div class="owl-video-tn '+h+'" '+l+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',e.after(n),e.after(s)};return e.wrap('<div class="owl-video-wrapper"'+r+"></div>"),this._core.settings.lazyLoad&&(l="data-src",h="owl-lazy"),a.length?(d(a.attr(l)),a.remove(),!1):void("youtube"===i.type?(o="http://img.youtube.com/vi/"+i.id+"/hqdefault.jpg",d(o)):"vimeo"===i.type&&t.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t[0].thumbnail_large,d(o)}}))},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},n.prototype.play=function(e){this._core.trigger("play",null,"video"),this._playing&&this.stop();var i,n,s=t(e.target||e.srcElement),o=s.closest("."+this._core.settings.itemClass),r=this._videos[o.attr("data-video")],a=r.width||"100%",l=r.height||this._core.$stage.height();"youtube"===r.type?i='<iframe width="'+a+'" height="'+l+'" src="http://www.youtube.com/embed/'+r.id+"?autoplay=1&v="+r.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===r.type&&(i='<iframe src="http://player.vimeo.com/video/'+r.id+'?autoplay=1" width="'+a+'" height="'+l+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),o.addClass("owl-video-playing"),this._playing=o,n=t('<div style="height:'+l+"px; width:"+a+'px" class="owl-video-frame">'+i+"</div>"),s.after(n)},n.prototype.isInFullScreen=function(){var n=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return n&&t(n).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(n&&this._fullscreen&&this._playing)&&(this._fullscreen?(this._fullscreen=!1,!1):!this._playing||this._core.state.orientation===e.orientation||(this._core.state.orientation=e.orientation,!1))},n.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=function(e){this.core=e,this.core.options=t.extend({},s.Defaults,this.core.options),this.swapping=!0,this.previous=n,this.next=n,this.handlers={"change.owl.carousel":t.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":t.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};s.Defaults={animateOut:!1,animateIn:!1},s.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var e,i=t.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i)),o&&s.addClass("animated owl-animated-in").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i))}},s.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},s.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=s}(window.Zepto||window.jQuery,window,document),function(t,e,i){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":t.proxy(function(){this.autoplay()},this),"play.owl.autoplay":t.proxy(function(t,e,i){this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(e.clearInterval(this.interval),this.interval=e.setInterval(t.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):e.clearInterval(this.interval)},n.prototype.play=function(){return i.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void e.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},n.prototype.stop=function(){e.clearInterval(this.interval)},n.prototype.pause=function(){e.clearInterval(this.interval)},n.prototype.destroy=function(){var t,i;e.clearInterval(this.interval);for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.push(t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,0,t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":t.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":t.proxy(function(t){if("position"==t.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),i=this._core.maximum(),n=this._core.minimum();t.data=t.property.value>i?e>=i?n:i:t.property.value<n?i:t.property.value}},this),"changed.owl.carousel":t.proxy(function(t){"position"==t.property.name&&this.draw()},this),"refreshed.owl.carousel":t.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},e.prototype.initialize=function(){var e,i,n=this._core.settings;n.dotsData||(this._templates=[t("<div>").addClass(n.dotClass).append(t("<span>")).prop("outerHTML")]),n.navContainer&&n.dotsContainer||(this._controls.$container=t("<div>").addClass(n.controlsClass).appendTo(this.$element)),this._controls.$indicators=n.dotsContainer?t(n.dotsContainer):t("<div>").hide().addClass(n.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",t.proxy(function(e){var i=t(e.target).parent().is(this._controls.$indicators)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(i,n.dotsSpeed)},this)),e=n.navContainer?t(n.navContainer):t("<div>").addClass(n.navContainerClass).prependTo(this._controls.$container),this._controls.$next=t("<"+n.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(n.navClass[0]).html(n.navText[0]).hide().prependTo(e).on("click",t.proxy(function(){this.prev(n.navSpeed)},this)),this._controls.$next.addClass(n.navClass[1]).html(n.navText[1]).hide().appendTo(e).on("click",t.proxy(function(){this.next(n.navSpeed)},this));for(i in this._overrides)this._core[i]=t.proxy(this[i],this)},e.prototype.destroy=function(){var t,e,i,n;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i,n=this._core.settings,s=this._core.clones().length/2,o=s+this._core.items().length,r=n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],t=s,e=0,i=0;o>t;t++)(e>=r||0===e)&&(this._pages.push({start:t-s,end:t-s+r-1}),e=0,++i),e+=this._core.mergers(this._core.relative(t))},e.prototype.draw=function(){var e,i,n="",s=this._core.settings,o=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!s.nav||s.loop||s.navRewind||(this._controls.$previous.toggleClass("disabled",0>=o),this._controls.$next.toggleClass("disabled",o>=this._core.maximum())),this._controls.$previous.toggle(s.nav),this._controls.$next.toggle(s.nav),s.dots){if(e=this._pages.length-this._controls.$indicators.children().length,s.dotData&&0!==e){for(i=0;i<this._controls.$indicators.children().length;i++)n+=this._templates[this._core.relative(i)];this._controls.$indicators.html(n)}else e>0?(n=new Array(e+1).join(this._templates[0]),this._controls.$indicators.append(n)):0>e&&this._controls.$indicators.children().slice(e).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(t.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(s.dots)},e.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,function(t){return t.start<=e&&t.end>=e}).pop()},e.prototype.getPosition=function(e){var i,n,s=this._core.settings;return"page"==s.slideBy?(i=t.inArray(this.current(),this._pages),n=this._pages.length,e?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,e?i+=s.slideBy:i-=s.slideBy),i},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,i,n){var s;n?t.proxy(this._overrides.to,this._core)(e,i):(s=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%s+s)%s].start,i))},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e){"use strict";var i=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(){"URLHash"==this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){var i=t(e.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[i]=e.content},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(){var t=e.location.hash.substring(1),i=this._core.$stage.children(),n=this._hashes[t]&&i.index(this._hashes[t])||0;return!!t&&void this._core.to(n,!1,!0)},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var i,n;t(e).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():window.wNumb=t()}(function(){"use strict";function t(t){return t.split("").reverse().join("")}function e(t,e){return t.substring(0,e.length)===e}function i(t,e){return t.slice(-1*e.length)===e}function n(t,e,i){if((t[e]||t[i])&&t[e]===t[i])throw new Error(e)}function s(t){return"number"==typeof t&&isFinite(t)}function o(t,e){return t=t.toString().split("e"),t=Math.round(+(t[0]+"e"+(t[1]?+t[1]+e:e))),t=t.toString().split("e"),(+(t[0]+"e"+(t[1]?+t[1]-e:-e))).toFixed(e)}function r(e,i,n,r,a,l,h,c,d,u,p,f){var g,m,v,y=f,w="",b="";return l&&(f=l(f)),!!s(f)&&(e!==!1&&0===parseFloat(f.toFixed(e))&&(f=0),f<0&&(g=!0,f=Math.abs(f)),e!==!1&&(f=o(f,e)),f=f.toString(),f.indexOf(".")!==-1?(m=f.split("."),
v=m[0],n&&(w=n+m[1])):v=f,i&&(v=t(v).match(/.{1,3}/g),v=t(v.join(t(i)))),g&&c&&(b+=c),r&&(b+=r),g&&d&&(b+=d),b+=v,b+=w,a&&(b+=a),u&&(b=u(b,y)),b)}function a(t,n,o,r,a,l,h,c,d,u,p,f){var g,m="";return p&&(f=p(f)),!(!f||"string"!=typeof f)&&(c&&e(f,c)&&(f=f.replace(c,""),g=!0),r&&e(f,r)&&(f=f.replace(r,"")),d&&e(f,d)&&(f=f.replace(d,""),g=!0),a&&i(f,a)&&(f=f.slice(0,-1*a.length)),n&&(f=f.split(n).join("")),o&&(f=f.replace(o,".")),g&&(m+="-"),m+=f,m=m.replace(/[^0-9\.\-.]/g,""),""!==m&&(m=Number(m),h&&(m=h(m)),!!s(m)&&m))}function l(t){var e,i,s,o={};for(void 0===t.suffix&&(t.suffix=t.postfix),e=0;e<d.length;e+=1)if(i=d[e],s=t[i],void 0===s)"negative"!==i||o.negativeBefore?"mark"===i&&"."!==o.thousand?o[i]=".":o[i]=!1:o[i]="-";else if("decimals"===i){if(!(s>=0&&s<8))throw new Error(i);o[i]=s}else if("encoder"===i||"decoder"===i||"edit"===i||"undo"===i){if("function"!=typeof s)throw new Error(i);o[i]=s}else{if("string"!=typeof s)throw new Error(i);o[i]=s}return n(o,"mark","thousand"),n(o,"prefix","negative"),n(o,"prefix","negativeBefore"),o}function h(t,e,i){var n,s=[];for(n=0;n<d.length;n+=1)s.push(t[d[n]]);return s.push(i),e.apply("",s)}function c(t){return this instanceof c?void("object"==typeof t&&(t=l(t),this.to=function(e){return h(t,r,e)},this.from=function(e){return h(t,a,e)})):new c(t)}var d=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];return c}),function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():window.noUiSlider=t()}(function(){"use strict";function t(t){return"object"==typeof t&&"function"==typeof t.to&&"function"==typeof t.from}function e(t){t.parentElement.removeChild(t)}function i(t){return null!==t&&void 0!==t}function n(t){t.preventDefault()}function s(t){return t.filter(function(t){return!this[t]&&(this[t]=!0)},{})}function o(t,e){return Math.round(t/e)*e}function r(t,e){var i=t.getBoundingClientRect(),n=t.ownerDocument,s=n.documentElement,o=g(n);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(o.x=0),e?i.top+o.y-s.clientTop:i.left+o.x-s.clientLeft}function a(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function l(t,e,i){i>0&&(u(t,e),setTimeout(function(){p(t,e)},i))}function h(t){return Math.max(Math.min(t,100),0)}function c(t){return Array.isArray(t)?t:[t]}function d(t){t=String(t);var e=t.split(".");return e.length>1?e[1].length:0}function u(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function p(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function f(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function g(t){var e=void 0!==window.pageXOffset,i="CSS1Compat"===(t.compatMode||""),n=e?window.pageXOffset:i?t.documentElement.scrollLeft:t.body.scrollLeft,s=e?window.pageYOffset:i?t.documentElement.scrollTop:t.body.scrollTop;return{x:n,y:s}}function m(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function v(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(i){}return t}function y(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function w(t,e){return 100/(e-t)}function b(t,e){return 100*e/(t[1]-t[0])}function x(t,e){return b(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}function C(t,e){return e*(t[1]-t[0])/100+t[0]}function _(t,e){for(var i=1;t>=e[i];)i+=1;return i}function $(t,e,i){if(i>=t.slice(-1)[0])return 100;var n=_(i,t),s=t[n-1],o=t[n],r=e[n-1],a=e[n];return r+x([s,o],i)/w(r,a)}function S(t,e,i){if(i>=100)return t.slice(-1)[0];var n=_(i,e),s=t[n-1],o=t[n],r=e[n-1],a=e[n];return C([s,o],(i-r)*w(r,a))}function E(t,e,i,n){if(100===n)return n;var s=_(n,t),r=t[s-1],a=t[s];return i?n-r>(a-r)/2?a:r:e[s-1]?t[s-1]+o(n-t[s-1],e[s-1]):n}function T(t,e,i){var n;if("number"==typeof e&&(e=[e]),!Array.isArray(e))throw new Error("noUiSlider ("+tt+"): 'range' contains invalid value.");if(n="min"===t?0:"max"===t?100:parseFloat(t),!a(n)||!a(e[0]))throw new Error("noUiSlider ("+tt+"): 'range' value isn't numeric.");i.xPct.push(n),i.xVal.push(e[0]),n?i.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(i.xSteps[0]=e[1]),i.xHighestCompleteStep.push(0)}function k(t,e,i){if(!e)return!0;i.xSteps[t]=b([i.xVal[t],i.xVal[t+1]],e)/w(i.xPct[t],i.xPct[t+1]);var n=(i.xVal[t+1]-i.xVal[t])/i.xNumSteps[t],s=Math.ceil(Number(n.toFixed(3))-1),o=i.xVal[t]+i.xNumSteps[t]*s;i.xHighestCompleteStep[t]=o}function D(t,e,i){this.xPct=[],this.xVal=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var n,s=[];for(n in t)t.hasOwnProperty(n)&&s.push([t[n],n]);for(s.length&&"object"==typeof s[0][0]?s.sort(function(t,e){return t[0][0]-e[0][0]}):s.sort(function(t,e){return t[0]-e[0]}),n=0;n<s.length;n++)T(s[n][1],s[n][0],this);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)k(n,this.xNumSteps[n],this)}function N(e){if(t(e))return!0;throw new Error("noUiSlider ("+tt+"): 'format' requires 'to' and 'from' methods.")}function O(t,e){if(!a(e))throw new Error("noUiSlider ("+tt+"): 'step' is not numeric.");t.singleStep=e}function A(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider ("+tt+"): 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider ("+tt+"): Missing 'min' or 'max' in 'range'.");if(e.min===e.max)throw new Error("noUiSlider ("+tt+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new D(e,t.snap,t.singleStep)}function I(t,e){if(e=c(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider ("+tt+"): 'start' option is incorrect.");t.handles=e.length,t.start=e}function P(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider ("+tt+"): 'snap' option must be a boolean.")}function j(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider ("+tt+"): 'animate' option must be a boolean.")}function R(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider ("+tt+"): 'animationDuration' option must be a number.")}function M(t,e){var i,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),e===!0||e===!1){for(i=1;i<t.handles;i++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider ("+tt+"): 'connect' option doesn't match handle count.");n=e}t.connect=n}function z(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider ("+tt+"): 'orientation' option is invalid.")}}function U(t,e){if(!a(e))throw new Error("noUiSlider ("+tt+"): 'margin' option must be numeric.");if(0!==e&&(t.margin=t.spectrum.getMargin(e),!t.margin))throw new Error("noUiSlider ("+tt+"): 'margin' option is only supported on linear sliders.")}function L(t,e){if(!a(e))throw new Error("noUiSlider ("+tt+"): 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(e),!t.limit||t.handles<2)throw new Error("noUiSlider ("+tt+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function F(t,e){if(!a(e)&&!Array.isArray(e))throw new Error("noUiSlider ("+tt+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!a(e[0])&&!a(e[1]))throw new Error("noUiSlider ("+tt+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){if(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getMargin(e[0]),t.spectrum.getMargin(e[1])],t.padding[0]===!1||t.padding[1]===!1)throw new Error("noUiSlider ("+tt+"): 'padding' option is only supported on linear sliders.");if(t.padding[0]<0||t.padding[1]<0)throw new Error("noUiSlider ("+tt+"): 'padding' option must be a positive number(s).");if(t.padding[0]+t.padding[1]>=100)throw new Error("noUiSlider ("+tt+"): 'padding' option must not exceed 100% of the range.")}}function V(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+tt+"): 'direction' option was not recognized.")}}function H(t,e){if("string"!=typeof e)throw new Error("noUiSlider ("+tt+"): 'behaviour' must be a string containing options.");var i=e.indexOf("tap")>=0,n=e.indexOf("drag")>=0,s=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,r=e.indexOf("hover")>=0,a=e.indexOf("unconstrained")>=0;if(s){if(2!==t.handles)throw new Error("noUiSlider ("+tt+"): 'fixed' behaviour must be used with 2 handles");U(t,t.start[1]-t.start[0])}if(a&&(t.margin||t.limit))throw new Error("noUiSlider ("+tt+"): 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:i||o,drag:n,fixed:s,snap:o,hover:r,unconstrained:a}}function B(t,e){if(e!==!1)if(e===!0){t.tooltips=[];for(var i=0;i<t.handles;i++)t.tooltips.push(!0)}else{if(t.tooltips=c(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider ("+tt+"): must pass a formatter for all handles.");t.tooltips.forEach(function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider ("+tt+"): 'tooltips' must be passed a formatter or 'false'.")})}}function W(t,e){t.ariaFormat=e,N(e)}function X(t,e){t.format=e,N(e)}function q(t,e){if(t.keyboardSupport=e,"boolean"!=typeof e)throw new Error("noUiSlider ("+tt+"): 'keyboardSupport' option must be a boolean.")}function Q(t,e){t.documentElement=e}function Y(t,e){if("string"!=typeof e&&e!==!1)throw new Error("noUiSlider ("+tt+"): 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function Z(t,e){if("object"!=typeof e)throw new Error("noUiSlider ("+tt+"): 'cssClasses' must be an object.");if("string"==typeof t.cssPrefix){t.cssClasses={};for(var i in e)e.hasOwnProperty(i)&&(t.cssClasses[i]=t.cssPrefix+e[i])}else t.cssClasses=e}function J(t){var e={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:et,format:et},n={step:{r:!1,t:O},start:{r:!0,t:I},connect:{r:!0,t:M},direction:{r:!0,t:V},snap:{r:!1,t:P},animate:{r:!1,t:j},animationDuration:{r:!1,t:R},range:{r:!0,t:A},orientation:{r:!1,t:z},margin:{r:!1,t:U},limit:{r:!1,t:L},padding:{r:!1,t:F},behaviour:{r:!0,t:H},ariaFormat:{r:!1,t:W},format:{r:!1,t:X},tooltips:{r:!1,t:B},keyboardSupport:{r:!0,t:q},documentElement:{r:!1,t:Q},cssPrefix:{r:!0,t:Y},cssClasses:{r:!0,t:Z}},s={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"}};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(n).forEach(function(o){if(!i(t[o])&&void 0===s[o]){if(n[o].r)throw new Error("noUiSlider ("+tt+"): '"+o+"' is required.");return!0}n[o].t(e,i(t[o])?t[o]:s[o])}),e.pips=t.pips;var o=document.createElement("div"),r=void 0!==o.style.msTransform,a=void 0!==o.style.transform;e.transformRule=a?"transform":r?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return e.style=l[e.dir][e.ort],e}function G(t,i,o){function a(t,e){var i=St.createElement("div");return e&&u(i,e),t.appendChild(i),i}function d(t,e){var n=a(t,i.cssClasses.origin),s=a(n,i.cssClasses.handle);return s.setAttribute("data-handle",e),i.keyboardSupport&&s.setAttribute("tabindex","0"),s.setAttribute("role","slider"),s.setAttribute("aria-orientation",i.ort?"vertical":"horizontal"),0===e?u(s,i.cssClasses.handleLower):e===i.handles-1&&u(s,i.cssClasses.handleUpper),n}function w(t,e){return!!e&&a(t,i.cssClasses.connect)}function b(t,e){var n=a(e,i.cssClasses.connects);dt=[],ut=[],ut.push(w(n,t[0]));for(var s=0;s<i.handles;s++)dt.push(d(e,s)),bt[s]=s,ut.push(w(n,t[s+1]))}function x(t){return u(t,i.cssClasses.target),0===i.dir?u(t,i.cssClasses.ltr):u(t,i.cssClasses.rtl),0===i.ort?u(t,i.cssClasses.horizontal):u(t,i.cssClasses.vertical),a(t,i.cssClasses.base)}function C(t,e){return!!i.tooltips[e]&&a(t.firstChild,i.cssClasses.tooltip)}function _(){var t=dt.map(C);V("update",function(e,n,s){if(t[n]){var o=e[n];i.tooltips[n]!==!0&&(o=i.tooltips[n].to(s[n])),t[n].innerHTML=o}})}function $(){V("update",function(t,e,n,s,o){bt.forEach(function(t){var e=dt[t],s=X(wt,t,0,!0,!0,!0),r=X(wt,t,100,!0,!0,!0),a=o[t],l=i.ariaFormat.to(n[t]);s=Ct.fromStepping(s).toFixed(1),r=Ct.fromStepping(r).toFixed(1),a=Ct.fromStepping(a).toFixed(1),e.children[0].setAttribute("aria-valuemin",s),e.children[0].setAttribute("aria-valuemax",r),e.children[0].setAttribute("aria-valuenow",a),e.children[0].setAttribute("aria-valuetext",l)})})}function S(t,e,i){if("range"===t||"steps"===t)return Ct.xVal;if("count"===t){if(e<2)throw new Error("noUiSlider ("+tt+"): 'values' (>= 2) required for mode 'count'.");var n=e-1,s=100/n;for(e=[];n--;)e[n]=n*s;e.push(100),t="positions"}return"positions"===t?e.map(function(t){return Ct.fromStepping(i?Ct.getStep(t):t)}):"values"===t?i?e.map(function(t){return Ct.fromStepping(Ct.getStep(Ct.toStepping(t)))}):e:void 0}function E(t,e,i){function n(t,e){return(t+e).toFixed(7)/1}var o={},r=Ct.xVal[0],a=Ct.xVal[Ct.xVal.length-1],l=!1,h=!1,c=0;return i=s(i.slice().sort(function(t,e){return t-e})),i[0]!==r&&(i.unshift(r),l=!0),i[i.length-1]!==a&&(i.push(a),h=!0),i.forEach(function(s,r){var a,d,u,p,f,g,m,v,y,w,b=s,x=i[r+1],C="steps"===e;if(C&&(a=Ct.xNumSteps[r]),a||(a=x-b),b!==!1&&void 0!==x)for(a=Math.max(a,1e-7),d=b;d<=x;d=n(d,a)){for(p=Ct.toStepping(d),f=p-c,v=f/t,y=Math.round(v),w=f/y,u=1;u<=y;u+=1)g=c+u*w,o[g.toFixed(5)]=[Ct.fromStepping(g),0];m=i.indexOf(d)>-1?Nt:C?Ot:Dt,!r&&l&&(m=0),d===x&&h||(o[p.toFixed(5)]=[d,m]),c=p}}),o}function T(t,e,n){function s(t,e){var n=e===i.cssClasses.value,s=n?c:d,o=n?l:h;return e+" "+s[i.ort]+" "+o[t]}function o(t,o,l){if(l=e?e(o,l):l,l!==kt){var h=a(r,!1);h.className=s(l,i.cssClasses.marker),h.style[i.style]=t+"%",l>Dt&&(h=a(r,!1),h.className=s(l,i.cssClasses.value),h.setAttribute("data-value",o),h.style[i.style]=t+"%",h.innerHTML=n.to(o))}}var r=St.createElement("div"),l=[];l[Dt]=i.cssClasses.valueNormal,l[Nt]=i.cssClasses.valueLarge,l[Ot]=i.cssClasses.valueSub;var h=[];h[Dt]=i.cssClasses.markerNormal,h[Nt]=i.cssClasses.markerLarge,h[Ot]=i.cssClasses.markerSub;var c=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],d=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];return u(r,i.cssClasses.pips),u(r,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(t).forEach(function(e){o(e,t[e][0],t[e][1])}),r}function k(){ft&&(e(ft),ft=null)}function D(t){k();var e=t.mode,i=t.density||1,n=t.filter||!1,s=t.values||!1,o=t.stepped||!1,r=S(e,s,o),a=E(i,e,r),l=t.format||{to:Math.round};return ft=yt.appendChild(T(a,n,l))}function N(){var t=ct.getBoundingClientRect(),e="offset"+["Width","Height"][i.ort];return 0===i.ort?t.width||ct[e]:t.height||ct[e]}function O(t,e,n,s){var o=function(o){return!!(o=A(o,s.pageOffset,s.target||e))&&(!(yt.hasAttribute("disabled")&&!s.doNotReject)&&(!(f(yt,i.cssClasses.tap)&&!s.doNotReject)&&(!(t===gt.start&&void 0!==o.buttons&&o.buttons>1)&&((!s.hover||!o.buttons)&&(vt||o.preventDefault(),o.calcPoint=o.points[i.ort],void n(o,s))))))},r=[];return t.split(" ").forEach(function(t){e.addEventListener(t,o,!!vt&&{passive:!0}),r.push([t,o])}),r}function A(t,e,i){var n,s,o=0===t.type.indexOf("touch"),r=0===t.type.indexOf("mouse"),a=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(a=!0),o){var l=function(t){return t.target===i||i.contains(t.target)};if("touchstart"===t.type){var h=Array.prototype.filter.call(t.touches,l);if(h.length>1)return!1;n=h[0].pageX,s=h[0].pageY}else{var c=Array.prototype.find.call(t.changedTouches,l);if(!c)return!1;n=c.pageX,s=c.pageY}}return e=e||g(St),(r||a)&&(n=t.clientX+e.x,s=t.clientY+e.y),t.pageOffset=e,t.points=[n,s],t.cursor=r||a,t}function I(t){var e=t-r(ct,i.ort),n=100*e/N();return n=h(n),i.dir?100-n:n}function P(t){var e=100,i=!1;return dt.forEach(function(n,s){if(!n.hasAttribute("disabled")){var o=Math.abs(wt[s]-t);(o<e||100===o&&100===e)&&(i=s,e=o)}}),i}function j(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&M(t,e)}function R(t,e){if(navigator.appVersion.indexOf("MSIE 9")===-1&&0===t.buttons&&0!==e.buttonsProperty)return M(t,e);var n=(i.dir?-1:1)*(t.calcPoint-e.startCalcPoint),s=100*n/e.baseSize;Q(n>0,s,e.locations,e.handleNumbers)}function M(t,e){e.handle&&(p(e.handle,i.cssClasses.active),xt-=1),e.listeners.forEach(function(t){Et.removeEventListener(t[0],t[1])}),0===xt&&(p(yt,i.cssClasses.drag),G(),t.cursor&&(Tt.style.cursor="",Tt.removeEventListener("selectstart",n))),e.handleNumbers.forEach(function(t){B("change",t),B("set",t),B("end",t)})}function z(t,e){var s;if(1===e.handleNumbers.length){var o=dt[e.handleNumbers[0]];if(o.hasAttribute("disabled"))return!1;s=o.children[0],xt+=1,u(s,i.cssClasses.active)}t.stopPropagation();var r=[],a=O(gt.move,Et,R,{target:t.target,handle:s,listeners:r,startCalcPoint:t.calcPoint,baseSize:N(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:wt.slice()}),l=O(gt.end,Et,M,{target:t.target,handle:s,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),h=O("mouseout",Et,j,{target:t.target,handle:s,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers});r.push.apply(r,a.concat(l,h)),t.cursor&&(Tt.style.cursor=getComputedStyle(t.target).cursor,dt.length>1&&u(yt,i.cssClasses.drag),Tt.addEventListener("selectstart",n,!1)),e.handleNumbers.forEach(function(t){B("start",t)})}function U(t){t.stopPropagation();var e=I(t.calcPoint),n=P(e);return n!==!1&&(i.events.snap||l(yt,i.cssClasses.tap,i.animationDuration),K(n,e,!0,!0),G(),B("slide",n,!0),B("update",n,!0),B("change",n,!0),B("set",n,!0),void(i.events.snap&&z(t,{handleNumbers:[n]})))}function L(t){var e=I(t.calcPoint),i=Ct.getStep(e),n=Ct.fromStepping(i);Object.keys($t).forEach(function(t){"hover"===t.split(".")[0]&&$t[t].forEach(function(t){t.call(pt,n)})})}function F(t){t.fixed||dt.forEach(function(t,e){O(gt.start,t.children[0],z,{handleNumbers:[e]})}),t.tap&&O(gt.start,ct,U,{}),t.hover&&O(gt.move,ct,L,{hover:!0}),t.drag&&ut.forEach(function(e,n){if(e!==!1&&0!==n&&n!==ut.length-1){var s=dt[n-1],o=dt[n],r=[e];u(e,i.cssClasses.draggable),t.fixed&&(r.push(s.children[0]),r.push(o.children[0])),r.forEach(function(t){O(gt.start,t,z,{handles:[s,o],handleNumbers:[n-1,n]})})}})}function V(t,e){$t[t]=$t[t]||[],$t[t].push(e),"update"===t.split(".")[0]&&dt.forEach(function(t,e){B("update",e)})}function H(t){var e=t&&t.split(".")[0],i=e&&t.substring(e.length);Object.keys($t).forEach(function(t){var n=t.split(".")[0],s=t.substring(n.length);e&&e!==n||i&&i!==s||delete $t[t]})}function B(t,e,n){Object.keys($t).forEach(function(s){var o=s.split(".")[0];t===o&&$t[s].forEach(function(t){t.call(pt,_t.map(i.format.to),e,_t.slice(),n||!1,wt.slice())})})}function W(t){return t+"%"}function X(t,e,n,s,o,r){return dt.length>1&&!i.events.unconstrained&&(s&&e>0&&(n=Math.max(n,t[e-1]+i.margin)),o&&e<dt.length-1&&(n=Math.min(n,t[e+1]-i.margin))),dt.length>1&&i.limit&&(s&&e>0&&(n=Math.min(n,t[e-1]+i.limit)),o&&e<dt.length-1&&(n=Math.max(n,t[e+1]-i.limit))),i.padding&&(0===e&&(n=Math.max(n,i.padding[0])),e===dt.length-1&&(n=Math.min(n,100-i.padding[1]))),n=Ct.getStep(n),n=h(n),!(n===t[e]&&!r)&&n}function q(t,e){var n=i.ort;return(n?e:t)+", "+(n?t:e)}function Q(t,e,i,n){var s=i.slice(),o=[!t,t],r=[t,!t];n=n.slice(),t&&n.reverse(),n.length>1?n.forEach(function(t,i){var n=X(s,t,s[t]+e,o[i],r[i],!1);n===!1?e=0:(e=n-s[t],s[t]=n)}):o=r=[!0];var a=!1;n.forEach(function(t,n){a=K(t,i[t]+e,o[n],r[n])||a}),a&&n.forEach(function(t){B("update",t),B("slide",t)})}function Y(t,e){return i.dir?100-t-e:t}function Z(t,e){wt[t]=e,_t[t]=Ct.fromStepping(e);var n="translate("+q(W(Y(e,0)-At),"0")+")";dt[t].style[i.transformRule]=n,et(t),et(t+1)}function G(){bt.forEach(function(t){var e=wt[t]>50?-1:1,i=3+(dt.length+e*t);dt[t].style.zIndex=i})}function K(t,e,i,n){return e=X(wt,t,e,i,n,!1),e!==!1&&(Z(t,e),!0)}function et(t){if(ut[t]){var e=0,n=100;0!==t&&(e=wt[t-1]),t!==ut.length-1&&(n=wt[t]);var s=n-e,o="translate("+q(W(Y(e,s)),"0")+")",r="scale("+q(s/100,"1")+")";ut[t].style[i.transformRule]=o+" "+r}}function it(t,e){return null===t||t===!1||void 0===t?wt[e]:("number"==typeof t&&(t=String(t)),t=i.format.from(t),t=Ct.toStepping(t),t===!1||isNaN(t)?wt[e]:t)}function nt(t,e){var n=c(t),s=void 0===wt[0];e=void 0===e||!!e,i.animate&&!s&&l(yt,i.cssClasses.tap,i.animationDuration),bt.forEach(function(t){K(t,it(n[t],t),!0,!1)}),bt.forEach(function(t){K(t,wt[t],!0,!0)}),G(),bt.forEach(function(t){B("update",t),null!==n[t]&&e&&B("set",t)})}function st(t){nt(i.start,t)}function ot(t,e,i){var n=[];if(t=Number(t),!(t>=0&&t<bt.length))throw new Error("noUiSlider ("+tt+"): invalid handle number, got: "+t);for(var s=0;s<bt.length;s++)n[s]=null;n[t]=e,nt(n,i)}function rt(){var t=_t.map(i.format.to);return 1===t.length?t[0]:t}function at(){for(var t in i.cssClasses)i.cssClasses.hasOwnProperty(t)&&p(yt,i.cssClasses[t]);for(;yt.firstChild;)yt.removeChild(yt.firstChild);delete yt.noUiSlider}function lt(){return wt.map(function(t,e){var i=Ct.getNearbySteps(t),n=_t[e],s=i.thisStep.step,o=null;s!==!1&&n+s>i.stepAfter.startValue&&(s=i.stepAfter.startValue-n),o=n>i.thisStep.startValue?i.thisStep.step:i.stepBefore.step!==!1&&n-i.stepBefore.highestStep,100===t?s=null:0===t&&(o=null);var r=Ct.countStepDecimals();return null!==s&&s!==!1&&(s=Number(s.toFixed(r))),null!==o&&o!==!1&&(o=Number(o.toFixed(r))),[o,s]})}function ht(t,e){var n=rt(),s=["margin","limit","padding","range","animate","snap","step","format"];s.forEach(function(e){void 0!==t[e]&&(o[e]=t[e])});var r=J(o);s.forEach(function(e){void 0!==t[e]&&(i[e]=r[e])}),Ct=r.spectrum,i.margin=r.margin,i.limit=r.limit,i.padding=r.padding,i.pips&&D(i.pips),wt=[],nt(t.start||n,e)}var ct,dt,ut,pt,ft,gt=m(),mt=y(),vt=mt&&v(),yt=t,wt=[],bt=[],xt=0,Ct=i.spectrum,_t=[],$t={},St=t.ownerDocument,Et=i.documentElement||St.documentElement,Tt=St.body,kt=-1,Dt=0,Nt=1,Ot=2,At="rtl"===St.dir||1===i.ort?0:100;return ct=x(yt),b(i.connect,ct),F(i.events),nt(i.start),pt={destroy:at,steps:lt,on:V,off:H,get:rt,set:nt,setHandle:ot,reset:st,__moveHandles:function(t,e,i){Q(t,e,wt,i)},options:o,updateOptions:ht,target:yt,removePips:k,pips:D},i.pips&&D(i.pips),i.tooltips&&_(),$(),pt}function K(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider ("+tt+"): create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider ("+tt+"): Slider was already initialized.");var i=J(e,t),n=G(t,i,e);return t.noUiSlider=n,n}var tt="12.1.0";D.prototype.getMargin=function(t){var e=this.xNumSteps[0];if(e&&t/e%1!==0)throw new Error("noUiSlider ("+tt+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&b(this.xVal,t)},D.prototype.toStepping=function(t){return t=$(this.xVal,this.xPct,t)},D.prototype.fromStepping=function(t){return S(this.xVal,this.xPct,t)},D.prototype.getStep=function(t){return t=E(this.xPct,this.xSteps,this.snap,t)},D.prototype.getNearbySteps=function(t){var e=_(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e],step:this.xNumSteps[e],highestStep:this.xHighestCompleteStep[e]}}},D.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(d);return Math.max.apply(null,t)},D.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var et={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};return{__spectrum:D,version:tt,create:K}});
//# sourceMappingURL=main.js.map
