diff --git a/.gitignore b/.gitignore index 83fa414..e340066 100644 --- a/.gitignore +++ b/.gitignore @@ -1,21 +1,2 @@ -*.class -*.pyc - -# Folders -build -devel -dist - -# Package Files # -*.jar -*.war -*.ear - -# Scripts -init_setup.sh repository_recal.sh push.sh -publish.sh -ros_publish.sh -prerelease_test.sh -errors_fix.sh diff --git a/assets/js/bootstrap.min.js b/assets/js/bootstrap.min.js index 534d533..74b069d 100755 --- a/assets/js/bootstrap.min.js +++ b/assets/js/bootstrap.min.js @@ -1,7 +1,1530 @@ /*! - * Bootstrap v4.0.0 (https://getbootstrap.com) - * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,n){"use strict";function i(t,e){for(var n=0;n0?i:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)){var r=n[s],o=e[s],a=o&&i.isElement(o)?"element":(l=o,{}.toString.call(l).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(t.toUpperCase()+': Option "'+s+'" provided type "'+a+'" but expected type "'+r+'".')}var l}};return e=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},t.fn.emulateTransitionEnd=n,i.supportsTransitionEnd()&&(t.event.special[i.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),i}(e),L=(a="alert",h="."+(l="bs.alert"),c=(o=e).fn[a],u={CLOSE:"close"+h,CLOSED:"closed"+h,CLICK_DATA_API:"click"+h+".data-api"},f="alert",d="fade",_="show",g=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.removeData(this._element,l),this._element=null},e._getRootElement=function(t){var e=P.getSelectorFromElement(t),n=!1;return e&&(n=o(e)[0]),n||(n=o(t).closest("."+f)[0]),n},e._triggerCloseEvent=function(t){var e=o.Event(u.CLOSE);return o(t).trigger(e),e},e._removeElement=function(t){var e=this;o(t).removeClass(_),P.supportsTransitionEnd()&&o(t).hasClass(d)?o(t).one(P.TRANSITION_END,function(n){return e._destroyElement(t,n)}).emulateTransitionEnd(150):this._destroyElement(t)},e._destroyElement=function(t){o(t).detach().trigger(u.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=o(this),i=n.data(l);i||(i=new t(this),n.data(l,i)),"close"===e&&i[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),o(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',g._handleDismiss(new g)),o.fn[a]=g._jQueryInterface,o.fn[a].Constructor=g,o.fn[a].noConflict=function(){return o.fn[a]=c,g._jQueryInterface},g),R=(m="button",E="."+(v="bs.button"),T=".data-api",y=(p=e).fn[m],C="active",I="btn",A="focus",b='[data-toggle^="button"]',D='[data-toggle="buttons"]',S="input",w=".active",N=".btn",O={CLICK_DATA_API:"click"+E+T,FOCUS_BLUR_DATA_API:"focus"+E+T+" blur"+E+T},k=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=p(this._element).closest(D)[0];if(n){var i=p(this._element).find(S)[0];if(i){if("radio"===i.type)if(i.checked&&p(this._element).hasClass(C))t=!1;else{var s=p(n).find(w)[0];s&&p(s).removeClass(C)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!p(this._element).hasClass(C),p(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!p(this._element).hasClass(C)),t&&p(this._element).toggleClass(C)},e.dispose=function(){p.removeData(this._element,v),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var n=p(this).data(v);n||(n=new t(this),p(this).data(v,n)),"toggle"===e&&n[e]()})},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),p(document).on(O.CLICK_DATA_API,b,function(t){t.preventDefault();var e=t.target;p(e).hasClass(I)||(e=p(e).closest(N)),k._jQueryInterface.call(p(e),"toggle")}).on(O.FOCUS_BLUR_DATA_API,b,function(t){var e=p(t.target).closest(N)[0];p(e).toggleClass(A,/^focus(in)?$/.test(t.type))}),p.fn[m]=k._jQueryInterface,p.fn[m].Constructor=k,p.fn[m].noConflict=function(){return p.fn[m]=y,k._jQueryInterface},k),j=function(t){var e="carousel",n="bs.carousel",i="."+n,o=t.fn[e],a={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},l={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},h="next",c="prev",u="left",f="right",d={SLIDE:"slide"+i,SLID:"slid"+i,KEYDOWN:"keydown"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i,TOUCHEND:"touchend"+i,LOAD_DATA_API:"load"+i+".data-api",CLICK_DATA_API:"click"+i+".data-api"},_="carousel",g="active",p="slide",m="carousel-item-right",v="carousel-item-left",E="carousel-item-next",T="carousel-item-prev",y={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},C=function(){function o(e,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(y.INDICATORS)[0],this._addEventListeners()}var C=o.prototype;return C.next=function(){this._isSliding||this._slide(h)},C.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},C.prev=function(){this._isSliding||this._slide(c)},C.pause=function(e){e||(this._isPaused=!0),t(this._element).find(y.NEXT_PREV)[0]&&P.supportsTransitionEnd()&&(P.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},C.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},C.to=function(e){var n=this;this._activeElement=t(this._element).find(y.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(d.SLID,function(){return n.to(e)});else{if(i===e)return this.pause(),void this.cycle();var s=e>i?h:c;this._slide(s,this._items[e])}},C.dispose=function(){t(this._element).off(i),t.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},C._getConfig=function(t){return t=r({},a,t),P.typeCheckConfig(e,t,l),t},C._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(d.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(t(this._element).on(d.MOUSEENTER,function(t){return e.pause(t)}).on(d.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&t(this._element).on(d.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},C._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},C._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(y.ITEM)),this._items.indexOf(e)},C._getItemByDirection=function(t,e){var n=t===h,i=t===c,s=this._getItemIndex(e),r=this._items.length-1;if((i&&0===s||n&&s===r)&&!this._config.wrap)return e;var o=(s+(t===c?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},C._triggerSlideEvent=function(e,n){var i=this._getItemIndex(e),s=this._getItemIndex(t(this._element).find(y.ACTIVE_ITEM)[0]),r=t.Event(d.SLIDE,{relatedTarget:e,direction:n,from:s,to:i});return t(this._element).trigger(r),r},C._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(y.ACTIVE).removeClass(g);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t(n).addClass(g)}},C._slide=function(e,n){var i,s,r,o=this,a=t(this._element).find(y.ACTIVE_ITEM)[0],l=this._getItemIndex(a),c=n||a&&this._getItemByDirection(e,a),_=this._getItemIndex(c),C=Boolean(this._interval);if(e===h?(i=v,s=E,r=u):(i=m,s=T,r=f),c&&t(c).hasClass(g))this._isSliding=!1;else if(!this._triggerSlideEvent(c,r).isDefaultPrevented()&&a&&c){this._isSliding=!0,C&&this.pause(),this._setActiveIndicatorElement(c);var I=t.Event(d.SLID,{relatedTarget:c,direction:r,from:l,to:_});P.supportsTransitionEnd()&&t(this._element).hasClass(p)?(t(c).addClass(s),P.reflow(c),t(a).addClass(i),t(c).addClass(i),t(a).one(P.TRANSITION_END,function(){t(c).removeClass(i+" "+s).addClass(g),t(a).removeClass(g+" "+s+" "+i),o._isSliding=!1,setTimeout(function(){return t(o._element).trigger(I)},0)}).emulateTransitionEnd(600)):(t(a).removeClass(g),t(c).addClass(g),this._isSliding=!1,t(this._element).trigger(I)),C&&this.cycle()}},o._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),s=r({},a,t(this).data());"object"==typeof e&&(s=r({},s,e));var l="string"==typeof e?e:s.slide;if(i||(i=new o(this,s),t(this).data(n,i)),"number"==typeof e)i.to(e);else if("string"==typeof l){if("undefined"==typeof i[l])throw new TypeError('No method named "'+l+'"');i[l]()}else s.interval&&(i.pause(),i.cycle())})},o._dataApiClickHandler=function(e){var i=P.getSelectorFromElement(this);if(i){var s=t(i)[0];if(s&&t(s).hasClass(_)){var a=r({},t(s).data(),t(this).data()),l=this.getAttribute("data-slide-to");l&&(a.interval=!1),o._jQueryInterface.call(t(s),a),l&&t(s).data(n).to(l),e.preventDefault()}}},s(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),o}();return t(document).on(d.CLICK_DATA_API,y.DATA_SLIDE,C._dataApiClickHandler),t(window).on(d.LOAD_DATA_API,function(){t(y.DATA_RIDE).each(function(){var e=t(this);C._jQueryInterface.call(e,e.data())})}),t.fn[e]=C._jQueryInterface,t.fn[e].Constructor=C,t.fn[e].noConflict=function(){return t.fn[e]=o,C._jQueryInterface},C}(e),H=function(t){var e="collapse",n="bs.collapse",i="."+n,o=t.fn[e],a={toggle:!0,parent:""},l={toggle:"boolean",parent:"(string|element)"},h={SHOW:"show"+i,SHOWN:"shown"+i,HIDE:"hide"+i,HIDDEN:"hidden"+i,CLICK_DATA_API:"click"+i+".data-api"},c="show",u="collapse",f="collapsing",d="collapsed",_="width",g="height",p={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},m=function(){function i(e,n){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=t(p.DATA_TOGGLE),s=0;s0&&(this._selector=o,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var o=i.prototype;return o.toggle=function(){t(this._element).hasClass(c)?this.hide():this.show()},o.show=function(){var e,s,r=this;if(!this._isTransitioning&&!t(this._element).hasClass(c)&&(this._parent&&0===(e=t.makeArray(t(this._parent).find(p.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),!(e&&(s=t(e).not(this._selector).data(n))&&s._isTransitioning))){var o=t.Event(h.SHOW);if(t(this._element).trigger(o),!o.isDefaultPrevented()){e&&(i._jQueryInterface.call(t(e).not(this._selector),"hide"),s||t(e).data(n,null));var a=this._getDimension();t(this._element).removeClass(u).addClass(f),this._element.style[a]=0,this._triggerArray.length>0&&t(this._triggerArray).removeClass(d).attr("aria-expanded",!0),this.setTransitioning(!0);var l=function(){t(r._element).removeClass(f).addClass(u).addClass(c),r._element.style[a]="",r.setTransitioning(!1),t(r._element).trigger(h.SHOWN)};if(P.supportsTransitionEnd()){var _="scroll"+(a[0].toUpperCase()+a.slice(1));t(this._element).one(P.TRANSITION_END,l).emulateTransitionEnd(600),this._element.style[a]=this._element[_]+"px"}else l()}}},o.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(c)){var n=t.Event(h.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",P.reflow(this._element),t(this._element).addClass(f).removeClass(u).removeClass(c),this._triggerArray.length>0)for(var s=0;s0&&t(n).toggleClass(d,!i).attr("aria-expanded",i)}},i._getTargetFromElement=function(e){var n=P.getSelectorFromElement(e);return n?t(n)[0]:null},i._jQueryInterface=function(e){return this.each(function(){var s=t(this),o=s.data(n),l=r({},a,s.data(),"object"==typeof e&&e);if(!o&&l.toggle&&/show|hide/.test(e)&&(l.toggle=!1),o||(o=new i(this,l),s.data(n,o)),"string"==typeof e){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),i}();return t(document).on(h.CLICK_DATA_API,p.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=t(this),s=P.getSelectorFromElement(this);t(s).each(function(){var e=t(this),s=e.data(n)?"toggle":i.data();m._jQueryInterface.call(e,s)})}),t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=o,m._jQueryInterface},m}(e),W=function(t){var e="dropdown",i="bs.dropdown",o="."+i,a=".data-api",l=t.fn[e],h=new RegExp("38|40|27"),c={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK:"click"+o,CLICK_DATA_API:"click"+o+a,KEYDOWN_DATA_API:"keydown"+o+a,KEYUP_DATA_API:"keyup"+o+a},u="disabled",f="show",d="dropup",_="dropright",g="dropleft",p="dropdown-menu-right",m="dropdown-menu-left",v="position-static",E='[data-toggle="dropdown"]',T=".dropdown form",y=".dropdown-menu",C=".navbar-nav",I=".dropdown-menu .dropdown-item:not(.disabled)",A="top-start",b="top-end",D="bottom-start",S="bottom-end",w="right-start",N="left-start",O={offset:0,flip:!0,boundary:"scrollParent"},k={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},L=function(){function a(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var l=a.prototype;return l.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(u)){var e=a._getParentFromElement(this._element),i=t(this._menu).hasClass(f);if(a._clearMenus(),!i){var s={relatedTarget:this._element},r=t.Event(c.SHOW,s);if(t(e).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof n)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var o=this._element;t(e).hasClass(d)&&(t(this._menu).hasClass(m)||t(this._menu).hasClass(p))&&(o=e),"scrollParent"!==this._config.boundary&&t(e).addClass(v),this._popper=new n(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(e).closest(C).length&&t("body").children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(f),t(e).toggleClass(f).trigger(t.Event(c.SHOWN,s))}}}},l.dispose=function(){t.removeData(this._element,i),t(this._element).off(o),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},l.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},l._addEventListeners=function(){var e=this;t(this._element).on(c.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},l._getConfig=function(n){return n=r({},this.constructor.Default,t(this._element).data(),n),P.typeCheckConfig(e,n,this.constructor.DefaultType),n},l._getMenuElement=function(){if(!this._menu){var e=a._getParentFromElement(this._element);this._menu=t(e).find(y)[0]}return this._menu},l._getPlacement=function(){var e=t(this._element).parent(),n=D;return e.hasClass(d)?(n=A,t(this._menu).hasClass(p)&&(n=b)):e.hasClass(_)?n=w:e.hasClass(g)?n=N:t(this._menu).hasClass(p)&&(n=S),n},l._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},l._getPopperConfig=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},a._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(i);if(n||(n=new a(this,"object"==typeof e?e:null),t(this).data(i,n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},a._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=t.makeArray(t(E)),s=0;s0&&r--,40===e.which&&rdocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},p._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},p._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},f="show",d="out",_={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},g="fade",p="show",m=".tooltip-inner",v=".arrow",E="hover",T="focus",y="click",C="manual",I=function(){function a(t,e){if("undefined"==typeof n)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var I=a.prototype;return I.enable=function(){this._isEnabled=!0},I.disable=function(){this._isEnabled=!1},I.toggleEnabled=function(){this._isEnabled=!this._isEnabled},I.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(p))return void this._leave(null,this);this._enter(null,this)}},I.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},I.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var i=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(i);var s=t.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!s)return;var r=this.getTipElement(),o=P.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&t(r).addClass(g);var l="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,h=this._getAttachment(l);this.addAttachmentClass(h);var c=!1===this.config.container?document.body:t(this.config.container);t(r).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(c),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,r,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:v},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),t(r).addClass(p),"ontouchstart"in document.documentElement&&t("body").children().on("mouseover",null,t.noop);var u=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===d&&e._leave(null,e)};P.supportsTransitionEnd()&&t(this.tip).hasClass(g)?t(this.tip).one(P.TRANSITION_END,u).emulateTransitionEnd(a._TRANSITION_DURATION):u()}},I.hide=function(e){var n=this,i=this.getTipElement(),s=t.Event(this.constructor.Event.HIDE),r=function(){n._hoverState!==f&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};t(this.element).trigger(s),s.isDefaultPrevented()||(t(i).removeClass(p),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger[y]=!1,this._activeTrigger[T]=!1,this._activeTrigger[E]=!1,P.supportsTransitionEnd()&&t(this.tip).hasClass(g)?t(i).one(P.TRANSITION_END,r).emulateTransitionEnd(150):r(),this._hoverState="")},I.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},I.isWithContent=function(){return Boolean(this.getTitle())},I.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},I.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},I.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(m),this.getTitle()),e.removeClass(g+" "+p)},I.setElementContent=function(e,n){var i=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?i?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[i?"html":"text"](n)},I.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},I._getAttachment=function(t){return c[t.toUpperCase()]},I._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==C){var i=n===E?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,s=n===E?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(s,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},I._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},I._enter=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?T:E]=!0),t(n.getTipElement()).hasClass(p)||n._hoverState===f?n._hoverState=f:(clearTimeout(n._timeout),n._hoverState=f,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===f&&n.show()},n.config.delay.show):n.show())},I._leave=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?T:E]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=d,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===d&&n.hide()},n.config.delay.hide):n.hide())},I._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},I._getConfig=function(n){return"number"==typeof(n=r({},this.constructor.Default,t(this.element).data(),n)).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),P.typeCheckConfig(e,n,this.constructor.DefaultType),n},I._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},I._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(l);null!==n&&n.length>0&&e.removeClass(n.join(""))},I._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},I._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(g),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},a._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(i),s="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new a(this,s),t(this).data(i,n)),"string"==typeof e)){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return i}},{key:"Event",get:function(){return _}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return h}}]),a}();return t.fn[e]=I._jQueryInterface,t.fn[e].Constructor=I,t.fn[e].noConflict=function(){return t.fn[e]=a,I._jQueryInterface},I}(e),x=function(t){var e="popover",n="bs.popover",i="."+n,o=t.fn[e],a=new RegExp("(^|\\s)bs-popover\\S+","g"),l=r({},U.Default,{placement:"right",trigger:"click",content:"",template:''}),h=r({},U.DefaultType,{content:"(string|element|function)"}),c="fade",u="show",f=".popover-header",d=".popover-body",_={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,INSERTED:"inserted"+i,CLICK:"click"+i,FOCUSIN:"focusin"+i,FOCUSOUT:"focusout"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i},g=function(r){var o,g;function p(){return r.apply(this,arguments)||this}g=r,(o=p).prototype=Object.create(g.prototype),o.prototype.constructor=o,o.__proto__=g;var m=p.prototype;return m.isWithContent=function(){return this.getTitle()||this._getContent()},m.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},m.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},m.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(f),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(d),n),e.removeClass(c+" "+u)},m._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},m._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(a);null!==n&&n.length>0&&e.removeClass(n.join(""))},p._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),s="object"==typeof e?e:null;if((i||!/destroy|hide/.test(e))&&(i||(i=new p(this,s),t(this).data(n,i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},s(p,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return _}},{key:"EVENT_KEY",get:function(){return i}},{key:"DefaultType",get:function(){return h}}]),p}(U);return t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=o,g._jQueryInterface},g}(e),K=function(t){var e="scrollspy",n="bs.scrollspy",i="."+n,o=t.fn[e],a={offset:10,method:"auto",target:""},l={offset:"number",method:"string",target:"(string|element)"},h={ACTIVATE:"activate"+i,SCROLL:"scroll"+i,LOAD_DATA_API:"load"+i+".data-api"},c="dropdown-item",u="active",f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},d="offset",_="position",g=function(){function o(e,n){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+f.NAV_LINKS+","+this._config.target+" "+f.LIST_ITEMS+","+this._config.target+" "+f.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(h.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var g=o.prototype;return g.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?d:_,i="auto"===this._config.method?n:this._config.method,s=i===_?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var n,r=P.getSelectorFromElement(e);if(r&&(n=t(r)[0]),n){var o=n.getBoundingClientRect();if(o.width||o.height)return[t(n)[i]().top+s,r]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},g.dispose=function(){t.removeData(this._element,n),t(this._scrollElement).off(i),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},g._getConfig=function(n){if("string"!=typeof(n=r({},a,n)).target){var i=t(n.target).attr("id");i||(i=P.getUID(e),t(n.target).attr("id",i)),n.target="#"+i}return P.typeCheckConfig(e,n,l),n},g._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},g._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},g._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},g._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;){this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&("undefined"==typeof this._offsets[s+1]||t=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=P,t.Alert=L,t.Button=R,t.Carousel=j,t.Collapse=H,t.Dropdown=W,t.Modal=M,t.Popover=x,t.Scrollspy=K,t.Tab=V,t.Tooltip=U,Object.defineProperty(t,"__esModule",{value:!0})}); -//# sourceMappingURL=bootstrap.min.js.map \ No newline at end of file + * Bootstrap v4.0.0 (https://getbootstrap.com) + * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ +! function(t, e) { + "object" == typeof exports && "undefined" != typeof module ? e(exports, require("jquery"), require("popper.js")) : "function" == typeof define && define.amd ? define(["exports", "jquery", "popper.js"], e) : e(t.bootstrap = {}, t.jQuery, t.Popper) +}(this, function(t, e, n) { + "use strict"; + + function i(t, e) { + for (var n = 0; n < e.length; n++) { + var i = e[n]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i) + } + } + + function s(t, e, n) { + return e && i(t.prototype, e), n && i(t, n), t + } + + function r() { + return (r = Object.assign || function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]) + } + return t + }).apply(this, arguments) + } + e = e && e.hasOwnProperty("default") ? e.default : e, n = n && n.hasOwnProperty("default") ? n.default : n; + var o, a, l, h, c, u, f, d, _, g, p, m, v, E, T, y, C, I, A, b, D, S, w, N, O, k, P = function(t) { + var e = !1; + + function n(e) { + var n = this, + s = !1; + return t(this).one(i.TRANSITION_END, function() { + s = !0 + }), setTimeout(function() { + s || i.triggerTransitionEnd(n) + }, e), this + } + var i = { + TRANSITION_END: "bsTransitionEnd", + getUID: function(t) { + do { + t += ~~(1e6 * Math.random()) + } while (document.getElementById(t)); + return t + }, + getSelectorFromElement: function(e) { + var n, i = e.getAttribute("data-target"); + i && "#" !== i || (i = e.getAttribute("href") || ""), "#" === i.charAt(0) && (n = i, i = n = "function" == typeof t.escapeSelector ? t.escapeSelector(n).substr(1) : n.replace(/(:|\.|\[|\]|,|=|@)/g, "\\$1")); + try { + return t(document).find(i).length > 0 ? i : null + } catch (t) { + return null + } + }, + reflow: function(t) { + return t.offsetHeight + }, + triggerTransitionEnd: function(n) { + t(n).trigger(e.end) + }, + supportsTransitionEnd: function() { + return Boolean(e) + }, + isElement: function(t) { + return (t[0] || t).nodeType + }, + typeCheckConfig: function(t, e, n) { + for (var s in n) + if (Object.prototype.hasOwnProperty.call(n, s)) { + var r = n[s], + o = e[s], + a = o && i.isElement(o) ? "element" : (l = o, {}.toString.call(l).match(/\s([a-zA-Z]+)/)[1].toLowerCase()); + if (!new RegExp(r).test(a)) throw new Error(t.toUpperCase() + ': Option "' + s + '" provided type "' + a + '" but expected type "' + r + '".') + } var l + } + }; + return e = ("undefined" == typeof window || !window.QUnit) && { + end: "transitionend" + }, t.fn.emulateTransitionEnd = n, i.supportsTransitionEnd() && (t.event.special[i.TRANSITION_END] = { + bindType: e.end, + delegateType: e.end, + handle: function(e) { + if (t(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) + } + }), i + }(e), + L = (a = "alert", h = "." + (l = "bs.alert"), c = (o = e).fn[a], u = { + CLOSE: "close" + h, + CLOSED: "closed" + h, + CLICK_DATA_API: "click" + h + ".data-api" + }, f = "alert", d = "fade", _ = "show", g = function() { + function t(t) { + this._element = t + } + var e = t.prototype; + return e.close = function(t) { + t = t || this._element; + var e = this._getRootElement(t); + this._triggerCloseEvent(e).isDefaultPrevented() || this._removeElement(e) + }, e.dispose = function() { + o.removeData(this._element, l), this._element = null + }, e._getRootElement = function(t) { + var e = P.getSelectorFromElement(t), + n = !1; + return e && (n = o(e)[0]), n || (n = o(t).closest("." + f)[0]), n + }, e._triggerCloseEvent = function(t) { + var e = o.Event(u.CLOSE); + return o(t).trigger(e), e + }, e._removeElement = function(t) { + var e = this; + o(t).removeClass(_), P.supportsTransitionEnd() && o(t).hasClass(d) ? o(t).one(P.TRANSITION_END, function(n) { + return e._destroyElement(t, n) + }).emulateTransitionEnd(150) : this._destroyElement(t) + }, e._destroyElement = function(t) { + o(t).detach().trigger(u.CLOSED).remove() + }, t._jQueryInterface = function(e) { + return this.each(function() { + var n = o(this), + i = n.data(l); + i || (i = new t(this), n.data(l, i)), "close" === e && i[e](this) + }) + }, t._handleDismiss = function(t) { + return function(e) { + e && e.preventDefault(), t.close(this) + } + }, s(t, null, [{ + key: "VERSION", + get: function() { + return "4.0.0" + } + }]), t + }(), o(document).on(u.CLICK_DATA_API, '[data-dismiss="alert"]', g._handleDismiss(new g)), o.fn[a] = g._jQueryInterface, o.fn[a].Constructor = g, o.fn[a].noConflict = function() { + return o.fn[a] = c, g._jQueryInterface + }, g), + R = (m = "button", E = "." + (v = "bs.button"), T = ".data-api", y = (p = e).fn[m], C = "active", I = "btn", A = "focus", b = '[data-toggle^="button"]', D = '[data-toggle="buttons"]', S = "input", w = ".active", N = ".btn", O = { + CLICK_DATA_API: "click" + E + T, + FOCUS_BLUR_DATA_API: "focus" + E + T + " blur" + E + T + }, k = function() { + function t(t) { + this._element = t + } + var e = t.prototype; + return e.toggle = function() { + var t = !0, + e = !0, + n = p(this._element).closest(D)[0]; + if (n) { + var i = p(this._element).find(S)[0]; + if (i) { + if ("radio" === i.type) + if (i.checked && p(this._element).hasClass(C)) t = !1; + else { + var s = p(n).find(w)[0]; + s && p(s).removeClass(C) + } if (t) { + if (i.hasAttribute("disabled") || n.hasAttribute("disabled") || i.classList.contains("disabled") || n.classList.contains("disabled")) return; + i.checked = !p(this._element).hasClass(C), p(i).trigger("change") + } + i.focus(), e = !1 + } + } + e && this._element.setAttribute("aria-pressed", !p(this._element).hasClass(C)), t && p(this._element).toggleClass(C) + }, e.dispose = function() { + p.removeData(this._element, v), this._element = null + }, t._jQueryInterface = function(e) { + return this.each(function() { + var n = p(this).data(v); + n || (n = new t(this), p(this).data(v, n)), "toggle" === e && n[e]() + }) + }, s(t, null, [{ + key: "VERSION", + get: function() { + return "4.0.0" + } + }]), t + }(), p(document).on(O.CLICK_DATA_API, b, function(t) { + t.preventDefault(); + var e = t.target; + p(e).hasClass(I) || (e = p(e).closest(N)), k._jQueryInterface.call(p(e), "toggle") + }).on(O.FOCUS_BLUR_DATA_API, b, function(t) { + var e = p(t.target).closest(N)[0]; + p(e).toggleClass(A, /^focus(in)?$/.test(t.type)) + }), p.fn[m] = k._jQueryInterface, p.fn[m].Constructor = k, p.fn[m].noConflict = function() { + return p.fn[m] = y, k._jQueryInterface + }, k), + j = function(t) { + var e = "carousel", + n = "bs.carousel", + i = "." + n, + o = t.fn[e], + a = { + interval: 5e3, + keyboard: !0, + slide: !1, + pause: "hover", + wrap: !0 + }, + l = { + interval: "(number|boolean)", + keyboard: "boolean", + slide: "(boolean|string)", + pause: "(string|boolean)", + wrap: "boolean" + }, + h = "next", + c = "prev", + u = "left", + f = "right", + d = { + SLIDE: "slide" + i, + SLID: "slid" + i, + KEYDOWN: "keydown" + i, + MOUSEENTER: "mouseenter" + i, + MOUSELEAVE: "mouseleave" + i, + TOUCHEND: "touchend" + i, + LOAD_DATA_API: "load" + i + ".data-api", + CLICK_DATA_API: "click" + i + ".data-api" + }, + _ = "carousel", + g = "active", + p = "slide", + m = "carousel-item-right", + v = "carousel-item-left", + E = "carousel-item-next", + T = "carousel-item-prev", + y = { + ACTIVE: ".active", + ACTIVE_ITEM: ".active.carousel-item", + ITEM: ".carousel-item", + NEXT_PREV: ".carousel-item-next, .carousel-item-prev", + INDICATORS: ".carousel-indicators", + DATA_SLIDE: "[data-slide], [data-slide-to]", + DATA_RIDE: '[data-ride="carousel"]' + }, + C = function() { + function o(e, n) { + this._items = null, this._interval = null, this._activeElement = null, this._isPaused = !1, this._isSliding = !1, this.touchTimeout = null, this._config = this._getConfig(n), this._element = t(e)[0], this._indicatorsElement = t(this._element).find(y.INDICATORS)[0], this._addEventListeners() + } + var C = o.prototype; + return C.next = function() { + this._isSliding || this._slide(h) + }, C.nextWhenVisible = function() { + !document.hidden && t(this._element).is(":visible") && "hidden" !== t(this._element).css("visibility") && this.next() + }, C.prev = function() { + this._isSliding || this._slide(c) + }, C.pause = function(e) { + e || (this._isPaused = !0), t(this._element).find(y.NEXT_PREV)[0] && P.supportsTransitionEnd() && (P.triggerTransitionEnd(this._element), this.cycle(!0)), clearInterval(this._interval), this._interval = null + }, C.cycle = function(t) { + t || (this._isPaused = !1), this._interval && (clearInterval(this._interval), this._interval = null), this._config.interval && !this._isPaused && (this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval)) + }, C.to = function(e) { + var n = this; + this._activeElement = t(this._element).find(y.ACTIVE_ITEM)[0]; + var i = this._getItemIndex(this._activeElement); + if (!(e > this._items.length - 1 || e < 0)) + if (this._isSliding) t(this._element).one(d.SLID, function() { + return n.to(e) + }); + else { + if (i === e) return this.pause(), void this.cycle(); + var s = e > i ? h : c; + this._slide(s, this._items[e]) + } + }, C.dispose = function() { + t(this._element).off(i), t.removeData(this._element, n), this._items = null, this._config = null, this._element = null, this._interval = null, this._isPaused = null, this._isSliding = null, this._activeElement = null, this._indicatorsElement = null + }, C._getConfig = function(t) { + return t = r({}, a, t), P.typeCheckConfig(e, t, l), t + }, C._addEventListeners = function() { + var e = this; + this._config.keyboard && t(this._element).on(d.KEYDOWN, function(t) { + return e._keydown(t) + }), "hover" === this._config.pause && (t(this._element).on(d.MOUSEENTER, function(t) { + return e.pause(t) + }).on(d.MOUSELEAVE, function(t) { + return e.cycle(t) + }), "ontouchstart" in document.documentElement && t(this._element).on(d.TOUCHEND, function() { + e.pause(), e.touchTimeout && clearTimeout(e.touchTimeout), e.touchTimeout = setTimeout(function(t) { + return e.cycle(t) + }, 500 + e._config.interval) + })) + }, C._keydown = function(t) { + if (!/input|textarea/i.test(t.target.tagName)) switch (t.which) { + case 37: + t.preventDefault(), this.prev(); + break; + case 39: + t.preventDefault(), this.next() + } + }, C._getItemIndex = function(e) { + return this._items = t.makeArray(t(e).parent().find(y.ITEM)), this._items.indexOf(e) + }, C._getItemByDirection = function(t, e) { + var n = t === h, + i = t === c, + s = this._getItemIndex(e), + r = this._items.length - 1; + if ((i && 0 === s || n && s === r) && !this._config.wrap) return e; + var o = (s + (t === c ? -1 : 1)) % this._items.length; + return -1 === o ? this._items[this._items.length - 1] : this._items[o] + }, C._triggerSlideEvent = function(e, n) { + var i = this._getItemIndex(e), + s = this._getItemIndex(t(this._element).find(y.ACTIVE_ITEM)[0]), + r = t.Event(d.SLIDE, { + relatedTarget: e, + direction: n, + from: s, + to: i + }); + return t(this._element).trigger(r), r + }, C._setActiveIndicatorElement = function(e) { + if (this._indicatorsElement) { + t(this._indicatorsElement).find(y.ACTIVE).removeClass(g); + var n = this._indicatorsElement.children[this._getItemIndex(e)]; + n && t(n).addClass(g) + } + }, C._slide = function(e, n) { + var i, s, r, o = this, + a = t(this._element).find(y.ACTIVE_ITEM)[0], + l = this._getItemIndex(a), + c = n || a && this._getItemByDirection(e, a), + _ = this._getItemIndex(c), + C = Boolean(this._interval); + if (e === h ? (i = v, s = E, r = u) : (i = m, s = T, r = f), c && t(c).hasClass(g)) this._isSliding = !1; + else if (!this._triggerSlideEvent(c, r).isDefaultPrevented() && a && c) { + this._isSliding = !0, C && this.pause(), this._setActiveIndicatorElement(c); + var I = t.Event(d.SLID, { + relatedTarget: c, + direction: r, + from: l, + to: _ + }); + P.supportsTransitionEnd() && t(this._element).hasClass(p) ? (t(c).addClass(s), P.reflow(c), t(a).addClass(i), t(c).addClass(i), t(a).one(P.TRANSITION_END, function() { + t(c).removeClass(i + " " + s).addClass(g), t(a).removeClass(g + " " + s + " " + i), o._isSliding = !1, setTimeout(function() { + return t(o._element).trigger(I) + }, 0) + }).emulateTransitionEnd(600)) : (t(a).removeClass(g), t(c).addClass(g), this._isSliding = !1, t(this._element).trigger(I)), C && this.cycle() + } + }, o._jQueryInterface = function(e) { + return this.each(function() { + var i = t(this).data(n), + s = r({}, a, t(this).data()); + "object" == typeof e && (s = r({}, s, e)); + var l = "string" == typeof e ? e : s.slide; + if (i || (i = new o(this, s), t(this).data(n, i)), "number" == typeof e) i.to(e); + else if ("string" == typeof l) { + if ("undefined" == typeof i[l]) throw new TypeError('No method named "' + l + '"'); + i[l]() + } else s.interval && (i.pause(), i.cycle()) + }) + }, o._dataApiClickHandler = function(e) { + var i = P.getSelectorFromElement(this); + if (i) { + var s = t(i)[0]; + if (s && t(s).hasClass(_)) { + var a = r({}, t(s).data(), t(this).data()), + l = this.getAttribute("data-slide-to"); + l && (a.interval = !1), o._jQueryInterface.call(t(s), a), l && t(s).data(n).to(l), e.preventDefault() + } + } + }, s(o, null, [{ + key: "VERSION", + get: function() { + return "4.0.0" + } + }, { + key: "Default", + get: function() { + return a + } + }]), o + }(); + return t(document).on(d.CLICK_DATA_API, y.DATA_SLIDE, C._dataApiClickHandler), t(window).on(d.LOAD_DATA_API, function() { + t(y.DATA_RIDE).each(function() { + var e = t(this); + C._jQueryInterface.call(e, e.data()) + }) + }), t.fn[e] = C._jQueryInterface, t.fn[e].Constructor = C, t.fn[e].noConflict = function() { + return t.fn[e] = o, C._jQueryInterface + }, C + }(e), + H = function(t) { + var e = "collapse", + n = "bs.collapse", + i = "." + n, + o = t.fn[e], + a = { + toggle: !0, + parent: "" + }, + l = { + toggle: "boolean", + parent: "(string|element)" + }, + h = { + SHOW: "show" + i, + SHOWN: "shown" + i, + HIDE: "hide" + i, + HIDDEN: "hidden" + i, + CLICK_DATA_API: "click" + i + ".data-api" + }, + c = "show", + u = "collapse", + f = "collapsing", + d = "collapsed", + _ = "width", + g = "height", + p = { + ACTIVES: ".show, .collapsing", + DATA_TOGGLE: '[data-toggle="collapse"]' + }, + m = function() { + function i(e, n) { + this._isTransitioning = !1, this._element = e, this._config = this._getConfig(n), this._triggerArray = t.makeArray(t('[data-toggle="collapse"][href="#' + e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + '"]')); + for (var i = t(p.DATA_TOGGLE), s = 0; s < i.length; s++) { + var r = i[s], + o = P.getSelectorFromElement(r); + null !== o && t(o).filter(e).length > 0 && (this._selector = o, this._triggerArray.push(r)) + } + this._parent = this._config.parent ? this._getParent() : null, this._config.parent || this._addAriaAndCollapsedClass(this._element, this._triggerArray), this._config.toggle && this.toggle() + } + var o = i.prototype; + return o.toggle = function() { + t(this._element).hasClass(c) ? this.hide() : this.show() + }, o.show = function() { + var e, s, r = this; + if (!this._isTransitioning && !t(this._element).hasClass(c) && (this._parent && 0 === (e = t.makeArray(t(this._parent).find(p.ACTIVES).filter('[data-parent="' + this._config.parent + '"]'))).length && (e = null), !(e && (s = t(e).not(this._selector).data(n)) && s._isTransitioning))) { + var o = t.Event(h.SHOW); + if (t(this._element).trigger(o), !o.isDefaultPrevented()) { + e && (i._jQueryInterface.call(t(e).not(this._selector), "hide"), s || t(e).data(n, null)); + var a = this._getDimension(); + t(this._element).removeClass(u).addClass(f), this._element.style[a] = 0, this._triggerArray.length > 0 && t(this._triggerArray).removeClass(d).attr("aria-expanded", !0), this.setTransitioning(!0); + var l = function() { + t(r._element).removeClass(f).addClass(u).addClass(c), r._element.style[a] = "", r.setTransitioning(!1), t(r._element).trigger(h.SHOWN) + }; + if (P.supportsTransitionEnd()) { + var _ = "scroll" + (a[0].toUpperCase() + a.slice(1)); + t(this._element).one(P.TRANSITION_END, l).emulateTransitionEnd(600), this._element.style[a] = this._element[_] + "px" + } else l() + } + } + }, o.hide = function() { + var e = this; + if (!this._isTransitioning && t(this._element).hasClass(c)) { + var n = t.Event(h.HIDE); + if (t(this._element).trigger(n), !n.isDefaultPrevented()) { + var i = this._getDimension(); + if (this._element.style[i] = this._element.getBoundingClientRect()[i] + "px", P.reflow(this._element), t(this._element).addClass(f).removeClass(u).removeClass(c), this._triggerArray.length > 0) + for (var s = 0; s < this._triggerArray.length; s++) { + var r = this._triggerArray[s], + o = P.getSelectorFromElement(r); + if (null !== o) t(o).hasClass(c) || t(r).addClass(d).attr("aria-expanded", !1) + } + this.setTransitioning(!0); + var a = function() { + e.setTransitioning(!1), t(e._element).removeClass(f).addClass(u).trigger(h.HIDDEN) + }; + this._element.style[i] = "", P.supportsTransitionEnd() ? t(this._element).one(P.TRANSITION_END, a).emulateTransitionEnd(600) : a() + } + } + }, o.setTransitioning = function(t) { + this._isTransitioning = t + }, o.dispose = function() { + t.removeData(this._element, n), this._config = null, this._parent = null, this._element = null, this._triggerArray = null, this._isTransitioning = null + }, o._getConfig = function(t) { + return (t = r({}, a, t)).toggle = Boolean(t.toggle), P.typeCheckConfig(e, t, l), t + }, o._getDimension = function() { + return t(this._element).hasClass(_) ? _ : g + }, o._getParent = function() { + var e = this, + n = null; + P.isElement(this._config.parent) ? (n = this._config.parent, "undefined" != typeof this._config.parent.jquery && (n = this._config.parent[0])) : n = t(this._config.parent)[0]; + var s = '[data-toggle="collapse"][data-parent="' + this._config.parent + '"]'; + return t(n).find(s).each(function(t, n) { + e._addAriaAndCollapsedClass(i._getTargetFromElement(n), [n]) + }), n + }, o._addAriaAndCollapsedClass = function(e, n) { + if (e) { + var i = t(e).hasClass(c); + n.length > 0 && t(n).toggleClass(d, !i).attr("aria-expanded", i) + } + }, i._getTargetFromElement = function(e) { + var n = P.getSelectorFromElement(e); + return n ? t(n)[0] : null + }, i._jQueryInterface = function(e) { + return this.each(function() { + var s = t(this), + o = s.data(n), + l = r({}, a, s.data(), "object" == typeof e && e); + if (!o && l.toggle && /show|hide/.test(e) && (l.toggle = !1), o || (o = new i(this, l), s.data(n, o)), "string" == typeof e) { + if ("undefined" == typeof o[e]) throw new TypeError('No method named "' + e + '"'); + o[e]() + } + }) + }, s(i, null, [{ + key: "VERSION", + get: function() { + return "4.0.0" + } + }, { + key: "Default", + get: function() { + return a + } + }]), i + }(); + return t(document).on(h.CLICK_DATA_API, p.DATA_TOGGLE, function(e) { + "A" === e.currentTarget.tagName && e.preventDefault(); + var i = t(this), + s = P.getSelectorFromElement(this); + t(s).each(function() { + var e = t(this), + s = e.data(n) ? "toggle" : i.data(); + m._jQueryInterface.call(e, s) + }) + }), t.fn[e] = m._jQueryInterface, t.fn[e].Constructor = m, t.fn[e].noConflict = function() { + return t.fn[e] = o, m._jQueryInterface + }, m + }(e), + W = function(t) { + var e = "dropdown", + i = "bs.dropdown", + o = "." + i, + a = ".data-api", + l = t.fn[e], + h = new RegExp("38|40|27"), + c = { + HIDE: "hide" + o, + HIDDEN: "hidden" + o, + SHOW: "show" + o, + SHOWN: "shown" + o, + CLICK: "click" + o, + CLICK_DATA_API: "click" + o + a, + KEYDOWN_DATA_API: "keydown" + o + a, + KEYUP_DATA_API: "keyup" + o + a + }, + u = "disabled", + f = "show", + d = "dropup", + _ = "dropright", + g = "dropleft", + p = "dropdown-menu-right", + m = "dropdown-menu-left", + v = "position-static", + E = '[data-toggle="dropdown"]', + T = ".dropdown form", + y = ".dropdown-menu", + C = ".navbar-nav", + I = ".dropdown-menu .dropdown-item:not(.disabled)", + A = "top-start", + b = "top-end", + D = "bottom-start", + S = "bottom-end", + w = "right-start", + N = "left-start", + O = { + offset: 0, + flip: !0, + boundary: "scrollParent" + }, + k = { + offset: "(number|string|function)", + flip: "boolean", + boundary: "(string|element)" + }, + L = function() { + function a(t, e) { + this._element = t, this._popper = null, this._config = this._getConfig(e), this._menu = this._getMenuElement(), this._inNavbar = this._detectNavbar(), this._addEventListeners() + } + var l = a.prototype; + return l.toggle = function() { + if (!this._element.disabled && !t(this._element).hasClass(u)) { + var e = a._getParentFromElement(this._element), + i = t(this._menu).hasClass(f); + if (a._clearMenus(), !i) { + var s = { + relatedTarget: this._element + }, + r = t.Event(c.SHOW, s); + if (t(e).trigger(r), !r.isDefaultPrevented()) { + if (!this._inNavbar) { + if ("undefined" == typeof n) throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)"); + var o = this._element; + t(e).hasClass(d) && (t(this._menu).hasClass(m) || t(this._menu).hasClass(p)) && (o = e), "scrollParent" !== this._config.boundary && t(e).addClass(v), this._popper = new n(o, this._menu, this._getPopperConfig()) + } + "ontouchstart" in document.documentElement && 0 === t(e).closest(C).length && t("body").children().on("mouseover", null, t.noop), this._element.focus(), this._element.setAttribute("aria-expanded", !0), t(this._menu).toggleClass(f), t(e).toggleClass(f).trigger(t.Event(c.SHOWN, s)) + } + } + } + }, l.dispose = function() { + t.removeData(this._element, i), t(this._element).off(o), this._element = null, this._menu = null, null !== this._popper && (this._popper.destroy(), this._popper = null) + }, l.update = function() { + this._inNavbar = this._detectNavbar(), null !== this._popper && this._popper.scheduleUpdate() + }, l._addEventListeners = function() { + var e = this; + t(this._element).on(c.CLICK, function(t) { + t.preventDefault(), t.stopPropagation(), e.toggle() + }) + }, l._getConfig = function(n) { + return n = r({}, this.constructor.Default, t(this._element).data(), n), P.typeCheckConfig(e, n, this.constructor.DefaultType), n + }, l._getMenuElement = function() { + if (!this._menu) { + var e = a._getParentFromElement(this._element); + this._menu = t(e).find(y)[0] + } + return this._menu + }, l._getPlacement = function() { + var e = t(this._element).parent(), + n = D; + return e.hasClass(d) ? (n = A, t(this._menu).hasClass(p) && (n = b)) : e.hasClass(_) ? n = w : e.hasClass(g) ? n = N : t(this._menu).hasClass(p) && (n = S), n + }, l._detectNavbar = function() { + return t(this._element).closest(".navbar").length > 0 + }, l._getPopperConfig = function() { + var t = this, + e = {}; + return "function" == typeof this._config.offset ? e.fn = function(e) { + return e.offsets = r({}, e.offsets, t._config.offset(e.offsets) || {}), e + } : e.offset = this._config.offset, { + placement: this._getPlacement(), + modifiers: { + offset: e, + flip: { + enabled: this._config.flip + }, + preventOverflow: { + boundariesElement: this._config.boundary + } + } + } + }, a._jQueryInterface = function(e) { + return this.each(function() { + var n = t(this).data(i); + if (n || (n = new a(this, "object" == typeof e ? e : null), t(this).data(i, n)), "string" == typeof e) { + if ("undefined" == typeof n[e]) throw new TypeError('No method named "' + e + '"'); + n[e]() + } + }) + }, a._clearMenus = function(e) { + if (!e || 3 !== e.which && ("keyup" !== e.type || 9 === e.which)) + for (var n = t.makeArray(t(E)), s = 0; s < n.length; s++) { + var r = a._getParentFromElement(n[s]), + o = t(n[s]).data(i), + l = { + relatedTarget: n[s] + }; + if (o) { + var h = o._menu; + if (t(r).hasClass(f) && !(e && ("click" === e.type && /input|textarea/i.test(e.target.tagName) || "keyup" === e.type && 9 === e.which) && t.contains(r, e.target))) { + var u = t.Event(c.HIDE, l); + t(r).trigger(u), u.isDefaultPrevented() || ("ontouchstart" in document.documentElement && t("body").children().off("mouseover", null, t.noop), n[s].setAttribute("aria-expanded", "false"), t(h).removeClass(f), t(r).removeClass(f).trigger(t.Event(c.HIDDEN, l))) + } + } + } + }, a._getParentFromElement = function(e) { + var n, i = P.getSelectorFromElement(e); + return i && (n = t(i)[0]), n || e.parentNode + }, a._dataApiKeydownHandler = function(e) { + if ((/input|textarea/i.test(e.target.tagName) ? !(32 === e.which || 27 !== e.which && (40 !== e.which && 38 !== e.which || t(e.target).closest(y).length)) : h.test(e.which)) && (e.preventDefault(), e.stopPropagation(), !this.disabled && !t(this).hasClass(u))) { + var n = a._getParentFromElement(this), + i = t(n).hasClass(f); + if ((i || 27 === e.which && 32 === e.which) && (!i || 27 !== e.which && 32 !== e.which)) { + var s = t(n).find(I).get(); + if (0 !== s.length) { + var r = s.indexOf(e.target); + 38 === e.which && r > 0 && r--, 40 === e.which && r < s.length - 1 && r++, r < 0 && (r = 0), s[r].focus() + } + } else { + if (27 === e.which) { + var o = t(n).find(E)[0]; + t(o).trigger("focus") + } + t(this).trigger("click") + } + } + }, s(a, null, [{ + key: "VERSION", + get: function() { + return "4.0.0" + } + }, { + key: "Default", + get: function() { + return O + } + }, { + key: "DefaultType", + get: function() { + return k + } + }]), a + }(); + return t(document).on(c.KEYDOWN_DATA_API, E, L._dataApiKeydownHandler).on(c.KEYDOWN_DATA_API, y, L._dataApiKeydownHandler).on(c.CLICK_DATA_API + " " + c.KEYUP_DATA_API, L._clearMenus).on(c.CLICK_DATA_API, E, function(e) { + e.preventDefault(), e.stopPropagation(), L._jQueryInterface.call(t(this), "toggle") + }).on(c.CLICK_DATA_API, T, function(t) { + t.stopPropagation() + }), t.fn[e] = L._jQueryInterface, t.fn[e].Constructor = L, t.fn[e].noConflict = function() { + return t.fn[e] = l, L._jQueryInterface + }, L + }(e), + M = function(t) { + var e = "modal", + n = "bs.modal", + i = "." + n, + o = t.fn.modal, + a = { + backdrop: !0, + keyboard: !0, + focus: !0, + show: !0 + }, + l = { + backdrop: "(boolean|string)", + keyboard: "boolean", + focus: "boolean", + show: "boolean" + }, + h = { + HIDE: "hide" + i, + HIDDEN: "hidden" + i, + SHOW: "show" + i, + SHOWN: "shown" + i, + FOCUSIN: "focusin" + i, + RESIZE: "resize" + i, + CLICK_DISMISS: "click.dismiss" + i, + KEYDOWN_DISMISS: "keydown.dismiss" + i, + MOUSEUP_DISMISS: "mouseup.dismiss" + i, + MOUSEDOWN_DISMISS: "mousedown.dismiss" + i, + CLICK_DATA_API: "click" + i + ".data-api" + }, + c = "modal-scrollbar-measure", + u = "modal-backdrop", + f = "modal-open", + d = "fade", + _ = "show", + g = { + DIALOG: ".modal-dialog", + DATA_TOGGLE: '[data-toggle="modal"]', + DATA_DISMISS: '[data-dismiss="modal"]', + FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", + STICKY_CONTENT: ".sticky-top", + NAVBAR_TOGGLER: ".navbar-toggler" + }, + p = function() { + function o(e, n) { + this._config = this._getConfig(n), this._element = e, this._dialog = t(e).find(g.DIALOG)[0], this._backdrop = null, this._isShown = !1, this._isBodyOverflowing = !1, this._ignoreBackdropClick = !1, this._originalBodyPadding = 0, this._scrollbarWidth = 0 + } + var p = o.prototype; + return p.toggle = function(t) { + return this._isShown ? this.hide() : this.show(t) + }, p.show = function(e) { + var n = this; + if (!this._isTransitioning && !this._isShown) { + P.supportsTransitionEnd() && t(this._element).hasClass(d) && (this._isTransitioning = !0); + var i = t.Event(h.SHOW, { + relatedTarget: e + }); + t(this._element).trigger(i), this._isShown || i.isDefaultPrevented() || (this._isShown = !0, this._checkScrollbar(), this._setScrollbar(), this._adjustDialog(), t(document.body).addClass(f), this._setEscapeEvent(), this._setResizeEvent(), t(this._element).on(h.CLICK_DISMISS, g.DATA_DISMISS, function(t) { + return n.hide(t) + }), t(this._dialog).on(h.MOUSEDOWN_DISMISS, function() { + t(n._element).one(h.MOUSEUP_DISMISS, function(e) { + t(e.target).is(n._element) && (n._ignoreBackdropClick = !0) + }) + }), this._showBackdrop(function() { + return n._showElement(e) + })) + } + }, p.hide = function(e) { + var n = this; + if (e && e.preventDefault(), !this._isTransitioning && this._isShown) { + var i = t.Event(h.HIDE); + if (t(this._element).trigger(i), this._isShown && !i.isDefaultPrevented()) { + this._isShown = !1; + var s = P.supportsTransitionEnd() && t(this._element).hasClass(d); + s && (this._isTransitioning = !0), this._setEscapeEvent(), this._setResizeEvent(), t(document).off(h.FOCUSIN), t(this._element).removeClass(_), t(this._element).off(h.CLICK_DISMISS), t(this._dialog).off(h.MOUSEDOWN_DISMISS), s ? t(this._element).one(P.TRANSITION_END, function(t) { + return n._hideModal(t) + }).emulateTransitionEnd(300) : this._hideModal() + } + } + }, p.dispose = function() { + t.removeData(this._element, n), t(window, document, this._element, this._backdrop).off(i), this._config = null, this._element = null, this._dialog = null, this._backdrop = null, this._isShown = null, this._isBodyOverflowing = null, this._ignoreBackdropClick = null, this._scrollbarWidth = null + }, p.handleUpdate = function() { + this._adjustDialog() + }, p._getConfig = function(t) { + return t = r({}, a, t), P.typeCheckConfig(e, t, l), t + }, p._showElement = function(e) { + var n = this, + i = P.supportsTransitionEnd() && t(this._element).hasClass(d); + this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE || document.body.appendChild(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.scrollTop = 0, i && P.reflow(this._element), t(this._element).addClass(_), this._config.focus && this._enforceFocus(); + var s = t.Event(h.SHOWN, { + relatedTarget: e + }), + r = function() { + n._config.focus && n._element.focus(), n._isTransitioning = !1, t(n._element).trigger(s) + }; + i ? t(this._dialog).one(P.TRANSITION_END, r).emulateTransitionEnd(300) : r() + }, p._enforceFocus = function() { + var e = this; + t(document).off(h.FOCUSIN).on(h.FOCUSIN, function(n) { + document !== n.target && e._element !== n.target && 0 === t(e._element).has(n.target).length && e._element.focus() + }) + }, p._setEscapeEvent = function() { + var e = this; + this._isShown && this._config.keyboard ? t(this._element).on(h.KEYDOWN_DISMISS, function(t) { + 27 === t.which && (t.preventDefault(), e.hide()) + }) : this._isShown || t(this._element).off(h.KEYDOWN_DISMISS) + }, p._setResizeEvent = function() { + var e = this; + this._isShown ? t(window).on(h.RESIZE, function(t) { + return e.handleUpdate(t) + }) : t(window).off(h.RESIZE) + }, p._hideModal = function() { + var e = this; + this._element.style.display = "none", this._element.setAttribute("aria-hidden", !0), this._isTransitioning = !1, this._showBackdrop(function() { + t(document.body).removeClass(f), e._resetAdjustments(), e._resetScrollbar(), t(e._element).trigger(h.HIDDEN) + }) + }, p._removeBackdrop = function() { + this._backdrop && (t(this._backdrop).remove(), this._backdrop = null) + }, p._showBackdrop = function(e) { + var n = this, + i = t(this._element).hasClass(d) ? d : ""; + if (this._isShown && this._config.backdrop) { + var s = P.supportsTransitionEnd() && i; + if (this._backdrop = document.createElement("div"), this._backdrop.className = u, i && t(this._backdrop).addClass(i), t(this._backdrop).appendTo(document.body), t(this._element).on(h.CLICK_DISMISS, function(t) { + n._ignoreBackdropClick ? n._ignoreBackdropClick = !1 : t.target === t.currentTarget && ("static" === n._config.backdrop ? n._element.focus() : n.hide()) + }), s && P.reflow(this._backdrop), t(this._backdrop).addClass(_), !e) return; + if (!s) return void e(); + t(this._backdrop).one(P.TRANSITION_END, e).emulateTransitionEnd(150) + } else if (!this._isShown && this._backdrop) { + t(this._backdrop).removeClass(_); + var r = function() { + n._removeBackdrop(), e && e() + }; + P.supportsTransitionEnd() && t(this._element).hasClass(d) ? t(this._backdrop).one(P.TRANSITION_END, r).emulateTransitionEnd(150) : r() + } else e && e() + }, p._adjustDialog = function() { + var t = this._element.scrollHeight > document.documentElement.clientHeight; + !this._isBodyOverflowing && t && (this._element.style.paddingLeft = this._scrollbarWidth + "px"), this._isBodyOverflowing && !t && (this._element.style.paddingRight = this._scrollbarWidth + "px") + }, p._resetAdjustments = function() { + this._element.style.paddingLeft = "", this._element.style.paddingRight = "" + }, p._checkScrollbar = function() { + var t = document.body.getBoundingClientRect(); + this._isBodyOverflowing = t.left + t.right < window.innerWidth, this._scrollbarWidth = this._getScrollbarWidth() + }, p._setScrollbar = function() { + var e = this; + if (this._isBodyOverflowing) { + t(g.FIXED_CONTENT).each(function(n, i) { + var s = t(i)[0].style.paddingRight, + r = t(i).css("padding-right"); + t(i).data("padding-right", s).css("padding-right", parseFloat(r) + e._scrollbarWidth + "px") + }), t(g.STICKY_CONTENT).each(function(n, i) { + var s = t(i)[0].style.marginRight, + r = t(i).css("margin-right"); + t(i).data("margin-right", s).css("margin-right", parseFloat(r) - e._scrollbarWidth + "px") + }), t(g.NAVBAR_TOGGLER).each(function(n, i) { + var s = t(i)[0].style.marginRight, + r = t(i).css("margin-right"); + t(i).data("margin-right", s).css("margin-right", parseFloat(r) + e._scrollbarWidth + "px") + }); + var n = document.body.style.paddingRight, + i = t("body").css("padding-right"); + t("body").data("padding-right", n).css("padding-right", parseFloat(i) + this._scrollbarWidth + "px") + } + }, p._resetScrollbar = function() { + t(g.FIXED_CONTENT).each(function(e, n) { + var i = t(n).data("padding-right"); + "undefined" != typeof i && t(n).css("padding-right", i).removeData("padding-right") + }), t(g.STICKY_CONTENT + ", " + g.NAVBAR_TOGGLER).each(function(e, n) { + var i = t(n).data("margin-right"); + "undefined" != typeof i && t(n).css("margin-right", i).removeData("margin-right") + }); + var e = t("body").data("padding-right"); + "undefined" != typeof e && t("body").css("padding-right", e).removeData("padding-right") + }, p._getScrollbarWidth = function() { + var t = document.createElement("div"); + t.className = c, document.body.appendChild(t); + var e = t.getBoundingClientRect().width - t.clientWidth; + return document.body.removeChild(t), e + }, o._jQueryInterface = function(e, i) { + return this.each(function() { + var s = t(this).data(n), + a = r({}, o.Default, t(this).data(), "object" == typeof e && e); + if (s || (s = new o(this, a), t(this).data(n, s)), "string" == typeof e) { + if ("undefined" == typeof s[e]) throw new TypeError('No method named "' + e + '"'); + s[e](i) + } else a.show && s.show(i) + }) + }, s(o, null, [{ + key: "VERSION", + get: function() { + return "4.0.0" + } + }, { + key: "Default", + get: function() { + return a + } + }]), o + }(); + return t(document).on(h.CLICK_DATA_API, g.DATA_TOGGLE, function(e) { + var i, s = this, + o = P.getSelectorFromElement(this); + o && (i = t(o)[0]); + var a = t(i).data(n) ? "toggle" : r({}, t(i).data(), t(this).data()); + "A" !== this.tagName && "AREA" !== this.tagName || e.preventDefault(); + var l = t(i).one(h.SHOW, function(e) { + e.isDefaultPrevented() || l.one(h.HIDDEN, function() { + t(s).is(":visible") && s.focus() + }) + }); + p._jQueryInterface.call(t(i), a, this) + }), t.fn.modal = p._jQueryInterface, t.fn.modal.Constructor = p, t.fn.modal.noConflict = function() { + return t.fn.modal = o, p._jQueryInterface + }, p + }(e), + U = function(t) { + var e = "tooltip", + i = "bs.tooltip", + o = "." + i, + a = t.fn[e], + l = new RegExp("(^|\\s)bs-tooltip\\S+", "g"), + h = { + animation: "boolean", + template: "string", + title: "(string|element|function)", + trigger: "string", + delay: "(number|object)", + html: "boolean", + selector: "(string|boolean)", + placement: "(string|function)", + offset: "(number|string)", + container: "(string|element|boolean)", + fallbackPlacement: "(string|array)", + boundary: "(string|element)" + }, + c = { + AUTO: "auto", + TOP: "top", + RIGHT: "right", + BOTTOM: "bottom", + LEFT: "left" + }, + u = { + animation: !0, + template: '', + trigger: "hover focus", + title: "", + delay: 0, + html: !1, + selector: !1, + placement: "top", + offset: 0, + container: !1, + fallbackPlacement: "flip", + boundary: "scrollParent" + }, + f = "show", + d = "out", + _ = { + HIDE: "hide" + o, + HIDDEN: "hidden" + o, + SHOW: "show" + o, + SHOWN: "shown" + o, + INSERTED: "inserted" + o, + CLICK: "click" + o, + FOCUSIN: "focusin" + o, + FOCUSOUT: "focusout" + o, + MOUSEENTER: "mouseenter" + o, + MOUSELEAVE: "mouseleave" + o + }, + g = "fade", + p = "show", + m = ".tooltip-inner", + v = ".arrow", + E = "hover", + T = "focus", + y = "click", + C = "manual", + I = function() { + function a(t, e) { + if ("undefined" == typeof n) throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)"); + this._isEnabled = !0, this._timeout = 0, this._hoverState = "", this._activeTrigger = {}, this._popper = null, this.element = t, this.config = this._getConfig(e), this.tip = null, this._setListeners() + } + var I = a.prototype; + return I.enable = function() { + this._isEnabled = !0 + }, I.disable = function() { + this._isEnabled = !1 + }, I.toggleEnabled = function() { + this._isEnabled = !this._isEnabled + }, I.toggle = function(e) { + if (this._isEnabled) + if (e) { + var n = this.constructor.DATA_KEY, + i = t(e.currentTarget).data(n); + i || (i = new this.constructor(e.currentTarget, this._getDelegateConfig()), t(e.currentTarget).data(n, i)), i._activeTrigger.click = !i._activeTrigger.click, i._isWithActiveTrigger() ? i._enter(null, i) : i._leave(null, i) + } else { + if (t(this.getTipElement()).hasClass(p)) return void this._leave(null, this); + this._enter(null, this) + } + }, I.dispose = function() { + clearTimeout(this._timeout), t.removeData(this.element, this.constructor.DATA_KEY), t(this.element).off(this.constructor.EVENT_KEY), t(this.element).closest(".modal").off("hide.bs.modal"), this.tip && t(this.tip).remove(), this._isEnabled = null, this._timeout = null, this._hoverState = null, this._activeTrigger = null, null !== this._popper && this._popper.destroy(), this._popper = null, this.element = null, this.config = null, this.tip = null + }, I.show = function() { + var e = this; + if ("none" === t(this.element).css("display")) throw new Error("Please use show on visible elements"); + var i = t.Event(this.constructor.Event.SHOW); + if (this.isWithContent() && this._isEnabled) { + t(this.element).trigger(i); + var s = t.contains(this.element.ownerDocument.documentElement, this.element); + if (i.isDefaultPrevented() || !s) return; + var r = this.getTipElement(), + o = P.getUID(this.constructor.NAME); + r.setAttribute("id", o), this.element.setAttribute("aria-describedby", o), this.setContent(), this.config.animation && t(r).addClass(g); + var l = "function" == typeof this.config.placement ? this.config.placement.call(this, r, this.element) : this.config.placement, + h = this._getAttachment(l); + this.addAttachmentClass(h); + var c = !1 === this.config.container ? document.body : t(this.config.container); + t(r).data(this.constructor.DATA_KEY, this), t.contains(this.element.ownerDocument.documentElement, this.tip) || t(r).appendTo(c), t(this.element).trigger(this.constructor.Event.INSERTED), this._popper = new n(this.element, r, { + placement: h, + modifiers: { + offset: { + offset: this.config.offset + }, + flip: { + behavior: this.config.fallbackPlacement + }, + arrow: { + element: v + }, + preventOverflow: { + boundariesElement: this.config.boundary + } + }, + onCreate: function(t) { + t.originalPlacement !== t.placement && e._handlePopperPlacementChange(t) + }, + onUpdate: function(t) { + e._handlePopperPlacementChange(t) + } + }), t(r).addClass(p), "ontouchstart" in document.documentElement && t("body").children().on("mouseover", null, t.noop); + var u = function() { + e.config.animation && e._fixTransition(); + var n = e._hoverState; + e._hoverState = null, t(e.element).trigger(e.constructor.Event.SHOWN), n === d && e._leave(null, e) + }; + P.supportsTransitionEnd() && t(this.tip).hasClass(g) ? t(this.tip).one(P.TRANSITION_END, u).emulateTransitionEnd(a._TRANSITION_DURATION) : u() + } + }, I.hide = function(e) { + var n = this, + i = this.getTipElement(), + s = t.Event(this.constructor.Event.HIDE), + r = function() { + n._hoverState !== f && i.parentNode && i.parentNode.removeChild(i), n._cleanTipClass(), n.element.removeAttribute("aria-describedby"), t(n.element).trigger(n.constructor.Event.HIDDEN), null !== n._popper && n._popper.destroy(), e && e() + }; + t(this.element).trigger(s), s.isDefaultPrevented() || (t(i).removeClass(p), "ontouchstart" in document.documentElement && t("body").children().off("mouseover", null, t.noop), this._activeTrigger[y] = !1, this._activeTrigger[T] = !1, this._activeTrigger[E] = !1, P.supportsTransitionEnd() && t(this.tip).hasClass(g) ? t(i).one(P.TRANSITION_END, r).emulateTransitionEnd(150) : r(), this._hoverState = "") + }, I.update = function() { + null !== this._popper && this._popper.scheduleUpdate() + }, I.isWithContent = function() { + return Boolean(this.getTitle()) + }, I.addAttachmentClass = function(e) { + t(this.getTipElement()).addClass("bs-tooltip-" + e) + }, I.getTipElement = function() { + return this.tip = this.tip || t(this.config.template)[0], this.tip + }, I.setContent = function() { + var e = t(this.getTipElement()); + this.setElementContent(e.find(m), this.getTitle()), e.removeClass(g + " " + p) + }, I.setElementContent = function(e, n) { + var i = this.config.html; + "object" == typeof n && (n.nodeType || n.jquery) ? i ? t(n).parent().is(e) || e.empty().append(n) : e.text(t(n).text()) : e[i ? "html" : "text"](n) + }, I.getTitle = function() { + var t = this.element.getAttribute("data-original-title"); + return t || (t = "function" == typeof this.config.title ? this.config.title.call(this.element) : this.config.title), t + }, I._getAttachment = function(t) { + return c[t.toUpperCase()] + }, I._setListeners = function() { + var e = this; + this.config.trigger.split(" ").forEach(function(n) { + if ("click" === n) t(e.element).on(e.constructor.Event.CLICK, e.config.selector, function(t) { + return e.toggle(t) + }); + else if (n !== C) { + var i = n === E ? e.constructor.Event.MOUSEENTER : e.constructor.Event.FOCUSIN, + s = n === E ? e.constructor.Event.MOUSELEAVE : e.constructor.Event.FOCUSOUT; + t(e.element).on(i, e.config.selector, function(t) { + return e._enter(t) + }).on(s, e.config.selector, function(t) { + return e._leave(t) + }) + } + t(e.element).closest(".modal").on("hide.bs.modal", function() { + return e.hide() + }) + }), this.config.selector ? this.config = r({}, this.config, { + trigger: "manual", + selector: "" + }) : this._fixTitle() + }, I._fixTitle = function() { + var t = typeof this.element.getAttribute("data-original-title"); + (this.element.getAttribute("title") || "string" !== t) && (this.element.setAttribute("data-original-title", this.element.getAttribute("title") || ""), this.element.setAttribute("title", "")) + }, I._enter = function(e, n) { + var i = this.constructor.DATA_KEY; + (n = n || t(e.currentTarget).data(i)) || (n = new this.constructor(e.currentTarget, this._getDelegateConfig()), t(e.currentTarget).data(i, n)), e && (n._activeTrigger["focusin" === e.type ? T : E] = !0), t(n.getTipElement()).hasClass(p) || n._hoverState === f ? n._hoverState = f : (clearTimeout(n._timeout), n._hoverState = f, n.config.delay && n.config.delay.show ? n._timeout = setTimeout(function() { + n._hoverState === f && n.show() + }, n.config.delay.show) : n.show()) + }, I._leave = function(e, n) { + var i = this.constructor.DATA_KEY; + (n = n || t(e.currentTarget).data(i)) || (n = new this.constructor(e.currentTarget, this._getDelegateConfig()), t(e.currentTarget).data(i, n)), e && (n._activeTrigger["focusout" === e.type ? T : E] = !1), n._isWithActiveTrigger() || (clearTimeout(n._timeout), n._hoverState = d, n.config.delay && n.config.delay.hide ? n._timeout = setTimeout(function() { + n._hoverState === d && n.hide() + }, n.config.delay.hide) : n.hide()) + }, I._isWithActiveTrigger = function() { + for (var t in this._activeTrigger) + if (this._activeTrigger[t]) return !0; + return !1 + }, I._getConfig = function(n) { + return "number" == typeof (n = r({}, this.constructor.Default, t(this.element).data(), n)).delay && (n.delay = { + show: n.delay, + hide: n.delay + }), "number" == typeof n.title && (n.title = n.title.toString()), "number" == typeof n.content && (n.content = n.content.toString()), P.typeCheckConfig(e, n, this.constructor.DefaultType), n + }, I._getDelegateConfig = function() { + var t = {}; + if (this.config) + for (var e in this.config) this.constructor.Default[e] !== this.config[e] && (t[e] = this.config[e]); + return t + }, I._cleanTipClass = function() { + var e = t(this.getTipElement()), + n = e.attr("class").match(l); + null !== n && n.length > 0 && e.removeClass(n.join("")) + }, I._handlePopperPlacementChange = function(t) { + this._cleanTipClass(), this.addAttachmentClass(this._getAttachment(t.placement)) + }, I._fixTransition = function() { + var e = this.getTipElement(), + n = this.config.animation; + null === e.getAttribute("x-placement") && (t(e).removeClass(g), this.config.animation = !1, this.hide(), this.show(), this.config.animation = n) + }, a._jQueryInterface = function(e) { + return this.each(function() { + var n = t(this).data(i), + s = "object" == typeof e && e; + if ((n || !/dispose|hide/.test(e)) && (n || (n = new a(this, s), t(this).data(i, n)), "string" == typeof e)) { + if ("undefined" == typeof n[e]) throw new TypeError('No method named "' + e + '"'); + n[e]() + } + }) + }, s(a, null, [{ + key: "VERSION", + get: function() { + return "4.0.0" + } + }, { + key: "Default", + get: function() { + return u + } + }, { + key: "NAME", + get: function() { + return e + } + }, { + key: "DATA_KEY", + get: function() { + return i + } + }, { + key: "Event", + get: function() { + return _ + } + }, { + key: "EVENT_KEY", + get: function() { + return o + } + }, { + key: "DefaultType", + get: function() { + return h + } + }]), a + }(); + return t.fn[e] = I._jQueryInterface, t.fn[e].Constructor = I, t.fn[e].noConflict = function() { + return t.fn[e] = a, I._jQueryInterface + }, I + }(e), + x = function(t) { + var e = "popover", + n = "bs.popover", + i = "." + n, + o = t.fn[e], + a = new RegExp("(^|\\s)bs-popover\\S+", "g"), + l = r({}, U.Default, { + placement: "right", + trigger: "click", + content: "", + template: '' + }), + h = r({}, U.DefaultType, { + content: "(string|element|function)" + }), + c = "fade", + u = "show", + f = ".popover-header", + d = ".popover-body", + _ = { + HIDE: "hide" + i, + HIDDEN: "hidden" + i, + SHOW: "show" + i, + SHOWN: "shown" + i, + INSERTED: "inserted" + i, + CLICK: "click" + i, + FOCUSIN: "focusin" + i, + FOCUSOUT: "focusout" + i, + MOUSEENTER: "mouseenter" + i, + MOUSELEAVE: "mouseleave" + i + }, + g = function(r) { + var o, g; + + function p() { + return r.apply(this, arguments) || this + } + g = r, (o = p).prototype = Object.create(g.prototype), o.prototype.constructor = o, o.__proto__ = g; + var m = p.prototype; + return m.isWithContent = function() { + return this.getTitle() || this._getContent() + }, m.addAttachmentClass = function(e) { + t(this.getTipElement()).addClass("bs-popover-" + e) + }, m.getTipElement = function() { + return this.tip = this.tip || t(this.config.template)[0], this.tip + }, m.setContent = function() { + var e = t(this.getTipElement()); + this.setElementContent(e.find(f), this.getTitle()); + var n = this._getContent(); + "function" == typeof n && (n = n.call(this.element)), this.setElementContent(e.find(d), n), e.removeClass(c + " " + u) + }, m._getContent = function() { + return this.element.getAttribute("data-content") || this.config.content + }, m._cleanTipClass = function() { + var e = t(this.getTipElement()), + n = e.attr("class").match(a); + null !== n && n.length > 0 && e.removeClass(n.join("")) + }, p._jQueryInterface = function(e) { + return this.each(function() { + var i = t(this).data(n), + s = "object" == typeof e ? e : null; + if ((i || !/destroy|hide/.test(e)) && (i || (i = new p(this, s), t(this).data(n, i)), "string" == typeof e)) { + if ("undefined" == typeof i[e]) throw new TypeError('No method named "' + e + '"'); + i[e]() + } + }) + }, s(p, null, [{ + key: "VERSION", + get: function() { + return "4.0.0" + } + }, { + key: "Default", + get: function() { + return l + } + }, { + key: "NAME", + get: function() { + return e + } + }, { + key: "DATA_KEY", + get: function() { + return n + } + }, { + key: "Event", + get: function() { + return _ + } + }, { + key: "EVENT_KEY", + get: function() { + return i + } + }, { + key: "DefaultType", + get: function() { + return h + } + }]), p + }(U); + return t.fn[e] = g._jQueryInterface, t.fn[e].Constructor = g, t.fn[e].noConflict = function() { + return t.fn[e] = o, g._jQueryInterface + }, g + }(e), + K = function(t) { + var e = "scrollspy", + n = "bs.scrollspy", + i = "." + n, + o = t.fn[e], + a = { + offset: 10, + method: "auto", + target: "" + }, + l = { + offset: "number", + method: "string", + target: "(string|element)" + }, + h = { + ACTIVATE: "activate" + i, + SCROLL: "scroll" + i, + LOAD_DATA_API: "load" + i + ".data-api" + }, + c = "dropdown-item", + u = "active", + f = { + DATA_SPY: '[data-spy="scroll"]', + ACTIVE: ".active", + NAV_LIST_GROUP: ".nav, .list-group", + NAV_LINKS: ".nav-link", + NAV_ITEMS: ".nav-item", + LIST_ITEMS: ".list-group-item", + DROPDOWN: ".dropdown", + DROPDOWN_ITEMS: ".dropdown-item", + DROPDOWN_TOGGLE: ".dropdown-toggle" + }, + d = "offset", + _ = "position", + g = function() { + function o(e, n) { + var i = this; + this._element = e, this._scrollElement = "BODY" === e.tagName ? window : e, this._config = this._getConfig(n), this._selector = this._config.target + " " + f.NAV_LINKS + "," + this._config.target + " " + f.LIST_ITEMS + "," + this._config.target + " " + f.DROPDOWN_ITEMS, this._offsets = [], this._targets = [], this._activeTarget = null, this._scrollHeight = 0, t(this._scrollElement).on(h.SCROLL, function(t) { + return i._process(t) + }), this.refresh(), this._process() + } + var g = o.prototype; + return g.refresh = function() { + var e = this, + n = this._scrollElement === this._scrollElement.window ? d : _, + i = "auto" === this._config.method ? n : this._config.method, + s = i === _ ? this._getScrollTop() : 0; + this._offsets = [], this._targets = [], this._scrollHeight = this._getScrollHeight(), t.makeArray(t(this._selector)).map(function(e) { + var n, r = P.getSelectorFromElement(e); + if (r && (n = t(r)[0]), n) { + var o = n.getBoundingClientRect(); + if (o.width || o.height) return [t(n)[i]().top + s, r] + } + return null + }).filter(function(t) { + return t + }).sort(function(t, e) { + return t[0] - e[0] + }).forEach(function(t) { + e._offsets.push(t[0]), e._targets.push(t[1]) + }) + }, g.dispose = function() { + t.removeData(this._element, n), t(this._scrollElement).off(i), this._element = null, this._scrollElement = null, this._config = null, this._selector = null, this._offsets = null, this._targets = null, this._activeTarget = null, this._scrollHeight = null + }, g._getConfig = function(n) { + if ("string" != typeof (n = r({}, a, n)).target) { + var i = t(n.target).attr("id"); + i || (i = P.getUID(e), t(n.target).attr("id", i)), n.target = "#" + i + } + return P.typeCheckConfig(e, n, l), n + }, g._getScrollTop = function() { + return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop + }, g._getScrollHeight = function() { + return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight) + }, g._getOffsetHeight = function() { + return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height + }, g._process = function() { + var t = this._getScrollTop() + this._config.offset, + e = this._getScrollHeight(), + n = this._config.offset + e - this._getOffsetHeight(); + if (this._scrollHeight !== e && this.refresh(), t >= n) { + var i = this._targets[this._targets.length - 1]; + this._activeTarget !== i && this._activate(i) + } else { + if (this._activeTarget && t < this._offsets[0] && this._offsets[0] > 0) return this._activeTarget = null, void this._clear(); + for (var s = this._offsets.length; s--;) { + this._activeTarget !== this._targets[s] && t >= this._offsets[s] && ("undefined" == typeof this._offsets[s + 1] || t < this._offsets[s + 1]) && this._activate(this._targets[s]) + } + } + }, g._activate = function(e) { + this._activeTarget = e, this._clear(); + var n = this._selector.split(","); + n = n.map(function(t) { + return t + '[data-target="' + e + '"],' + t + '[href="' + e + '"]' + }); + var i = t(n.join(",")); + i.hasClass(c) ? (i.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(u), i.addClass(u)) : (i.addClass(u), i.parents(f.NAV_LIST_GROUP).prev(f.NAV_LINKS + ", " + f.LIST_ITEMS).addClass(u), i.parents(f.NAV_LIST_GROUP).prev(f.NAV_ITEMS).children(f.NAV_LINKS).addClass(u)), t(this._scrollElement).trigger(h.ACTIVATE, { + relatedTarget: e + }) + }, g._clear = function() { + t(this._selector).filter(f.ACTIVE).removeClass(u) + }, o._jQueryInterface = function(e) { + return this.each(function() { + var i = t(this).data(n); + if (i || (i = new o(this, "object" == typeof e && e), t(this).data(n, i)), "string" == typeof e) { + if ("undefined" == typeof i[e]) throw new TypeError('No method named "' + e + '"'); + i[e]() + } + }) + }, s(o, null, [{ + key: "VERSION", + get: function() { + return "4.0.0" + } + }, { + key: "Default", + get: function() { + return a + } + }]), o + }(); + return t(window).on(h.LOAD_DATA_API, function() { + for (var e = t.makeArray(t(f.DATA_SPY)), n = e.length; n--;) { + var i = t(e[n]); + g._jQueryInterface.call(i, i.data()) + } + }), t.fn[e] = g._jQueryInterface, t.fn[e].Constructor = g, t.fn[e].noConflict = function() { + return t.fn[e] = o, g._jQueryInterface + }, g + }(e), + V = function(t) { + var e = "bs.tab", + n = "." + e, + i = t.fn.tab, + r = { + HIDE: "hide" + n, + HIDDEN: "hidden" + n, + SHOW: "show" + n, + SHOWN: "shown" + n, + CLICK_DATA_API: "click.bs.tab.data-api" + }, + o = "dropdown-menu", + a = "active", + l = "disabled", + h = "fade", + c = "show", + u = ".dropdown", + f = ".nav, .list-group", + d = ".active", + _ = "> li > .active", + g = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]', + p = ".dropdown-toggle", + m = "> .dropdown-menu .active", + v = function() { + function n(t) { + this._element = t + } + var i = n.prototype; + return i.show = function() { + var e = this; + if (!(this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && t(this._element).hasClass(a) || t(this._element).hasClass(l))) { + var n, i, s = t(this._element).closest(f)[0], + o = P.getSelectorFromElement(this._element); + if (s) { + var h = "UL" === s.nodeName ? _ : d; + i = (i = t.makeArray(t(s).find(h)))[i.length - 1] + } + var c = t.Event(r.HIDE, { + relatedTarget: this._element + }), + u = t.Event(r.SHOW, { + relatedTarget: i + }); + if (i && t(i).trigger(c), t(this._element).trigger(u), !u.isDefaultPrevented() && !c.isDefaultPrevented()) { + o && (n = t(o)[0]), this._activate(this._element, s); + var g = function() { + var n = t.Event(r.HIDDEN, { + relatedTarget: e._element + }), + s = t.Event(r.SHOWN, { + relatedTarget: i + }); + t(i).trigger(n), t(e._element).trigger(s) + }; + n ? this._activate(n, n.parentNode, g) : g() + } + } + }, i.dispose = function() { + t.removeData(this._element, e), this._element = null + }, i._activate = function(e, n, i) { + var s = this, + r = ("UL" === n.nodeName ? t(n).find(_) : t(n).children(d))[0], + o = i && P.supportsTransitionEnd() && r && t(r).hasClass(h), + a = function() { + return s._transitionComplete(e, r, i) + }; + r && o ? t(r).one(P.TRANSITION_END, a).emulateTransitionEnd(150) : a() + }, i._transitionComplete = function(e, n, i) { + if (n) { + t(n).removeClass(c + " " + a); + var s = t(n.parentNode).find(m)[0]; + s && t(s).removeClass(a), "tab" === n.getAttribute("role") && n.setAttribute("aria-selected", !1) + } + if (t(e).addClass(a), "tab" === e.getAttribute("role") && e.setAttribute("aria-selected", !0), P.reflow(e), t(e).addClass(c), e.parentNode && t(e.parentNode).hasClass(o)) { + var r = t(e).closest(u)[0]; + r && t(r).find(p).addClass(a), e.setAttribute("aria-expanded", !0) + } + i && i() + }, n._jQueryInterface = function(i) { + return this.each(function() { + var s = t(this), + r = s.data(e); + if (r || (r = new n(this), s.data(e, r)), "string" == typeof i) { + if ("undefined" == typeof r[i]) throw new TypeError('No method named "' + i + '"'); + r[i]() + } + }) + }, s(n, null, [{ + key: "VERSION", + get: function() { + return "4.0.0" + } + }]), n + }(); + return t(document).on(r.CLICK_DATA_API, g, function(e) { + e.preventDefault(), v._jQueryInterface.call(t(this), "show") + }), t.fn.tab = v._jQueryInterface, t.fn.tab.Constructor = v, t.fn.tab.noConflict = function() { + return t.fn.tab = i, v._jQueryInterface + }, v + }(e); + ! function(t) { + if ("undefined" == typeof t) throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript."); + var e = t.fn.jquery.split(" ")[0].split("."); + if (e[0] < 2 && e[1] < 9 || 1 === e[0] && 9 === e[1] && e[2] < 1 || e[0] >= 4) throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0") + }(e), t.Util = P, t.Alert = L, t.Button = R, t.Carousel = j, t.Collapse = H, t.Dropdown = W, t.Modal = M, t.Popover = x, t.Scrollspy = K, t.Tab = V, t.Tooltip = U, Object.defineProperty(t, "__esModule", { + value: !0 + }) +}); +//# sourceMappingURL=bootstrap.min.js.map diff --git a/assets/js/jquery.magnific-popup.js b/assets/js/jquery.magnific-popup.js index 6ee3a3b..cb13a91 100755 --- a/assets/js/jquery.magnific-popup.js +++ b/assets/js/jquery.magnific-popup.js @@ -1,4 +1,659 @@ /*! Magnific Popup - v1.1.0 - 2016-02-20 -* http://dimsemenov.com/plugins/magnific-popup/ -* Copyright (c) 2016 Dmitry Semenov; */ -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()}); \ No newline at end of file + * http://dimsemenov.com/plugins/magnific-popup/ + * Copyright (c) 2016 Dmitry Semenov; */ +! function(a) { + "function" == typeof define && define.amd ? define(["jquery"], a) : a("object" == typeof exports ? require("jquery") : window.jQuery || window.Zepto) +}(function(a) { + var b, c, d, e, f, g, h = "Close", + i = "BeforeClose", + j = "AfterClose", + k = "BeforeAppend", + l = "MarkupParse", + m = "Open", + n = "Change", + o = "mfp", + p = "." + o, + q = "mfp-ready", + r = "mfp-removing", + s = "mfp-prevent-close", + t = function() { }, + u = !!window.jQuery, + v = a(window), + w = function(a, c) { + b.ev.on(o + a + p, c) + }, + x = function(b, c, d, e) { + var f = document.createElement("div"); + return f.className = "mfp-" + b, d && (f.innerHTML = d), e ? c && c.appendChild(f) : (f = a(f), c && f.appendTo(c)), f + }, + y = function(c, d) { + b.ev.triggerHandler(o + c, d), b.st.callbacks && (c = c.charAt(0).toLowerCase() + c.slice(1), b.st.callbacks[c] && b.st.callbacks[c].apply(b, a.isArray(d) ? d : [d])) + }, + z = function(c) { + return c === g && b.currTemplate.closeBtn || (b.currTemplate.closeBtn = a(b.st.closeMarkup.replace("%title%", b.st.tClose)), g = c), b.currTemplate.closeBtn + }, + A = function() { + a.magnificPopup.instance || (b = new t, b.init(), a.magnificPopup.instance = b) + }, + B = function() { + var a = document.createElement("p").style, + b = ["ms", "O", "Moz", "Webkit"]; + if (void 0 !== a.transition) return !0; + for (; b.length;) + if (b.pop() + "Transition" in a) return !0; + return !1 + }; + t.prototype = { + constructor: t, + init: function() { + var c = navigator.appVersion; + b.isLowIE = b.isIE8 = document.all && !document.addEventListener, b.isAndroid = /android/gi.test(c), b.isIOS = /iphone|ipad|ipod/gi.test(c), b.supportsTransition = B(), b.probablyMobile = b.isAndroid || b.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), d = a(document), b.popupsCache = {} + }, + open: function(c) { + var e; + if (c.isObj === !1) { + b.items = c.items.toArray(), b.index = 0; + var g, h = c.items; + for (e = 0; e < h.length; e++) + if (g = h[e], g.parsed && (g = g.el[0]), g === c.el[0]) { + b.index = e; + break + } + } else b.items = a.isArray(c.items) ? c.items : [c.items], b.index = c.index || 0; + if (b.isOpen) return void b.updateItemHTML(); + b.types = [], f = "", c.mainEl && c.mainEl.length ? b.ev = c.mainEl.eq(0) : b.ev = d, c.key ? (b.popupsCache[c.key] || (b.popupsCache[c.key] = {}), b.currTemplate = b.popupsCache[c.key]) : b.currTemplate = {}, b.st = a.extend(!0, {}, a.magnificPopup.defaults, c), b.fixedContentPos = "auto" === b.st.fixedContentPos ? !b.probablyMobile : b.st.fixedContentPos, b.st.modal && (b.st.closeOnContentClick = !1, b.st.closeOnBgClick = !1, b.st.showCloseBtn = !1, b.st.enableEscapeKey = !1), b.bgOverlay || (b.bgOverlay = x("bg").on("click" + p, function() { + b.close() + }), b.wrap = x("wrap").attr("tabindex", -1).on("click" + p, function(a) { + b._checkIfClose(a.target) && b.close() + }), b.container = x("container", b.wrap)), b.contentContainer = x("content"), b.st.preloader && (b.preloader = x("preloader", b.container, b.st.tLoading)); + var i = a.magnificPopup.modules; + for (e = 0; e < i.length; e++) { + var j = i[e]; + j = j.charAt(0).toUpperCase() + j.slice(1), b["init" + j].call(b) + } + y("BeforeOpen"), b.st.showCloseBtn && (b.st.closeBtnInside ? (w(l, function(a, b, c, d) { + c.close_replaceWith = z(d.type) + }), f += " mfp-close-btn-in") : b.wrap.append(z())), b.st.alignTop && (f += " mfp-align-top"), b.fixedContentPos ? b.wrap.css({ + overflow: b.st.overflowY, + overflowX: "hidden", + overflowY: b.st.overflowY + }) : b.wrap.css({ + top: v.scrollTop(), + position: "absolute" + }), (b.st.fixedBgPos === !1 || "auto" === b.st.fixedBgPos && !b.fixedContentPos) && b.bgOverlay.css({ + height: d.height(), + position: "absolute" + }), b.st.enableEscapeKey && d.on("keyup" + p, function(a) { + 27 === a.keyCode && b.close() + }), v.on("resize" + p, function() { + b.updateSize() + }), b.st.closeOnContentClick || (f += " mfp-auto-cursor"), f && b.wrap.addClass(f); + var k = b.wH = v.height(), + n = {}; + if (b.fixedContentPos && b._hasScrollBar(k)) { + var o = b._getScrollbarSize(); + o && (n.marginRight = o) + } + b.fixedContentPos && (b.isIE7 ? a("body, html").css("overflow", "hidden") : n.overflow = "hidden"); + var r = b.st.mainClass; + return b.isIE7 && (r += " mfp-ie7"), r && b._addClassToMFP(r), b.updateItemHTML(), y("BuildControls"), a("html").css(n), b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo || a(document.body)), b._lastFocusedEl = document.activeElement, setTimeout(function() { + b.content ? (b._addClassToMFP(q), b._setFocus()) : b.bgOverlay.addClass(q), d.on("focusin" + p, b._onFocusIn) + }, 16), b.isOpen = !0, b.updateSize(k), y(m), c + }, + close: function() { + b.isOpen && (y(i), b.isOpen = !1, b.st.removalDelay && !b.isLowIE && b.supportsTransition ? (b._addClassToMFP(r), setTimeout(function() { + b._close() + }, b.st.removalDelay)) : b._close()) + }, + _close: function() { + y(h); + var c = r + " " + q + " "; + if (b.bgOverlay.detach(), b.wrap.detach(), b.container.empty(), b.st.mainClass && (c += b.st.mainClass + " "), b._removeClassFromMFP(c), b.fixedContentPos) { + var e = { + marginRight: "" + }; + b.isIE7 ? a("body, html").css("overflow", "") : e.overflow = "", a("html").css(e) + } + d.off("keyup" + p + " focusin" + p), b.ev.off(p), b.wrap.attr("class", "mfp-wrap").removeAttr("style"), b.bgOverlay.attr("class", "mfp-bg"), b.container.attr("class", "mfp-container"), !b.st.showCloseBtn || b.st.closeBtnInside && b.currTemplate[b.currItem.type] !== !0 || b.currTemplate.closeBtn && b.currTemplate.closeBtn.detach(), b.st.autoFocusLast && b._lastFocusedEl && a(b._lastFocusedEl).focus(), b.currItem = null, b.content = null, b.currTemplate = null, b.prevHeight = 0, y(j) + }, + updateSize: function(a) { + if (b.isIOS) { + var c = document.documentElement.clientWidth / window.innerWidth, + d = window.innerHeight * c; + b.wrap.css("height", d), b.wH = d + } else b.wH = a || v.height(); + b.fixedContentPos || b.wrap.css("height", b.wH), y("Resize") + }, + updateItemHTML: function() { + var c = b.items[b.index]; + b.contentContainer.detach(), b.content && b.content.detach(), c.parsed || (c = b.parseEl(b.index)); + var d = c.type; + if (y("BeforeChange", [b.currItem ? b.currItem.type : "", d]), b.currItem = c, !b.currTemplate[d]) { + var f = b.st[d] ? b.st[d].markup : !1; + y("FirstMarkupParse", f), f ? b.currTemplate[d] = a(f) : b.currTemplate[d] = !0 + } + e && e !== c.type && b.container.removeClass("mfp-" + e + "-holder"); + var g = b["get" + d.charAt(0).toUpperCase() + d.slice(1)](c, b.currTemplate[d]); + b.appendContent(g, d), c.preloaded = !0, y(n, c), e = c.type, b.container.prepend(b.contentContainer), y("AfterChange") + }, + appendContent: function(a, c) { + b.content = a, a ? b.st.showCloseBtn && b.st.closeBtnInside && b.currTemplate[c] === !0 ? b.content.find(".mfp-close").length || b.content.append(z()) : b.content = a : b.content = "", y(k), b.container.addClass("mfp-" + c + "-holder"), b.contentContainer.append(b.content) + }, + parseEl: function(c) { + var d, e = b.items[c]; + if (e.tagName ? e = { + el: a(e) + } : (d = e.type, e = { + data: e, + src: e.src + }), e.el) { + for (var f = b.types, g = 0; g < f.length; g++) + if (e.el.hasClass("mfp-" + f[g])) { + d = f[g]; + break + } e.src = e.el.attr("data-mfp-src"), e.src || (e.src = e.el.attr("href")) + } + return e.type = d || b.st.type || "inline", e.index = c, e.parsed = !0, b.items[c] = e, y("ElementParse", e), b.items[c] + }, + addGroup: function(a, c) { + var d = function(d) { + d.mfpEl = this, b._openClick(d, a, c) + }; + c || (c = {}); + var e = "click.magnificPopup"; + c.mainEl = a, c.items ? (c.isObj = !0, a.off(e).on(e, d)) : (c.isObj = !1, c.delegate ? a.off(e).on(e, c.delegate, d) : (c.items = a, a.off(e).on(e, d))) + }, + _openClick: function(c, d, e) { + var f = void 0 !== e.midClick ? e.midClick : a.magnificPopup.defaults.midClick; + if (f || !(2 === c.which || c.ctrlKey || c.metaKey || c.altKey || c.shiftKey)) { + var g = void 0 !== e.disableOn ? e.disableOn : a.magnificPopup.defaults.disableOn; + if (g) + if (a.isFunction(g)) { + if (!g.call(b)) return !0 + } else if (v.width() < g) return !0; + c.type && (c.preventDefault(), b.isOpen && c.stopPropagation()), e.el = a(c.mfpEl), e.delegate && (e.items = d.find(e.delegate)), b.open(e) + } + }, + updateStatus: function(a, d) { + if (b.preloader) { + c !== a && b.container.removeClass("mfp-s-" + c), d || "loading" !== a || (d = b.st.tLoading); + var e = { + status: a, + text: d + }; + y("UpdateStatus", e), a = e.status, d = e.text, b.preloader.html(d), b.preloader.find("a").on("click", function(a) { + a.stopImmediatePropagation() + }), b.container.addClass("mfp-s-" + a), c = a + } + }, + _checkIfClose: function(c) { + if (!a(c).hasClass(s)) { + var d = b.st.closeOnContentClick, + e = b.st.closeOnBgClick; + if (d && e) return !0; + if (!b.content || a(c).hasClass("mfp-close") || b.preloader && c === b.preloader[0]) return !0; + if (c === b.content[0] || a.contains(b.content[0], c)) { + if (d) return !0 + } else if (e && a.contains(document, c)) return !0; + return !1 + } + }, + _addClassToMFP: function(a) { + b.bgOverlay.addClass(a), b.wrap.addClass(a) + }, + _removeClassFromMFP: function(a) { + this.bgOverlay.removeClass(a), b.wrap.removeClass(a) + }, + _hasScrollBar: function(a) { + return (b.isIE7 ? d.height() : document.body.scrollHeight) > (a || v.height()) + }, + _setFocus: function() { + (b.st.focus ? b.content.find(b.st.focus).eq(0) : b.wrap).focus() + }, + _onFocusIn: function(c) { + return c.target === b.wrap[0] || a.contains(b.wrap[0], c.target) ? void 0 : (b._setFocus(), !1) + }, + _parseMarkup: function(b, c, d) { + var e; + d.data && (c = a.extend(d.data, c)), y(l, [b, c, d]), a.each(c, function(c, d) { + if (void 0 === d || d === !1) return !0; + if (e = c.split("_"), e.length > 1) { + var f = b.find(p + "-" + e[0]); + if (f.length > 0) { + var g = e[1]; + "replaceWith" === g ? f[0] !== d[0] && f.replaceWith(d) : "img" === g ? f.is("img") ? f.attr("src", d) : f.replaceWith(a("").attr("src", d).attr("class", f.attr("class"))) : f.attr(e[1], d) + } + } else b.find(p + "-" + c).html(d) + }) + }, + _getScrollbarSize: function() { + if (void 0 === b.scrollbarSize) { + var a = document.createElement("div"); + a.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", document.body.appendChild(a), b.scrollbarSize = a.offsetWidth - a.clientWidth, document.body.removeChild(a) + } + return b.scrollbarSize + } + }, a.magnificPopup = { + instance: null, + proto: t.prototype, + modules: [], + open: function(b, c) { + return A(), b = b ? a.extend(!0, {}, b) : {}, b.isObj = !0, b.index = c || 0, this.instance.open(b) + }, + close: function() { + return a.magnificPopup.instance && a.magnificPopup.instance.close() + }, + registerModule: function(b, c) { + c.options && (a.magnificPopup.defaults[b] = c.options), a.extend(this.proto, c.proto), this.modules.push(b) + }, + defaults: { + disableOn: 0, + key: null, + midClick: !1, + mainClass: "", + preloader: !0, + focus: "", + closeOnContentClick: !1, + closeOnBgClick: !0, + closeBtnInside: !0, + showCloseBtn: !0, + enableEscapeKey: !0, + modal: !1, + alignTop: !1, + removalDelay: 0, + prependTo: null, + fixedContentPos: "auto", + fixedBgPos: "auto", + overflowY: "auto", + closeMarkup: '', + tClose: "Close (Esc)", + tLoading: "Loading...", + autoFocusLast: !0 + } + }, a.fn.magnificPopup = function(c) { + A(); + var d = a(this); + if ("string" == typeof c) + if ("open" === c) { + var e, f = u ? d.data("magnificPopup") : d[0].magnificPopup, + g = parseInt(arguments[1], 10) || 0; + f.items ? e = f.items[g] : (e = d, f.delegate && (e = e.find(f.delegate)), e = e.eq(g)), b._openClick({ + mfpEl: e + }, d, f) + } else b.isOpen && b[c].apply(b, Array.prototype.slice.call(arguments, 1)); + else c = a.extend(!0, {}, c), u ? d.data("magnificPopup", c) : d[0].magnificPopup = c, b.addGroup(d, c); + return d + }; + var C, D, E, F = "inline", + G = function() { + E && (D.after(E.addClass(C)).detach(), E = null) + }; + a.magnificPopup.registerModule(F, { + options: { + hiddenClass: "hide", + markup: "", + tNotFound: "Content not found" + }, + proto: { + initInline: function() { + b.types.push(F), w(h + "." + F, function() { + G() + }) + }, + getInline: function(c, d) { + if (G(), c.src) { + var e = b.st.inline, + f = a(c.src); + if (f.length) { + var g = f[0].parentNode; + g && g.tagName && (D || (C = e.hiddenClass, D = x(C), C = "mfp-" + C), E = f.after(D).detach().removeClass(C)), b.updateStatus("ready") + } else b.updateStatus("error", e.tNotFound), f = a("
"); + return c.inlineElement = f, f + } + return b.updateStatus("ready"), b._parseMarkup(d, {}, c), d + } + } + }); + var H, I = "ajax", + J = function() { + H && a(document.body).removeClass(H) + }, + K = function() { + J(), b.req && b.req.abort() + }; + a.magnificPopup.registerModule(I, { + options: { + settings: null, + cursor: "mfp-ajax-cur", + tError: 'The content could not be loaded.' + }, + proto: { + initAjax: function() { + b.types.push(I), H = b.st.ajax.cursor, w(h + "." + I, K), w("BeforeChange." + I, K) + }, + getAjax: function(c) { + H && a(document.body).addClass(H), b.updateStatus("loading"); + var d = a.extend({ + url: c.src, + success: function(d, e, f) { + var g = { + data: d, + xhr: f + }; + y("ParseAjax", g), b.appendContent(a(g.data), I), c.finished = !0, J(), b._setFocus(), setTimeout(function() { + b.wrap.addClass(q) + }, 16), b.updateStatus("ready"), y("AjaxContentAdded") + }, + error: function() { + J(), c.finished = c.loadError = !0, b.updateStatus("error", b.st.ajax.tError.replace("%url%", c.src)) + } + }, b.st.ajax.settings); + return b.req = a.ajax(d), "" + } + } + }); + var L, M = function(c) { + if (c.data && void 0 !== c.data.title) return c.data.title; + var d = b.st.image.titleSrc; + if (d) { + if (a.isFunction(d)) return d.call(b, c); + if (c.el) return c.el.attr(d) || "" + } + return "" + }; + a.magnificPopup.registerModule("image", { + options: { + markup: '
', + cursor: "mfp-zoom-out-cur", + titleSrc: "title", + verticalFit: !0, + tError: 'The image could not be loaded.' + }, + proto: { + initImage: function() { + var c = b.st.image, + d = ".image"; + b.types.push("image"), w(m + d, function() { + "image" === b.currItem.type && c.cursor && a(document.body).addClass(c.cursor) + }), w(h + d, function() { + c.cursor && a(document.body).removeClass(c.cursor), v.off("resize" + p) + }), w("Resize" + d, b.resizeImage), b.isLowIE && w("AfterChange", b.resizeImage) + }, + resizeImage: function() { + var a = b.currItem; + if (a && a.img && b.st.image.verticalFit) { + var c = 0; + b.isLowIE && (c = parseInt(a.img.css("padding-top"), 10) + parseInt(a.img.css("padding-bottom"), 10)), a.img.css("max-height", b.wH - c) + } + }, + _onImageHasSize: function(a) { + a.img && (a.hasSize = !0, L && clearInterval(L), a.isCheckingImgSize = !1, y("ImageHasSize", a), a.imgHidden && (b.content && b.content.removeClass("mfp-loading"), a.imgHidden = !1)) + }, + findImageSize: function(a) { + var c = 0, + d = a.img[0], + e = function(f) { + L && clearInterval(L), L = setInterval(function() { + return d.naturalWidth > 0 ? void b._onImageHasSize(a) : (c > 200 && clearInterval(L), c++, void (3 === c ? e(10) : 40 === c ? e(50) : 100 === c && e(500))) + }, f) + }; + e(1) + }, + getImage: function(c, d) { + var e = 0, + f = function() { + c && (c.img[0].complete ? (c.img.off(".mfploader"), c === b.currItem && (b._onImageHasSize(c), b.updateStatus("ready")), c.hasSize = !0, c.loaded = !0, y("ImageLoadComplete")) : (e++, 200 > e ? setTimeout(f, 100) : g())) + }, + g = function() { + c && (c.img.off(".mfploader"), c === b.currItem && (b._onImageHasSize(c), b.updateStatus("error", h.tError.replace("%url%", c.src))), c.hasSize = !0, c.loaded = !0, c.loadError = !0) + }, + h = b.st.image, + i = d.find(".mfp-img"); + if (i.length) { + var j = document.createElement("img"); + j.className = "mfp-img", c.el && c.el.find("img").length && (j.alt = c.el.find("img").attr("alt")), c.img = a(j).on("load.mfploader", f).on("error.mfploader", g), j.src = c.src, i.is("img") && (c.img = c.img.clone()), j = c.img[0], j.naturalWidth > 0 ? c.hasSize = !0 : j.width || (c.hasSize = !1) + } + return b._parseMarkup(d, { + title: M(c), + img_replaceWith: c.img + }, c), b.resizeImage(), c.hasSize ? (L && clearInterval(L), c.loadError ? (d.addClass("mfp-loading"), b.updateStatus("error", h.tError.replace("%url%", c.src))) : (d.removeClass("mfp-loading"), b.updateStatus("ready")), d) : (b.updateStatus("loading"), c.loading = !0, c.hasSize || (c.imgHidden = !0, d.addClass("mfp-loading"), b.findImageSize(c)), d) + } + } + }); + var N, O = function() { + return void 0 === N && (N = void 0 !== document.createElement("p").style.MozTransform), N + }; + a.magnificPopup.registerModule("zoom", { + options: { + enabled: !1, + easing: "ease-in-out", + duration: 300, + opener: function(a) { + return a.is("img") ? a : a.find("img") + } + }, + proto: { + initZoom: function() { + var a, c = b.st.zoom, + d = ".zoom"; + if (c.enabled && b.supportsTransition) { + var e, f, g = c.duration, + j = function(a) { + var b = a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"), + d = "all " + c.duration / 1e3 + "s " + c.easing, + e = { + position: "fixed", + zIndex: 9999, + left: 0, + top: 0, + "-webkit-backface-visibility": "hidden" + }, + f = "transition"; + return e["-webkit-" + f] = e["-moz-" + f] = e["-o-" + f] = e[f] = d, b.css(e), b + }, + k = function() { + b.content.css("visibility", "visible") + }; + w("BuildControls" + d, function() { + if (b._allowZoom()) { + if (clearTimeout(e), b.content.css("visibility", "hidden"), a = b._getItemToZoom(), !a) return void k(); + f = j(a), f.css(b._getOffset()), b.wrap.append(f), e = setTimeout(function() { + f.css(b._getOffset(!0)), e = setTimeout(function() { + k(), setTimeout(function() { + f.remove(), a = f = null, y("ZoomAnimationEnded") + }, 16) + }, g) + }, 16) + } + }), w(i + d, function() { + if (b._allowZoom()) { + if (clearTimeout(e), b.st.removalDelay = g, !a) { + if (a = b._getItemToZoom(), !a) return; + f = j(a) + } + f.css(b._getOffset(!0)), b.wrap.append(f), b.content.css("visibility", "hidden"), setTimeout(function() { + f.css(b._getOffset()) + }, 16) + } + }), w(h + d, function() { + b._allowZoom() && (k(), f && f.remove(), a = null) + }) + } + }, + _allowZoom: function() { + return "image" === b.currItem.type + }, + _getItemToZoom: function() { + return b.currItem.hasSize ? b.currItem.img : !1 + }, + _getOffset: function(c) { + var d; + d = c ? b.currItem.img : b.st.zoom.opener(b.currItem.el || b.currItem); + var e = d.offset(), + f = parseInt(d.css("padding-top"), 10), + g = parseInt(d.css("padding-bottom"), 10); + e.top -= a(window).scrollTop() - f; + var h = { + width: d.width(), + height: (u ? d.innerHeight() : d[0].offsetHeight) - g - f + }; + return O() ? h["-moz-transform"] = h.transform = "translate(" + e.left + "px," + e.top + "px)" : (h.left = e.left, h.top = e.top), h + } + } + }); + var P = "iframe", + Q = "//about:blank", + R = function(a) { + if (b.currTemplate[P]) { + var c = b.currTemplate[P].find("iframe"); + c.length && (a || (c[0].src = Q), b.isIE8 && c.css("display", a ? "block" : "none")) + } + }; + a.magnificPopup.registerModule(P, { + options: { + markup: '
', + srcAction: "iframe_src", + patterns: { + youtube: { + index: "youtube.com", + id: "v=", + src: "//www.youtube.com/embed/%id%?autoplay=1" + }, + vimeo: { + index: "vimeo.com/", + id: "/", + src: "//player.vimeo.com/video/%id%?autoplay=1" + }, + gmaps: { + index: "//maps.google.", + src: "%id%&output=embed" + } + } + }, + proto: { + initIframe: function() { + b.types.push(P), w("BeforeChange", function(a, b, c) { + b !== c && (b === P ? R() : c === P && R(!0)) + }), w(h + "." + P, function() { + R() + }) + }, + getIframe: function(c, d) { + var e = c.src, + f = b.st.iframe; + a.each(f.patterns, function() { + return e.indexOf(this.index) > -1 ? (this.id && (e = "string" == typeof this.id ? e.substr(e.lastIndexOf(this.id) + this.id.length, e.length) : this.id.call(this, e)), e = this.src.replace("%id%", e), !1) : void 0 + }); + var g = {}; + return f.srcAction && (g[f.srcAction] = e), b._parseMarkup(d, g, c), b.updateStatus("ready"), d + } + } + }); + var S = function(a) { + var c = b.items.length; + return a > c - 1 ? a - c : 0 > a ? c + a : a + }, + T = function(a, b, c) { + return a.replace(/%curr%/gi, b + 1).replace(/%total%/gi, c) + }; + a.magnificPopup.registerModule("gallery", { + options: { + enabled: !1, + arrowMarkup: '', + preload: [0, 2], + navigateByImgClick: !0, + arrows: !0, + tPrev: "Previous (Left arrow key)", + tNext: "Next (Right arrow key)", + tCounter: "%curr% of %total%" + }, + proto: { + initGallery: function() { + var c = b.st.gallery, + e = ".mfp-gallery"; + return b.direction = !0, c && c.enabled ? (f += " mfp-gallery", w(m + e, function() { + c.navigateByImgClick && b.wrap.on("click" + e, ".mfp-img", function() { + return b.items.length > 1 ? (b.next(), !1) : void 0 + }), d.on("keydown" + e, function(a) { + 37 === a.keyCode ? b.prev() : 39 === a.keyCode && b.next() + }) + }), w("UpdateStatus" + e, function(a, c) { + c.text && (c.text = T(c.text, b.currItem.index, b.items.length)) + }), w(l + e, function(a, d, e, f) { + var g = b.items.length; + e.counter = g > 1 ? T(c.tCounter, f.index, g) : "" + }), w("BuildControls" + e, function() { + if (b.items.length > 1 && c.arrows && !b.arrowLeft) { + var d = c.arrowMarkup, + e = b.arrowLeft = a(d.replace(/%title%/gi, c.tPrev).replace(/%dir%/gi, "left")).addClass(s), + f = b.arrowRight = a(d.replace(/%title%/gi, c.tNext).replace(/%dir%/gi, "right")).addClass(s); + e.click(function() { + b.prev() + }), f.click(function() { + b.next() + }), b.container.append(e.add(f)) + } + }), w(n + e, function() { + b._preloadTimeout && clearTimeout(b._preloadTimeout), b._preloadTimeout = setTimeout(function() { + b.preloadNearbyImages(), b._preloadTimeout = null + }, 16) + }), void w(h + e, function() { + d.off(e), b.wrap.off("click" + e), b.arrowRight = b.arrowLeft = null + })) : !1 + }, + next: function() { + b.direction = !0, b.index = S(b.index + 1), b.updateItemHTML() + }, + prev: function() { + b.direction = !1, b.index = S(b.index - 1), b.updateItemHTML() + }, + goTo: function(a) { + b.direction = a >= b.index, b.index = a, b.updateItemHTML() + }, + preloadNearbyImages: function() { + var a, c = b.st.gallery.preload, + d = Math.min(c[0], b.items.length), + e = Math.min(c[1], b.items.length); + for (a = 1; a <= (b.direction ? e : d); a++) b._preloadItem(b.index + a); + for (a = 1; a <= (b.direction ? d : e); a++) b._preloadItem(b.index - a) + }, + _preloadItem: function(c) { + if (c = S(c), !b.items[c].preloaded) { + var d = b.items[c]; + d.parsed || (d = b.parseEl(c)), y("LazyLoad", d), "image" === d.type && (d.img = a('').on("load.mfploader", function() { + d.hasSize = !0 + }).on("error.mfploader", function() { + d.hasSize = !0, d.loadError = !0, y("LazyLoadError", d) + }).attr("src", d.src)), d.preloaded = !0 + } + } + } + }); + var U = "retina"; + a.magnificPopup.registerModule(U, { + options: { + replaceSrc: function(a) { + return a.src.replace(/\.\w+$/, function(a) { + return "@2x" + a + }) + }, + ratio: 1 + }, + proto: { + initRetina: function() { + if (window.devicePixelRatio > 1) { + var a = b.st.retina, + c = a.ratio; + c = isNaN(c) ? c() : c, c > 1 && (w("ImageHasSize." + U, function(a, b) { + b.img.css({ + "max-width": b.img[0].naturalWidth / c, + width: "100%" + }) + }), w("ElementParse." + U, function(b, d) { + d.src = a.replaceSrc(d, c) + })) + } + } + } + }), A() +}); diff --git a/assets/js/jquery.nice-select.min.js b/assets/js/jquery.nice-select.min.js index 88eb2d6..d9776b5 100755 --- a/assets/js/jquery.nice-select.min.js +++ b/assets/js/jquery.nice-select.min.js @@ -1,4 +1,65 @@ /* jQuery Nice Select - v1.0 https://github.com/hernansartorio/jquery-nice-select Made by Hernán Sartorio */ -!function(e){e.fn.niceSelect=function(t){function s(t){t.after(e("
").addClass("nice-select").addClass(t.attr("class")||"").addClass(t.attr("disabled")?"disabled":"").attr("tabindex",t.attr("disabled")?null:"0").html('
    '));var s=t.next(),n=t.find("option"),i=t.find("option:selected");s.find(".current").html(i.data("display")||i.text()),n.each(function(t){var n=e(this),i=n.data("display");s.find("ul").append(e("
  • ").attr("data-value",n.val()).attr("data-display",i||null).addClass("option"+(n.is(":selected")?" selected":"")+(n.is(":disabled")?" disabled":"")).html(n.text()))})}if("string"==typeof t)return"update"==t?this.each(function(){var t=e(this),n=e(this).next(".nice-select"),i=n.hasClass("open");n.length&&(n.remove(),s(t),i&&t.next().trigger("click"))}):"destroy"==t?(this.each(function(){var t=e(this),s=e(this).next(".nice-select");s.length&&(s.remove(),t.css("display",""))}),0==e(".nice-select").length&&e(document).off(".nice_select")):console.log('Method "'+t+'" does not exist.'),this;this.hide(),this.each(function(){var t=e(this);t.next().hasClass("nice-select")||s(t)}),e(document).off(".nice_select"),e(document).on("click.nice_select",".nice-select",function(t){var s=e(this);e(".nice-select").not(s).removeClass("open"),s.toggleClass("open"),s.hasClass("open")?(s.find(".option"),s.find(".focus").removeClass("focus"),s.find(".selected").addClass("focus")):s.focus()}),e(document).on("click.nice_select",function(t){0===e(t.target).closest(".nice-select").length&&e(".nice-select").removeClass("open").find(".option")}),e(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(t){var s=e(this),n=s.closest(".nice-select");n.find(".selected").removeClass("selected"),s.addClass("selected");var i=s.data("display")||s.text();n.find(".current").text(i),n.prev("select").val(s.data("value")).trigger("change")}),e(document).on("keydown.nice_select",".nice-select",function(t){var s=e(this),n=e(s.find(".focus")||s.find(".list .option.selected"));if(32==t.keyCode||13==t.keyCode)return s.hasClass("open")?n.trigger("click"):s.trigger("click"),!1;if(40==t.keyCode){if(s.hasClass("open")){var i=n.nextAll(".option:not(.disabled)").first();i.length>0&&(s.find(".focus").removeClass("focus"),i.addClass("focus"))}else s.trigger("click");return!1}if(38==t.keyCode){if(s.hasClass("open")){var l=n.prevAll(".option:not(.disabled)").first();l.length>0&&(s.find(".focus").removeClass("focus"),l.addClass("focus"))}else s.trigger("click");return!1}if(27==t.keyCode)s.hasClass("open")&&s.trigger("click");else if(9==t.keyCode&&s.hasClass("open"))return!1});var n=document.createElement("a").style;return n.cssText="pointer-events:auto","auto"!==n.pointerEvents&&e("html").addClass("no-csspointerevents"),this}}(jQuery); \ No newline at end of file +! function(e) { + e.fn.niceSelect = function(t) { + function s(t) { + t.after(e("
    ").addClass("nice-select").addClass(t.attr("class") || "").addClass(t.attr("disabled") ? "disabled" : "").attr("tabindex", t.attr("disabled") ? null : "0").html('
      ')); + var s = t.next(), + n = t.find("option"), + i = t.find("option:selected"); + s.find(".current").html(i.data("display") || i.text()), n.each(function(t) { + var n = e(this), + i = n.data("display"); + s.find("ul").append(e("
    • ").attr("data-value", n.val()).attr("data-display", i || null).addClass("option" + (n.is(":selected") ? " selected" : "") + (n.is(":disabled") ? " disabled" : "")).html(n.text())) + }) + } + if ("string" == typeof t) return "update" == t ? this.each(function() { + var t = e(this), + n = e(this).next(".nice-select"), + i = n.hasClass("open"); + n.length && (n.remove(), s(t), i && t.next().trigger("click")) + }) : "destroy" == t ? (this.each(function() { + var t = e(this), + s = e(this).next(".nice-select"); + s.length && (s.remove(), t.css("display", "")) + }), 0 == e(".nice-select").length && e(document).off(".nice_select")) : console.log('Method "' + t + '" does not exist.'), this; + this.hide(), this.each(function() { + var t = e(this); + t.next().hasClass("nice-select") || s(t) + }), e(document).off(".nice_select"), e(document).on("click.nice_select", ".nice-select", function(t) { + var s = e(this); + e(".nice-select").not(s).removeClass("open"), s.toggleClass("open"), s.hasClass("open") ? (s.find(".option"), s.find(".focus").removeClass("focus"), s.find(".selected").addClass("focus")) : s.focus() + }), e(document).on("click.nice_select", function(t) { + 0 === e(t.target).closest(".nice-select").length && e(".nice-select").removeClass("open").find(".option") + }), e(document).on("click.nice_select", ".nice-select .option:not(.disabled)", function(t) { + var s = e(this), + n = s.closest(".nice-select"); + n.find(".selected").removeClass("selected"), s.addClass("selected"); + var i = s.data("display") || s.text(); + n.find(".current").text(i), n.prev("select").val(s.data("value")).trigger("change") + }), e(document).on("keydown.nice_select", ".nice-select", function(t) { + var s = e(this), + n = e(s.find(".focus") || s.find(".list .option.selected")); + if (32 == t.keyCode || 13 == t.keyCode) return s.hasClass("open") ? n.trigger("click") : s.trigger("click"), !1; + if (40 == t.keyCode) { + if (s.hasClass("open")) { + var i = n.nextAll(".option:not(.disabled)").first(); + i.length > 0 && (s.find(".focus").removeClass("focus"), i.addClass("focus")) + } else s.trigger("click"); + return !1 + } + if (38 == t.keyCode) { + if (s.hasClass("open")) { + var l = n.prevAll(".option:not(.disabled)").first(); + l.length > 0 && (s.find(".focus").removeClass("focus"), l.addClass("focus")) + } else s.trigger("click"); + return !1 + } + if (27 == t.keyCode) s.hasClass("open") && s.trigger("click"); + else if (9 == t.keyCode && s.hasClass("open")) return !1 + }); + var n = document.createElement("a").style; + return n.cssText = "pointer-events:auto", "auto" !== n.pointerEvents && e("html").addClass("no-csspointerevents"), this + } +}(jQuery); diff --git a/assets/js/jquery.paroller.min.js b/assets/js/jquery.paroller.min.js index 9d8c294..42f385f 100755 --- a/assets/js/jquery.paroller.min.js +++ b/assets/js/jquery.paroller.min.js @@ -1,16 +1,144 @@ -'use strict';/** +'use strict'; +/** * jQuery plugin paroller.js v1.4.6 * https://github.com/tgomilar/paroller.js * preview: https://tgomilar.github.io/paroller/ - **/(function(a){'use strict';'function'==typeof define&&define.amd?define('parollerjs',['jquery'],a):'object'==typeof module&&'object'==typeof module.exports?module.exports=a(require('jquery')):a(jQuery)})(function(a){'use strict';var b=Math.round;let c=!1,d=function(){c=!1},e={bgVertical:function(a,b){return a.css({"background-position":'center '+-b+'px'})},bgHorizontal:function(a,b){return a.css({"background-position":-b+'px center'})},vertical:function(a,b,c,d){return'none'===d&&(d=''),a.css({"-webkit-transform":'translateY('+b+'px)'+d,"-moz-transform":'translateY('+b+'px)'+d,transform:'translate(0,'+b+'px)'+d,transition:c,"will-change":'transform'})},horizontal:function(a,b,c,d){return'none'===d&&(d=''),a.css({"-webkit-transform":'translateX('+b+'px)'+d,"-moz-transform":'translateX('+b+'px)'+d,transform:'translate('+b+'px, 0)'+d,transition:c,"will-change":'transform'})}},f={factor:function(a,b,c){let d=a.data('paroller-factor'),e=d?d:c.factor;if(576>b){let b=a.data('paroller-factor-xs'),d=b?b:c.factorXs;return d?d:e}if(768>=b){let b=a.data('paroller-factor-sm'),d=b?b:c.factorSm;return d?d:e}if(1024>=b){let b=a.data('paroller-factor-md'),d=b?b:c.factorMd;return d?d:e}if(1200>=b){let b=a.data('paroller-factor-lg'),d=b?b:c.factorLg;return d?d:e}if(1920>=b){let b=a.data('paroller-factor-xl'),d=b?b:c.factorXl;return d?d:e}return e},bgOffset:function(a,c){return b(a*c)},transform:function(a,c,d,e){return b((a-d/2+e)*c)}},g={background:function(a){return a.css({"background-position":'unset'})},foreground:function(a){return a.css({transform:'unset',transition:'unset'})}};a.fn.paroller=function(h){const i=a(window).height(),j=a(document).height();// default options -return h=a.extend({factor:0,// - to + -factorXs:0,// - to + -factorSm:0,// - to + -factorMd:0,// - to + -factorLg:0,// - to + -factorXl:0,// - to + -transition:'transform .1s ease',// CSS transition -type:'background',// foreground -direction:'vertical'// horizontal -},h),this.each(function(){const k=a(this);let l=k.outerHeight(),m=a(window).width(),n=k.offset().top,o=0,p=function(a,b){// console.log(`offset ${scrollOffset} => ${transform - scrollOffset}`) -return a||(o=b),b-o};const q=k.data('paroller-type'),r=k.data('paroller-direction'),s=k.data('paroller-transition'),t=k.css('transform'),u=s?s:h.transition,v=q?q:h.type,w=r?r:h.direction;let x=0,y=f.bgOffset(n,x),z=f.transform(n,x,i,l);'background'===v?'vertical'===w?e.bgVertical(k,y):'horizontal'===w&&e.bgHorizontal(k,y):'foreground'===v&&('vertical'===w?e.vertical(k,z,u,t):'horizontal'===w&&e.horizontal(k,z,u,t)),a(window).on('resize',function(){let o=a(this).scrollTop();m=a(window).width(),n=k.offset().top,l=k.outerHeight(),x=f.factor(k,m,h),y=b(n*x);let q=p(a(document).scrollTop(),b((n-i/2+l)*x));c||(window.requestAnimationFrame(d),c=!0),'background'===v?(g.background(k),'vertical'===w?e.bgVertical(k,y):'horizontal'===w&&e.bgHorizontal(k,y)):'foreground'===v&&o<=j&&(g.foreground(k),'vertical'===w?e.vertical(k,q,u):'horizontal'===w&&e.horizontal(k,q,u))}),a(window).on('load scroll',function(){let g=a(this).scrollTop(),o=a(document).scrollTop();x=f.factor(k,m,h);let q=p(o,b((n-i/2+l-g)*x));c||(window.requestAnimationFrame(d),c=!0),'background'===v?'vertical'===w?e.bgVertical(k,y):'horizontal'===w&&e.bgHorizontal(k,y):'foreground'===v&&g<=j&&('vertical'===w?e.vertical(k,q,u,t):'horizontal'===w&&e.horizontal(k,q,u,t))})})}}); \ No newline at end of file + **/ +(function(a) { + 'use strict'; + 'function' == typeof define && define.amd ? define('parollerjs', ['jquery'], a) : 'object' == typeof module && 'object' == typeof module.exports ? module.exports = a(require('jquery')) : a(jQuery) +})(function(a) { + 'use strict'; + var b = Math.round; + let c = !1, + d = function() { + c = !1 + }, + e = { + bgVertical: function(a, b) { + return a.css({ + "background-position": 'center ' + -b + 'px' + }) + }, + bgHorizontal: function(a, b) { + return a.css({ + "background-position": -b + 'px center' + }) + }, + vertical: function(a, b, c, d) { + return 'none' === d && (d = ''), a.css({ + "-webkit-transform": 'translateY(' + b + 'px)' + d, + "-moz-transform": 'translateY(' + b + 'px)' + d, + transform: 'translate(0,' + b + 'px)' + d, + transition: c, + "will-change": 'transform' + }) + }, + horizontal: function(a, b, c, d) { + return 'none' === d && (d = ''), a.css({ + "-webkit-transform": 'translateX(' + b + 'px)' + d, + "-moz-transform": 'translateX(' + b + 'px)' + d, + transform: 'translate(' + b + 'px, 0)' + d, + transition: c, + "will-change": 'transform' + }) + } + }, + f = { + factor: function(a, b, c) { + let d = a.data('paroller-factor'), + e = d ? d : c.factor; + if (576 > b) { + let b = a.data('paroller-factor-xs'), + d = b ? b : c.factorXs; + return d ? d : e + } + if (768 >= b) { + let b = a.data('paroller-factor-sm'), + d = b ? b : c.factorSm; + return d ? d : e + } + if (1024 >= b) { + let b = a.data('paroller-factor-md'), + d = b ? b : c.factorMd; + return d ? d : e + } + if (1200 >= b) { + let b = a.data('paroller-factor-lg'), + d = b ? b : c.factorLg; + return d ? d : e + } + if (1920 >= b) { + let b = a.data('paroller-factor-xl'), + d = b ? b : c.factorXl; + return d ? d : e + } + return e + }, + bgOffset: function(a, c) { + return b(a * c) + }, + transform: function(a, c, d, e) { + return b((a - d / 2 + e) * c) + } + }, + g = { + background: function(a) { + return a.css({ + "background-position": 'unset' + }) + }, + foreground: function(a) { + return a.css({ + transform: 'unset', + transition: 'unset' + }) + } + }; + a.fn.paroller = function(h) { + const i = a(window).height(), + j = a(document).height(); // default options + return h = a.extend({ + factor: 0, // - to + + factorXs: 0, // - to + + factorSm: 0, // - to + + factorMd: 0, // - to + + factorLg: 0, // - to + + factorXl: 0, // - to + + transition: 'transform .1s ease', // CSS transition + type: 'background', // foreground + direction: 'vertical' // horizontal + }, h), this.each(function() { + const k = a(this); + let l = k.outerHeight(), + m = a(window).width(), + n = k.offset().top, + o = 0, + p = function(a, b) { // console.log(`offset ${scrollOffset} => ${transform - scrollOffset}`) + return a || (o = b), b - o + }; + const q = k.data('paroller-type'), + r = k.data('paroller-direction'), + s = k.data('paroller-transition'), + t = k.css('transform'), + u = s ? s : h.transition, + v = q ? q : h.type, + w = r ? r : h.direction; + let x = 0, + y = f.bgOffset(n, x), + z = f.transform(n, x, i, l); + 'background' === v ? 'vertical' === w ? e.bgVertical(k, y) : 'horizontal' === w && e.bgHorizontal(k, y) : 'foreground' === v && ('vertical' === w ? e.vertical(k, z, u, t) : 'horizontal' === w && e.horizontal(k, z, u, t)), a(window).on('resize', function() { + let o = a(this).scrollTop(); + m = a(window).width(), n = k.offset().top, l = k.outerHeight(), x = f.factor(k, m, h), y = b(n * x); + let q = p(a(document).scrollTop(), b((n - i / 2 + l) * x)); + c || (window.requestAnimationFrame(d), c = !0), 'background' === v ? (g.background(k), 'vertical' === w ? e.bgVertical(k, y) : 'horizontal' === w && e.bgHorizontal(k, y)) : 'foreground' === v && o <= j && (g.foreground(k), 'vertical' === w ? e.vertical(k, q, u) : 'horizontal' === w && e.horizontal(k, q, u)) + }), a(window).on('load scroll', function() { + let g = a(this).scrollTop(), + o = a(document).scrollTop(); + x = f.factor(k, m, h); + let q = p(o, b((n - i / 2 + l - g) * x)); + c || (window.requestAnimationFrame(d), c = !0), 'background' === v ? 'vertical' === w ? e.bgVertical(k, y) : 'horizontal' === w && e.bgHorizontal(k, y) : 'foreground' === v && g <= j && ('vertical' === w ? e.vertical(k, q, u, t) : 'horizontal' === w && e.horizontal(k, q, u, t)) + }) + }) + } +}); diff --git a/assets/js/jquery.slicknav.min.js b/assets/js/jquery.slicknav.min.js index 598cbcb..07c7ace 100755 --- a/assets/js/jquery.slicknav.min.js +++ b/assets/js/jquery.slicknav.min.js @@ -3,4 +3,234 @@ * (c) 2016 Josh Cope * licensed under MIT */ -!function(e,t,n){function a(t,n){this.element=t,this.settings=e.extend({},i,n),this.settings.duplicate||n.hasOwnProperty("removeIds")||(this.settings.removeIds=!1),this._defaults=i,this._name=s,this.init()}var i={label:"MENU",duplicate:!0,duration:200,easingOpen:"swing",easingClose:"swing",closedSymbol:"►",openedSymbol:"▼",prependTo:"body",appendTo:"",parentTag:"a",closeOnClick:!1,allowParentLinks:!1,nestedParentLinks:!0,showChildren:!1,removeIds:!0,removeClasses:!1,removeStyles:!1,brand:"",animations:"jquery",init:function(){},beforeOpen:function(){},beforeClose:function(){},afterOpen:function(){},afterClose:function(){}},s="slicknav",o="slicknav",l={DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,RIGHT:39,SPACE:32,TAB:9,UP:38};a.prototype.init=function(){var n,a,i=this,s=e(this.element),r=this.settings;if(r.duplicate?i.mobileNav=s.clone():i.mobileNav=s,r.removeIds&&(i.mobileNav.removeAttr("id"),i.mobileNav.find("*").each(function(t,n){e(n).removeAttr("id")})),r.removeClasses&&(i.mobileNav.removeAttr("class"),i.mobileNav.find("*").each(function(t,n){e(n).removeAttr("class")})),r.removeStyles&&(i.mobileNav.removeAttr("style"),i.mobileNav.find("*").each(function(t,n){e(n).removeAttr("style")})),n=o+"_icon",""===r.label&&(n+=" "+o+"_no-text"),"a"==r.parentTag&&(r.parentTag='a href="#"'),i.mobileNav.attr("class",o+"_nav"),a=e('
      '),""!==r.brand){var c=e('
      '+r.brand+"
      ");e(a).append(c)}i.btn=e(["<"+r.parentTag+' aria-haspopup="true" role="button" tabindex="0" class="'+o+"_btn "+o+'_collapsed">',''+r.label+"",'','','','',"",""].join("")),e(a).append(i.btn),""!==r.appendTo?e(r.appendTo).append(a):e(r.prependTo).prepend(a),a.append(i.mobileNav);var p=i.mobileNav.find("li");e(p).each(function(){var t=e(this),n={};if(n.children=t.children("ul").attr("role","menu"),t.data("menu",n),n.children.length>0){var a=t.contents(),s=!1,l=[];e(a).each(function(){return e(this).is("ul")?!1:(l.push(this),void(e(this).is("a")&&(s=!0)))});var c=e("<"+r.parentTag+' role="menuitem" aria-haspopup="true" tabindex="-1" class="'+o+'_item"/>');if(r.allowParentLinks&&!r.nestedParentLinks&&s)e(l).wrapAll('').parent();else{var p=e(l).wrapAll(c).parent();p.addClass(o+"_row")}r.showChildren?t.addClass(o+"_open"):t.addClass(o+"_collapsed"),t.addClass(o+"_parent");var d=e(''+(r.showChildren?r.openedSymbol:r.closedSymbol)+"");r.allowParentLinks&&!r.nestedParentLinks&&s&&(d=d.wrap(c).parent()),e(l).last().after(d)}else 0===t.children().length&&t.addClass(o+"_txtnode");t.children("a").attr("role","menuitem").click(function(t){r.closeOnClick&&!e(t.target).parent().closest("li").hasClass(o+"_parent")&&e(i.btn).click()}),r.closeOnClick&&r.allowParentLinks&&(t.children("a").children("a").click(function(t){e(i.btn).click()}),t.find("."+o+"_parent-link a:not(."+o+"_item)").click(function(t){e(i.btn).click()}))}),e(p).each(function(){var t=e(this).data("menu");r.showChildren||i._visibilityToggle(t.children,null,!1,null,!0)}),i._visibilityToggle(i.mobileNav,null,!1,"init",!0),i.mobileNav.attr("role","menu"),e(t).mousedown(function(){i._outlines(!1)}),e(t).keyup(function(){i._outlines(!0)}),e(i.btn).click(function(e){e.preventDefault(),i._menuToggle()}),i.mobileNav.on("click","."+o+"_item",function(t){t.preventDefault(),i._itemClick(e(this))}),e(i.btn).keydown(function(t){var n=t||event;switch(n.keyCode){case l.ENTER:case l.SPACE:case l.DOWN:t.preventDefault(),n.keyCode===l.DOWN&&e(i.btn).hasClass(o+"_open")||i._menuToggle(),e(i.btn).next().find('[role="menuitem"]').first().focus()}}),i.mobileNav.on("keydown","."+o+"_item",function(t){var n=t||event;switch(n.keyCode){case l.ENTER:t.preventDefault(),i._itemClick(e(t.target));break;case l.RIGHT:t.preventDefault(),e(t.target).parent().hasClass(o+"_collapsed")&&i._itemClick(e(t.target)),e(t.target).next().find('[role="menuitem"]').first().focus()}}),i.mobileNav.on("keydown",'[role="menuitem"]',function(t){var n=t||event;switch(n.keyCode){case l.DOWN:t.preventDefault();var a=e(t.target).parent().parent().children().children('[role="menuitem"]:visible'),s=a.index(t.target),r=s+1;a.length<=r&&(r=0);var c=a.eq(r);c.focus();break;case l.UP:t.preventDefault();var a=e(t.target).parent().parent().children().children('[role="menuitem"]:visible'),s=a.index(t.target),c=a.eq(s-1);c.focus();break;case l.LEFT:if(t.preventDefault(),e(t.target).parent().parent().parent().hasClass(o+"_open")){var p=e(t.target).parent().parent().prev();p.focus(),i._itemClick(p)}else e(t.target).parent().parent().hasClass(o+"_nav")&&(i._menuToggle(),e(i.btn).focus());break;case l.ESCAPE:t.preventDefault(),i._menuToggle(),e(i.btn).focus()}}),r.allowParentLinks&&r.nestedParentLinks&&e("."+o+"_item a").click(function(e){e.stopImmediatePropagation()})},a.prototype._menuToggle=function(e){var t=this,n=t.btn,a=t.mobileNav;n.hasClass(o+"_collapsed")?(n.removeClass(o+"_collapsed"),n.addClass(o+"_open")):(n.removeClass(o+"_open"),n.addClass(o+"_collapsed")),n.addClass(o+"_animating"),t._visibilityToggle(a,n.parent(),!0,n)},a.prototype._itemClick=function(e){var t=this,n=t.settings,a=e.data("menu");a||(a={},a.arrow=e.children("."+o+"_arrow"),a.ul=e.next("ul"),a.parent=e.parent(),a.parent.hasClass(o+"_parent-link")&&(a.parent=e.parent().parent(),a.ul=e.parent().next("ul")),e.data("menu",a)),a.parent.hasClass(o+"_collapsed")?(a.arrow.html(n.openedSymbol),a.parent.removeClass(o+"_collapsed"),a.parent.addClass(o+"_open"),a.parent.addClass(o+"_animating"),t._visibilityToggle(a.ul,a.parent,!0,e)):(a.arrow.html(n.closedSymbol),a.parent.addClass(o+"_collapsed"),a.parent.removeClass(o+"_open"),a.parent.addClass(o+"_animating"),t._visibilityToggle(a.ul,a.parent,!0,e))},a.prototype._visibilityToggle=function(t,n,a,i,s){function l(t,n){e(t).removeClass(o+"_animating"),e(n).removeClass(o+"_animating"),s||p.afterOpen(t)}function r(n,a){t.attr("aria-hidden","true"),d.attr("tabindex","-1"),c._setVisAttr(t,!0),t.hide(),e(n).removeClass(o+"_animating"),e(a).removeClass(o+"_animating"),s?"init"==n&&p.init():p.afterClose(n)}var c=this,p=c.settings,d=c._getActionItems(t),u=0;a&&(u=p.duration),t.hasClass(o+"_hidden")?(t.removeClass(o+"_hidden"),s||p.beforeOpen(i),"jquery"===p.animations?t.stop(!0,!0).slideDown(u,p.easingOpen,function(){l(i,n)}):"velocity"===p.animations&&t.velocity("finish").velocity("slideDown",{duration:u,easing:p.easingOpen,complete:function(){l(i,n)}}),t.attr("aria-hidden","false"),d.attr("tabindex","0"),c._setVisAttr(t,!1)):(t.addClass(o+"_hidden"),s||p.beforeClose(i),"jquery"===p.animations?t.stop(!0,!0).slideUp(u,this.settings.easingClose,function(){r(i,n)}):"velocity"===p.animations&&t.velocity("finish").velocity("slideUp",{duration:u,easing:p.easingClose,complete:function(){r(i,n)}}))},a.prototype._setVisAttr=function(t,n){var a=this,i=t.children("li").children("ul").not("."+o+"_hidden");n?i.each(function(){var t=e(this);t.attr("aria-hidden","true");var i=a._getActionItems(t);i.attr("tabindex","-1"),a._setVisAttr(t,n)}):i.each(function(){var t=e(this);t.attr("aria-hidden","false");var i=a._getActionItems(t);i.attr("tabindex","0"),a._setVisAttr(t,n)})},a.prototype._getActionItems=function(e){var t=e.data("menu");if(!t){t={};var n=e.children("li"),a=n.find("a");t.links=a.add(n.find("."+o+"_item")),e.data("menu",t)}return t.links},a.prototype._outlines=function(t){t?e("."+o+"_item, ."+o+"_btn").css("outline",""):e("."+o+"_item, ."+o+"_btn").css("outline","none")},a.prototype.toggle=function(){var e=this;e._menuToggle()},a.prototype.open=function(){var e=this;e.btn.hasClass(o+"_collapsed")&&e._menuToggle()},a.prototype.close=function(){var e=this;e.btn.hasClass(o+"_open")&&e._menuToggle()},e.fn[s]=function(t){var n=arguments;if(void 0===t||"object"==typeof t)return this.each(function(){e.data(this,"plugin_"+s)||e.data(this,"plugin_"+s,new a(this,t))});if("string"==typeof t&&"_"!==t[0]&&"init"!==t){var i;return this.each(function(){var o=e.data(this,"plugin_"+s);o instanceof a&&"function"==typeof o[t]&&(i=o[t].apply(o,Array.prototype.slice.call(n,1)))}),void 0!==i?i:this}}}(jQuery,document,window); \ No newline at end of file +! function(e, t, n) { + function a(t, n) { + this.element = t, this.settings = e.extend({}, i, n), this.settings.duplicate || n.hasOwnProperty("removeIds") || (this.settings.removeIds = !1), this._defaults = i, this._name = s, this.init() + } + var i = { + label: "MENU", + duplicate: !0, + duration: 200, + easingOpen: "swing", + easingClose: "swing", + closedSymbol: "►", + openedSymbol: "▼", + prependTo: "body", + appendTo: "", + parentTag: "a", + closeOnClick: !1, + allowParentLinks: !1, + nestedParentLinks: !0, + showChildren: !1, + removeIds: !0, + removeClasses: !1, + removeStyles: !1, + brand: "", + animations: "jquery", + init: function() { }, + beforeOpen: function() { }, + beforeClose: function() { }, + afterOpen: function() { }, + afterClose: function() { } + }, + s = "slicknav", + o = "slicknav", + l = { + DOWN: 40, + ENTER: 13, + ESCAPE: 27, + LEFT: 37, + RIGHT: 39, + SPACE: 32, + TAB: 9, + UP: 38 + }; + a.prototype.init = function() { + var n, a, i = this, + s = e(this.element), + r = this.settings; + if (r.duplicate ? i.mobileNav = s.clone() : i.mobileNav = s, r.removeIds && (i.mobileNav.removeAttr("id"), i.mobileNav.find("*").each(function(t, n) { + e(n).removeAttr("id") + })), r.removeClasses && (i.mobileNav.removeAttr("class"), i.mobileNav.find("*").each(function(t, n) { + e(n).removeAttr("class") + })), r.removeStyles && (i.mobileNav.removeAttr("style"), i.mobileNav.find("*").each(function(t, n) { + e(n).removeAttr("style") + })), n = o + "_icon", "" === r.label && (n += " " + o + "_no-text"), "a" == r.parentTag && (r.parentTag = 'a href="#"'), i.mobileNav.attr("class", o + "_nav"), a = e('
      '), "" !== r.brand) { + var c = e('
      ' + r.brand + "
      "); + e(a).append(c) + } + i.btn = e(["<" + r.parentTag + ' aria-haspopup="true" role="button" tabindex="0" class="' + o + "_btn " + o + '_collapsed">', '' + r.label + "", '', '', '', '', "", ""].join("")), e(a).append(i.btn), "" !== r.appendTo ? e(r.appendTo).append(a) : e(r.prependTo).prepend(a), a.append(i.mobileNav); + var p = i.mobileNav.find("li"); + e(p).each(function() { + var t = e(this), + n = {}; + if (n.children = t.children("ul").attr("role", "menu"), t.data("menu", n), n.children.length > 0) { + var a = t.contents(), + s = !1, + l = []; + e(a).each(function() { + return e(this).is("ul") ? !1 : (l.push(this), void (e(this).is("a") && (s = !0))) + }); + var c = e("<" + r.parentTag + ' role="menuitem" aria-haspopup="true" tabindex="-1" class="' + o + '_item"/>'); + if (r.allowParentLinks && !r.nestedParentLinks && s) e(l).wrapAll('').parent(); + else { + var p = e(l).wrapAll(c).parent(); + p.addClass(o + "_row") + } + r.showChildren ? t.addClass(o + "_open") : t.addClass(o + "_collapsed"), t.addClass(o + "_parent"); + var d = e('' + (r.showChildren ? r.openedSymbol : r.closedSymbol) + ""); + r.allowParentLinks && !r.nestedParentLinks && s && (d = d.wrap(c).parent()), e(l).last().after(d) + } else 0 === t.children().length && t.addClass(o + "_txtnode"); + t.children("a").attr("role", "menuitem").click(function(t) { + r.closeOnClick && !e(t.target).parent().closest("li").hasClass(o + "_parent") && e(i.btn).click() + }), r.closeOnClick && r.allowParentLinks && (t.children("a").children("a").click(function(t) { + e(i.btn).click() + }), t.find("." + o + "_parent-link a:not(." + o + "_item)").click(function(t) { + e(i.btn).click() + })) + }), e(p).each(function() { + var t = e(this).data("menu"); + r.showChildren || i._visibilityToggle(t.children, null, !1, null, !0) + }), i._visibilityToggle(i.mobileNav, null, !1, "init", !0), i.mobileNav.attr("role", "menu"), e(t).mousedown(function() { + i._outlines(!1) + }), e(t).keyup(function() { + i._outlines(!0) + }), e(i.btn).click(function(e) { + e.preventDefault(), i._menuToggle() + }), i.mobileNav.on("click", "." + o + "_item", function(t) { + t.preventDefault(), i._itemClick(e(this)) + }), e(i.btn).keydown(function(t) { + var n = t || event; + switch (n.keyCode) { + case l.ENTER: + case l.SPACE: + case l.DOWN: + t.preventDefault(), n.keyCode === l.DOWN && e(i.btn).hasClass(o + "_open") || i._menuToggle(), e(i.btn).next().find('[role="menuitem"]').first().focus() + } + }), i.mobileNav.on("keydown", "." + o + "_item", function(t) { + var n = t || event; + switch (n.keyCode) { + case l.ENTER: + t.preventDefault(), i._itemClick(e(t.target)); + break; + case l.RIGHT: + t.preventDefault(), e(t.target).parent().hasClass(o + "_collapsed") && i._itemClick(e(t.target)), e(t.target).next().find('[role="menuitem"]').first().focus() + } + }), i.mobileNav.on("keydown", '[role="menuitem"]', function(t) { + var n = t || event; + switch (n.keyCode) { + case l.DOWN: + t.preventDefault(); + var a = e(t.target).parent().parent().children().children('[role="menuitem"]:visible'), + s = a.index(t.target), + r = s + 1; + a.length <= r && (r = 0); + var c = a.eq(r); + c.focus(); + break; + case l.UP: + t.preventDefault(); + var a = e(t.target).parent().parent().children().children('[role="menuitem"]:visible'), + s = a.index(t.target), + c = a.eq(s - 1); + c.focus(); + break; + case l.LEFT: + if (t.preventDefault(), e(t.target).parent().parent().parent().hasClass(o + "_open")) { + var p = e(t.target).parent().parent().prev(); + p.focus(), i._itemClick(p) + } else e(t.target).parent().parent().hasClass(o + "_nav") && (i._menuToggle(), e(i.btn).focus()); + break; + case l.ESCAPE: + t.preventDefault(), i._menuToggle(), e(i.btn).focus() + } + }), r.allowParentLinks && r.nestedParentLinks && e("." + o + "_item a").click(function(e) { + e.stopImmediatePropagation() + }) + }, a.prototype._menuToggle = function(e) { + var t = this, + n = t.btn, + a = t.mobileNav; + n.hasClass(o + "_collapsed") ? (n.removeClass(o + "_collapsed"), n.addClass(o + "_open")) : (n.removeClass(o + "_open"), n.addClass(o + "_collapsed")), n.addClass(o + "_animating"), t._visibilityToggle(a, n.parent(), !0, n) + }, a.prototype._itemClick = function(e) { + var t = this, + n = t.settings, + a = e.data("menu"); + a || (a = {}, a.arrow = e.children("." + o + "_arrow"), a.ul = e.next("ul"), a.parent = e.parent(), a.parent.hasClass(o + "_parent-link") && (a.parent = e.parent().parent(), a.ul = e.parent().next("ul")), e.data("menu", a)), a.parent.hasClass(o + "_collapsed") ? (a.arrow.html(n.openedSymbol), a.parent.removeClass(o + "_collapsed"), a.parent.addClass(o + "_open"), a.parent.addClass(o + "_animating"), t._visibilityToggle(a.ul, a.parent, !0, e)) : (a.arrow.html(n.closedSymbol), a.parent.addClass(o + "_collapsed"), a.parent.removeClass(o + "_open"), a.parent.addClass(o + "_animating"), t._visibilityToggle(a.ul, a.parent, !0, e)) + }, a.prototype._visibilityToggle = function(t, n, a, i, s) { + function l(t, n) { + e(t).removeClass(o + "_animating"), e(n).removeClass(o + "_animating"), s || p.afterOpen(t) + } + + function r(n, a) { + t.attr("aria-hidden", "true"), d.attr("tabindex", "-1"), c._setVisAttr(t, !0), t.hide(), e(n).removeClass(o + "_animating"), e(a).removeClass(o + "_animating"), s ? "init" == n && p.init() : p.afterClose(n) + } + var c = this, + p = c.settings, + d = c._getActionItems(t), + u = 0; + a && (u = p.duration), t.hasClass(o + "_hidden") ? (t.removeClass(o + "_hidden"), s || p.beforeOpen(i), "jquery" === p.animations ? t.stop(!0, !0).slideDown(u, p.easingOpen, function() { + l(i, n) + }) : "velocity" === p.animations && t.velocity("finish").velocity("slideDown", { + duration: u, + easing: p.easingOpen, + complete: function() { + l(i, n) + } + }), t.attr("aria-hidden", "false"), d.attr("tabindex", "0"), c._setVisAttr(t, !1)) : (t.addClass(o + "_hidden"), s || p.beforeClose(i), "jquery" === p.animations ? t.stop(!0, !0).slideUp(u, this.settings.easingClose, function() { + r(i, n) + }) : "velocity" === p.animations && t.velocity("finish").velocity("slideUp", { + duration: u, + easing: p.easingClose, + complete: function() { + r(i, n) + } + })) + }, a.prototype._setVisAttr = function(t, n) { + var a = this, + i = t.children("li").children("ul").not("." + o + "_hidden"); + n ? i.each(function() { + var t = e(this); + t.attr("aria-hidden", "true"); + var i = a._getActionItems(t); + i.attr("tabindex", "-1"), a._setVisAttr(t, n) + }) : i.each(function() { + var t = e(this); + t.attr("aria-hidden", "false"); + var i = a._getActionItems(t); + i.attr("tabindex", "0"), a._setVisAttr(t, n) + }) + }, a.prototype._getActionItems = function(e) { + var t = e.data("menu"); + if (!t) { + t = {}; + var n = e.children("li"), + a = n.find("a"); + t.links = a.add(n.find("." + o + "_item")), e.data("menu", t) + } + return t.links + }, a.prototype._outlines = function(t) { + t ? e("." + o + "_item, ." + o + "_btn").css("outline", "") : e("." + o + "_item, ." + o + "_btn").css("outline", "none") + }, a.prototype.toggle = function() { + var e = this; + e._menuToggle() + }, a.prototype.open = function() { + var e = this; + e.btn.hasClass(o + "_collapsed") && e._menuToggle() + }, a.prototype.close = function() { + var e = this; + e.btn.hasClass(o + "_open") && e._menuToggle() + }, e.fn[s] = function(t) { + var n = arguments; + if (void 0 === t || "object" == typeof t) return this.each(function() { + e.data(this, "plugin_" + s) || e.data(this, "plugin_" + s, new a(this, t)) + }); + if ("string" == typeof t && "_" !== t[0] && "init" !== t) { + var i; + return this.each(function() { + var o = e.data(this, "plugin_" + s); + o instanceof a && "function" == typeof o[t] && (i = o[t].apply(o, Array.prototype.slice.call(n, 1))) + }), void 0 !== i ? i : this + } + } +}(jQuery, document, window); diff --git a/assets/js/jquery.sticky.js b/assets/js/jquery.sticky.js index fe433c5..c08b2ac 100755 --- a/assets/js/jquery.sticky.js +++ b/assets/js/jquery.sticky.js @@ -10,32 +10,32 @@ // It will only set the 'top' and 'position' of your element, you // might need to adjust the width in some cases. -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = factory(require('jquery')); - } else { - // Browser globals - factory(jQuery); - } -}(function ($) { - var slice = Array.prototype.slice; // save ref to original slice() - var splice = Array.prototype.splice; // save ref to original slice() +(function(factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = factory(require('jquery')); + } else { + // Browser globals + factory(jQuery); + } +}(function($) { + var slice = Array.prototype.slice; // save ref to original slice() + var splice = Array.prototype.splice; // save ref to original slice() var defaults = { - topSpacing: 0, - bottomSpacing: 0, - className: 'is-sticky', - wrapperClassName: 'sticky-wrapper', - center: false, - getWidthFrom: '', - widthFromWrapper: true, // works only when .getWidthFrom is empty - responsiveWidth: false, - zIndex: 'inherit' - }, + topSpacing: 0, + bottomSpacing: 0, + className: 'is-sticky', + wrapperClassName: 'sticky-wrapper', + center: false, + getWidthFrom: '', + widthFromWrapper: true, // works only when .getWidthFrom is empty + responsiveWidth: false, + zIndex: 'inherit' + }, $window = $(window), $document = $(document), sticked = [], @@ -79,13 +79,13 @@ if (s.currentTop !== newTop) { var newWidth; if (s.getWidthFrom) { - padding = s.stickyElement.innerWidth() - s.stickyElement.width(); - newWidth = $(s.getWidthFrom).width() - padding || null; + padding = s.stickyElement.innerWidth() - s.stickyElement.width(); + newWidth = $(s.getWidthFrom).width() - padding || null; } else if (s.widthFromWrapper) { - newWidth = s.stickyWrapper.width(); + newWidth = s.stickyWrapper.width(); } if (newWidth == null) { - newWidth = s.stickyElement.width(); + newWidth = s.stickyElement.width(); } s.stickyElement .css('width', newWidth) @@ -105,7 +105,7 @@ if (s.currentTop === s.topSpacing && s.currentTop > newTop || s.currentTop === null && newTop < s.topSpacing) { // just reached bottom || just started to stick but bottom is already reached s.stickyElement.trigger('sticky-bottom-reached', [s]); - } else if(s.currentTop !== null && newTop === s.topSpacing && s.currentTop < newTop) { + } else if (s.currentTop !== null && newTop === s.topSpacing && s.currentTop < newTop) { // sticky is started && sticked at topSpacing && overflowing from top just finished s.stickyElement.trigger('sticky-bottom-unreached', [s]); } @@ -117,7 +117,7 @@ var stickyWrapperContainer = s.stickyWrapper.parent(); var unstick = (s.stickyElement.offset().top + s.stickyElement.outerHeight() >= stickyWrapperContainer.offset().top + stickyWrapperContainer.outerHeight()) && (s.stickyElement.offset().top <= s.topSpacing); - if( unstick ) { + if (unstick) { s.stickyElement .css('position', 'absolute') .css('top', '') @@ -140,14 +140,14 @@ var s = sticked[i]; var newWidth = null; if (s.getWidthFrom) { - if (s.responsiveWidth) { - newWidth = $(s.getWidthFrom).width(); - } - } else if(s.widthFromWrapper) { - newWidth = s.stickyWrapper.width(); + if (s.responsiveWidth) { + newWidth = $(s.getWidthFrom).width(); + } + } else if (s.widthFromWrapper) { + newWidth = s.stickyWrapper.width(); } if (newWidth != null) { - s.stickyElement.css('width', newWidth); + s.stickyElement.css('width', newWidth); } } }, @@ -165,23 +165,23 @@ stickyElement.wrapAll(function() { if ($(this).parent("#" + wrapperId).length == 0) { - return wrapper; + return wrapper; } -}); + }); var stickyWrapper = stickyElement.parent(); if (o.center) { - stickyWrapper.css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"}); + stickyWrapper.css({ width: stickyElement.outerWidth(), marginLeft: "auto", marginRight: "auto" }); } if (stickyElement.css("float") === "right") { - stickyElement.css({"float":"none"}).parent().css({"float":"right"}); + stickyElement.css({ "float": "none" }).parent().css({ "float": "right" }); } o.stickyElement = stickyElement; o.stickyWrapper = stickyWrapper; - o.currentTop = null; + o.currentTop = null; sticked.push(o); @@ -205,7 +205,7 @@ methods.setWrapperHeight(stickyElement); } }); - mutationObserver.observe(stickyElement, {subtree: true, childList: true}); + mutationObserver.observe(stickyElement, { subtree: true, childList: true }); } else { if (window.addEventListener) { stickyElement.addEventListener('DOMNodeInserted', function() { @@ -234,11 +234,11 @@ var i = sticked.length; while (i-- > 0) { if (sticked[i].stickyElement.get(0) === that) { - splice.call(sticked,i,1); - removeIdx = i; + splice.call(sticked, i, 1); + removeIdx = i; } } - if(removeIdx !== -1) { + if (removeIdx !== -1) { unstickyElement.unwrap(); unstickyElement .css({ @@ -248,7 +248,7 @@ 'float': '', 'z-index': '' }) - ; + ; } }); } @@ -266,8 +266,8 @@ $.fn.sticky = function(method) { if (methods[method]) { return methods[method].apply(this, slice.call(arguments, 1)); - } else if (typeof method === 'object' || !method ) { - return methods.init.apply( this, arguments ); + } else if (typeof method === 'object' || !method) { + return methods.init.apply(this, arguments); } else { $.error('Method ' + method + ' does not exist on jQuery.sticky'); } @@ -276,8 +276,8 @@ $.fn.unstick = function(method) { if (methods[method]) { return methods[method].apply(this, slice.call(arguments, 1)); - } else if (typeof method === 'object' || !method ) { - return methods.unstick.apply( this, arguments ); + } else if (typeof method === 'object' || !method) { + return methods.unstick.apply(this, arguments); } else { $.error('Method ' + method + ' does not exist on jQuery.sticky'); } diff --git a/assets/js/jquery.validate.min.js b/assets/js/jquery.validate.min.js index cbaf510..28e098b 100755 --- a/assets/js/jquery.validate.min.js +++ b/assets/js/jquery.validate.min.js @@ -1,2 +1,589 @@ /*! jQuery Validation Plugin - v1.11.1 - 3/22/2013\n* https://github.com/jzaefferer/jquery-validation -* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT */(function(t){t.extend(t.fn,{validate:function(e){if(!this.length)return e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."),void 0;var i=t.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(e.target).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(e.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(e){function s(){var s;return i.settings.submitHandler?(i.submitButton&&(s=t("").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&s.remove(),!1):!0}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,s()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):s():(i.focusInvalid(),!1)})),i)},valid:function(){if(t(this[0]).is("form"))return this.validate().form();var e=!0,i=t(this[0].form).validate();return this.each(function(){e=e&&i.element(this)}),e},removeAttrs:function(e){var i={},s=this;return t.each(e.split(/\s/),function(t,e){i[e]=s.attr(e),s.removeAttr(e)}),i},rules:function(e,i){var s=this[0];if(e){var r=t.data(s.form,"validator").settings,n=r.rules,a=t.validator.staticRules(s);switch(e){case"add":t.extend(a,t.validator.normalizeRule(i)),delete a.messages,n[s.name]=a,i.messages&&(r.messages[s.name]=t.extend(r.messages[s.name],i.messages));break;case"remove":if(!i)return delete n[s.name],a;var u={};return t.each(i.split(/\s/),function(t,e){u[e]=a[e],delete a[e]}),u}}var o=t.validator.normalizeRules(t.extend({},t.validator.classRules(s),t.validator.attributeRules(s),t.validator.dataRules(s),t.validator.staticRules(s)),s);if(o.required){var l=o.required;delete o.required,o=t.extend({required:l},o)}return o}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){return!!t.trim(""+t(e).val())},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){(9!==e.which||""!==this.elementValue(t))&&(t.name in this.submitted||t===this.lastElement)&&this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(s):t(e).addClass(i).removeClass(s)},unhighlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(s):t(e).removeClass(i).addClass(s)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var i=t.data(this[0].form,"validator"),s="on"+e.type.replace(/^validate/,"");i.settings[s]&&i.settings[s].call(i,this[0],e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i=this.groups={};t.each(this.settings.groups,function(e,s){"string"==typeof s&&(s=s.split(/\s/)),t.each(s,function(t,s){i[s]=e})});var s=this.settings.rules;t.each(s,function(e,i){s[e]=t.validator.normalizeRule(i)}),t(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",e).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",e),this.settings.invalidHandler&&t(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){e=this.validationTargetFor(this.clean(e)),this.lastElement=e,this.prepareElement(e),this.currentElements=t(e);var i=this.check(e)!==!1;return i?delete this.invalid[e.name]:this.invalid[e.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(e){if(e){t.extend(this.errorMap,e),this.errorList=[];for(var i in e)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e=0;for(var i in t)e++;return e},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!e.objectLength(t(this).rules())?!1:(i[this.name]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.replace(" ",".");return t(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i=t(e).attr("type"),s=t(e).val();return"radio"===i||"checkbox"===i?t("input[name='"+t(e).attr("name")+"']:checked").val():"string"==typeof s?s.replace(/\r/g,""):s},check:function(e){e=this.validationTargetFor(this.clean(e));var i,s=t(e).rules(),r=!1,n=this.elementValue(e);for(var a in s){var u={method:a,parameters:s[a]};try{if(i=t.validator.methods[a].call(this,n,e,u.parameters),"dependency-mismatch"===i){r=!0;continue}if(r=!1,"pending"===i)return this.toHide=this.toHide.not(this.errorsFor(e)),void 0;if(!i)return this.formatAndAdd(e,u),!1}catch(o){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+u.method+"' method.",o),o}}return r?void 0:(this.objectLength(s)&&this.successList.push(e),!0)},customDataMessage:function(e,i){return t(e).data("msg-"+i.toLowerCase())||e.attributes&&t(e).attr("data-msg-"+i.toLowerCase())},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;arguments.length>t;t++)if(void 0!==arguments[t])return arguments[t];return void 0},defaultMessage:function(e,i){return this.findDefined(this.customMessage(e.name,i),this.customDataMessage(e,i),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i],"Warning: No message defined for "+e.name+"")},formatAndAdd:function(e,i){var s=this.defaultMessage(e,i.method),r=/\$?\{(\d+)\}/g;"function"==typeof s?s=s.call(this,i.parameters,e):r.test(s)&&(s=t.validator.format(s.replace(r,"{$1}"),i.parameters)),this.errorList.push({message:s,element:e}),this.errorMap[e.name]=s,this.submitted[e.name]=s},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e;for(t=0;this.errorList[t];t++){var i=this.errorList[t];this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var s=this.errorsFor(e);s.length?(s.removeClass(this.settings.validClass).addClass(this.settings.errorClass),s.html(i)):(s=t("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(s=s.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(s).length||(this.settings.errorPlacement?this.settings.errorPlacement(s,t(e)):s.insertAfter(e))),!i&&this.settings.success&&(s.text(""),"string"==typeof this.settings.success?s.addClass(this.settings.success):this.settings.success(s,e)),this.toShow=this.toShow.add(s)},errorsFor:function(e){var i=this.idOrName(e);return this.errors().filter(function(){return t(this).attr("for")===i})},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]),t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+e+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return this.dependTypes[typeof t]?this.dependTypes[typeof t](t,e):!0},dependTypes:{"boolean":function(t){return t},string:function(e,i){return!!t(e,i.form).length},"function":function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,0>this.pendingRequest&&(this.pendingRequest=0),delete this.pending[e.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},s=t(e).attr("class");return s&&t.each(s.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},attributeRules:function(e){var i={},s=t(e),r=s[0].getAttribute("type");for(var n in t.validator.methods){var a;"required"===n?(a=s.get(0).getAttribute(n),""===a&&(a=!0),a=!!a):a=s.attr(n),/min|max/.test(n)&&(null===r||/number|range|text/.test(r))&&(a=Number(a)),a?i[n]=a:r===n&&"range"!==r&&(i[n]=!0)}return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(e){var i,s,r={},n=t(e);for(i in t.validator.methods)s=n.data("rule-"+i.toLowerCase()),void 0!==s&&(r[i]=s);return r},staticRules:function(e){var i={},s=t.data(e.form,"validator");return s.settings.rules&&(i=t.validator.normalizeRule(s.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(s,r){if(r===!1)return delete e[s],void 0;if(r.param||r.depends){var n=!0;switch(typeof r.depends){case"string":n=!!t(r.depends,i.form).length;break;case"function":n=r.depends.call(i,i)}n?e[s]=void 0!==r.param?r.param:!0:delete e[s]}}),t.each(e,function(s,r){e[s]=t.isFunction(r)?r(i):r}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(e.min&&e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),e.minlength&&e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,s){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==s?s:t.validator.messages[e],3>i.length&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,s){if(!this.depend(s,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var r=t(i).val();return r&&r.length>0}return this.checkable(i)?this.getLength(e,i)>0:t.trim(e).length>0},email:function(t,e){return this.optional(e)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)},url:function(t,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(""+new Date(t))},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var i=0,s=0,r=!1;t=t.replace(/\D/g,"");for(var n=t.length-1;n>=0;n--){var a=t.charAt(n);s=parseInt(a,10),r&&(s*=2)>9&&(s-=9),i+=s,r=!r}return 0===i%10},minlength:function(e,i,s){var r=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||r>=s},maxlength:function(e,i,s){var r=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||s>=r},rangelength:function(e,i,s){var r=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||r>=s[0]&&s[1]>=r},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||i>=t},range:function(t,e,i){return this.optional(e)||t>=i[0]&&i[1]>=t},equalTo:function(e,i,s){var r=t(s);return this.settings.onfocusout&&r.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){t(i).valid()}),e===r.val()},remote:function(e,i,s){if(this.optional(i))return"dependency-mismatch";var r=this.previousValue(i);if(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),r.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=r.message,s="string"==typeof s&&{url:s}||s,r.old===e)return r.valid;r.old=e;var n=this;this.startRequest(i);var a={};return a[i.name]=e,t.ajax(t.extend(!0,{url:s,mode:"abort",port:"validate"+i.name,dataType:"json",data:a,success:function(s){n.settings.messages[i.name].remote=r.originalMessage;var a=s===!0||"true"===s;if(a){var u=n.formSubmitted;n.prepareElement(i),n.formSubmitted=u,n.successList.push(i),delete n.invalid[i.name],n.showErrors()}else{var o={},l=s||n.defaultMessage(i,"remote");o[i.name]=r.message=t.isFunction(l)?l(e):l,n.invalid[i.name]=!0,n.showErrors(o)}r.valid=a,n.stopRequest(i,a)}},s)),"pending"}}}),t.format=t.validator.format})(jQuery),function(t){var e={};if(t.ajaxPrefilter)t.ajaxPrefilter(function(t,i,s){var r=t.port;"abort"===t.mode&&(e[r]&&e[r].abort(),e[r]=s)});else{var i=t.ajax;t.ajax=function(s){var r=("mode"in s?s:t.ajaxSettings).mode,n=("port"in s?s:t.ajaxSettings).port;return"abort"===r?(e[n]&&e[n].abort(),e[n]=i.apply(this,arguments),e[n]):i.apply(this,arguments)}}}(jQuery),function(t){t.extend(t.fn,{validateDelegate:function(e,i,s){return this.bind(i,function(i){var r=t(i.target);return r.is(e)?s.apply(r,arguments):void 0})}})}(jQuery); \ No newline at end of file + * Copyright (c) 2013 Jörn Zaefferer; Licensed MIT */ +(function(t) { + t.extend(t.fn, { + validate: function(e) { + if (!this.length) return e && e.debug && window.console && console.warn("Nothing selected, can't validate, returning nothing."), void 0; + var i = t.data(this[0], "validator"); + return i ? i : (this.attr("novalidate", "novalidate"), i = new t.validator(e, this[0]), t.data(this[0], "validator", i), i.settings.onsubmit && (this.validateDelegate(":submit", "click", function(e) { + i.settings.submitHandler && (i.submitButton = e.target), t(e.target).hasClass("cancel") && (i.cancelSubmit = !0), void 0 !== t(e.target).attr("formnovalidate") && (i.cancelSubmit = !0) + }), this.submit(function(e) { + function s() { + var s; + return i.settings.submitHandler ? (i.submitButton && (s = t("").attr("name", i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)), i.settings.submitHandler.call(i, i.currentForm, e), i.submitButton && s.remove(), !1) : !0 + } + return i.settings.debug && e.preventDefault(), i.cancelSubmit ? (i.cancelSubmit = !1, s()) : i.form() ? i.pendingRequest ? (i.formSubmitted = !0, !1) : s() : (i.focusInvalid(), !1) + })), i) + }, + valid: function() { + if (t(this[0]).is("form")) return this.validate().form(); + var e = !0, + i = t(this[0].form).validate(); + return this.each(function() { + e = e && i.element(this) + }), e + }, + removeAttrs: function(e) { + var i = {}, + s = this; + return t.each(e.split(/\s/), function(t, e) { + i[e] = s.attr(e), s.removeAttr(e) + }), i + }, + rules: function(e, i) { + var s = this[0]; + if (e) { + var r = t.data(s.form, "validator").settings, + n = r.rules, + a = t.validator.staticRules(s); + switch (e) { + case "add": + t.extend(a, t.validator.normalizeRule(i)), delete a.messages, n[s.name] = a, i.messages && (r.messages[s.name] = t.extend(r.messages[s.name], i.messages)); + break; + case "remove": + if (!i) return delete n[s.name], a; + var u = {}; + return t.each(i.split(/\s/), function(t, e) { + u[e] = a[e], delete a[e] + }), u + } + } + var o = t.validator.normalizeRules(t.extend({}, t.validator.classRules(s), t.validator.attributeRules(s), t.validator.dataRules(s), t.validator.staticRules(s)), s); + if (o.required) { + var l = o.required; + delete o.required, o = t.extend({ + required: l + }, o) + } + return o + } + }), t.extend(t.expr[":"], { + blank: function(e) { + return !t.trim("" + t(e).val()) + }, + filled: function(e) { + return !!t.trim("" + t(e).val()) + }, + unchecked: function(e) { + return !t(e).prop("checked") + } + }), t.validator = function(e, i) { + this.settings = t.extend(!0, {}, t.validator.defaults, e), this.currentForm = i, this.init() + }, t.validator.format = function(e, i) { + return 1 === arguments.length ? function() { + var i = t.makeArray(arguments); + return i.unshift(e), t.validator.format.apply(this, i) + } : (arguments.length > 2 && i.constructor !== Array && (i = t.makeArray(arguments).slice(1)), i.constructor !== Array && (i = [i]), t.each(i, function(t, i) { + e = e.replace(RegExp("\\{" + t + "\\}", "g"), function() { + return i + }) + }), e) + }, t.extend(t.validator, { + defaults: { + messages: {}, + groups: {}, + rules: {}, + errorClass: "error", + validClass: "valid", + errorElement: "label", + focusInvalid: !0, + errorContainer: t([]), + errorLabelContainer: t([]), + onsubmit: !0, + ignore: ":hidden", + ignoreTitle: !1, + onfocusin: function(t) { + this.lastActive = t, this.settings.focusCleanup && !this.blockFocusCleanup && (this.settings.unhighlight && this.settings.unhighlight.call(this, t, this.settings.errorClass, this.settings.validClass), this.addWrapper(this.errorsFor(t)).hide()) + }, + onfocusout: function(t) { + this.checkable(t) || !(t.name in this.submitted) && this.optional(t) || this.element(t) + }, + onkeyup: function(t, e) { + (9 !== e.which || "" !== this.elementValue(t)) && (t.name in this.submitted || t === this.lastElement) && this.element(t) + }, + onclick: function(t) { + t.name in this.submitted ? this.element(t) : t.parentNode.name in this.submitted && this.element(t.parentNode) + }, + highlight: function(e, i, s) { + "radio" === e.type ? this.findByName(e.name).addClass(i).removeClass(s) : t(e).addClass(i).removeClass(s) + }, + unhighlight: function(e, i, s) { + "radio" === e.type ? this.findByName(e.name).removeClass(i).addClass(s) : t(e).removeClass(i).addClass(s) + } + }, + setDefaults: function(e) { + t.extend(t.validator.defaults, e) + }, + messages: { + required: "This field is required.", + remote: "Please fix this field.", + email: "Please enter a valid email address.", + url: "Please enter a valid URL.", + date: "Please enter a valid date.", + dateISO: "Please enter a valid date (ISO).", + number: "Please enter a valid number.", + digits: "Please enter only digits.", + creditcard: "Please enter a valid credit card number.", + equalTo: "Please enter the same value again.", + maxlength: t.validator.format("Please enter no more than {0} characters."), + minlength: t.validator.format("Please enter at least {0} characters."), + rangelength: t.validator.format("Please enter a value between {0} and {1} characters long."), + range: t.validator.format("Please enter a value between {0} and {1}."), + max: t.validator.format("Please enter a value less than or equal to {0}."), + min: t.validator.format("Please enter a value greater than or equal to {0}.") + }, + autoCreateRanges: !1, + prototype: { + init: function() { + function e(e) { + var i = t.data(this[0].form, "validator"), + s = "on" + e.type.replace(/^validate/, ""); + i.settings[s] && i.settings[s].call(i, this[0], e) + } + this.labelContainer = t(this.settings.errorLabelContainer), this.errorContext = this.labelContainer.length && this.labelContainer || t(this.currentForm), this.containers = t(this.settings.errorContainer).add(this.settings.errorLabelContainer), this.submitted = {}, this.valueCache = {}, this.pendingRequest = 0, this.pending = {}, this.invalid = {}, this.reset(); + var i = this.groups = {}; + t.each(this.settings.groups, function(e, s) { + "string" == typeof s && (s = s.split(/\s/)), t.each(s, function(t, s) { + i[s] = e + }) + }); + var s = this.settings.rules; + t.each(s, function(e, i) { + s[e] = t.validator.normalizeRule(i) + }), t(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ", "focusin focusout keyup", e).validateDelegate("[type='radio'], [type='checkbox'], select, option", "click", e), this.settings.invalidHandler && t(this.currentForm).bind("invalid-form.validate", this.settings.invalidHandler) + }, + form: function() { + return this.checkForm(), t.extend(this.submitted, this.errorMap), this.invalid = t.extend({}, this.errorMap), this.valid() || t(this.currentForm).triggerHandler("invalid-form", [this]), this.showErrors(), this.valid() + }, + checkForm: function() { + this.prepareForm(); + for (var t = 0, e = this.currentElements = this.elements(); e[t]; t++) this.check(e[t]); + return this.valid() + }, + element: function(e) { + e = this.validationTargetFor(this.clean(e)), this.lastElement = e, this.prepareElement(e), this.currentElements = t(e); + var i = this.check(e) !== !1; + return i ? delete this.invalid[e.name] : this.invalid[e.name] = !0, this.numberOfInvalids() || (this.toHide = this.toHide.add(this.containers)), this.showErrors(), i + }, + showErrors: function(e) { + if (e) { + t.extend(this.errorMap, e), this.errorList = []; + for (var i in e) this.errorList.push({ + message: e[i], + element: this.findByName(i)[0] + }); + this.successList = t.grep(this.successList, function(t) { + return !(t.name in e) + }) + } + this.settings.showErrors ? this.settings.showErrors.call(this, this.errorMap, this.errorList) : this.defaultShowErrors() + }, + resetForm: function() { + t.fn.resetForm && t(this.currentForm).resetForm(), this.submitted = {}, this.lastElement = null, this.prepareForm(), this.hideErrors(), this.elements().removeClass(this.settings.errorClass).removeData("previousValue") + }, + numberOfInvalids: function() { + return this.objectLength(this.invalid) + }, + objectLength: function(t) { + var e = 0; + for (var i in t) e++; + return e + }, + hideErrors: function() { + this.addWrapper(this.toHide).hide() + }, + valid: function() { + return 0 === this.size() + }, + size: function() { + return this.errorList.length + }, + focusInvalid: function() { + if (this.settings.focusInvalid) try { + t(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).filter(":visible").focus().trigger("focusin") + } catch (e) { } + }, + findLastActive: function() { + var e = this.lastActive; + return e && 1 === t.grep(this.errorList, function(t) { + return t.element.name === e.name + }).length && e + }, + elements: function() { + var e = this, + i = {}; + return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function() { + return !this.name && e.settings.debug && window.console && console.error("%o has no name assigned", this), this.name in i || !e.objectLength(t(this).rules()) ? !1 : (i[this.name] = !0, !0) + }) + }, + clean: function(e) { + return t(e)[0] + }, + errors: function() { + var e = this.settings.errorClass.replace(" ", "."); + return t(this.settings.errorElement + "." + e, this.errorContext) + }, + reset: function() { + this.successList = [], this.errorList = [], this.errorMap = {}, this.toShow = t([]), this.toHide = t([]), this.currentElements = t([]) + }, + prepareForm: function() { + this.reset(), this.toHide = this.errors().add(this.containers) + }, + prepareElement: function(t) { + this.reset(), this.toHide = this.errorsFor(t) + }, + elementValue: function(e) { + var i = t(e).attr("type"), + s = t(e).val(); + return "radio" === i || "checkbox" === i ? t("input[name='" + t(e).attr("name") + "']:checked").val() : "string" == typeof s ? s.replace(/\r/g, "") : s + }, + check: function(e) { + e = this.validationTargetFor(this.clean(e)); + var i, s = t(e).rules(), + r = !1, + n = this.elementValue(e); + for (var a in s) { + var u = { + method: a, + parameters: s[a] + }; + try { + if (i = t.validator.methods[a].call(this, n, e, u.parameters), "dependency-mismatch" === i) { + r = !0; + continue + } + if (r = !1, "pending" === i) return this.toHide = this.toHide.not(this.errorsFor(e)), void 0; + if (!i) return this.formatAndAdd(e, u), !1 + } catch (o) { + throw this.settings.debug && window.console && console.log("Exception occurred when checking element " + e.id + ", check the '" + u.method + "' method.", o), o + } + } + return r ? void 0 : (this.objectLength(s) && this.successList.push(e), !0) + }, + customDataMessage: function(e, i) { + return t(e).data("msg-" + i.toLowerCase()) || e.attributes && t(e).attr("data-msg-" + i.toLowerCase()) + }, + customMessage: function(t, e) { + var i = this.settings.messages[t]; + return i && (i.constructor === String ? i : i[e]) + }, + findDefined: function() { + for (var t = 0; arguments.length > t; t++) + if (void 0 !== arguments[t]) return arguments[t]; + return void 0 + }, + defaultMessage: function(e, i) { + return this.findDefined(this.customMessage(e.name, i), this.customDataMessage(e, i), !this.settings.ignoreTitle && e.title || void 0, t.validator.messages[i], "Warning: No message defined for " + e.name + "") + }, + formatAndAdd: function(e, i) { + var s = this.defaultMessage(e, i.method), + r = /\$?\{(\d+)\}/g; + "function" == typeof s ? s = s.call(this, i.parameters, e) : r.test(s) && (s = t.validator.format(s.replace(r, "{$1}"), i.parameters)), this.errorList.push({ + message: s, + element: e + }), this.errorMap[e.name] = s, this.submitted[e.name] = s + }, + addWrapper: function(t) { + return this.settings.wrapper && (t = t.add(t.parent(this.settings.wrapper))), t + }, + defaultShowErrors: function() { + var t, e; + for (t = 0; this.errorList[t]; t++) { + var i = this.errorList[t]; + this.settings.highlight && this.settings.highlight.call(this, i.element, this.settings.errorClass, this.settings.validClass), this.showLabel(i.element, i.message) + } + if (this.errorList.length && (this.toShow = this.toShow.add(this.containers)), this.settings.success) + for (t = 0; this.successList[t]; t++) this.showLabel(this.successList[t]); + if (this.settings.unhighlight) + for (t = 0, e = this.validElements(); e[t]; t++) this.settings.unhighlight.call(this, e[t], this.settings.errorClass, this.settings.validClass); + this.toHide = this.toHide.not(this.toShow), this.hideErrors(), this.addWrapper(this.toShow).show() + }, + validElements: function() { + return this.currentElements.not(this.invalidElements()) + }, + invalidElements: function() { + return t(this.errorList).map(function() { + return this.element + }) + }, + showLabel: function(e, i) { + var s = this.errorsFor(e); + s.length ? (s.removeClass(this.settings.validClass).addClass(this.settings.errorClass), s.html(i)) : (s = t("<" + this.settings.errorElement + ">").attr("for", this.idOrName(e)).addClass(this.settings.errorClass).html(i || ""), this.settings.wrapper && (s = s.hide().show().wrap("<" + this.settings.wrapper + "/>").parent()), this.labelContainer.append(s).length || (this.settings.errorPlacement ? this.settings.errorPlacement(s, t(e)) : s.insertAfter(e))), !i && this.settings.success && (s.text(""), "string" == typeof this.settings.success ? s.addClass(this.settings.success) : this.settings.success(s, e)), this.toShow = this.toShow.add(s) + }, + errorsFor: function(e) { + var i = this.idOrName(e); + return this.errors().filter(function() { + return t(this).attr("for") === i + }) + }, + idOrName: function(t) { + return this.groups[t.name] || (this.checkable(t) ? t.name : t.id || t.name) + }, + validationTargetFor: function(t) { + return this.checkable(t) && (t = this.findByName(t.name).not(this.settings.ignore)[0]), t + }, + checkable: function(t) { + return /radio|checkbox/i.test(t.type) + }, + findByName: function(e) { + return t(this.currentForm).find("[name='" + e + "']") + }, + getLength: function(e, i) { + switch (i.nodeName.toLowerCase()) { + case "select": + return t("option:selected", i).length; + case "input": + if (this.checkable(i)) return this.findByName(i.name).filter(":checked").length + } + return e.length + }, + depend: function(t, e) { + return this.dependTypes[typeof t] ? this.dependTypes[typeof t](t, e) : !0 + }, + dependTypes: { + "boolean": function(t) { + return t + }, + string: function(e, i) { + return !!t(e, i.form).length + }, + "function": function(t, e) { + return t(e) + } + }, + optional: function(e) { + var i = this.elementValue(e); + return !t.validator.methods.required.call(this, i, e) && "dependency-mismatch" + }, + startRequest: function(t) { + this.pending[t.name] || (this.pendingRequest++, this.pending[t.name] = !0) + }, + stopRequest: function(e, i) { + this.pendingRequest--, 0 > this.pendingRequest && (this.pendingRequest = 0), delete this.pending[e.name], i && 0 === this.pendingRequest && this.formSubmitted && this.form() ? (t(this.currentForm).submit(), this.formSubmitted = !1) : !i && 0 === this.pendingRequest && this.formSubmitted && (t(this.currentForm).triggerHandler("invalid-form", [this]), this.formSubmitted = !1) + }, + previousValue: function(e) { + return t.data(e, "previousValue") || t.data(e, "previousValue", { + old: null, + valid: !0, + message: this.defaultMessage(e, "remote") + }) + } + }, + classRuleSettings: { + required: { + required: !0 + }, + email: { + email: !0 + }, + url: { + url: !0 + }, + date: { + date: !0 + }, + dateISO: { + dateISO: !0 + }, + number: { + number: !0 + }, + digits: { + digits: !0 + }, + creditcard: { + creditcard: !0 + } + }, + addClassRules: function(e, i) { + e.constructor === String ? this.classRuleSettings[e] = i : t.extend(this.classRuleSettings, e) + }, + classRules: function(e) { + var i = {}, + s = t(e).attr("class"); + return s && t.each(s.split(" "), function() { + this in t.validator.classRuleSettings && t.extend(i, t.validator.classRuleSettings[this]) + }), i + }, + attributeRules: function(e) { + var i = {}, + s = t(e), + r = s[0].getAttribute("type"); + for (var n in t.validator.methods) { + var a; + "required" === n ? (a = s.get(0).getAttribute(n), "" === a && (a = !0), a = !!a) : a = s.attr(n), /min|max/.test(n) && (null === r || /number|range|text/.test(r)) && (a = Number(a)), a ? i[n] = a : r === n && "range" !== r && (i[n] = !0) + } + return i.maxlength && /-1|2147483647|524288/.test(i.maxlength) && delete i.maxlength, i + }, + dataRules: function(e) { + var i, s, r = {}, + n = t(e); + for (i in t.validator.methods) s = n.data("rule-" + i.toLowerCase()), void 0 !== s && (r[i] = s); + return r + }, + staticRules: function(e) { + var i = {}, + s = t.data(e.form, "validator"); + return s.settings.rules && (i = t.validator.normalizeRule(s.settings.rules[e.name]) || {}), i + }, + normalizeRules: function(e, i) { + return t.each(e, function(s, r) { + if (r === !1) return delete e[s], void 0; + if (r.param || r.depends) { + var n = !0; + switch (typeof r.depends) { + case "string": + n = !!t(r.depends, i.form).length; + break; + case "function": + n = r.depends.call(i, i) + } + n ? e[s] = void 0 !== r.param ? r.param : !0 : delete e[s] + } + }), t.each(e, function(s, r) { + e[s] = t.isFunction(r) ? r(i) : r + }), t.each(["minlength", "maxlength"], function() { + e[this] && (e[this] = Number(e[this])) + }), t.each(["rangelength", "range"], function() { + var i; + e[this] && (t.isArray(e[this]) ? e[this] = [Number(e[this][0]), Number(e[this][1])] : "string" == typeof e[this] && (i = e[this].split(/[\s,]+/), e[this] = [Number(i[0]), Number(i[1])])) + }), t.validator.autoCreateRanges && (e.min && e.max && (e.range = [e.min, e.max], delete e.min, delete e.max), e.minlength && e.maxlength && (e.rangelength = [e.minlength, e.maxlength], delete e.minlength, delete e.maxlength)), e + }, + normalizeRule: function(e) { + if ("string" == typeof e) { + var i = {}; + t.each(e.split(/\s/), function() { + i[this] = !0 + }), e = i + } + return e + }, + addMethod: function(e, i, s) { + t.validator.methods[e] = i, t.validator.messages[e] = void 0 !== s ? s : t.validator.messages[e], 3 > i.length && t.validator.addClassRules(e, t.validator.normalizeRule(e)) + }, + methods: { + required: function(e, i, s) { + if (!this.depend(s, i)) return "dependency-mismatch"; + if ("select" === i.nodeName.toLowerCase()) { + var r = t(i).val(); + return r && r.length > 0 + } + return this.checkable(i) ? this.getLength(e, i) > 0 : t.trim(e).length > 0 + }, + email: function(t, e) { + return this.optional(e) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t) + }, + url: function(t, e) { + return this.optional(e) || /^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t) + }, + date: function(t, e) { + return this.optional(e) || !/Invalid|NaN/.test("" + new Date(t)) + }, + dateISO: function(t, e) { + return this.optional(e) || /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t) + }, + number: function(t, e) { + return this.optional(e) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t) + }, + digits: function(t, e) { + return this.optional(e) || /^\d+$/.test(t) + }, + creditcard: function(t, e) { + if (this.optional(e)) return "dependency-mismatch"; + if (/[^0-9 \-]+/.test(t)) return !1; + var i = 0, + s = 0, + r = !1; + t = t.replace(/\D/g, ""); + for (var n = t.length - 1; n >= 0; n--) { + var a = t.charAt(n); + s = parseInt(a, 10), r && (s *= 2) > 9 && (s -= 9), i += s, r = !r + } + return 0 === i % 10 + }, + minlength: function(e, i, s) { + var r = t.isArray(e) ? e.length : this.getLength(t.trim(e), i); + return this.optional(i) || r >= s + }, + maxlength: function(e, i, s) { + var r = t.isArray(e) ? e.length : this.getLength(t.trim(e), i); + return this.optional(i) || s >= r + }, + rangelength: function(e, i, s) { + var r = t.isArray(e) ? e.length : this.getLength(t.trim(e), i); + return this.optional(i) || r >= s[0] && s[1] >= r + }, + min: function(t, e, i) { + return this.optional(e) || t >= i + }, + max: function(t, e, i) { + return this.optional(e) || i >= t + }, + range: function(t, e, i) { + return this.optional(e) || t >= i[0] && i[1] >= t + }, + equalTo: function(e, i, s) { + var r = t(s); + return this.settings.onfocusout && r.unbind(".validate-equalTo").bind("blur.validate-equalTo", function() { + t(i).valid() + }), e === r.val() + }, + remote: function(e, i, s) { + if (this.optional(i)) return "dependency-mismatch"; + var r = this.previousValue(i); + if (this.settings.messages[i.name] || (this.settings.messages[i.name] = {}), r.originalMessage = this.settings.messages[i.name].remote, this.settings.messages[i.name].remote = r.message, s = "string" == typeof s && { + url: s + } || s, r.old === e) return r.valid; + r.old = e; + var n = this; + this.startRequest(i); + var a = {}; + return a[i.name] = e, t.ajax(t.extend(!0, { + url: s, + mode: "abort", + port: "validate" + i.name, + dataType: "json", + data: a, + success: function(s) { + n.settings.messages[i.name].remote = r.originalMessage; + var a = s === !0 || "true" === s; + if (a) { + var u = n.formSubmitted; + n.prepareElement(i), n.formSubmitted = u, n.successList.push(i), delete n.invalid[i.name], n.showErrors() + } else { + var o = {}, + l = s || n.defaultMessage(i, "remote"); + o[i.name] = r.message = t.isFunction(l) ? l(e) : l, n.invalid[i.name] = !0, n.showErrors(o) + } + r.valid = a, n.stopRequest(i, a) + } + }, s)), "pending" + } + } + }), t.format = t.validator.format +})(jQuery), + function(t) { + var e = {}; + if (t.ajaxPrefilter) t.ajaxPrefilter(function(t, i, s) { + var r = t.port; + "abort" === t.mode && (e[r] && e[r].abort(), e[r] = s) + }); + else { + var i = t.ajax; + t.ajax = function(s) { + var r = ("mode" in s ? s : t.ajaxSettings).mode, + n = ("port" in s ? s : t.ajaxSettings).port; + return "abort" === r ? (e[n] && e[n].abort(), e[n] = i.apply(this, arguments), e[n]) : i.apply(this, arguments) + } + } + }(jQuery), + function(t) { + t.extend(t.fn, { + validateDelegate: function(e, i, s) { + return this.bind(i, function(i) { + var r = t(i.target); + return r.is(e) ? s.apply(r, arguments) : void 0 + }) + } + }) + }(jQuery); diff --git a/assets/js/one-page-nav-min.js b/assets/js/one-page-nav-min.js index 2aa1db3..eb5215f 100755 --- a/assets/js/one-page-nav-min.js +++ b/assets/js/one-page-nav-min.js @@ -16,4 +16,78 @@ * scrollSpeed: 750 * }); */ -!function (t, i, n, s) { var e = function (s, e) { this.elem = s, this.$elem = t(s), this.options = e, this.metadata = this.$elem.data("plugin-options"), this.$win = t(i), this.sections = {}, this.didScroll = !1, this.$doc = t(n), this.docHeight = this.$doc.height() }; e.prototype = { defaults: { navItems: "a", currentClass: "current", changeHash: !1, easing: "swing", filter: "", scrollSpeed: 750, scrollThreshold: .5, begin: !1, end: !1, scrollChange: !1 }, init: function () { return this.config = t.extend({}, this.defaults, this.options, this.metadata), this.$nav = this.$elem.find(this.config.navItems), "" !== this.config.filter && (this.$nav = this.$nav.filter(this.config.filter)), this.$nav.on("click.onePageNav", t.proxy(this.handleClick, this)), this.getPositions(), this.bindInterval(), this.$win.on("resize.onePageNav", t.proxy(this.getPositions, this)), this }, adjustNav: function (t, i) { t.$elem.find("." + t.config.currentClass).removeClass(t.config.currentClass), i.addClass(t.config.currentClass) }, bindInterval: function () { var t, i = this; i.$win.on("scroll.onePageNav", function () { i.didScroll = !0 }), i.t = setInterval(function () { t = i.$doc.height(), i.didScroll && (i.didScroll = !1, i.scrollChange()), t !== i.docHeight && (i.docHeight = t, i.getPositions()) }, 250) }, getHash: function (t) { return t.attr("href").split("#")[1] }, getPositions: function () { var i, n, s, e = this; e.$nav.each(function () { i = e.getHash(t(this)), s = t("#" + i), s.length && (n = s.offset().top, e.sections[i] = Math.round(n)) }) }, getSection: function (t) { var i = null, n = Math.round(this.$win.height() * this.config.scrollThreshold); for (var s in this.sections) this.sections[s] - n < t && (i = s); return i }, handleClick: function (n) { var s = this, e = t(n.currentTarget), o = e.parent(), a = "#" + s.getHash(e); o.hasClass(s.config.currentClass) || (s.config.begin && s.config.begin(), s.adjustNav(s, o), s.unbindInterval(), s.scrollTo(a, function () { s.config.changeHash && (i.location.hash = a), s.bindInterval(), s.config.end && s.config.end() })), n.preventDefault() }, scrollChange: function () { var t, i = this.$win.scrollTop(), n = this.getSection(i); null !== n && (t = this.$elem.find('a[href$="#' + n + '"]').parent(), t.hasClass(this.config.currentClass) || (this.adjustNav(this, t), this.config.scrollChange && this.config.scrollChange(t))) }, scrollTo: function (i, n) { var s = t(i).offset().top; t("html, body").animate({ scrollTop: s - this.config.scrollOffset }, this.config.scrollSpeed, this.config.easing, n) }, unbindInterval: function () { clearInterval(this.t), this.$win.unbind("scroll.onePageNav") } }, e.defaults = e.prototype.defaults, t.fn.onePageNav = function (t) { return this.each(function () { new e(this, t).init() }) } }(jQuery, window, document); \ No newline at end of file +! function(t, i, n, s) { + var e = function(s, e) { + this.elem = s, this.$elem = t(s), this.options = e, this.metadata = this.$elem.data("plugin-options"), this.$win = t(i), this.sections = {}, this.didScroll = !1, this.$doc = t(n), this.docHeight = this.$doc.height() + }; + e.prototype = { + defaults: { + navItems: "a", + currentClass: "current", + changeHash: !1, + easing: "swing", + filter: "", + scrollSpeed: 750, + scrollThreshold: .5, + begin: !1, + end: !1, + scrollChange: !1 + }, + init: function() { + return this.config = t.extend({}, this.defaults, this.options, this.metadata), this.$nav = this.$elem.find(this.config.navItems), "" !== this.config.filter && (this.$nav = this.$nav.filter(this.config.filter)), this.$nav.on("click.onePageNav", t.proxy(this.handleClick, this)), this.getPositions(), this.bindInterval(), this.$win.on("resize.onePageNav", t.proxy(this.getPositions, this)), this + }, + adjustNav: function(t, i) { + t.$elem.find("." + t.config.currentClass).removeClass(t.config.currentClass), i.addClass(t.config.currentClass) + }, + bindInterval: function() { + var t, i = this; + i.$win.on("scroll.onePageNav", function() { + i.didScroll = !0 + }), i.t = setInterval(function() { + t = i.$doc.height(), i.didScroll && (i.didScroll = !1, i.scrollChange()), t !== i.docHeight && (i.docHeight = t, i.getPositions()) + }, 250) + }, + getHash: function(t) { + return t.attr("href").split("#")[1] + }, + getPositions: function() { + var i, n, s, e = this; + e.$nav.each(function() { + i = e.getHash(t(this)), s = t("#" + i), s.length && (n = s.offset().top, e.sections[i] = Math.round(n)) + }) + }, + getSection: function(t) { + var i = null, + n = Math.round(this.$win.height() * this.config.scrollThreshold); + for (var s in this.sections) this.sections[s] - n < t && (i = s); + return i + }, + handleClick: function(n) { + var s = this, + e = t(n.currentTarget), + o = e.parent(), + a = "#" + s.getHash(e); + o.hasClass(s.config.currentClass) || (s.config.begin && s.config.begin(), s.adjustNav(s, o), s.unbindInterval(), s.scrollTo(a, function() { + s.config.changeHash && (i.location.hash = a), s.bindInterval(), s.config.end && s.config.end() + })), n.preventDefault() + }, + scrollChange: function() { + var t, i = this.$win.scrollTop(), + n = this.getSection(i); + null !== n && (t = this.$elem.find('a[href$="#' + n + '"]').parent(), t.hasClass(this.config.currentClass) || (this.adjustNav(this, t), this.config.scrollChange && this.config.scrollChange(t))) + }, + scrollTo: function(i, n) { + var s = t(i).offset().top; + t("html, body").animate({ + scrollTop: s - this.config.scrollOffset + }, this.config.scrollSpeed, this.config.easing, n) + }, + unbindInterval: function() { + clearInterval(this.t), this.$win.unbind("scroll.onePageNav") + } + }, e.defaults = e.prototype.defaults, t.fn.onePageNav = function(t) { + return this.each(function() { + new e(this, t).init() + }) + } +}(jQuery, window, document); diff --git a/assets/js/owl.carousel.min.js b/assets/js/owl.carousel.min.js index 9b9566f..5ade81f 100755 --- a/assets/js/owl.carousel.min.js +++ b/assets/js/owl.carousel.min.js @@ -3,5 +3,983 @@ * Copyright 2013-2017 David Deutsch * Licensed under () */ -!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},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._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!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:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&e<=0&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('
      '),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&bh-f-e&&b",g[a+1]||h-f)&&(d="left"===c?a+1:a),d===-1},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&(c+=this._items[b].width()+this.settings.margin,!(c>d)););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=f*-1*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a":return d?ac;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&a.namespace.indexOf("owl")!==-1?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&e*-1||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);f++-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=Math.max.apply(null,e),this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='
      ',d=k.lazyLoad?'
      ':'
      ',b.after(d),b.after(e)};if(b.wrap('
      "),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.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,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===f.type?c='':"vimeo"===f.type?c='':"vzaar"===f.type&&(c=''),a('
      '+c+"
      ").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)}, -a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(d,e){return this._timeout&&b.clearTimeout(this._timeout),b.setTimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.clearTimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,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":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('
      '+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
      ")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,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,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("
      ").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("
      ").addClass(c.dotClass).append(a("")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("
      ").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document); \ No newline at end of file +! function(a, b, c, d) { + function e(b, c) { + this.settings = null, this.options = a.extend({}, e.Defaults, c), this.$element = a(b), this._handlers = {}, 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._widths = [], this._invalidated = {}, this._pipe = [], this._drag = { + time: null, + target: null, + pointer: null, + stage: { + start: null, + current: null + }, + direction: null + }, this._states = { + current: {}, + tags: { + initializing: ["busy"], + animating: ["busy"], + dragging: ["interacting"] + } + }, a.each(["onResize", "onThrottledResize"], a.proxy(function(b, c) { + this._handlers[c] = a.proxy(this[c], this) + }, this)), a.each(e.Plugins, a.proxy(function(a, b) { + this._plugins[a.charAt(0).toLowerCase() + a.slice(1)] = new b(this) + }, this)), a.each(e.Workers, a.proxy(function(b, c) { + this._pipe.push({ + filter: c.filter, + run: a.proxy(c.run, this) + }) + }, this)), this.setup(), this.initialize() + } + e.Defaults = { + items: 3, + loop: !1, + center: !1, + rewind: !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: b, + fallbackEasing: "swing", + info: !1, + nestedItemSelector: !1, + itemElement: "div", + stageElement: "div", + refreshClass: "owl-refresh", + loadedClass: "owl-loaded", + loadingClass: "owl-loading", + rtlClass: "owl-rtl", + responsiveClass: "owl-responsive", + dragClass: "owl-drag", + itemClass: "owl-item", + stageClass: "owl-stage", + stageOuterClass: "owl-stage-outer", + grabClass: "owl-grab" + }, e.Width = { + Default: "default", + Inner: "inner", + Outer: "outer" + }, e.Type = { + Event: "event", + State: "state" + }, e.Plugins = {}, e.Workers = [{ + filter: ["width", "settings"], + run: function() { + this._width = this.$element.width() + } + }, { + filter: ["width", "items", "settings"], + run: function(a) { + a.current = this._items && this._items[this.relative(this._current)] + } + }, { + filter: ["items", "settings"], + run: function() { + this.$stage.children(".cloned").remove() + } + }, { + filter: ["width", "items", "settings"], + run: function(a) { + var b = this.settings.margin || "", + c = !this.settings.autoWidth, + d = this.settings.rtl, + e = { + width: "auto", + "margin-left": d ? b : "", + "margin-right": d ? "" : b + }; + !c && this.$stage.children().css(e), a.css = e + } + }, { + filter: ["width", "items", "settings"], + run: function(a) { + var b = (this.width() / this.settings.items).toFixed(3) - this.settings.margin, + c = null, + d = this._items.length, + e = !this.settings.autoWidth, + f = []; + for (a.items = { + merge: !1, + width: b + }; d--;) c = this._mergers[d], c = this.settings.mergeFit && Math.min(c, this.settings.items) || c, a.items.merge = c > 1 || a.items.merge, f[d] = e ? b * c : this._items[d].width(); + this._widths = f + } + }, { + filter: ["items", "settings"], + run: function() { + var b = [], + c = this._items, + d = this.settings, + e = Math.max(2 * d.items, 4), + f = 2 * Math.ceil(c.length / 2), + g = d.loop && c.length ? d.rewind ? e : Math.max(e, f) : 0, + h = "", + i = ""; + for (g /= 2; g--;) b.push(this.normalize(b.length / 2, !0)), h += c[b[b.length - 1]][0].outerHTML, b.push(this.normalize(c.length - 1 - (b.length - 1) / 2, !0)), i = c[b[b.length - 1]][0].outerHTML + i; + this._clones = b, a(h).addClass("cloned").appendTo(this.$stage), a(i).addClass("cloned").prependTo(this.$stage) + } + }, { + filter: ["width", "items", "settings"], + run: function() { + for (var a = this.settings.rtl ? 1 : -1, b = this._clones.length + this._items.length, c = -1, d = 0, e = 0, f = []; ++c < b;) d = f[c - 1] || 0, e = this._widths[this.relative(c)] + this.settings.margin, f.push(d + e * a); + this._coordinates = f + } + }, { + filter: ["width", "items", "settings"], + run: function() { + var a = this.settings.stagePadding, + b = this._coordinates, + c = { + width: Math.ceil(Math.abs(b[b.length - 1])) + 2 * a, + "padding-left": a || "", + "padding-right": a || "" + }; + this.$stage.css(c) + } + }, { + filter: ["width", "items", "settings"], + run: function(a) { + var b = this._coordinates.length, + c = !this.settings.autoWidth, + d = this.$stage.children(); + if (c && a.items.merge) + for (; b--;) a.css.width = this._widths[this.relative(b)], d.eq(b).css(a.css); + else c && (a.css.width = a.items.width, d.css(a.css)) + } + }, { + filter: ["items"], + run: function() { + this._coordinates.length < 1 && this.$stage.removeAttr("style") + } + }, { + filter: ["width", "items", "settings"], + run: function(a) { + a.current = a.current ? this.$stage.children().index(a.current) : 0, a.current = Math.max(this.minimum(), Math.min(this.maximum(), a.current)), this.reset(a.current) + } + }, { + filter: ["position"], + run: function() { + this.animate(this.coordinates(this._current)) + } + }, { + filter: ["width", "position", "items", "settings"], + run: function() { + var a, b, c, d, e = this.settings.rtl ? 1 : -1, + f = 2 * this.settings.stagePadding, + g = this.coordinates(this.current()) + f, + h = g + this.width() * e, + i = []; + for (c = 0, d = this._coordinates.length; c < d; c++) a = this._coordinates[c - 1] || 0, b = Math.abs(this._coordinates[c]) + f * e, (this.op(a, "<=", g) && this.op(a, ">", h) || this.op(b, "<", g) && this.op(b, ">", h)) && i.push(c); + this.$stage.children(".active").removeClass("active"), this.$stage.children(":eq(" + i.join("), :eq(") + ")").addClass("active"), this.settings.center && (this.$stage.children(".center").removeClass("center"), this.$stage.children().eq(this.current()).addClass("center")) + } + }], e.prototype.initialize = function() { + if (this.enter("initializing"), this.trigger("initialize"), this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl), this.settings.autoWidth && !this.is("pre-loading")) { + var b, c, e; + b = this.$element.find("img"), c = this.settings.nestedItemSelector ? "." + this.settings.nestedItemSelector : d, e = this.$element.children(c).width(), b.length && e <= 0 && this.preloadAutoWidthImages(b) + } + this.$element.addClass(this.options.loadingClass), this.$stage = a("<" + this.settings.stageElement + ' class="' + this.settings.stageClass + '"/>').wrap('
      '), this.$element.append(this.$stage.parent()), this.replace(this.$element.children().not(this.$stage.parent())), this.$element.is(":visible") ? this.refresh() : this.invalidate("width"), this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass), this.registerEventHandlers(), this.leave("initializing"), this.trigger("initialized") + }, e.prototype.setup = function() { + var b = this.viewport(), + c = this.options.responsive, + d = -1, + e = null; + c ? (a.each(c, function(a) { + a <= b && a > d && (d = Number(a)) + }), e = a.extend({}, this.options, c[d]), "function" == typeof e.stagePadding && (e.stagePadding = e.stagePadding()), delete e.responsive, e.responsiveClass && this.$element.attr("class", this.$element.attr("class").replace(new RegExp("(" + this.options.responsiveClass + "-)\\S+\\s", "g"), "$1" + d))) : e = a.extend({}, this.options), this.trigger("change", { + property: { + name: "settings", + value: e + } + }), this._breakpoint = d, this.settings = e, this.invalidate("settings"), this.trigger("changed", { + property: { + name: "settings", + value: this.settings + } + }) + }, e.prototype.optionsLogic = function() { + this.settings.autoWidth && (this.settings.stagePadding = !1, this.settings.merge = !1) + }, e.prototype.prepare = function(b) { + var c = this.trigger("prepare", { + content: b + }); + return c.data || (c.data = a("<" + this.settings.itemElement + "/>").addClass(this.options.itemClass).append(b)), this.trigger("prepared", { + content: c.data + }), c.data + }, e.prototype.update = function() { + for (var b = 0, c = this._pipe.length, d = a.proxy(function(a) { + return this[a] + }, this._invalidated), e = {}; b < c;)(this._invalidated.all || a.grep(this._pipe[b].filter, d).length > 0) && this._pipe[b].run(e), b++; + this._invalidated = {}, !this.is("valid") && this.enter("valid") + }, e.prototype.width = function(a) { + switch (a = a || e.Width.Default) { + case e.Width.Inner: + case e.Width.Outer: + return this._width; + default: + return this._width - 2 * this.settings.stagePadding + this.settings.margin + } + }, e.prototype.refresh = function() { + this.enter("refreshing"), this.trigger("refresh"), this.setup(), this.optionsLogic(), this.$element.addClass(this.options.refreshClass), this.update(), this.$element.removeClass(this.options.refreshClass), this.leave("refreshing"), this.trigger("refreshed") + }, e.prototype.onThrottledResize = function() { + b.clearTimeout(this.resizeTimer), this.resizeTimer = b.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate) + }, e.prototype.onResize = function() { + return !!this._items.length && (this._width !== this.$element.width() && (!!this.$element.is(":visible") && (this.enter("resizing"), this.trigger("resize").isDefaultPrevented() ? (this.leave("resizing"), !1) : (this.invalidate("width"), this.refresh(), this.leave("resizing"), void this.trigger("resized"))))) + }, e.prototype.registerEventHandlers = function() { + a.support.transition && this.$stage.on(a.support.transition.end + ".owl.core", a.proxy(this.onTransitionEnd, this)), this.settings.responsive !== !1 && this.on(b, "resize", this._handlers.onThrottledResize), this.settings.mouseDrag && (this.$element.addClass(this.options.dragClass), this.$stage.on("mousedown.owl.core", a.proxy(this.onDragStart, this)), this.$stage.on("dragstart.owl.core selectstart.owl.core", function() { + return !1 + })), this.settings.touchDrag && (this.$stage.on("touchstart.owl.core", a.proxy(this.onDragStart, this)), this.$stage.on("touchcancel.owl.core", a.proxy(this.onDragEnd, this))) + }, e.prototype.onDragStart = function(b) { + var d = null; + 3 !== b.which && (a.support.transform ? (d = this.$stage.css("transform").replace(/.*\(|\)| /g, "").split(","), d = { + x: d[16 === d.length ? 12 : 4], + y: d[16 === d.length ? 13 : 5] + }) : (d = this.$stage.position(), d = { + x: this.settings.rtl ? d.left + this.$stage.width() - this.width() + this.settings.margin : d.left, + y: d.top + }), this.is("animating") && (a.support.transform ? this.animate(d.x) : this.$stage.stop(), this.invalidate("position")), this.$element.toggleClass(this.options.grabClass, "mousedown" === b.type), this.speed(0), this._drag.time = (new Date).getTime(), this._drag.target = a(b.target), this._drag.stage.start = d, this._drag.stage.current = d, this._drag.pointer = this.pointer(b), a(c).on("mouseup.owl.core touchend.owl.core", a.proxy(this.onDragEnd, this)), a(c).one("mousemove.owl.core touchmove.owl.core", a.proxy(function(b) { + var d = this.difference(this._drag.pointer, this.pointer(b)); + a(c).on("mousemove.owl.core touchmove.owl.core", a.proxy(this.onDragMove, this)), Math.abs(d.x) < Math.abs(d.y) && this.is("valid") || (b.preventDefault(), this.enter("dragging"), this.trigger("drag")) + }, this))) + }, e.prototype.onDragMove = function(a) { + var b = null, + c = null, + d = null, + e = this.difference(this._drag.pointer, this.pointer(a)), + f = this.difference(this._drag.stage.start, e); + this.is("dragging") && (a.preventDefault(), this.settings.loop ? (b = this.coordinates(this.minimum()), c = this.coordinates(this.maximum() + 1) - b, f.x = ((f.x - b) % c + c) % c + b) : (b = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum()), c = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum()), d = this.settings.pullDrag ? -1 * e.x / 5 : 0, f.x = Math.max(Math.min(f.x, b + d), c + d)), this._drag.stage.current = f, this.animate(f.x)) + }, e.prototype.onDragEnd = function(b) { + var d = this.difference(this._drag.pointer, this.pointer(b)), + e = this._drag.stage.current, + f = d.x > 0 ^ this.settings.rtl ? "left" : "right"; + a(c).off(".owl.core"), this.$element.removeClass(this.options.grabClass), (0 !== d.x && this.is("dragging") || !this.is("valid")) && (this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed), this.current(this.closest(e.x, 0 !== d.x ? f : this._drag.direction)), this.invalidate("position"), this.update(), this._drag.direction = f, (Math.abs(d.x) > 3 || (new Date).getTime() - this._drag.time > 300) && this._drag.target.one("click.owl.core", function() { + return !1 + })), this.is("dragging") && (this.leave("dragging"), this.trigger("dragged")) + }, e.prototype.closest = function(b, c) { + var d = -1, + e = 30, + f = this.width(), + g = this.coordinates(); + return this.settings.freeDrag || a.each(g, a.proxy(function(a, h) { + return "left" === c && b > h - e && b < h + e ? d = a : "right" === c && b > h - f - e && b < h - f + e ? d = a + 1 : this.op(b, "<", h) && this.op(b, ">", g[a + 1] || h - f) && (d = "left" === c ? a + 1 : a), d === -1 + }, this)), this.settings.loop || (this.op(b, ">", g[this.minimum()]) ? d = b = this.minimum() : this.op(b, "<", g[this.maximum()]) && (d = b = this.maximum())), d + }, e.prototype.animate = function(b) { + var c = this.speed() > 0; + this.is("animating") && this.onTransitionEnd(), c && (this.enter("animating"), this.trigger("translate")), a.support.transform3d && a.support.transition ? this.$stage.css({ + transform: "translate3d(" + b + "px,0px,0px)", + transition: this.speed() / 1e3 + "s" + }) : c ? this.$stage.animate({ + left: b + "px" + }, this.speed(), this.settings.fallbackEasing, a.proxy(this.onTransitionEnd, this)) : this.$stage.css({ + left: b + "px" + }) + }, e.prototype.is = function(a) { + return this._states.current[a] && this._states.current[a] > 0 + }, e.prototype.current = function(a) { + if (a === d) return this._current; + if (0 === this._items.length) return d; + if (a = this.normalize(a), this._current !== a) { + var b = this.trigger("change", { + property: { + name: "position", + value: a + } + }); + b.data !== d && (a = this.normalize(b.data)), this._current = a, this.invalidate("position"), this.trigger("changed", { + property: { + name: "position", + value: this._current + } + }) + } + return this._current + }, e.prototype.invalidate = function(b) { + return "string" === a.type(b) && (this._invalidated[b] = !0, this.is("valid") && this.leave("valid")), a.map(this._invalidated, function(a, b) { + return b + }) + }, e.prototype.reset = function(a) { + a = this.normalize(a), a !== d && (this._speed = 0, this._current = a, this.suppress(["translate", "translated"]), this.animate(this.coordinates(a)), this.release(["translate", "translated"])) + }, e.prototype.normalize = function(a, b) { + var c = this._items.length, + e = b ? 0 : this._clones.length; + return !this.isNumeric(a) || c < 1 ? a = d : (a < 0 || a >= c + e) && (a = ((a - e / 2) % c + c) % c + e / 2), a + }, e.prototype.relative = function(a) { + return a -= this._clones.length / 2, this.normalize(a, !0) + }, e.prototype.maximum = function(a) { + var b, c, d, e = this.settings, + f = this._coordinates.length; + if (e.loop) f = this._clones.length / 2 + this._items.length - 1; + else if (e.autoWidth || e.merge) { + for (b = this._items.length, c = this._items[--b].width(), d = this.$element.width(); b-- && (c += this._items[b].width() + this.settings.margin, !(c > d));); + f = b + 1 + } else f = e.center ? this._items.length - 1 : this._items.length - e.items; + return a && (f -= this._clones.length / 2), Math.max(f, 0) + }, e.prototype.minimum = function(a) { + return a ? 0 : this._clones.length / 2 + }, e.prototype.items = function(a) { + return a === d ? this._items.slice() : (a = this.normalize(a, !0), this._items[a]) + }, e.prototype.mergers = function(a) { + return a === d ? this._mergers.slice() : (a = this.normalize(a, !0), this._mergers[a]) + }, e.prototype.clones = function(b) { + var c = this._clones.length / 2, + e = c + this._items.length, + f = function(a) { + return a % 2 === 0 ? e + a / 2 : c - (a + 1) / 2 + }; + return b === d ? a.map(this._clones, function(a, b) { + return f(b) + }) : a.map(this._clones, function(a, c) { + return a === b ? f(c) : null + }) + }, e.prototype.speed = function(a) { + return a !== d && (this._speed = a), this._speed + }, e.prototype.coordinates = function(b) { + var c, e = 1, + f = b - 1; + return b === d ? a.map(this._coordinates, a.proxy(function(a, b) { + return this.coordinates(b) + }, this)) : (this.settings.center ? (this.settings.rtl && (e = -1, f = b + 1), c = this._coordinates[b], c += (this.width() - c + (this._coordinates[f] || 0)) / 2 * e) : c = this._coordinates[f] || 0, c = Math.ceil(c)) + }, e.prototype.duration = function(a, b, c) { + return 0 === c ? 0 : Math.min(Math.max(Math.abs(b - a), 1), 6) * Math.abs(c || this.settings.smartSpeed) + }, e.prototype.to = function(a, b) { + var c = this.current(), + d = null, + e = a - this.relative(c), + f = (e > 0) - (e < 0), + g = this._items.length, + h = this.minimum(), + i = this.maximum(); + this.settings.loop ? (!this.settings.rewind && Math.abs(e) > g / 2 && (e += f * -1 * g), a = c + e, d = ((a - h) % g + g) % g + h, d !== a && d - e <= i && d - e > 0 && (c = d - e, a = d, this.reset(c))) : this.settings.rewind ? (i += 1, a = (a % i + i) % i) : a = Math.max(h, Math.min(i, a)), this.speed(this.duration(c, a, b)), this.current(a), this.$element.is(":visible") && this.update() + }, e.prototype.next = function(a) { + a = a || !1, this.to(this.relative(this.current()) + 1, a) + }, e.prototype.prev = function(a) { + a = a || !1, this.to(this.relative(this.current()) - 1, a) + }, e.prototype.onTransitionEnd = function(a) { + if (a !== d && (a.stopPropagation(), (a.target || a.srcElement || a.originalTarget) !== this.$stage.get(0))) return !1; + this.leave("animating"), this.trigger("translated") + }, e.prototype.viewport = function() { + var d; + return this.options.responsiveBaseElement !== b ? d = a(this.options.responsiveBaseElement).width() : b.innerWidth ? d = b.innerWidth : c.documentElement && c.documentElement.clientWidth ? d = c.documentElement.clientWidth : console.warn("Can not detect viewport width."), d + }, e.prototype.replace = function(b) { + this.$stage.empty(), this._items = [], b && (b = b instanceof jQuery ? b : a(b)), this.settings.nestedItemSelector && (b = b.find("." + this.settings.nestedItemSelector)), b.filter(function() { + return 1 === this.nodeType + }).each(a.proxy(function(a, b) { + b = this.prepare(b), this.$stage.append(b), this._items.push(b), this._mergers.push(1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1) + }, this)), this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0), this.invalidate("items") + }, e.prototype.add = function(b, c) { + var e = this.relative(this._current); + c = c === d ? this._items.length : this.normalize(c, !0), b = b instanceof jQuery ? b : a(b), this.trigger("add", { + content: b, + position: c + }), b = this.prepare(b), 0 === this._items.length || c === this._items.length ? (0 === this._items.length && this.$stage.append(b), 0 !== this._items.length && this._items[c - 1].after(b), this._items.push(b), this._mergers.push(1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)) : (this._items[c].before(b), this._items.splice(c, 0, b), this._mergers.splice(c, 0, 1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)), this._items[e] && this.reset(this._items[e].index()), this.invalidate("items"), this.trigger("added", { + content: b, + position: c + }) + }, e.prototype.remove = function(a) { + a = this.normalize(a, !0), a !== d && (this.trigger("remove", { + content: this._items[a], + position: a + }), this._items[a].remove(), this._items.splice(a, 1), this._mergers.splice(a, 1), this.invalidate("items"), this.trigger("removed", { + content: null, + position: a + })) + }, e.prototype.preloadAutoWidthImages = function(b) { + b.each(a.proxy(function(b, c) { + this.enter("pre-loading"), c = a(c), a(new Image).one("load", a.proxy(function(a) { + c.attr("src", a.target.src), c.css("opacity", 1), this.leave("pre-loading"), !this.is("pre-loading") && !this.is("initializing") && this.refresh() + }, this)).attr("src", c.attr("src") || c.attr("data-src") || c.attr("data-src-retina")) + }, this)) + }, e.prototype.destroy = function() { + this.$element.off(".owl.core"), this.$stage.off(".owl.core"), a(c).off(".owl.core"), this.settings.responsive !== !1 && (b.clearTimeout(this.resizeTimer), this.off(b, "resize", this._handlers.onThrottledResize)); + for (var d in this._plugins) this._plugins[d].destroy(); + this.$stage.children(".cloned").remove(), this.$stage.unwrap(), this.$stage.children().contents().unwrap(), this.$stage.children().unwrap(), this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class", this.$element.attr("class").replace(new RegExp(this.options.responsiveClass + "-\\S+\\s", "g"), "")).removeData("owl.carousel") + }, e.prototype.op = function(a, b, c) { + var d = this.settings.rtl; + switch (b) { + case "<": + return d ? a > c : a < c; + case ">": + return d ? a < c : a > c; + case ">=": + return d ? a <= c : a >= c; + case "<=": + return d ? a >= c : a <= c + } + }, e.prototype.on = function(a, b, c, d) { + a.addEventListener ? a.addEventListener(b, c, d) : a.attachEvent && a.attachEvent("on" + b, c) + }, e.prototype.off = function(a, b, c, d) { + a.removeEventListener ? a.removeEventListener(b, c, d) : a.detachEvent && a.detachEvent("on" + b, c) + }, e.prototype.trigger = function(b, c, d, f, g) { + var h = { + item: { + count: this._items.length, + index: this.current() + } + }, + i = a.camelCase(a.grep(["on", b, d], function(a) { + return a + }).join("-").toLowerCase()), + j = a.Event([b, "owl", d || "carousel"].join(".").toLowerCase(), a.extend({ + relatedTarget: this + }, h, c)); + return this._supress[b] || (a.each(this._plugins, function(a, b) { + b.onTrigger && b.onTrigger(j) + }), this.register({ + type: e.Type.Event, + name: b + }), this.$element.trigger(j), this.settings && "function" == typeof this.settings[i] && this.settings[i].call(this, j)), j + }, e.prototype.enter = function(b) { + a.each([b].concat(this._states.tags[b] || []), a.proxy(function(a, b) { + this._states.current[b] === d && (this._states.current[b] = 0), this._states.current[b]++ + }, this)) + }, e.prototype.leave = function(b) { + a.each([b].concat(this._states.tags[b] || []), a.proxy(function(a, b) { + this._states.current[b]-- + }, this)) + }, e.prototype.register = function(b) { + if (b.type === e.Type.Event) { + if (a.event.special[b.name] || (a.event.special[b.name] = {}), !a.event.special[b.name].owl) { + var c = a.event.special[b.name]._default; + a.event.special[b.name]._default = function(a) { + return !c || !c.apply || a.namespace && a.namespace.indexOf("owl") !== -1 ? a.namespace && a.namespace.indexOf("owl") > -1 : c.apply(this, arguments) + }, a.event.special[b.name].owl = !0 + } + } else b.type === e.Type.State && (this._states.tags[b.name] ? this._states.tags[b.name] = this._states.tags[b.name].concat(b.tags) : this._states.tags[b.name] = b.tags, this._states.tags[b.name] = a.grep(this._states.tags[b.name], a.proxy(function(c, d) { + return a.inArray(c, this._states.tags[b.name]) === d + }, this))) + }, e.prototype.suppress = function(b) { + a.each(b, a.proxy(function(a, b) { + this._supress[b] = !0 + }, this)) + }, e.prototype.release = function(b) { + a.each(b, a.proxy(function(a, b) { + delete this._supress[b] + }, this)) + }, e.prototype.pointer = function(a) { + var c = { + x: null, + y: null + }; + return a = a.originalEvent || a || b.event, a = a.touches && a.touches.length ? a.touches[0] : a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : a, a.pageX ? (c.x = a.pageX, c.y = a.pageY) : (c.x = a.clientX, c.y = a.clientY), c + }, e.prototype.isNumeric = function(a) { + return !isNaN(parseFloat(a)) + }, e.prototype.difference = function(a, b) { + return { + x: a.x - b.x, + y: a.y - b.y + } + }, a.fn.owlCarousel = function(b) { + var c = Array.prototype.slice.call(arguments, 1); + return this.each(function() { + var d = a(this), + f = d.data("owl.carousel"); + f || (f = new e(this, "object" == typeof b && b), d.data("owl.carousel", f), a.each(["next", "prev", "to", "destroy", "refresh", "replace", "add", "remove"], function(b, c) { + f.register({ + type: e.Type.Event, + name: c + }), f.$element.on(c + ".owl.carousel.core", a.proxy(function(a) { + a.namespace && a.relatedTarget !== this && (this.suppress([c]), f[c].apply(this, [].slice.call(arguments, 1)), this.release([c])) + }, f)) + })), "string" == typeof b && "_" !== b.charAt(0) && f[b].apply(f, c) + }) + }, a.fn.owlCarousel.Constructor = e +}(window.Zepto || window.jQuery, window, document), + function(a, b, c, d) { + var e = function(b) { + this._core = b, this._interval = null, this._visible = null, this._handlers = { + "initialized.owl.carousel": a.proxy(function(a) { + a.namespace && this._core.settings.autoRefresh && this.watch() + }, this) + }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) + }; + e.Defaults = { + autoRefresh: !0, + autoRefreshInterval: 500 + }, e.prototype.watch = function() { + this._interval || (this._visible = this._core.$element.is(":visible"), this._interval = b.setInterval(a.proxy(this.refresh, this), this._core.settings.autoRefreshInterval)) + }, e.prototype.refresh = function() { + this._core.$element.is(":visible") !== this._visible && (this._visible = !this._visible, this._core.$element.toggleClass("owl-hidden", !this._visible), this._visible && this._core.invalidate("width") && this._core.refresh()) + }, e.prototype.destroy = function() { + var a, c; + b.clearInterval(this._interval); + for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); + for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null) + }, a.fn.owlCarousel.Constructor.Plugins.AutoRefresh = e + }(window.Zepto || window.jQuery, window, document), + function(a, b, c, d) { + var e = function(b) { + this._core = b, this._loaded = [], this._handlers = { + "initialized.owl.carousel change.owl.carousel resized.owl.carousel": a.proxy(function(b) { + if (b.namespace && this._core.settings && this._core.settings.lazyLoad && (b.property && "position" == b.property.name || "initialized" == b.type)) + for (var c = this._core.settings, e = c.center && Math.ceil(c.items / 2) || c.items, f = c.center && e * -1 || 0, g = (b.property && b.property.value !== d ? b.property.value : this._core.current()) + f, h = this._core.clones().length, i = a.proxy(function(a, b) { + this.load(b) + }, this); f++ < e;) this.load(h / 2 + this._core.relative(g)), h && a.each(this._core.clones(this._core.relative(g)), i), g++ + }, this) + }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) + }; + e.Defaults = { + lazyLoad: !1 + }, e.prototype.load = function(c) { + var d = this._core.$stage.children().eq(c), + e = d && d.find(".owl-lazy"); + !e || a.inArray(d.get(0), this._loaded) > -1 || (e.each(a.proxy(function(c, d) { + var e, f = a(d), + g = b.devicePixelRatio > 1 && f.attr("data-src-retina") || f.attr("data-src"); + this._core.trigger("load", { + element: f, + url: g + }, "lazy"), f.is("img") ? f.one("load.owl.lazy", a.proxy(function() { + f.css("opacity", 1), this._core.trigger("loaded", { + element: f, + url: g + }, "lazy") + }, this)).attr("src", g) : (e = new Image, e.onload = a.proxy(function() { + f.css({ + "background-image": 'url("' + g + '")', + opacity: "1" + }), this._core.trigger("loaded", { + element: f, + url: g + }, "lazy") + }, this), e.src = g) + }, this)), this._loaded.push(d.get(0))) + }, e.prototype.destroy = function() { + var a, b; + for (a in this.handlers) this._core.$element.off(a, this.handlers[a]); + for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) + }, a.fn.owlCarousel.Constructor.Plugins.Lazy = e + }(window.Zepto || window.jQuery, window, document), + function(a, b, c, d) { + var e = function(b) { + this._core = b, this._handlers = { + "initialized.owl.carousel refreshed.owl.carousel": a.proxy(function(a) { + a.namespace && this._core.settings.autoHeight && this.update() + }, this), + "changed.owl.carousel": a.proxy(function(a) { + a.namespace && this._core.settings.autoHeight && "position" == a.property.name && this.update() + }, this), + "loaded.owl.lazy": a.proxy(function(a) { + a.namespace && this._core.settings.autoHeight && a.element.closest("." + this._core.settings.itemClass).index() === this._core.current() && this.update() + }, this) + }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) + }; + e.Defaults = { + autoHeight: !1, + autoHeightClass: "owl-height" + }, e.prototype.update = function() { + var b = this._core._current, + c = b + this._core.settings.items, + d = this._core.$stage.children().toArray().slice(b, c), + e = [], + f = 0; + a.each(d, function(b, c) { + e.push(a(c).height()) + }), f = Math.max.apply(null, e), this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass) + }, e.prototype.destroy = function() { + var a, b; + for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); + for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) + }, a.fn.owlCarousel.Constructor.Plugins.AutoHeight = e + }(window.Zepto || window.jQuery, window, document), + function(a, b, c, d) { + var e = function(b) { + this._core = b, this._videos = {}, this._playing = null, this._handlers = { + "initialized.owl.carousel": a.proxy(function(a) { + a.namespace && this._core.register({ + type: "state", + name: "playing", + tags: ["interacting"] + }) + }, this), + "resize.owl.carousel": a.proxy(function(a) { + a.namespace && this._core.settings.video && this.isInFullScreen() && a.preventDefault() + }, this), + "refreshed.owl.carousel": a.proxy(function(a) { + a.namespace && this._core.is("resizing") && this._core.$stage.find(".cloned .owl-video-frame").remove() + }, this), + "changed.owl.carousel": a.proxy(function(a) { + a.namespace && "position" === a.property.name && this._playing && this.stop() + }, this), + "prepared.owl.carousel": a.proxy(function(b) { + if (b.namespace) { + var c = a(b.content).find(".owl-video"); + c.length && (c.css("display", "none"), this.fetch(c, a(b.content))) + } + }, this) + }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers), this._core.$element.on("click.owl.video", ".owl-video-play-icon", a.proxy(function(a) { + this.play(a) + }, this)) + }; + e.Defaults = { + video: !1, + videoHeight: !1, + videoWidth: !1 + }, e.prototype.fetch = function(a, b) { + var c = function() { + return a.attr("data-vimeo-id") ? "vimeo" : a.attr("data-vzaar-id") ? "vzaar" : "youtube" + }(), + d = a.attr("data-vimeo-id") || a.attr("data-youtube-id") || a.attr("data-vzaar-id"), + e = a.attr("data-width") || this._core.settings.videoWidth, + f = a.attr("data-height") || this._core.settings.videoHeight, + g = a.attr("href"); + if (!g) throw new Error("Missing video URL."); + if (d = g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/), d[3].indexOf("youtu") > -1) c = "youtube"; + else if (d[3].indexOf("vimeo") > -1) c = "vimeo"; + else { + if (!(d[3].indexOf("vzaar") > -1)) throw new Error("Video URL not supported."); + c = "vzaar" + } + d = d[6], this._videos[g] = { + type: c, + id: d, + width: e, + height: f + }, b.attr("data-video", g), this.thumbnail(a, this._videos[g]) + }, e.prototype.thumbnail = function(b, c) { + var d, e, f, g = c.width && c.height ? 'style="width:' + c.width + "px;height:" + c.height + 'px;"' : "", + h = b.find("img"), + i = "src", + j = "", + k = this._core.settings, + l = function(a) { + e = '
      ', d = k.lazyLoad ? '
      ' : '
      ', b.after(d), b.after(e) + }; + if (b.wrap('
      "), this._core.settings.lazyLoad && (i = "data-src", j = "owl-lazy"), h.length) return l(h.attr(i)), h.remove(), !1; + "youtube" === c.type ? (f = "//img.youtube.com/vi/" + c.id + "/hqdefault.jpg", l(f)) : "vimeo" === c.type ? a.ajax({ + type: "GET", + url: "//vimeo.com/api/v2/video/" + c.id + ".json", + jsonp: "callback", + dataType: "jsonp", + success: function(a) { + f = a[0].thumbnail_large, l(f) + } + }) : "vzaar" === c.type && a.ajax({ + type: "GET", + url: "//vzaar.com/api/videos/" + c.id + ".json", + jsonp: "callback", + dataType: "jsonp", + success: function(a) { + f = a.framegrab_url, l(f) + } + }) + }, e.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, this._core.leave("playing"), this._core.trigger("stopped", null, "video") + }, e.prototype.play = function(b) { + var c, d = a(b.target), + e = d.closest("." + this._core.settings.itemClass), + f = this._videos[e.attr("data-video")], + g = f.width || "100%", + h = f.height || this._core.$stage.height(); + this._playing || (this._core.enter("playing"), this._core.trigger("play", null, "video"), e = this._core.items(this._core.relative(e.index())), this._core.reset(e.index()), "youtube" === f.type ? c = '' : "vimeo" === f.type ? c = '' : "vzaar" === f.type && (c = ''), a('
      ' + c + "
      ").insertAfter(e.find(".owl-video")), this._playing = e.addClass("owl-video-playing")) + }, e.prototype.isInFullScreen = function() { + var b = c.fullscreenElement || c.mozFullScreenElement || c.webkitFullscreenElement; + return b && a(b).parent().hasClass("owl-video-frame") + }, e.prototype.destroy = function() { + var a, b; + this._core.$element.off("click.owl.video"); + for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); + for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) + }, a.fn.owlCarousel.Constructor.Plugins.Video = e + }(window.Zepto || window.jQuery, window, document), + function(a, b, c, d) { + var e = function(b) { + this.core = b, this.core.options = a.extend({}, e.Defaults, this.core.options), this.swapping = !0, this.previous = d, this.next = d, this.handlers = { + "change.owl.carousel": a.proxy(function(a) { + a.namespace && "position" == a.property.name && (this.previous = this.core.current(), this.next = a.property.value) + }, this), + "drag.owl.carousel dragged.owl.carousel translated.owl.carousel": a.proxy(function(a) { + a.namespace && (this.swapping = "translated" == a.type) + }, this), + "translate.owl.carousel": a.proxy(function(a) { + a.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn) && this.swap() + }, this) + }, this.core.$element.on(this.handlers) + }; + e.Defaults = { + animateOut: !1, + animateIn: !1 + }, e.prototype.swap = function() { + if (1 === this.core.settings.items && a.support.animation && a.support.transition) { + this.core.speed(0); + var b, c = a.proxy(this.clear, this), + d = this.core.$stage.children().eq(this.previous), + e = this.core.$stage.children().eq(this.next), + f = this.core.settings.animateIn, + g = this.core.settings.animateOut; + this.core.current() !== this.previous && (g && (b = this.core.coordinates(this.previous) - this.core.coordinates(this.next), d.one(a.support.animation.end, c).css({ + left: b + "px" + }).addClass("animated owl-animated-out").addClass(g)), f && e.one(a.support.animation.end, c).addClass("animated owl-animated-in").addClass(f)) + } + }, e.prototype.clear = function(b) { + a(b.target).css({ + left: "" + }).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut), this.core.onTransitionEnd() + }, e.prototype.destroy = function() { + var a, b; + for (a in this.handlers) this.core.$element.off(a, this.handlers[a]); + for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) + }, + a.fn.owlCarousel.Constructor.Plugins.Animate = e + }(window.Zepto || window.jQuery, window, document), + function(a, b, c, d) { + var e = function(b) { + this._core = b, this._timeout = null, this._paused = !1, this._handlers = { + "changed.owl.carousel": a.proxy(function(a) { + a.namespace && "settings" === a.property.name ? this._core.settings.autoplay ? this.play() : this.stop() : a.namespace && "position" === a.property.name && this._core.settings.autoplay && this._setAutoPlayInterval() + }, this), + "initialized.owl.carousel": a.proxy(function(a) { + a.namespace && this._core.settings.autoplay && this.play() + }, this), + "play.owl.autoplay": a.proxy(function(a, b, c) { + a.namespace && this.play(b, c) + }, this), + "stop.owl.autoplay": a.proxy(function(a) { + a.namespace && this.stop() + }, this), + "mouseover.owl.autoplay": a.proxy(function() { + this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause() + }, this), + "mouseleave.owl.autoplay": a.proxy(function() { + this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.play() + }, this), + "touchstart.owl.core": a.proxy(function() { + this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause() + }, this), + "touchend.owl.core": a.proxy(function() { + this._core.settings.autoplayHoverPause && this.play() + }, this) + }, this._core.$element.on(this._handlers), this._core.options = a.extend({}, e.Defaults, this._core.options) + }; + e.Defaults = { + autoplay: !1, + autoplayTimeout: 5e3, + autoplayHoverPause: !1, + autoplaySpeed: !1 + }, e.prototype.play = function(a, b) { + this._paused = !1, this._core.is("rotating") || (this._core.enter("rotating"), this._setAutoPlayInterval()) + }, e.prototype._getNextTimeout = function(d, e) { + return this._timeout && b.clearTimeout(this._timeout), b.setTimeout(a.proxy(function() { + this._paused || this._core.is("busy") || this._core.is("interacting") || c.hidden || this._core.next(e || this._core.settings.autoplaySpeed) + }, this), d || this._core.settings.autoplayTimeout) + }, e.prototype._setAutoPlayInterval = function() { + this._timeout = this._getNextTimeout() + }, e.prototype.stop = function() { + this._core.is("rotating") && (b.clearTimeout(this._timeout), this._core.leave("rotating")) + }, e.prototype.pause = function() { + this._core.is("rotating") && (this._paused = !0) + }, e.prototype.destroy = function() { + var a, b; + this.stop(); + for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); + for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) + }, a.fn.owlCarousel.Constructor.Plugins.autoplay = e + }(window.Zepto || window.jQuery, window, document), + function(a, b, c, d) { + "use strict"; + var e = function(b) { + this._core = b, 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": a.proxy(function(b) { + b.namespace && this._core.settings.dotsData && this._templates.push('
      ' + a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot") + "
      ") + }, this), + "added.owl.carousel": a.proxy(function(a) { + a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 0, this._templates.pop()) + }, this), + "remove.owl.carousel": a.proxy(function(a) { + a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 1) + }, this), + "changed.owl.carousel": a.proxy(function(a) { + a.namespace && "position" == a.property.name && this.draw() + }, this), + "initialized.owl.carousel": a.proxy(function(a) { + a.namespace && !this._initialized && (this._core.trigger("initialize", null, "navigation"), this.initialize(), this.update(), this.draw(), this._initialized = !0, this._core.trigger("initialized", null, "navigation")) + }, this), + "refreshed.owl.carousel": a.proxy(function(a) { + a.namespace && this._initialized && (this._core.trigger("refresh", null, "navigation"), this.update(), this.draw(), this._core.trigger("refreshed", null, "navigation")) + }, this) + }, this._core.options = a.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers) + }; + e.Defaults = { + nav: !1, + 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, + dotsData: !1, + dotsSpeed: !1, + dotsContainer: !1 + }, e.prototype.initialize = function() { + var b, c = this._core.settings; + this._controls.$relative = (c.navContainer ? a(c.navContainer) : a("
      ").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"), this._controls.$previous = a("<" + c.navElement + ">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click", a.proxy(function(a) { + this.prev(c.navSpeed) + }, this)), this._controls.$next = a("<" + c.navElement + ">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click", a.proxy(function(a) { + this.next(c.navSpeed) + }, this)), c.dotsData || (this._templates = [a("
      ").addClass(c.dotClass).append(a("")).prop("outerHTML")]), this._controls.$absolute = (c.dotsContainer ? a(c.dotsContainer) : a("
      ").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"), this._controls.$absolute.on("click", "div", a.proxy(function(b) { + var d = a(b.target).parent().is(this._controls.$absolute) ? a(b.target).index() : a(b.target).parent().index(); + b.preventDefault(), this.to(d, c.dotsSpeed) + }, this)); + for (b in this._overrides) this._core[b] = a.proxy(this[b], this) + }, e.prototype.destroy = function() { + var a, b, c, d; + for (a in this._handlers) this.$element.off(a, this._handlers[a]); + for (b in this._controls) this._controls[b].remove(); + for (d in this.overides) this._core[d] = this._overrides[d]; + for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null) + }, e.prototype.update = function() { + var a, b, c, d = this._core.clones().length / 2, + e = d + this._core.items().length, + f = this._core.maximum(!0), + g = this._core.settings, + h = g.center || g.autoWidth || g.dotsData ? 1 : g.dotsEach || g.items; + if ("page" !== g.slideBy && (g.slideBy = Math.min(g.slideBy, g.items)), g.dots || "page" == g.slideBy) + for (this._pages = [], a = d, b = 0, c = 0; a < e; a++) { + if (b >= h || 0 === b) { + if (this._pages.push({ + start: Math.min(f, a - d), + end: a - d + h - 1 + }), Math.min(f, a - d) === f) break; + b = 0, ++c + } + b += this._core.mergers(this._core.relative(a)) + } + }, e.prototype.draw = function() { + var b, c = this._core.settings, + d = this._core.items().length <= c.items, + e = this._core.relative(this._core.current()), + f = c.loop || c.rewind; + this._controls.$relative.toggleClass("disabled", !c.nav || d), c.nav && (this._controls.$previous.toggleClass("disabled", !f && e <= this._core.minimum(!0)), this._controls.$next.toggleClass("disabled", !f && e >= this._core.maximum(!0))), this._controls.$absolute.toggleClass("disabled", !c.dots || d), c.dots && (b = this._pages.length - this._controls.$absolute.children().length, c.dotsData && 0 !== b ? this._controls.$absolute.html(this._templates.join("")) : b > 0 ? this._controls.$absolute.append(new Array(b + 1).join(this._templates[0])) : b < 0 && this._controls.$absolute.children().slice(b).remove(), this._controls.$absolute.find(".active").removeClass("active"), this._controls.$absolute.children().eq(a.inArray(this.current(), this._pages)).addClass("active")) + }, e.prototype.onTrigger = function(b) { + var c = this._core.settings; + b.page = { + index: a.inArray(this.current(), this._pages), + count: this._pages.length, + size: c && (c.center || c.autoWidth || c.dotsData ? 1 : c.dotsEach || c.items) + } + }, e.prototype.current = function() { + var b = this._core.relative(this._core.current()); + return a.grep(this._pages, a.proxy(function(a, c) { + return a.start <= b && a.end >= b + }, this)).pop() + }, e.prototype.getPosition = function(b) { + var c, d, e = this._core.settings; + return "page" == e.slideBy ? (c = a.inArray(this.current(), this._pages), d = this._pages.length, b ? ++c : --c, c = this._pages[(c % d + d) % d].start) : (c = this._core.relative(this._core.current()), d = this._core.items().length, b ? c += e.slideBy : c -= e.slideBy), c + }, e.prototype.next = function(b) { + a.proxy(this._overrides.to, this._core)(this.getPosition(!0), b) + }, e.prototype.prev = function(b) { + a.proxy(this._overrides.to, this._core)(this.getPosition(!1), b) + }, e.prototype.to = function(b, c, d) { + var e; + !d && this._pages.length ? (e = this._pages.length, a.proxy(this._overrides.to, this._core)(this._pages[(b % e + e) % e].start, c)) : a.proxy(this._overrides.to, this._core)(b, c) + }, a.fn.owlCarousel.Constructor.Plugins.Navigation = e + }(window.Zepto || window.jQuery, window, document), + function(a, b, c, d) { + "use strict"; + var e = function(c) { + this._core = c, this._hashes = {}, this.$element = this._core.$element, this._handlers = { + "initialized.owl.carousel": a.proxy(function(c) { + c.namespace && "URLHash" === this._core.settings.startPosition && a(b).trigger("hashchange.owl.navigation") + }, this), + "prepared.owl.carousel": a.proxy(function(b) { + if (b.namespace) { + var c = a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"); + if (!c) return; + this._hashes[c] = b.content + } + }, this), + "changed.owl.carousel": a.proxy(function(c) { + if (c.namespace && "position" === c.property.name) { + var d = this._core.items(this._core.relative(this._core.current())), + e = a.map(this._hashes, function(a, b) { + return a === d ? b : null + }).join(); + if (!e || b.location.hash.slice(1) === e) return; + b.location.hash = e + } + }, this) + }, this._core.options = a.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers), a(b).on("hashchange.owl.navigation", a.proxy(function(a) { + var c = b.location.hash.substring(1), + e = this._core.$stage.children(), + f = this._hashes[c] && e.index(this._hashes[c]); + f !== d && f !== this._core.current() && this._core.to(this._core.relative(f), !1, !0) + }, this)) + }; + e.Defaults = { + URLhashListener: !1 + }, e.prototype.destroy = function() { + var c, d; + a(b).off("hashchange.owl.navigation"); + for (c in this._handlers) this._core.$element.off(c, this._handlers[c]); + for (d in Object.getOwnPropertyNames(this)) "function" != typeof this[d] && (this[d] = null) + }, a.fn.owlCarousel.Constructor.Plugins.Hash = e + }(window.Zepto || window.jQuery, window, document), + function(a, b, c, d) { + function e(b, c) { + var e = !1, + f = b.charAt(0).toUpperCase() + b.slice(1); + return a.each((b + " " + h.join(f + " ") + f).split(" "), function(a, b) { + if (g[b] !== d) return e = !c || b, !1 + }), e + } + + function f(a) { + return e(a, !0) + } + var g = a("").get(0).style, + h = "Webkit Moz O ms".split(" "), + i = { + transition: { + end: { + WebkitTransition: "webkitTransitionEnd", + MozTransition: "transitionend", + OTransition: "oTransitionEnd", + transition: "transitionend" + } + }, + animation: { + end: { + WebkitAnimation: "webkitAnimationEnd", + MozAnimation: "animationend", + OAnimation: "oAnimationEnd", + animation: "animationend" + } + } + }, + j = { + csstransforms: function() { + return !!e("transform") + }, + csstransforms3d: function() { + return !!e("perspective") + }, + csstransitions: function() { + return !!e("transition") + }, + cssanimations: function() { + return !!e("animation") + } + }; + j.csstransitions() && (a.support.transition = new String(f("transition")), a.support.transition.end = i.transition.end[a.support.transition]), j.cssanimations() && (a.support.animation = new String(f("animation")), a.support.animation.end = i.animation.end[a.support.animation]), j.csstransforms() && (a.support.transform = new String(f("transform")), a.support.transform3d = j.csstransforms3d()) + }(window.Zepto || window.jQuery, window, document); diff --git a/assets/js/popper.min.js b/assets/js/popper.min.js index 0f20d2a..9884477 100755 --- a/assets/js/popper.min.js +++ b/assets/js/popper.min.js @@ -1,5 +1,844 @@ /* Copyright (C) Federico Zivolo 2017 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). - */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll)/.test(r+s+p)?e:n(o(e))}function r(e){var o=e&&e.offsetParent,i=o&&o.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(o.nodeName)&&'static'===t(o,'position')?r(o):o:e?e.ownerDocument.documentElement:document.documentElement}function p(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||r(e.firstElementChild)===e)}function s(e){return null===e.parentNode?e:s(e.parentNode)}function d(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,n=o?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(n,0);var l=a.commonAncestorContainer;if(e!==l&&t!==l||i.contains(n))return p(l)?l:r(l);var f=s(e);return f.host?d(f.host,t):d(e,s(t).host)}function a(e){var t=1=o.clientWidth&&i>=o.clientHeight}),l=0i[e]&&!t.escapeWithReference&&(n=_(p[o],i[e]-('right'===e?p.width:p.height))),pe({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';p=se({},p,s[t](e))}),e.offsets.popper=p,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,i=t.reference,n=e.placement.split('-')[0],r=X,p=-1!==['top','bottom'].indexOf(n),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]r(i[s])&&(e.offsets.popper[d]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var i;if(!F(e.instance.modifiers,'arrow','keepTogether'))return e;var n=o.element;if('string'==typeof n){if(n=e.instance.popper.querySelector(n),!n)return e;}else if(!e.instance.popper.contains(n))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',g=a?'bottom':'right',u=L(n)[l];d[g]-us[g]&&(e.offsets.popper[m]+=d[m]+u-s[g]),e.offsets.popper=c(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parseFloat(w['margin'+f],10),E=parseFloat(w['border'+f+'Width'],10),v=b-e.offsets.popper[m]-y-E;return v=J(_(s[l]-u,v),0),e.arrowElement=n,e.offsets.arrow=(i={},pe(i,m,Math.round(v)),pe(i,h,''),i),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(k(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=y(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=x(i),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case le.FLIP:p=[i,n];break;case le.CLOCKWISE:p=q(i);break;case le.COUNTERCLOCKWISE:p=q(i,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(i!==s||p.length===d+1)return e;i=e.placement.split('-')[0],n=x(i);var a=e.offsets.popper,l=e.offsets.reference,f=X,m='left'===i&&f(a.right)>f(l.left)||'right'===i&&f(a.left)f(l.top)||'bottom'===i&&f(a.top)f(o.right),g=f(a.top)f(o.bottom),b='left'===i&&h||'right'===i&&c||'top'===i&&g||'bottom'===i&&u,w=-1!==['top','bottom'].indexOf(i),y=!!t.flipVariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u);(m||b||y)&&(e.flipped=!0,(m||b)&&(i=p[d+1]),y&&(r=K(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=se({},e.offsets.popper,S(e.instance.popper,e.offsets.reference,e.placement)),e=C(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],i=e.offsets,n=i.popper,r=i.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return n[p?'left':'top']=r[o]-(s?n[p?'width':'height']:0),e.placement=x(t),e.offsets.popper=c(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!F(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=T(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottomo.right||t.top>o.bottom||t.right= o.clientWidth && i >= o.clientHeight + }), + l = 0 < a.length ? a[0].key : d[0].key, + f = e.split('-')[1]; + return l + (f ? '-' + f : '') + } + + function O(e, t, o) { + var i = d(t, o); + return u(o, i) + } + + function L(e) { + var t = getComputedStyle(e), + o = parseFloat(t.marginTop) + parseFloat(t.marginBottom), + i = parseFloat(t.marginLeft) + parseFloat(t.marginRight), + n = { + width: e.offsetWidth + i, + height: e.offsetHeight + o + }; + return n + } + + function x(e) { + var t = { + left: 'right', + right: 'left', + bottom: 'top', + top: 'bottom' + }; + return e.replace(/left|right|bottom|top/g, function(e) { + return t[e] + }) + } + + function S(e, t, o) { + o = o.split('-')[0]; + var i = L(e), + n = { + width: i.width, + height: i.height + }, + r = -1 !== ['right', 'left'].indexOf(o), + p = r ? 'top' : 'left', + s = r ? 'left' : 'top', + d = r ? 'height' : 'width', + a = r ? 'width' : 'height'; + return n[p] = t[p] + t[d] / 2 - i[d] / 2, n[s] = o === s ? t[s] - i[a] : t[x(s)], n + } + + function T(e, t) { + return Array.prototype.find ? e.find(t) : e.filter(t)[0] + } + + function D(e, t, o) { + if (Array.prototype.findIndex) return e.findIndex(function(e) { + return e[t] === o + }); + var i = T(e, function(e) { + return e[t] === o + }); + return e.indexOf(i) + } + + function C(t, o, i) { + var n = void 0 === i ? t : t.slice(0, D(t, 'name', i)); + return n.forEach(function(t) { + t['function'] && console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); + var i = t['function'] || t.fn; + t.enabled && e(i) && (o.offsets.popper = c(o.offsets.popper), o.offsets.reference = c(o.offsets.reference), o = i(o, t)) + }), o + } + + function N() { + if (!this.state.isDestroyed) { + var e = { + instance: this, + styles: {}, + arrowStyles: {}, + attributes: {}, + flipped: !1, + offsets: {} + }; + e.offsets.reference = O(this.state, this.popper, this.reference), e.placement = v(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.offsets.popper = S(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = 'absolute', e = C(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e)) + } + } + + function k(e, t) { + return e.some(function(e) { + var o = e.name, + i = e.enabled; + return i && o === t + }) + } + + function W(e) { + for (var t = [!1, 'ms', 'Webkit', 'Moz', 'O'], o = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < t.length - 1; n++) { + var i = t[n], + r = i ? '' + i + o : e; + if ('undefined' != typeof document.body.style[r]) return r + } + return null + } + + function P() { + return this.state.isDestroyed = !0, k(this.modifiers, 'applyStyle') && (this.popper.removeAttribute('x-placement'), this.popper.style.left = '', this.popper.style.position = '', this.popper.style.top = '', this.popper.style[W('transform')] = ''), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this + } + + function B(e) { + var t = e.ownerDocument; + return t ? t.defaultView : window + } + + function H(e, t, o, i) { + var r = 'BODY' === e.nodeName, + p = r ? e.ownerDocument.defaultView : e; + p.addEventListener(t, o, { + passive: !0 + }), r || H(n(p.parentNode), t, o, i), i.push(p) + } + + function A(e, t, o, i) { + o.updateBound = i, B(e).addEventListener('resize', o.updateBound, { + passive: !0 + }); + var r = n(e); + return H(r, 'scroll', o.updateBound, o.scrollParents), o.scrollElement = r, o.eventsEnabled = !0, o + } + + function I() { + this.state.eventsEnabled || (this.state = A(this.reference, this.options, this.state, this.scheduleUpdate)) + } + + function M(e, t) { + return B(e).removeEventListener('resize', t.updateBound), t.scrollParents.forEach(function(e) { + e.removeEventListener('scroll', t.updateBound) + }), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t + } + + function R() { + this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = M(this.reference, this.state)) + } + + function U(e) { + return '' !== e && !isNaN(parseFloat(e)) && isFinite(e) + } + + function Y(e, t) { + Object.keys(t).forEach(function(o) { + var i = ''; - 1 !== ['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(o) && U(t[o]) && (i = 'px'), e.style[o] = t[o] + i + }) + } + + function j(e, t) { + Object.keys(t).forEach(function(o) { + var i = t[o]; + !1 === i ? e.removeAttribute(o) : e.setAttribute(o, t[o]) + }) + } + + function F(e, t, o) { + var i = T(e, function(e) { + var o = e.name; + return o === t + }), + n = !!i && e.some(function(e) { + return e.name === o && e.enabled && e.order < i.order + }); + if (!n) { + var r = '`' + t + '`'; + console.warn('`' + o + '`' + ' modifier is required by ' + r + ' modifier in order to work, be sure to include it before ' + r + '!') + } + return n + } + + function K(e) { + return 'end' === e ? 'start' : 'start' === e ? 'end' : e + } + + function q(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] && arguments[1], + o = ae.indexOf(e), + i = ae.slice(o + 1).concat(ae.slice(0, o)); + return t ? i.reverse() : i + } + + function V(e, t, o, i) { + var n = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), + r = +n[1], + p = n[2]; + if (!r) return e; + if (0 === p.indexOf('%')) { + var s; + switch (p) { + case '%p': + s = o; + break; + case '%': + case '%r': + default: + s = i; + } + var d = c(s); + return d[t] / 100 * r + } + if ('vh' === p || 'vw' === p) { + var a; + return a = 'vh' === p ? J(document.documentElement.clientHeight, window.innerHeight || 0) : J(document.documentElement.clientWidth, window.innerWidth || 0), a / 100 * r + } + return r + } + + function z(e, t, o, i) { + var n = [0, 0], + r = -1 !== ['right', 'left'].indexOf(i), + p = e.split(/(\+|\-)/).map(function(e) { + return e.trim() + }), + s = p.indexOf(T(p, function(e) { + return -1 !== e.search(/,|\s/) + })); + p[s] && -1 === p[s].indexOf(',') && console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); + var d = /\s*,\s*|\s+/, + a = -1 === s ? [p] : [p.slice(0, s).concat([p[s].split(d)[0]]), [p[s].split(d)[1]].concat(p.slice(s + 1))]; + return a = a.map(function(e, i) { + var n = (1 === i ? !r : r) ? 'height' : 'width', + p = !1; + return e.reduce(function(e, t) { + return '' === e[e.length - 1] && -1 !== ['+', '-'].indexOf(t) ? (e[e.length - 1] = t, p = !0, e) : p ? (e[e.length - 1] += t, p = !1, e) : e.concat(t) + }, []).map(function(e) { + return V(e, n, t, o) + }) + }), a.forEach(function(e, t) { + e.forEach(function(o, i) { + U(o) && (n[t] += o * ('-' === e[i - 1] ? -1 : 1)) + }) + }), n + } + + function G(e, t) { + var o, i = t.offset, + n = e.placement, + r = e.offsets, + p = r.popper, + s = r.reference, + d = n.split('-')[0]; + return o = U(+i) ? [+i, 0] : z(i, p, s, d), 'left' === d ? (p.top += o[0], p.left -= o[1]) : 'right' === d ? (p.top += o[0], p.left += o[1]) : 'top' === d ? (p.left += o[0], p.top -= o[1]) : 'bottom' === d && (p.left += o[0], p.top += o[1]), e.popper = p, e + } + for (var _ = Math.min, X = Math.floor, J = Math.max, Q = 'undefined' != typeof window && 'undefined' != typeof document, Z = ['Edge', 'Trident', 'Firefox'], $ = 0, ee = 0; ee < Z.length; ee += 1) + if (Q && 0 <= navigator.userAgent.indexOf(Z[ee])) { + $ = 1; + break + } var i, te = Q && window.Promise, + oe = te ? function(e) { + var t = !1; + return function() { + t || (t = !0, window.Promise.resolve().then(function() { + t = !1, e() + })) + } + } : function(e) { + var t = !1; + return function() { + t || (t = !0, setTimeout(function() { + t = !1, e() + }, $)) + } + }, + ie = function() { + return void 0 == i && (i = -1 !== navigator.appVersion.indexOf('MSIE 10')), i + }, + ne = function(e, t) { + if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') + }, + re = function() { + function e(e, t) { + for (var o, n = 0; n < t.length; n++) o = t[n], o.enumerable = o.enumerable || !1, o.configurable = !0, 'value' in o && (o.writable = !0), Object.defineProperty(e, o.key, o) + } + return function(t, o, i) { + return o && e(t.prototype, o), i && e(t, i), t + } + }(), + pe = function(e, t, o) { + return t in e ? Object.defineProperty(e, t, { + value: o, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = o, e + }, + se = Object.assign || function(e) { + for (var t, o = 1; o < arguments.length; o++) + for (var i in t = arguments[o], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); + return e + }, + de = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'], + ae = de.slice(3), + le = { + FLIP: 'flip', + CLOCKWISE: 'clockwise', + COUNTERCLOCKWISE: 'counterclockwise' + }, + fe = function() { + function t(o, i) { + var n = this, + r = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}; + ne(this, t), this.scheduleUpdate = function() { + return requestAnimationFrame(n.update) + }, this.update = oe(this.update.bind(this)), this.options = se({}, t.Defaults, r), this.state = { + isDestroyed: !1, + isCreated: !1, + scrollParents: [] + }, this.reference = o && o.jquery ? o[0] : o, this.popper = i && i.jquery ? i[0] : i, this.options.modifiers = {}, Object.keys(se({}, t.Defaults.modifiers, r.modifiers)).forEach(function(e) { + n.options.modifiers[e] = se({}, t.Defaults.modifiers[e] || {}, r.modifiers ? r.modifiers[e] : {}) + }), this.modifiers = Object.keys(this.options.modifiers).map(function(e) { + return se({ + name: e + }, n.options.modifiers[e]) + }).sort(function(e, t) { + return e.order - t.order + }), this.modifiers.forEach(function(t) { + t.enabled && e(t.onLoad) && t.onLoad(n.reference, n.popper, n.options, t, n.state) + }), this.update(); + var p = this.options.eventsEnabled; + p && this.enableEventListeners(), this.state.eventsEnabled = p + } + return re(t, [{ + key: 'update', + value: function() { + return N.call(this) + } + }, { + key: 'destroy', + value: function() { + return P.call(this) + } + }, { + key: 'enableEventListeners', + value: function() { + return I.call(this) + } + }, { + key: 'disableEventListeners', + value: function() { + return R.call(this) + } + }]), t + }(); + return fe.Utils = ('undefined' == typeof window ? global : window).PopperUtils, fe.placements = de, fe.Defaults = { + placement: 'bottom', + eventsEnabled: !0, + removeOnDestroy: !1, + onCreate: function() { }, + onUpdate: function() { }, + modifiers: { + shift: { + order: 100, + enabled: !0, + fn: function(e) { + var t = e.placement, + o = t.split('-')[0], + i = t.split('-')[1]; + if (i) { + var n = e.offsets, + r = n.reference, + p = n.popper, + s = -1 !== ['bottom', 'top'].indexOf(o), + d = s ? 'left' : 'top', + a = s ? 'width' : 'height', + l = { + start: pe({}, d, r[d]), + end: pe({}, d, r[d] + r[a] - p[a]) + }; + e.offsets.popper = se({}, p, l[i]) + } + return e + } + }, + offset: { + order: 200, + enabled: !0, + fn: G, + offset: 0 + }, + preventOverflow: { + order: 300, + enabled: !0, + fn: function(e, t) { + var o = t.boundariesElement || r(e.instance.popper); + e.instance.reference === o && (o = r(o)); + var i = y(e.instance.popper, e.instance.reference, t.padding, o); + t.boundaries = i; + var n = t.priority, + p = e.offsets.popper, + s = { + primary: function(e) { + var o = p[e]; + return p[e] < i[e] && !t.escapeWithReference && (o = J(p[e], i[e])), pe({}, e, o) + }, + secondary: function(e) { + var o = 'right' === e ? 'left' : 'top', + n = p[o]; + return p[e] > i[e] && !t.escapeWithReference && (n = _(p[o], i[e] - ('right' === e ? p.width : p.height))), pe({}, o, n) + } + }; + return n.forEach(function(e) { + var t = -1 === ['left', 'top'].indexOf(e) ? 'secondary' : 'primary'; + p = se({}, p, s[t](e)) + }), e.offsets.popper = p, e + }, + priority: ['left', 'right', 'top', 'bottom'], + padding: 5, + boundariesElement: 'scrollParent' + }, + keepTogether: { + order: 400, + enabled: !0, + fn: function(e) { + var t = e.offsets, + o = t.popper, + i = t.reference, + n = e.placement.split('-')[0], + r = X, + p = -1 !== ['top', 'bottom'].indexOf(n), + s = p ? 'right' : 'bottom', + d = p ? 'left' : 'top', + a = p ? 'width' : 'height'; + return o[s] < r(i[d]) && (e.offsets.popper[d] = r(i[d]) - o[a]), o[d] > r(i[s]) && (e.offsets.popper[d] = r(i[s])), e + } + }, + arrow: { + order: 500, + enabled: !0, + fn: function(e, o) { + var i; + if (!F(e.instance.modifiers, 'arrow', 'keepTogether')) return e; + var n = o.element; + if ('string' == typeof n) { + if (n = e.instance.popper.querySelector(n), !n) return e; + } else if (!e.instance.popper.contains(n)) return console.warn('WARNING: `arrow.element` must be child of its popper element!'), e; + var r = e.placement.split('-')[0], + p = e.offsets, + s = p.popper, + d = p.reference, + a = -1 !== ['left', 'right'].indexOf(r), + l = a ? 'height' : 'width', + f = a ? 'Top' : 'Left', + m = f.toLowerCase(), + h = a ? 'left' : 'top', + g = a ? 'bottom' : 'right', + u = L(n)[l]; + d[g] - u < s[m] && (e.offsets.popper[m] -= s[m] - (d[g] - u)), d[m] + u > s[g] && (e.offsets.popper[m] += d[m] + u - s[g]), e.offsets.popper = c(e.offsets.popper); + var b = d[m] + d[l] / 2 - u / 2, + w = t(e.instance.popper), + y = parseFloat(w['margin' + f], 10), + E = parseFloat(w['border' + f + 'Width'], 10), + v = b - e.offsets.popper[m] - y - E; + return v = J(_(s[l] - u, v), 0), e.arrowElement = n, e.offsets.arrow = (i = {}, pe(i, m, Math.round(v)), pe(i, h, ''), i), e + }, + element: '[x-arrow]' + }, + flip: { + order: 600, + enabled: !0, + fn: function(e, t) { + if (k(e.instance.modifiers, 'inner')) return e; + if (e.flipped && e.placement === e.originalPlacement) return e; + var o = y(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement), + i = e.placement.split('-')[0], + n = x(i), + r = e.placement.split('-')[1] || '', + p = []; + switch (t.behavior) { + case le.FLIP: + p = [i, n]; + break; + case le.CLOCKWISE: + p = q(i); + break; + case le.COUNTERCLOCKWISE: + p = q(i, !0); + break; + default: + p = t.behavior; + } + return p.forEach(function(s, d) { + if (i !== s || p.length === d + 1) return e; + i = e.placement.split('-')[0], n = x(i); + var a = e.offsets.popper, + l = e.offsets.reference, + f = X, + m = 'left' === i && f(a.right) > f(l.left) || 'right' === i && f(a.left) < f(l.right) || 'top' === i && f(a.bottom) > f(l.top) || 'bottom' === i && f(a.top) < f(l.bottom), + h = f(a.left) < f(o.left), + c = f(a.right) > f(o.right), + g = f(a.top) < f(o.top), + u = f(a.bottom) > f(o.bottom), + b = 'left' === i && h || 'right' === i && c || 'top' === i && g || 'bottom' === i && u, + w = -1 !== ['top', 'bottom'].indexOf(i), + y = !!t.flipVariations && (w && 'start' === r && h || w && 'end' === r && c || !w && 'start' === r && g || !w && 'end' === r && u); + (m || b || y) && (e.flipped = !0, (m || b) && (i = p[d + 1]), y && (r = K(r)), e.placement = i + (r ? '-' + r : ''), e.offsets.popper = se({}, e.offsets.popper, S(e.instance.popper, e.offsets.reference, e.placement)), e = C(e.instance.modifiers, e, 'flip')) + }), e + }, + behavior: 'flip', + padding: 5, + boundariesElement: 'viewport' + }, + inner: { + order: 700, + enabled: !1, + fn: function(e) { + var t = e.placement, + o = t.split('-')[0], + i = e.offsets, + n = i.popper, + r = i.reference, + p = -1 !== ['left', 'right'].indexOf(o), + s = -1 === ['top', 'left'].indexOf(o); + return n[p ? 'left' : 'top'] = r[o] - (s ? n[p ? 'width' : 'height'] : 0), e.placement = x(t), e.offsets.popper = c(n), e + } + }, + hide: { + order: 800, + enabled: !0, + fn: function(e) { + if (!F(e.instance.modifiers, 'hide', 'preventOverflow')) return e; + var t = e.offsets.reference, + o = T(e.instance.modifiers, function(e) { + return 'preventOverflow' === e.name + }).boundaries; + if (t.bottom < o.top || t.left > o.right || t.top > o.bottom || t.right < o.left) { + if (!0 === e.hide) return e; + e.hide = !0, e.attributes['x-out-of-boundaries'] = '' + } else { + if (!1 === e.hide) return e; + e.hide = !1, e.attributes['x-out-of-boundaries'] = !1 + } + return e + } + }, + computeStyle: { + order: 850, + enabled: !0, + fn: function(e, t) { + var o = t.x, + i = t.y, + n = e.offsets.popper, + p = T(e.instance.modifiers, function(e) { + return 'applyStyle' === e.name + }).gpuAcceleration; + void 0 !== p && console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); + var s, d, a = void 0 === p ? t.gpuAcceleration : p, + l = r(e.instance.popper), + f = g(l), + m = { + position: n.position + }, + h = { + left: X(n.left), + top: X(n.top), + bottom: X(n.bottom), + right: X(n.right) + }, + c = 'bottom' === o ? 'top' : 'bottom', + u = 'right' === i ? 'left' : 'right', + b = W('transform'); + if (d = 'bottom' == c ? -f.height + h.bottom : h.top, s = 'right' == u ? -f.width + h.right : h.left, a && b) m[b] = 'translate3d(' + s + 'px, ' + d + 'px, 0)', m[c] = 0, m[u] = 0, m.willChange = 'transform'; + else { + var w = 'bottom' == c ? -1 : 1, + y = 'right' == u ? -1 : 1; + m[c] = d * w, m[u] = s * y, m.willChange = c + ', ' + u + } + var E = { + "x-placement": e.placement + }; + return e.attributes = se({}, E, e.attributes), e.styles = se({}, m, e.styles), e.arrowStyles = se({}, e.offsets.arrow, e.arrowStyles), e + }, + gpuAcceleration: !0, + x: 'bottom', + y: 'right' + }, + applyStyle: { + order: 900, + enabled: !0, + fn: function(e) { + return Y(e.instance.popper, e.styles), j(e.instance.popper, e.attributes), e.arrowElement && Object.keys(e.arrowStyles).length && Y(e.arrowElement, e.arrowStyles), e + }, + onLoad: function(e, t, o, i, n) { + var r = O(n, t, e), + p = v(o.placement, r, t, e, o.modifiers.flip.boundariesElement, o.modifiers.flip.padding); + return t.setAttribute('x-placement', p), Y(t, { + position: 'absolute' + }), o + }, + gpuAcceleration: void 0 + } + } + }, fe +}); //# sourceMappingURL=popper.min.js.map diff --git a/assets/js/slick.min.js b/assets/js/slick.min.js index 42172c2..f9c0156 100755 --- a/assets/js/slick.min.js +++ b/assets/js/slick.min.js @@ -1 +1,687 @@ -!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('', + nextArrow: '', + autoplay: !1, + autoplaySpeed: 3e3, + centerMode: !1, + centerPadding: "50px", + cssEase: "ease", + customPaging: function(e, t) { + return i('