!function(a,b){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("jquery")):a.jQueryBridget=b(a,a.jQuery)}(window,function(a,b){"use strict";function c(c,f,h){function i(a,b,d){var e,f="$()."+c+'("'+b+'")';return a.each(function(a,i){var j=h.data(i,c);if(!j)return void g(c+" not initialized. Cannot call methods, i.e. "+f);var k=j[b];if(!k||"_"==b.charAt(0))return void g(f+" is not a valid method");var l=k.apply(j,d);e=void 0===e?l:e}),void 0!==e?e:a}function j(a,b){a.each(function(a,d){var e=h.data(d,c);e?(e.option(b),e._init()):(e=new f(d,b),h.data(d,c,e))})}h=h||b||a.jQuery,h&&(f.prototype.option||(f.prototype.option=function(a){h.isPlainObject(a)&&(this.options=h.extend(!0,this.options,a))}),h.fn[c]=function(a){if("string"==typeof a){var b=e.call(arguments,1);return i(this,a,b)}return j(this,a),this},d(h))}function d(a){!a||a&&a.bridget||(a.bridget=c)}var e=Array.prototype.slice,f=a.console,g="undefined"==typeof f?function(){}:function(a){f.error(a)};return d(b||a.jQuery),c}),function(a,b){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",b):"object"==typeof module&&module.exports?module.exports=b():a.EvEmitter=b()}("undefined"!=typeof window?window:this,function(){function a(){}var b=a.prototype;return b.on=function(a,b){if(a&&b){var c=this._events=this._events||{},d=c[a]=c[a]||[];return-1==d.indexOf(b)&&d.push(b),this}},b.once=function(a,b){if(a&&b){this.on(a,b);var c=this._onceEvents=this._onceEvents||{},d=c[a]=c[a]||{};return d[b]=!0,this}},b.off=function(a,b){var c=this._events&&this._events[a];if(c&&c.length){var d=c.indexOf(b);return-1!=d&&c.splice(d,1),this}},b.emitEvent=function(a,b){var c=this._events&&this._events[a];if(c&&c.length){c=c.slice(0),b=b||[];for(var d=this._onceEvents&&this._onceEvents[a],e=0;eb;b++){var c=i[b];a[c]=0}return a}function d(a){var b=getComputedStyle(a);return b||h("Style returned "+b+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),b}function e(){if(!k){k=!0;var b=document.createElement("div");b.style.width="200px",b.style.padding="1px 2px 3px 4px",b.style.borderStyle="solid",b.style.borderWidth="1px 2px 3px 4px",b.style.boxSizing="border-box";var c=document.body||document.documentElement;c.appendChild(b);var e=d(b);f.isBoxSizeOuter=g=200==a(e.width),c.removeChild(b)}}function f(b){if(e(),"string"==typeof b&&(b=document.querySelector(b)),b&&"object"==typeof b&&b.nodeType){var f=d(b);if("none"==f.display)return c();var h={};h.width=b.offsetWidth,h.height=b.offsetHeight;for(var k=h.isBorderBox="border-box"==f.boxSizing,l=0;j>l;l++){var m=i[l],n=f[m],o=parseFloat(n);h[m]=isNaN(o)?0:o}var p=h.paddingLeft+h.paddingRight,q=h.paddingTop+h.paddingBottom,r=h.marginLeft+h.marginRight,s=h.marginTop+h.marginBottom,t=h.borderLeftWidth+h.borderRightWidth,u=h.borderTopWidth+h.borderBottomWidth,v=k&&g,w=a(f.width);w!==!1&&(h.width=w+(v?0:p+t));var x=a(f.height);return x!==!1&&(h.height=x+(v?0:q+u)),h.innerWidth=h.width-(p+t),h.innerHeight=h.height-(q+u),h.outerWidth=h.width+r,h.outerHeight=h.height+s,h}}var g,h="undefined"==typeof console?b:function(a){console.error(a)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],j=i.length,k=!1;return f}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",b):"object"==typeof module&&module.exports?module.exports=b():a.matchesSelector=b()}(window,function(){"use strict";var a=function(){var a=window.Element.prototype;if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0;c1&&(a=b.modulo(a,this.slideableWidth),a-=this.slideableWidth,this.shiftWrapCells(a)),a+=this.cursorPosition,a=this.options.rightToLeft&&f?-a:a;var c=this.getPositionValue(a);this.slider.style[f]=this.isAnimating?"translate3d("+c+",0,0)":"translateX("+c+")";var d=this.slides[0];if(d){var e=-this.x-d.target,g=e/this.slidesWidth;this.dispatchEvent("scroll",null,[g,e])}},e.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.positionSlider())},e.getPositionValue=function(a){return this.options.percentPosition?.01*Math.round(a/this.size.innerWidth*1e4)+"%":Math.round(a)+"px"},e.settle=function(a){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*a)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle"))},e.shiftWrapCells=function(a){var b=this.cursorPosition+a;this._shiftCells(this.beforeShiftCells,b,-1);var c=this.size.innerWidth-(a+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,c,1)},e._shiftCells=function(a,b,c){for(var d=0;d0?c:0;e.wrapShift(f),b-=e.size.outerWidth}},e._unshiftCells=function(a){if(a&&a.length)for(var b=0;b0){var c=this.cells[a-1];b=c.x+c.size.outerWidth}for(var d=this.cells.length,e=a;d>e;e++){var f=this.cells[e];f.setPosition(b),b+=f.size.outerWidth,this.maxCellHeight=Math.max(f.size.outerHeight,this.maxCellHeight)}this.slideableWidth=b,this.updateSlides(),this._containSlides(),this.slidesWidth=d?this.getLastSlide().target-this.slides[0].target:0},o._sizeCells=function(a){a.forEach(function(a){a.getSize()})},o.updateSlides=function(){if(this.slides=[],this.cells.length){var a=new f(this);this.slides.push(a);var b="left"==this.originSide,c=b?"marginRight":"marginLeft",d=this._getCanCellFit();this.cells.forEach(function(b,e){if(!a.cells.length)return void a.addCell(b);var g=a.outerWidth-a.firstMargin+(b.size.outerWidth-b.size[c]);d.call(this,e,g)?a.addCell(b):(a.updateTarget(),a=new f(this),this.slides.push(a),a.addCell(b))},this),a.updateTarget(),this.updateSelectedSlide()}},o._getCanCellFit=function(){var a=this.options.groupCells;if(!a)return function(){return!1};if("number"==typeof a){var b=parseInt(a,10);return function(a){return a%b!==0}}var c="string"==typeof a&&a.match(/^(\d+)%$/),d=c?parseInt(c[1],10)/100:1;return function(a,b){return b<=(this.size.innerWidth+1)*d}},o._init=o.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},o.getSize=function(){this.size=c(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var p={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return o.setCellAlign=function(){var a=p[this.options.cellAlign];this.cellAlign=a?a[this.originSide]:this.options.cellAlign},o.setGallerySize=function(){if(this.options.setGallerySize){var a=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=a+"px"}},o._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var a=this.cursorPosition,b=this.cells.length-1;this.beforeShiftCells=this._getGapCells(a,b,-1),a=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(a,0,1)}},o._getGapCells=function(a,b,c){for(var d=[];a>0;){var e=this.cells[b];if(!e)break;d.push(e),b+=c,a-=e.size.outerWidth}return d},o._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var a=this.options.rightToLeft,b=a?"marginRight":"marginLeft",c=a?"marginLeft":"marginRight",d=this.slideableWidth-this.getLastCell().size[c],e=d1;if(!c)return a;var e=d.modulo(a,b),f=Math.abs(e-this.selectedIndex),g=Math.abs(e+b-this.selectedIndex),h=Math.abs(e-b-this.selectedIndex);!this.isDragSelect&&f>g?a+=b:!this.isDragSelect&&f>h&&(a-=b),0>a?this.x-=this.slideableWidth:a>=b&&(this.x+=this.slideableWidth)},o.previous=function(a,b){this.select(this.selectedIndex-1,a,b)},o.next=function(a,b){this.select(this.selectedIndex+1,a,b)},o.updateSelectedSlide=function(){var a=this.slides[this.selectedIndex];a&&(this.unselectSelectedSlide(),this.selectedSlide=a,a.select(),this.selectedCells=a.cells,this.selectedElements=a.getCellElements(),this.selectedCell=a.cells[0],this.selectedElement=this.selectedElements[0])},o.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},o.selectCell=function(a,b,c){var d;"number"==typeof a?d=this.cells[a]:("string"==typeof a&&(a=this.element.querySelector(a)),d=this.getCell(a));for(var e=0;d&&e *"),this.getCell(a))},o.getAdjacentCellElements=function(a,b){if(!a)return this.selectedSlide.getCellElements();b=void 0===b?this.selectedIndex:b;var c=this.slides.length;if(1+2*a>=c)return this.getCellElements();for(var e=[],f=b-a;b+a>=f;f++){var g=this.options.wrapAround?d.modulo(f,c):f,h=this.slides[g];h&&(e=e.concat(h.getCellElements()))}return e},o.uiChange=function(){this.emitEvent("uiChange")},o.childUIPointerDown=function(a){this.emitEvent("childUIPointerDown",[a])},o.onresize=function(){this.watchCSS(),this.resize()},d.debounceMethod(i,"onresize",150),o.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=d.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var a=this.selectedElements&&this.selectedElements[0];this.selectCell(a,!1,!0)}},o.watchCSS=function(){var a=this.options.watchCSS;if(a){var b=k(this.element,":after").content;-1!=b.indexOf("flickity")?this.activate():this.deactivate()}},o.onkeydown=function(a){if(this.options.accessibility&&(!document.activeElement||document.activeElement==this.element))if(37==a.keyCode){var b=this.options.rightToLeft?"next":"previous";this.uiChange(),this[b]()}else if(39==a.keyCode){var c=this.options.rightToLeft?"previous":"next";this.uiChange(),this[c]()}},o.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.cells.forEach(function(a){a.destroy()}),this.unselectSelectedSlide(),this.element.removeChild(this.viewport),h(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},o.destroy=function(){this.deactivate(),a.removeEventListener("resize",this),this.emitEvent("destroy"),j&&this.$element&&j.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete n[this.guid]},d.extend(o,g),i.data=function(a){a=d.getQueryElement(a);var b=a&&a.flickityGUID;return b&&n[b]},d.htmlInit(i,"flickity"),j&&j.bridget&&j.bridget("flickity",i),i.setJQuery=function(a){j=a},i.Cell=e,i}),function(a,b){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("ev-emitter")):a.Unipointer=b(a,a.EvEmitter)}(window,function(a,b){function c(){}function d(){}var e=d.prototype=Object.create(b.prototype);e.bindStartEvent=function(a){this._bindStartEvent(a,!0)},e.unbindStartEvent=function(a){this._bindStartEvent(a,!1)},e._bindStartEvent=function(b,c){c=void 0===c?!0:!!c;var d=c?"addEventListener":"removeEventListener";a.PointerEvent?b[d]("pointerdown",this):(b[d]("mousedown",this),b[d]("touchstart",this))},e.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},e.getTouch=function(a){for(var b=0;b3||Math.abs(a.y)>3},d.pointerUp=function(a,b){this.emitEvent("pointerUp",[a,b]),this._dragPointerUp(a,b)},d._dragPointerUp=function(a,b){this.isDragging?this._dragEnd(a,b):this._staticClick(a,b)},d._dragStart=function(a,c){this.isDragging=!0,this.dragStartPoint=b.getPointerPoint(c),this.isPreventingClicks=!0,this.dragStart(a,c)},d.dragStart=function(a,b){this.emitEvent("dragStart",[a,b])},d._dragMove=function(a,b,c){this.isDragging&&this.dragMove(a,b,c)},d.dragMove=function(a,b,c){a.preventDefault(),this.emitEvent("dragMove",[a,b,c])},d._dragEnd=function(a,b){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(a,b)},d.dragEnd=function(a,b){this.emitEvent("dragEnd",[a,b])},d.onclick=function(a){this.isPreventingClicks&&a.preventDefault()},d._staticClick=function(a,b){if(!this.isIgnoringMouseUp||"mouseup"!=a.type){var c=a.target.nodeName;"INPUT"!=c&&"TEXTAREA"!=c||a.target.focus(),this.staticClick(a,b),"mouseup"!=a.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400))}},d.staticClick=function(a,b){this.emitEvent("staticClick",[a,b])},c.getPointerPoint=b.getPointerPoint,c}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(c,d,e){return b(a,c,d,e)}):"object"==typeof module&&module.exports?module.exports=b(a,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):a.Flickity=b(a,a.Flickity,a.Unidragger,a.fizzyUIUtils)}(window,function(a,b,c,d){function e(a){var b="touchstart"==a.type,c="touch"==a.pointerType,d=l[a.target.nodeName];return b||c||d}function f(){return{x:a.pageXOffset,y:a.pageYOffset}}d.extend(b.defaults,{draggable:!0,dragThreshold:3}),b.createMethods.push("_createDrag");var g=b.prototype;d.extend(g,c.prototype),g._touchActionValue="pan-y";var h="createTouch"in document,i=!1;g._createDrag=function(){this.on("activate",this.bindDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.unbindDrag),h&&!i&&(a.addEventListener("touchmove",function(){}),i=!0)},g.bindDrag=function(){this.options.draggable&&!this.isDragBound&&(this.element.classList.add("is-draggable"),this.handles=[this.viewport],this.bindHandles(),this.isDragBound=!0)},g.unbindDrag=function(){this.isDragBound&&(this.element.classList.remove("is-draggable"),this.unbindHandles(),delete this.isDragBound)},g._uiChangeDrag=function(){delete this.isFreeScrolling},g._childUIPointerDownDrag=function(a){a.preventDefault(),this.pointerDownFocus(a)};var j={TEXTAREA:!0,INPUT:!0,OPTION:!0},k={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};g.pointerDown=function(b,c){var d=j[b.target.nodeName]&&!k[b.target.type];if(d)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(b,c);var e=document.activeElement;e&&e.blur&&e!=this.element&&e!=document.body&&e.blur(),this.pointerDownFocus(b),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this._bindPostStartEvents(b),this.pointerDownScroll=f(),a.addEventListener("scroll",this),this.dispatchEvent("pointerDown",b,[c])},g.pointerDownFocus=function(b){var c=e(b);if(this.options.accessibility&&!c){var d=a.pageYOffset;this.element.focus(),a.pageYOffset!=d&&a.scrollTo(a.pageXOffset,d)}};var l={INPUT:!0,SELECT:!0};return g.canPreventDefaultOnPointerDown=function(a){var b=e(a);return!b},g.hasDragStarted=function(a){return Math.abs(a.x)>this.options.dragThreshold},g.pointerUp=function(a,b){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",a,[b]),this._dragPointerUp(a,b)},g.pointerDone=function(){a.removeEventListener("scroll",this),delete this.pointerDownScroll},g.dragStart=function(b,c){this.dragStartPosition=this.x,this.startAnimation(),a.removeEventListener("scroll",this),this.dispatchEvent("dragStart",b,[c])},g.pointerMove=function(a,b){var c=this._dragPointerMove(a,b);this.dispatchEvent("pointerMove",a,[b,c]),this._dragMove(a,b,c)},g.dragMove=function(a,b,c){a.preventDefault(),this.previousDragX=this.dragX;var d=this.options.rightToLeft?-1:1,e=this.dragStartPosition+c.x*d;if(!this.options.wrapAround&&this.slides.length){var f=Math.max(-this.slides[0].target,this.dragStartPosition);e=e>f?.5*(e+f):e;var g=Math.min(-this.getLastSlide().target,this.dragStartPosition);e=g>e?.5*(e+g):e}this.dragX=e,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",a,[b,c])},g.dragEnd=function(a,b){this.options.freeScroll&&(this.isFreeScrolling=!0);var c=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var d=this.getRestingPosition();this.isFreeScrolling=-d>this.slides[0].target&&-d=a}:function(a,b){return b>a};f(b,e)&&(d+=c,e=b,b=this.getSlideDistance(-a,d),null!==b);)b=Math.abs(b);return{distance:e,index:d-c}},g.getSlideDistance=function(a,b){var c=this.slides.length,e=this.options.wrapAround&&c>1,f=e?d.modulo(b,c):b,g=this.slides[f];if(!g)return null;var h=e?this.slideableWidth*Math.floor(b/c):0;return a-(g.target+h)},g.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var a=this.getSlideDistance(-this.dragX,this.selectedIndex),b=this.previousDragX-this.dragX;return a>0&&b>0?1:0>a&&0>b?-1:0},g.staticClick=function(a,b){var c=this.getParentCell(a.target),d=c&&c.element,e=c&&this.cells.indexOf(c);this.dispatchEvent("staticClick",a,[b,d,e])},g.onscroll=function(){var a=f(),b=this.pointerDownScroll.x-a.x,c=this.pointerDownScroll.y-a.y;(Math.abs(b)>3||Math.abs(c)>3)&&this._pointerDone()},b}),function(a,b){"function"==typeof define&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("unipointer")):a.TapListener=b(a,a.Unipointer)}(window,function(a,b){function c(a){this.bindTap(a)}var d=c.prototype=Object.create(b.prototype);return d.bindTap=function(a){a&&(this.unbindTap(),this.tapElement=a,this._bindStartEvent(a,!0))},d.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},d.pointerUp=function(c,d){if(!this.isIgnoringMouseUp||"mouseup"!=c.type){var e=b.getPointerPoint(d),f=this.tapElement.getBoundingClientRect(),g=a.pageXOffset,h=a.pageYOffset,i=e.x>=f.left+g&&e.x<=f.right+g&&e.y>=f.top+h&&e.y<=f.bottom+h;if(i&&this.emitEvent("tap",[c,d]),"mouseup"!=c.type){this.isIgnoringMouseUp=!0;var j=this;setTimeout(function(){delete j.isIgnoringMouseUp},400)}}},d.destroy=function(){this.pointerDone(),this.unbindTap()},c}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(c,d,e){return b(a,c,d,e)}):"object"==typeof module&&module.exports?module.exports=b(a,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):b(a,a.Flickity,a.TapListener,a.fizzyUIUtils)}(window,function(a,b,c,d){"use strict";function e(a,b){this.direction=a,this.parent=b,this._create()}function f(a){return"string"==typeof a?a:"M "+a.x0+",50 L "+a.x1+","+(a.y1+50)+" L "+a.x2+","+(a.y2+50)+" L "+a.x3+",50 L "+a.x2+","+(50-a.y2)+" L "+a.x1+","+(50-a.y1)+" Z"}var g="http://www.w3.org/2000/svg";e.prototype=new c,e.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var a=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==a;var b=this.element=document.createElement("button");b.className="flickity-prev-next-button",b.className+=this.isPrevious?" previous":" next",b.setAttribute("type","button"),this.disable(),b.setAttribute("aria-label",this.isPrevious?"previous":"next");var c=this.createSVG();b.appendChild(c),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},e.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},e.prototype.deactivate=function(){this.parent.element.removeChild(this.element),c.prototype.destroy.call(this),this.element.removeEventListener("click",this)},e.prototype.createSVG=function(){var a=document.createElementNS(g,"svg");a.setAttribute("viewBox","0 0 100 100");var b=document.createElementNS(g,"path"),c=f(this.parent.options.arrowShape);return b.setAttribute("d",c),b.setAttribute("class","arrow"),this.isLeft||b.setAttribute("transform","translate(100, 100) rotate(180) "),a.appendChild(b),a},e.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var a=this.isPrevious?"previous":"next";this.parent[a]()}},e.prototype.handleEvent=d.handleEvent,e.prototype.onclick=function(){var a=document.activeElement;a&&a==this.element&&this.onTap()},e.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},e.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},e.prototype.update=function(){var a=this.parent.slides;if(this.parent.options.wrapAround&&a.length>1)return void this.enable();var b=a.length?a.length-1:0,c=this.isPrevious?0:b,d=this.parent.selectedIndex==c?"disable":"enable";this[d]()},e.prototype.destroy=function(){this.deactivate()},d.extend(b.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),b.createMethods.push("_createPrevNextButtons");var h=b.prototype;return h._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new e(-1,this),this.nextButton=new e(1,this),this.on("activate",this.activatePrevNextButtons))},h.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},h.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},b.PrevNextButton=e,b}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(c,d,e){return b(a,c,d,e)}):"object"==typeof module&&module.exports?module.exports=b(a,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):b(a,a.Flickity,a.TapListener,a.fizzyUIUtils)}(window,function(a,b,c,d){function e(a){this.parent=a,this._create()}e.prototype=new c,e.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},e.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},e.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),c.prototype.destroy.call(this)},e.prototype.setDots=function(){var a=this.parent.slides.length-this.dots.length;a>0?this.addDots(a):0>a&&this.removeDots(-a)},e.prototype.addDots=function(a){for(var b=document.createDocumentFragment(),c=[];a;){var d=document.createElement("li");d.className="dot",b.appendChild(d),c.push(d),a--}this.holder.appendChild(b),this.dots=this.dots.concat(c)},e.prototype.removeDots=function(a){var b=this.dots.splice(this.dots.length-a,a);b.forEach(function(a){this.holder.removeChild(a)},this)},e.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot"),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected")},e.prototype.onTap=function(a){var b=a.target;if("LI"==b.nodeName){this.parent.uiChange();var c=this.dots.indexOf(b);this.parent.select(c)}},e.prototype.destroy=function(){this.deactivate()},b.PageDots=e,d.extend(b.defaults,{pageDots:!0}),b.createMethods.push("_createPageDots");var f=b.prototype;return f._createPageDots=function(){this.options.pageDots&&(this.pageDots=new e(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},f.activatePageDots=function(){this.pageDots.activate()},f.updateSelectedPageDots=function(){this.pageDots.updateSelected()},f.updatePageDots=function(){this.pageDots.setDots()},f.deactivatePageDots=function(){this.pageDots.deactivate()},b.PageDots=e,b}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(a,c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):b(a.EvEmitter,a.fizzyUIUtils,a.Flickity)}(window,function(a,b,c){function d(a){this.parent=a,this.state="stopped",f&&(this.onVisibilityChange=function(){this.visibilityChange()}.bind(this),this.onVisibilityPlay=function(){this.visibilityPlay()}.bind(this))}var e,f;"hidden"in document?(e="hidden",f="visibilitychange"):"webkitHidden"in document&&(e="webkitHidden",f="webkitvisibilitychange"),d.prototype=Object.create(a.prototype),d.prototype.play=function(){if("playing"!=this.state){var a=document[e];if(f&&a)return void document.addEventListener(f,this.onVisibilityPlay);this.state="playing",f&&document.addEventListener(f,this.onVisibilityChange),this.tick()}},d.prototype.tick=function(){if("playing"==this.state){var a=this.parent.options.autoPlay;a="number"==typeof a?a:3e3;var b=this;this.clear(),this.timeout=setTimeout(function(){b.parent.next(!0),b.tick()},a)}},d.prototype.stop=function(){this.state="stopped",this.clear(),f&&document.removeEventListener(f,this.onVisibilityChange)},d.prototype.clear=function(){clearTimeout(this.timeout)},d.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},d.prototype.unpause=function(){"paused"==this.state&&this.play()},d.prototype.visibilityChange=function(){var a=document[e];this[a?"pause":"unpause"]()},d.prototype.visibilityPlay=function(){this.play(),document.removeEventListener(f,this.onVisibilityPlay)},b.extend(c.defaults,{pauseAutoPlayOnHover:!0}),c.createMethods.push("_createPlayer");var g=c.prototype;return g._createPlayer=function(){this.player=new d(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},g.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},g.playPlayer=function(){this.player.play()},g.stopPlayer=function(){this.player.stop()},g.pausePlayer=function(){this.player.pause()},g.unpausePlayer=function(){this.player.unpause()},g.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},g.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},g.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},c.Player=d,c}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("./flickity"),require("fizzy-ui-utils")):b(a,a.Flickity,a.fizzyUIUtils)}(window,function(a,b,c){function d(a){var b=document.createDocumentFragment();return a.forEach(function(a){b.appendChild(a.element)}),b}var e=b.prototype;return e.insert=function(a,b){var c=this._makeCells(a);if(c&&c.length){var e=this.cells.length;b=void 0===b?e:b;var f=d(c),g=b==e;if(g)this.slider.appendChild(f);else{var h=this.cells[b].element;this.slider.insertBefore(f,h)}if(0===b)this.cells=c.concat(this.cells);else if(g)this.cells=this.cells.concat(c);else{var i=this.cells.splice(b,e-b);this.cells=this.cells.concat(c).concat(i)}this._sizeCells(c);var j=b>this.selectedIndex?0:c.length;this._cellAddedRemoved(b,j)}},e.append=function(a){this.insert(a,this.cells.length)},e.prepend=function(a){this.insert(a,0)},e.remove=function(a){var b,d,e=this.getCells(a),f=0,g=e.length;for(b=0;g>b;b++){d=e[b];var h=this.cells.indexOf(d)b;b++)d=e[b],d.remove(),c.removeFrom(this.cells,d);e.length&&this._cellAddedRemoved(0,f)},e._cellAddedRemoved=function(a,b){b=b||0,this.selectedIndex+=b,this.selectedIndex=Math.max(0,Math.min(this.slides.length-1,this.selectedIndex)),this.cellChange(a,!0),this.emitEvent("cellAddedRemoved",[a,b])},e.cellSizeChange=function(a){var b=this.getCell(a);if(b){b.getSize();var c=this.cells.indexOf(b);this.cellChange(c)}},e.cellChange=function(a,b){var c=this.slideableWidth;if(this._positionCells(a),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("cellChange",[a]),this.options.freeScroll){var d=c-this.slideableWidth;this.x+=d*this.cellAlign,this.positionSlider()}else b&&this.positionSliderAtSelected(),this.select(this.selectedIndex)},b}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("./flickity"),require("fizzy-ui-utils")):b(a,a.Flickity,a.fizzyUIUtils)}(window,function(a,b,c){"use strict";function d(a){if("IMG"==a.nodeName&&a.getAttribute("data-flickity-lazyload"))return[a];var b=a.querySelectorAll("img[data-flickity-lazyload]");return c.makeArray(b)}function e(a,b){this.img=a,this.flickity=b,this.load()}b.createMethods.push("_createLazyload");var f=b.prototype;return f._createLazyload=function(){this.on("select",this.lazyLoad)},f.lazyLoad=function(){var a=this.options.lazyLoad;if(a){var b="number"==typeof a?a:0,c=this.getAdjacentCellElements(b),f=[];c.forEach(function(a){var b=d(a);f=f.concat(b)}),f.forEach(function(a){new e(a,this)},this)}},e.prototype.handleEvent=c.handleEvent,e.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.img.getAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload")},e.prototype.onload=function(a){this.complete(a,"flickity-lazyloaded")},e.prototype.onerror=function(a){this.complete(a,"flickity-lazyerror")},e.prototype.complete=function(a,b){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var c=this.flickity.getParentCell(this.img),d=c&&c.element;this.flickity.cellSizeChange(d),this.img.classList.add(b),this.flickity.dispatchEvent("lazyLoad",a,d)},b.LazyLoader=e,b}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],b):"object"==typeof module&&module.exports&&(module.exports=b(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(a){return a}),function(a,b){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],b):"object"==typeof module&&module.exports?module.exports=b(require("flickity"),require("fizzy-ui-utils")):a.Flickity=b(a.Flickity,a.fizzyUIUtils)}(window,function(a,b){function c(a,b,c){return(b-a)*c+a}a.createMethods.push("_createAsNavFor");var d=a.prototype;return d._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var a=this.options.asNavFor;if(a){var b=this;setTimeout(function(){b.setNavCompanion(a)})}},d.setNavCompanion=function(c){c=b.getQueryElement(c);var d=a.data(c);if(d&&d!=this){this.navCompanion=d;var e=this;this.onNavCompanionSelect=function(){e.navCompanionSelect()},d.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},d.navCompanionSelect=function(a){if(this.navCompanion){var b=this.navCompanion.selectedCells[0],d=this.navCompanion.cells.indexOf(b),e=d+this.navCompanion.selectedCells.length-1,f=Math.floor(c(d,e,this.navCompanion.cellAlign));if(this.selectCell(f,!1,a),this.removeNavSelectedElements(),!(f>=this.cells.length)){var g=this.cells.slice(d,e+1);this.navSelectedElements=g.map(function(a){return a.element}),this.changeNavSelectedClass("add")}}},d.changeNavSelectedClass=function(a){this.navSelectedElements.forEach(function(b){b.classList[a]("is-nav-selected")})},d.activateAsNavFor=function(){this.navCompanionSelect(!0)},d.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},d.onNavStaticClick=function(a,b,c,d){"number"==typeof d&&this.navCompanion.selectCell(d)},d.deactivateAsNavFor=function(){this.removeNavSelectedElements()},d.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},a}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("ev-emitter")):a.imagesLoaded=b(a,a.EvEmitter)}("undefined"!=typeof window?window:this,function(a,b){function c(a,b){for(var c in b)a[c]=b[c];return a}function d(a){var b=[];if(Array.isArray(a))b=a;else if("number"==typeof a.length)for(var c=0;c