1(window.loftWebpackJsonp=window.loftWebpackJsonp||[]).push([[0],[,(function(module,exports,__webpack_require__){(function(global){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}/*! 2 * eventslibjs v1.2.0 3 * A tiny event delegation helper library. 4 * (c) 2019 Chris Ferdinandi 5 * MIT License 6 * http://github.com/cferdinandi/events 7 */(function(root,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=(function(){return factory(root)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)})(typeof global!="undefined"?global:typeof window!="undefined"?window:this,function(window2){"use strict";var publicAPIs={},activeEvents={},getIndex=function(arr,selector,callback){for(var i=0;i<arr.length;i++)if(arr[i].selector===selector&&arr[i].callback.toString()===callback.toString())return i;return-1},doRun=function(target,selector){return["*","window","document","document.documentElement",window2,document,document.documentElement].indexOf(selector)>-1?!0:typeof selector!="string"&&selector.contains?selector===target||selector.contains(target):target.closest(selector)},eventHandler=function(event){activeEvents[event.type]&&activeEvents[event.type].forEach(function(listener){doRun(event.target,listener.selector)&&listener.callback(event)})};return publicAPIs.on=function(types,selector,callback){!selector||!callback||types.split(",").forEach(function(type){type=type.trim(),activeEvents[type]||(activeEvents[type]=[],window2.addEventListener(type,eventHandler,!0)),activeEvents[type].push({selector:selector,callback:callback})})},publicAPIs.off=function(types,selector,callback){types.split(",").forEach(function(type){if(type=type.trim(),!!activeEvents[type]){if(activeEvents[type].length<2||!selector){delete activeEvents[type],window2.removeEventListener(type,eventHandler,!0);return}var index=getIndex(activeEvents[type],selector,callback);index<0||activeEvents[type].splice(index,1)}})},publicAPIs.once=function(types,selector,callback){publicAPIs.on(types,selector,function temp(event){callback(event),publicAPIs.off(types,selector,temp)})},publicAPIs.get=function(){var obj={};for(var type in activeEvents)activeEvents.hasOwnProperty(type)&&(obj[type]=activeEvents[type]);return obj},publicAPIs})}).call(this,__webpack_require__(13))}),(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_LOCAL_MODULE_1__,__WEBPACK_LOCAL_MODULE_1__factory,__WEBPACK_LOCAL_MODULE_1__module,__WEBPACK_LOCAL_MODULE_2__,__WEBPACK_LOCAL_MODULE_2__factory,__WEBPACK_LOCAL_MODULE_2__module,__WEBPACK_LOCAL_MODULE_3__,__WEBPACK_LOCAL_MODULE_3__factory,__WEBPACK_LOCAL_MODULE_3__module,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_4__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_5__,__WEBPACK_LOCAL_MODULE_6__,__WEBPACK_LOCAL_MODULE_6__factory,__WEBPACK_LOCAL_MODULE_6__module,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_7__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_9__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_10__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_11__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_12__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_13__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_14__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_15__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_16__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_LOCAL_MODULE_17__,__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_19__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}/*! 8 * Flickity PACKAGED v2.2.2 9 * Touch, responsive, flickable carousels 10 * 11 * Licensed GPLv3 for open source use 12 * or Flickity Commercial License for commercial use 13 * 14 * https://flickity.metafizzy.co 15 * Copyright 2015-2021 Metafizzy 16 */(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(0)],__WEBPACK_AMD_DEFINE_RESULT__=(function(jQuery){return factory(window2,jQuery)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)})(window,function(window2,jQuery){"use strict";var arraySlice=Array.prototype.slice,console2=window2.console,logError=typeof console2=="undefined"?function(){}:function(message){console2.error(message)};function jQueryBridget(namespace,PluginClass,$2){if($2=$2||jQuery||window2.jQuery,!$2)return;PluginClass.prototype.option||(PluginClass.prototype.option=function(opts){$2.isPlainObject(opts)&&(this.options=$2.extend(!0,this.options,opts))}),$2.fn[namespace]=function(arg0){if(typeof arg0=="string"){var args=arraySlice.call(arguments,1
16);return methodCall(this,arg0,args)}return plainCall(this,arg0),this};function methodCall($elems,methodName,args){var returnValue,pluginMethodStr="$()."+namespace+'("'+methodName+'")';return $elems.each(function(i,elem){var instance=$2.data(elem,namespace);if(!instance){logError(namespace+" not initialized. Cannot call methods, i.e. "+pluginMethodStr);return}var method=instance[methodName];if(!method||methodName.charAt(0)=="_"){logError(pluginMethodStr+" is not a valid method");return}var value=method.apply(instance,args);returnValue=returnValue===void 0?value:returnValue}),returnValue!==void 0?returnValue:$elems}function plainCall($elems,options){$elems.each(function(i,elem){var instance=$2.data(elem,namespace);instance?(instance.option(options),instance._init()):(instance=new PluginClass(elem,options),$2.data(elem,namespace,instance))})}updateJQuery($2)}function updateJQuery($2){!$2||$2&&$2.bridget||($2.bridget=jQueryBridget)}return updateJQuery(jQuery||window2.jQuery),jQueryBridget}),(function(global,factory){__WEBPACK_LOCAL_MODULE_1__factory=factory,__WEBPACK_LOCAL_MODULE_1__module={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},__WEBPACK_LOCAL_MODULE_1__=typeof __WEBPACK_LOCAL_MODULE_1__factory=="function"?__WEBPACK_LOCAL_MODULE_1__factory.call(__WEBPACK_LOCAL_MODULE_1__module.exports,__webpack_require__,__WEBPACK_LOCAL_MODULE_1__module.exports,__WEBPACK_LOCAL_MODULE_1__module):__WEBPACK_LOCAL_MODULE_1__factory,__WEBPACK_LOCAL_MODULE_1__module.loaded=!0,__WEBPACK_LOCAL_MODULE_1__===void 0&&(__WEBPACK_LOCAL_MODULE_1__=__WEBPACK_LOCAL_MODULE_1__module.exports)})(typeof window!="undefined"?window:this,function(){function EvEmitter(){}var proto=EvEmitter.prototype;return proto.on=function(eventName,listener){if(!(!eventName||!listener)){var events=this._events=this._events||{},listeners=events[eventName]=events[eventName]||[];return listeners.indexOf(listener)==-1&&listeners.push(listener),this}},proto.once=function(eventName,listener){if(!(!eventName||!listener)){this.on(eventName,listener);var onceEvents=this._onceEvents=this._onceEvents||{},onceListeners=onceEvents[eventName]=onceEvents[eventName]||{};return onceListeners[listener]=!0,this}},proto.off=function(eventName,listener){var listeners=this._events&&this._events[eventName];if(!(!listeners||!listeners.length)){var index=listeners.indexOf(listener);return index!=-1&&listeners.splice(index,1),this}},proto.emitEvent=function(eventName,args){var listeners=this._events&&this._events[eventName];if(!(!listeners||!listeners.length)){listeners=listeners.slice(0),args=args||[];for(var onceListeners=this._onceEvents&&this._onceEvents[eventName],i=0;i<listeners.length;i++){var listener=listeners[i],isOnce=onceListeners&&onceListeners[listener];isOnce&&(this.off(eventName,listener),delete onceListeners[listener]),listener.apply(this,args)}return this}},proto.allOff=function(){delete this._events,delete this._onceEvents},EvEmitter});/*! 17 * getSize v2.0.3 18 * measure size of elements 19 * MIT license 20 */(function(window2,factory){__WEBPACK_LOCAL_MODULE_2__factory=factory,__WEBPACK_LOCAL_MODULE_2__module={id:"get-size/get-size",exports:{},loaded:!1},__WEBPACK_LOCAL_MODULE_2__=typeof __WEBPACK_LOCAL_MODULE_2__factory=="function"?__WEBPACK_LOCAL_MODULE_2__factory.call(__WEBPACK_LOCAL_MODULE_2__module.exports,__webpack_require__,__WEBPACK_LOCAL_MODULE_2__module.exports,__WEBPACK_LOCAL_MODULE_2__module):__WEBPACK_LOCAL_MODULE_2__factory,__WEBPACK_LOCAL_MODULE_2__module.loaded=!0,__WEBPACK_LOCAL_MODULE_2__===void 0&&(__WEBPACK_LOCAL_MODULE_2__=__WEBPACK_LOCAL_MODULE_2__module.exports)})(window,function(){"use strict";function getStyleSize(value){var num=parseFloat(value),isValid=value.indexOf("%")==-1&&!isNaN(num);return isValid&&num}function noop(){}var logError=typeof console=="undefined"?noop:function(message){console.error(message)},measurements=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],measurementsLength=measurements.length;function getZeroSize(){for(var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<measurementsLength;i++){var measurement=measurements[i];size[measurement]=0}return size}function getStyle(elem){var style=getComputedStyle(elem);return style||logError("Style returned "+style+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),style}var isSetup=!1,isBoxSizeOuter;function setup(){if(!isSetup){isSetup=!0;var div=document.createElement("div");div.style.width="200px",div.style.padding="1px 2px 3px 4px",div.style.borderStyle="solid",div.style.borderWidth="1px 2px 3px 4px",div.style.boxSizing="border-box";var body=document.body||document.documentElement;body.appendChild(div);var style=getStyle(div);isBoxSizeOuter=Math.round(getStyleSize(style.width))==200,getSize.isBoxSizeOuter=isBoxSizeOuter,body.removeChild(div)}}function getSize(elem){if(setup(),typeof elem=="string"&&(elem=document.querySelector(elem)),!(!elem||_typeof(elem)!="object"||!elem.nodeType)){var style=getStyle(elem);if(style.display=="none")return getZeroSize();var size={};size.width=elem.offsetWidth,size.height=elem.offsetHeight;for(var isBorderBox=size.isBorderBox=style.boxSizing=="border-box",i=0;i<measurementsLength;i++){var measurement=measurements[i],value=style[measurement],num=parseFloat(value);size[measurement]=isNaN(num)?0:num}var paddingWidth=size.paddingLeft+size.paddingRight,paddingHeight=size.paddingTop+size.paddingBottom,marginWidth=size.marginLeft+size.marginRight,marginHeight=size.marginTop+size.marginBottom,borderWidth=size.borderLeftWidth+size.borderRightWidth,borderHeight=size.borderTopWidth+size.borderBottomWidth,isBorderBoxSizeOuter=isBorderBox&&isBoxSizeOuter,styleWidth=getStyleSize(style.width);styleWidth!==!1&&(size.width=styleWidth+(isBorderBoxSizeOuter?0:paddingWidth+borderWidth));var styleHeight=getStyleSize(style.height);return styleHeight!==!1&&(size.height=styleHeight+(isBorderBoxSizeOuter?0:paddingHeight+borderHeight)),size.innerWidth=size.width-(paddingWidth+borderWidth),size.innerHe
20ight=size.height-(paddingHeight+borderHeight),size.outerWidth=size.width+marginWidth,size.outerHeight=size.height+marginHeight,size}}return getSize}),(function(window2,factory){"use strict";__WEBPACK_LOCAL_MODULE_3__factory=factory,__WEBPACK_LOCAL_MODULE_3__module={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},__WEBPACK_LOCAL_MODULE_3__=typeof __WEBPACK_LOCAL_MODULE_3__factory=="function"?__WEBPACK_LOCAL_MODULE_3__factory.call(__WEBPACK_LOCAL_MODULE_3__module.exports,__webpack_require__,__WEBPACK_LOCAL_MODULE_3__module.exports,__WEBPACK_LOCAL_MODULE_3__module):__WEBPACK_LOCAL_MODULE_3__factory,__WEBPACK_LOCAL_MODULE_3__module.loaded=!0,__WEBPACK_LOCAL_MODULE_3__===void 0&&(__WEBPACK_LOCAL_MODULE_3__=__WEBPACK_LOCAL_MODULE_3__module.exports)})(window,function(){"use strict";var matchesMethod=(function(){var ElemProto=window.Element.prototype;if(ElemProto.matches)return"matches";if(ElemProto.matchesSelector)return"matchesSelector";for(var prefixes=["webkit","moz","ms","o"],i=0;i<prefixes.length;i++){var prefix=prefixes[i],method=prefix+"MatchesSelector";if(ElemProto[method])return method}})();return function(elem,selector){return elem[matchesMethod](selector)}}),(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_3__],__WEBPACK_LOCAL_MODULE_4__=(function(matchesSelector){return factory(window2,matchesSelector)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(window2,matchesSelector){var utils={};utils.extend=function(a,b){for(var prop in b)a[prop]=b[prop];return a},utils.modulo=function(num,div){return(num%div+div)%div};var arraySlice=Array.prototype.slice;utils.makeArray=function(obj){if(Array.isArray(obj))return obj;if(obj==null)return[];var isArrayLike=_typeof(obj)=="object"&&typeof obj.length=="number";return isArrayLike?arraySlice.call(obj):[obj]},utils.removeFrom=function(ary,obj){var index=ary.indexOf(obj);index!=-1&&ary.splice(index,1)},utils.getParent=function(elem,selector){for(;elem.parentNode&&elem!=document.body;)if(elem=elem.parentNode,matchesSelector(elem,selector))return elem},utils.getQueryElement=function(elem){return typeof elem=="string"?document.querySelector(elem):elem},utils.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},utils.filterFindElements=function(elems,selector){elems=utils.makeArray(elems);var ffElems=[];return elems.forEach(function(elem){if(elem instanceof HTMLElement){if(!selector){ffElems.push(elem);return}matchesSelector(elem,selector)&&ffElems.push(elem);for(var childElems=elem.querySelectorAll(selector),i=0;i<childElems.length;i++)ffElems.push(childElems[i])}}),ffElems},utils.debounceMethod=function(_class,methodName,threshold){threshold=threshold||100;var method=_class.prototype[methodName],timeoutName=methodName+"Timeout";_class.prototype[methodName]=function(){var timeout=this[timeoutName];clearTimeout(timeout);var args=arguments,_this=this;this[timeoutName]=setTimeout(function(){method.apply(_this,args),delete _this[timeoutName]},threshold)}},utils.docReady=function(callback){var readyState=document.readyState;readyState=="complete"||readyState=="interactive"?setTimeout(callback):document.addEventListener("DOMContentLoaded",callback)},utils.toDashed=function(str){return str.replace(/(.)([A-Z])/g,function(match,$1,$2){return $1+"-"+$2}).toLowerCase()};var console2=window2.console;return utils.htmlInit=function(WidgetClass,namespace){utils.docReady(function(){var dashedNamespace=utils.toDashed(namespace),dataAttr="data-"+dashedNamespace,dataAttrElems=document.querySelectorAll("["+dataAttr+"]"),jsDashElems=document.querySelectorAll(".js-"+dashedNamespace),elems=utils.makeArray(dataAttrElems).concat(utils.makeArray(jsDashElems)),dataOptionsAttr=dataAttr+"-options",jQuery=window2.jQuery;elems.forEach(function(elem){var attr=elem.getAttribute(dataAttr)||elem.getAttribute(dataOptionsAttr),options;try{options=attr&&JSON.parse(attr)}catch(error){console2&&console2.error("Error parsing "+dataAttr+" on "+elem.className+": "+error);return}var instance=new WidgetClass(elem,options);jQuery&&jQuery.data(elem,namespace,instance)})})},utils}),(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_2__],__WEBPACK_LOCAL_MODULE_5__=(function(getSize){return factory(window2,getSize)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(window2,getSize){function Cell(elem,parent){this.element=elem,this.parent=parent,this.create()}var proto=Cell.prototype;return proto.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},proto.destroy=function(){this.unselect(),this.element.style.position="";var side=this.parent.originSide;this.element.style[side]="",this.element.removeAttribute("aria-hidden")},proto.getSize=function(){this.size=getSize(this.element)},proto.setPosition=function(x){this.x=x,this.updateTarget(),this.renderPosition(x)},proto.updateTarget=proto.setDefaultTarget=function(){var marginProperty=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[marginProperty]+this.size.width*this.parent.cellAlign},proto.renderPosition=function(x){var side=this.parent.originSide;this.element.style[side]=this.parent.getPositionValue(x)},proto.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},proto.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},proto.wrapShift=function(shift){this.shift=shift,this.renderPosition(this.x+this.parent.slideableWidth*shift)},proto.remove=function(){this.element.parentNode.removeChild(this.element)},Cell}),(function(window2,factory){__WEBPACK_LOCAL_MODULE_6__factory=factory,__WEBPACK_LOCAL_MODULE_6__module={
20id:"flickity/js/slide",exports:{},loaded:!1},__WEBPACK_LOCAL_MODULE_6__=typeof __WEBPACK_LOCAL_MODULE_6__factory=="function"?__WEBPACK_LOCAL_MODULE_6__factory.call(__WEBPACK_LOCAL_MODULE_6__module.exports,__webpack_require__,__WEBPACK_LOCAL_MODULE_6__module.exports,__WEBPACK_LOCAL_MODULE_6__module):__WEBPACK_LOCAL_MODULE_6__factory,__WEBPACK_LOCAL_MODULE_6__module.loaded=!0,__WEBPACK_LOCAL_MODULE_6__===void 0&&(__WEBPACK_LOCAL_MODULE_6__=__WEBPACK_LOCAL_MODULE_6__module.exports)})(window,function(){"use strict";function Slide(parent){this.parent=parent,this.isOriginLeft=parent.originSide=="left",this.cells=[],this.outerWidth=0,this.height=0}var proto=Slide.prototype;return proto.addCell=function(cell){if(this.cells.push(cell),this.outerWidth+=cell.size.outerWidth,this.height=Math.max(cell.size.outerHeight,this.height),this.cells.length==1){this.x=cell.x;var beginMargin=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=cell.size[beginMargin]}},proto.updateTarget=function(){var endMargin=this.isOriginLeft?"marginRight":"marginLeft",lastCell=this.getLastCell(),lastMargin=lastCell?lastCell.size[endMargin]:0,slideWidth=this.outerWidth-(this.firstMargin+lastMargin);this.target=this.x+this.firstMargin+slideWidth*this.parent.cellAlign},proto.getLastCell=function(){return this.cells[this.cells.length-1]},proto.select=function(){this.cells.forEach(function(cell){cell.select()})},proto.unselect=function(){this.cells.forEach(function(cell){cell.unselect()})},proto.getCellElements=function(){return this.cells.map(function(cell){return cell.element})},Slide}),(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_4__],__WEBPACK_LOCAL_MODULE_7__=(function(utils){return factory(window2,utils)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(window2,utils){var proto={};return proto.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},proto.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var previousX=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(previousX),this.isAnimating){var _this=this;requestAnimationFrame(function(){_this.animate()})}},proto.positionSlider=function(){var x=this.x;this.options.wrapAround&&this.cells.length>1&&(x=utils.modulo(x,this.slideableWidth),x-=this.slideableWidth,this.shiftWrapCells(x)),this.setTranslateX(x,this.isAnimating),this.dispatchScrollEvent()},proto.setTranslateX=function(x,is3d){x+=this.cursorPosition,x=this.options.rightToLeft?-x:x;var translateX=this.getPositionValue(x);this.slider.style.transform=is3d?"translate3d("+translateX+",0,0)":"translateX("+translateX+")"},proto.dispatchScrollEvent=function(){var firstSlide=this.slides[0];if(firstSlide){var positionX=-this.x-firstSlide.target,progress=positionX/this.slidesWidth;this.dispatchEvent("scroll",null,[progress,positionX])}},proto.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},proto.getPositionValue=function(position){return this.options.percentPosition?Math.round(position/this.size.innerWidth*1e4)*.01+"%":Math.round(position)+"px"},proto.settle=function(previousX){var isResting=!this.isPointerDown&&Math.round(this.x*100)==Math.round(previousX*100);isResting&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},proto.shiftWrapCells=function(x){var beforeGap=this.cursorPosition+x;this._shiftCells(this.beforeShiftCells,beforeGap,-1);var afterGap=this.size.innerWidth-(x+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,afterGap,1)},proto._shiftCells=function(cells,gap,shift){for(var i=0;i<cells.length;i++){var cell=cells[i],cellShift=gap>0?shift:0;cell.wrapShift(cellShift),gap-=cell.size.outerWidth}},proto._unshiftCells=function(cells){if(!(!cells||!cells.length))for(var i=0;i<cells.length;i++)cells[i].wrapShift(0)},proto.integratePhysics=function(){this.x+=this.velocity,this.velocity
20*=this.getFrictionFactor()},proto.applyForce=function(force){this.velocity+=force},proto.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},proto.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},proto.applyDragForce=function(){if(!(!this.isDraggable||!this.isPointerDown)){var dragVelocity=this.dragX-this.x,dragForce=dragVelocity-this.velocity;this.applyForce(dragForce)}},proto.applySelectedAttraction=function(){var dragDown=this.isDraggable&&this.isPointerDown;if(!(dragDown||this.isFreeScrolling||!this.slides.length)){var distance=this.selectedSlide.target*-1-this.x,force=distance*this.options.selectedAttraction;this.applyForce(force)}},proto}),(function(window2,factory){if(1)__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_1__,__WEBPACK_LOCAL_MODULE_2__,__WEBPACK_LOCAL_MODULE_4__,__WEBPACK_LOCAL_MODULE_5__,__WEBPACK_LOCAL_MODULE_6__,__WEBPACK_LOCAL_MODULE_7__],__WEBPACK_LOCAL_MODULE_8__=(function(EvEmitter,getSize,utils,Cell,Slide,animatePrototype){return factory(window2,EvEmitter,getSize,utils,Cell,Slide,animatePrototype)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__);else var _Flickity})(window,function(window2,EvEmitter,getSize,utils,Cell,Slide,animatePrototype){var jQuery=window2.jQuery,getComputedStyle2=window2.getComputedStyle,console2=window2.console;function moveElements(elems,toElem){for(elems=utils.makeArray(elems);elems.length;)toElem.appendChild(elems.shift())}var GUID=0,instances={};function Flickity(element,options){var queryElement=utils.getQueryElement(element);if(queryElement){if(this.element=queryElement,this.element.flickityGUID){var instance=instances[this.element.flickityGUID];return instance&&instance.option(options),instance}jQuery&&(this.$element=jQuery(this.element)),this.options=utils.extend({},this.constructor.defaults),this.option(options),this._create()}}Flickity.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},Flickity.createMethods=[];var proto=Flickity.prototype;utils.extend(proto,EvEmitter.prototype),proto._create=function(){var id=this.guid=++GUID;this.element.flickityGUID=id,instances[id]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&window2.addEventListener("resize",this);for(var eventName in this.options.on){var listener=this.options.on[eventName];this.on(eventName,listener)}Flickity.createMethods.forEach(function(method){this[method]()},this),this.options.watchCSS?this.watchCSS():this.activate()},proto.option=function(opts){utils.extend(this.options,opts)},proto.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();var cellElems=this._filterFindCellElements(this.element.children);moveElements(cellElems,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready")}},proto._createSlider=function(){var slider=document.createElement("div");slider.className="flickity-slider",slider.style[this.originSide]=0,this.slider=slider},proto._filterFindCellElements=function(elems){return utils.filterFindElements(elems,this.options.cellSelector)},proto.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},proto._makeCells=function(elems){var cellElems=this._filterFindCellElements(elems),cells=cellElems.map(function(cellElem){return new Cell(cellElem,this)},this);return cells},proto.getLastCell=function(){return this.cells[this.cells.length-1]},proto.getLastSlide=function(){return this.slides[this.slides.length-1]},proto.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)}
vendor: 5,712 bytes, line 20
20,proto._positionCells=function(index){index=index||0,this.maxCellHeight=index&&this.maxCellHeight||0;var cellX=0;if(index>0){var startCell=this.cells[index-1];cellX=startCell.x+startCell.size.outerWidth}for(var len=this.cells.length,i=index;i<len;i++){var cell=this.cells[i];cell.setPosition(cellX),cellX+=cell.size.outerWidth,this.maxCellHeight=Math.max(cell.size.outerHeight,this.maxCellHeight)}this.slideableWidth=cellX,this.updateSlides(),this._containSlides(),this.slidesWidth=len?this.getLastSlide().target-this.slides[0].target:0},proto._sizeCells=function(cells){cells.forEach(function(cell){cell.getSize()})},proto.updateSlides=function(){if(this.slides=[],!!this.cells.length){var slide=new Slide(this);this.slides.push(slide);var isOriginLeft=this.originSide=="left",nextMargin=isOriginLeft?"marginRight":"marginLeft",canCellFit=this._getCanCellFit();this.cells.forEach(function(cell,i){if(!slide.cells.length){slide.addCell(cell);return}var slideWidth=slide.outerWidth-slide.firstMargin+(cell.size.outerWidth-cell.size[nextMargin]);canCellFit.call(this,i,slideWidth)||(slide.updateTarget(),slide=new Slide(this),this.slides.push(slide)),slide.addCell(cell)},this),slide.updateTarget(),this.updateSelectedSlide()}},proto._getCanCellFit=function(){var groupCells=this.options.groupCells;if(groupCells){if(typeof groupCells=="number"){var number=parseInt(groupCells,10);return function(i){return i%number!==0}}}else return function(){return!1};var percentMatch=typeof groupCells=="string"&&groupCells.match(/^(\d+)%$/),percent=percentMatch?parseInt(percentMatch[1],10)/100:1;return function(i,slideWidth){return slideWidth<=(this.size.innerWidth+1)*percent}},proto._init=proto.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},proto.getSize=function(){this.size=getSize(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var cellAlignShorthands={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return proto.setCellAlign=function(){var shorthand=cellAlignShorthands[this.options.cellAlign];this.cellAlign=shorthand?shorthand[this.originSide]:this.options.cellAlign},proto.setGallerySize=function(){if(this.options.setGallerySize){var height=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=height+"px"}},proto._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var gapX=this.cursorPosition,cellIndex=this.cells.length-1;this.beforeShiftCells=this._getGapCells(gapX,cellIndex,-1),gapX=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(gapX,0,1)}},proto._getGapCells=function(gapX,cellIndex,increment){for(var cells=[];gapX>0;){var cell=this.cells[cellIndex];if(!cell)break;cells.push(cell),cellIndex+=increment,gapX-=cell.size.outerWidth}return cells},proto._containSlides=function(){if(!(!this.options.contain||this.options.wrapAround||!this.cells.length)){var isRightToLeft=this.options.rightToLeft,beginMargin=isRightToLeft?"marginRight":"marginLeft",endMargin=isRightToLeft?"marginLeft":"marginRight",contentWidth=this.slideableWidth-this.getLastCell().size[endMargin],isContentSmaller=contentWidth<this.size.innerWidth,beginBound=this.cursorPosition+this.cells[0].size[beginMargin],endBound=contentWidth-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(slide){isContentSmaller?slide.target=contentWidth*this.cellAlign:(slide.target=Math.max(slide.target,beginBound),slide.target=Math.min(slide.target,endBound))},this)}},proto.dispatchEvent=function(type,event,args){var emitArgs=event?[event].concat(args):args;if(this.emitEvent(type,emitArgs),jQuery&&this.$element){type+=this.options.namespaceJQueryEvents?".flickity":"";var $event=type;if(event){var jQEvent=new jQuery.Event(event);jQEvent.type=type,$event=jQEvent}this.$element.trigger($event,args)}},proto.select=function(index,isWrap,isInstant){if(this.isActive&&(index=parseInt(index,10),this._wrapSelect(index),(this.options.wrapAround||isWrap)&&(index=utils.modulo(index,this.slides.length)),!!this.slides[index])){var prevIndex=this.selectedIndex;this.selectedIndex=index,this.updateSelectedSlide(),isInstant?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[index]),index!=prevIndex&&this.dispatchEvent("change",null,[index]),this.dispatchEvent("cellSelect")}},proto._wrapSelect=function(index){var len=this.slides.length,isWrapping=this.options.wrapAround&&len>1;if(!isWrapping)return index;var wrapIndex=utils.modulo(index,len),delta=Math.abs(wrapIndex-this.selectedIndex),backWrapDelta=Math.abs(wrapIndex+len-this.selectedIndex),forewardWrapDelta=Math.abs(wrapIndex-len-this.selectedIndex);!this.isDragSelect&&backWrapDelta<delta?index+=len:!this.isDragSelect&&forewardWrapDelta<delta&&(index-=len),index<0?this.x-=this.slideableWidth:index>=len&&(this.x+=this.slideableWidth)},proto.previous=function(isWrap,isInstant){this.select(this.selectedIndex-1,isWrap,isInstant)},proto.next=function(isWrap,isInstant){this.select(this.selectedIndex+1,isWrap,isInstant)},proto.updateSelectedSlide=function(){var slide=this.slides[this.selectedIndex];slide&&(this.unselectSelectedSlide(),this.selectedSlide=slide,slide.select(),this.selectedCells=slide.cells,this.selectedElements=slide.getCellElements(),this.selectedCell=slide.cells[0],this.selectedElement=this.selectedElements[0])},proto.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},proto.selectInitialIndex=function(){var initialIndex=this.options.initialIndex;
20if(this.isInitActivated){this.select(this.selectedIndex,!1,!0);return}if(initialIndex&&typeof initialIndex=="string"){var cell=this.queryCell(initialIndex);if(cell){this.selectCell(initialIndex,!1,!0);return}}var index=0;initialIndex&&this.slides[initialIndex]&&(index=initialIndex),this.select(index,!1,!0)},proto.selectCell=function(value,isWrap,isInstant){var cell=this.queryCell(value);if(cell){var index=this.getCellSlideIndex(cell);this.select(index,isWrap,isInstant)}},proto.getCellSlideIndex=function(cell){for(var i=0;i<this.slides.length;i++){var slide=this.slides[i],index=slide.cells.indexOf(cell);if(index!=-1)return i}},proto.getCell=function(elem){for(var i=0;i<this.cells.length;i++){var cell=this.cells[i];if(cell.element==elem)return cell}},proto.getCells=function(elems){elems=utils.makeArray(elems);var cells=[];return elems.forEach(function(elem){var cell=this.getCell(elem);cell&&cells.push(cell)},this),cells},proto.getCellElements=function(){return this.cells.map(function(cell){return cell.element})},proto.getParentCell=function(elem){var cell=this.getCell(elem);return cell||(elem=utils.getParent(elem,".flickity-slider > *"),this.getCell(elem))},proto.getAdjacentCellElements=function(adjCount,index){if(!adjCount)return this.selectedSlide.getCellElements();index=index===void 0?this.selectedIndex:index;var len=this.slides.length;if(1+adjCount*2>=len)return this.getCellElements();for(var cellElems=[],i=index-adjCount;i<=index+adjCount;i++){var slideIndex=this.options.wrapAround?utils.modulo(i,len):i,slide=this.slides[slideIndex];slide&&(cellElems=cellElems.concat(slide.getCellElements()))}return cellElems},proto.queryCell=function(selector){if(typeof selector=="number")return this.cells[selector];if(typeof selector=="string"){if(selector.match(/^[#.]?[\d/]/))return;selector=this.element.querySelector(selector)}return this.getCell(selector)},proto.uiChange=function(){this.emitEvent("uiChange")},proto.childUIPointerDown=function(event){event.type!="touchstart"&&event.preventDefault(),this.focus()},proto.onresize=function(){this.watchCSS(),this.resize()},utils.debounceMethod(Flickity,"onresize",150),proto.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=utils.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var selectedElement=this.selectedElements&&this.selectedElements[0];this.selectCell(selectedElement,!1,!0)}},proto.watchCSS=function(){var watchOption=this.options.watchCSS;if(watchOption){var afterContent=getComputedStyle2(this.element,":after").content;afterContent.indexOf("flickity")!=-1?this.activate():this.deactivate()}},proto.onkeydown=function(event){var isNotFocused=document.activeElement&&document.activeElement!=this.element;if(!(!this.options.accessibility||isNotFocused)){var handler=Flickity.keyboardHandlers[event.keyCode];handler&&handler.call(this)}},Flickity.keyboardHandlers={37:function(){var leftMethod=this.options.rightToLeft?"next":"previous";this.uiChange(),this[leftMethod]()},39:function(){var rightMethod=this.options.rightToLeft?"previous":"next";this.uiChange(),this[rightMethod]()}},proto.focus=function(){var prevScrollY=window2.pageYOffset;this.element.focus({preventScroll:!0}),window2.pageYOffset!=prevScrollY&&window2.scrollTo(window2.pageXOffset,prevScrollY)},proto.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(cell){cell.destroy()}),this.element.removeChild(this.viewport),moveElements(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},proto.destroy=function(){this.deactivate(),window2.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),jQuery&&this.$element&&jQuery.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete instances[this.guid]},utils.extend(proto,animatePrototype),Flickity.data=function(elem){elem=utils.getQueryElement(elem);var id=elem&&elem.flickityGUID;return id&&instances[id]},utils.htmlInit(Flickity,"flickity"),jQuery&&jQuery.bridget&&jQuery.bridget("flickity",Flickity),Flickity.setJQuery=function(jq){jQuery=jq},Flickity.Cell=Cell,Flickity.Slide=Slide,Flickity});/*! 21 * Unipointer v2.3.0 22 * base class for doing one thing with pointer event 23 * MIT license 24 */(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_1__],__WEBPACK_LOCAL_MODULE_9__=(function(EvEmitter){return factory(window2,EvEmitter)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(window2,EvEmitter){function noop(){}function Unipointer(){}var proto=Unipointer.prototype=Object.create(EvEmitter.prototype);proto.bindStartEvent=function(elem){this._bindStartEvent(elem,!0)},proto.unbindStartEvent=function(elem){this._bindStartEvent(elem,!1)},proto._bindStartEvent=function(elem,isAdd){isAdd=isAdd===void 0?!0:isAdd;var bindMethod=isAdd?"addEventListener":"removeEventListener",startEvent="mou
24sedown";window2.PointerEvent?startEvent="pointerdown":"ontouchstart"in window2&&(startEvent="touchstart"),elem[bindMethod](startEvent,this)},proto.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},proto.getTouch=function(touches){for(var i=0;i<touches.length;i++){var touch=touches[i];if(touch.identifier==this.pointerIdentifier)return touch}},proto.onmousedown=function(event){var button=event.button;button&&button!==0&&button!==1||this._pointerDown(event,event)},proto.ontouchstart=function(event){this._pointerDown(event,event.changedTouches[0])},proto.onpointerdown=function(event){this._pointerDown(event,event)},proto._pointerDown=function(event,pointer){event.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=pointer.pointerId!==void 0?pointer.pointerId:pointer.identifier,this.pointerDown(event,pointer))},proto.pointerDown=function(event,pointer){this._bindPostStartEvents(event),this.emitEvent("pointerDown",[event,pointer])};var postStartEvents={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return proto._bindPostStartEvents=function(event){if(event){var events=postStartEvents[event.type];events.forEach(function(eventName){window2.addEventListener(eventName,this)},this),this._boundPointerEvents=events}},proto._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(eventName){window2.removeEventListener(eventName,this)},this),delete this._boundPointerEvents)},proto.onmousemove=function(event){this._pointerMove(event,event)},proto.onpointermove=function(event){event.pointerId==this.pointerIdentifier&&this._pointerMove(event,event)},proto.ontouchmove=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerMove(event,touch)},proto._pointerMove=function(event,pointer){this.pointerMove(event,pointer)},proto.pointerMove=function(event,pointer){this.emitEvent("pointerMove",[event,pointer])},proto.onmouseup=function(event){this._pointerUp(event,event)},proto.onpointerup=function(event){event.pointerId==this.pointerIdentifier&&this._pointerUp(event,event)},proto.ontouchend=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerUp(event,touch)},proto._pointerUp=function(event,pointer){this._pointerDone(),this.pointerUp(event,pointer)},proto.pointerUp=function(event,pointer){this.emitEvent("pointerUp",[event,pointer])},proto._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},proto._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},proto.pointerDone=noop,proto.onpointercancel=function(event){event.pointerId==this.pointerIdentifier&&this._pointerCancel(event,event)},proto.ontouchcancel=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerCancel(event,touch)},proto._pointerCancel=function(event,pointer){this._pointerDone(),this.pointerCancel(event,pointer)},proto.pointerCancel=function(event,pointer){this.emitEvent("pointerCancel",[event,pointer])},Unipointer.getPointerPoint=function(pointer){return{x:pointer.pageX,y:pointer.pageY}},Unipointer});/*! 25 * Unidragger v2.3.1 26 * Draggable base class 27 * MIT license 28 */(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_9__],__WEBPACK_LOCAL_MODULE_10__=(function(Unipointer){return factory(window2,Unipointer)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(window2,Unipointer){function Unidragger(){}var proto=Unidragger.prototype=Object.create(Unipointer.prototype);proto.bindHandles=function(){this._bindHandles(!0)},proto.unbindHandles=function(){this._bindHandles(!1)},proto._bindHandles=function(isAdd){isAdd=isAdd===void 0?!0:isAdd;for(var bindMethod=isAdd?"addEventListener":"removeEventListener",touchAction=isAdd?this._touchActionValue:"",i=0;i<this.handles.length;i++){var handle=this.handles[i];this._bindStartEvent(handle,isAdd),handle[bindMethod]("click",this),window2.PointerEvent&&(handle.style.touchAction=touchAction)}},proto._touchActionValue="none",proto.pointerDown=function(event,pointer){var isOkay=this.okayPointerDown(event);isOkay&&(this.pointerDownPointer={pageX:pointer.pageX,pageY:pointer.pageY},event.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(event),this.emitEvent("pointerDown",[event,pointer]))};var cursorNodes={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},clickTypes={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return proto.okayPointerDown=function(event){var isCursorNode=cursorNodes[event.target.nodeName],isClickType=clickTypes[event.target.type],isOkay=!isCursorNode||isClickType;
vendor: 1,062 bytes, line 28
28return isOkay||this._pointerReset(),isOkay},proto.pointerDownBlur=function(){var focused=document.activeElement,canBlur=focused&&focused.blur&&focused!=document.body;canBlur&&focused.blur()},proto.pointerMove=function(event,pointer){var moveVector=this._dragPointerMove(event,pointer);this.emitEvent("pointerMove",[event,pointer,moveVector]),this._dragMove(event,pointer,moveVector)},proto._dragPointerMove=function(event,pointer){var moveVector={x:pointer.pageX-this.pointerDownPointer.pageX,y:pointer.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(moveVector)&&this._dragStart(event,pointer),moveVector},proto.hasDragStarted=function(moveVector){return Math.abs(moveVector.x)>3||Math.abs(moveVector.y)>3},proto.pointerUp=function(event,pointer){this.emitEvent("pointerUp",[event,pointer]),this._dragPointerUp(event,pointer)},proto._dragPointerUp=function(event,pointer){this.isDragging?this._dragEnd(event,pointer):this._staticClick(event,pointer)},proto._dragStart=function(event,pointer){this.isDragging=!0,this.isPreventing
28Clicks=!0,this.dragStart(event,pointer)},proto.dragStart=function(event,pointer){this.emitEvent("dragStart",[event,pointer])},proto._dragMove=function(event,pointer,moveVector){this.isDragging&&this.dragMove(event,pointer,moveVector)},proto.dragMove=function(event,pointer,moveVector){event.preventDefault(),this.emitEvent("dragMove",[event,pointer,moveVector])},proto._dragEnd=function(event,pointer){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(event,pointer)},proto.dragEnd=function(event,pointer){this.emitEvent("dragEnd",[event,pointer])},proto.onclick=function(event){this.isPreventingClicks&&event.preventDefault()},proto._staticClick=function(event,pointer){this.isIgnoringMouseUp&&event.type=="mouseup"||(this.staticClick(event,pointer),event.type!="mouseup"&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},proto.staticClick=function(event,pointer){this.emitEvent("staticClick",[event,pointer])},Unidragger.getPointerPoint=Unipointer.getPointerPoint,Unidragger}),(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_10__,__WEBPACK_LOCAL_MODULE_4__],__WEBPACK_LOCAL_MODULE_11__=(function(Flickity,Unidragger,utils){return factory(window2,Flickity,Unidragger,utils)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(window2,Flickity,Unidragger,utils){utils.extend(Flickity.defaults,{draggable:">1",dragThreshold:3}),Flickity.createMethods.push("_createDrag");var proto=Flickity.prototype;utils.extend(proto,Unidragger.prototype),proto._touchActionValue="pan-y";var isTouch="createTouch"in document,isTouchmoveScrollCanceled=!1;proto._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),isTouch&&!isTouchmoveScrollCanceled&&(window2.addEventListener("touchmove",function(){}),isTouchmoveScrollCanceled=!0)},proto.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},proto.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},proto.updateDraggable=function(){this.options.draggable==">1"?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},proto.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},proto.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},proto._uiChangeDrag=function(){delete this.isFreeScrolling},proto.pointerDown=function(event,pointer){if(!this.isDraggable){this._pointerDownDefault(event,pointer);return}var isOkay=this.okayPointerDown(event);isOkay&&(this._pointerDownPreventDefault(event),this.pointerDownFocus(event),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=getScrollPosition(),window2.addEventListener("scroll",this),this._pointerDownDefault(event,pointer))},proto._pointerDownDefault=function(event,pointer){this.pointerDownPointer={pageX:pointer.pageX,pageY:pointer.pageY},this._bindPostStartEvents(event),this.dispatchEvent("pointerDown",event,[pointer])};var focusNodes={INPUT:!0,TEXTAREA:!0,SELECT:!0};proto.pointerDownFocus=function(event){var isFocusNode=focusNodes[event.target.nodeName];isFocusNode||this.focus()},proto._pointerDownPreventDefault=function(event){var isTouchStart=event.type=="touchstart",isTouchPointer=event.pointerType=="touch",isFocusNode=focusNodes[event.target.nodeName];!isTouchStart&&!isTouchPointer&&!isFocusNode&&event.preventDefault()},proto.hasDragStarted=function(moveVector){return Math.abs(moveVector.x)>this.options.dragThreshold},proto.pointerUp=function(event,pointer){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",event,[pointer]),this._dragPointerUp(event,pointer)},proto.pointerDone=function(){window2.removeEventListener("scroll",this),delete this.pointerDownScroll},proto.dragStart=function(event,pointer){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),window2.removeEventListener("scroll",this),this.dispatchEvent("dragStart",event,[pointer]))},proto.pointerMove=function(event,pointer){var moveVector=this._dragPointerMove(event,pointer);this.dispatchEvent("pointerMove",event,[pointer,moveVector]),this._dragMove(event,pointer,moveVector)},proto.dragMove=function(event,pointer,moveVector){if(this.isDraggable){event.preventDefault(),this.previousDragX=this.dragX;var direction=this.options.rightToLeft?-1:1;this.options.wrapAround&&(moveVector.x%=this.slideableWidth);var dragX=this.dragStartPosition+moveVector.x*direction;if(!this.options.wrapAround&&this.slides.length){var originBound=Math.max(-this.slides[0].target,this.dragStartPosition);dragX=dragX>originBound?(dragX+originBound)*.5:dragX;var endBound=Math.min(-this.getLastSlide().target,this.dragStartPosition);dragX=dragX<endBound?(dragX+endBound)*.5:dragX}this.dragX=dragX,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",event,[pointer,moveVector])}},proto.dragEnd=function(event,pointer){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var index=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var restingX=this.getRestingPosition();this.isFreeScrolling=-restingX>this.slides[0].target&&-restingX<this.getLastSlide().target}else!this.options.freeScroll&&index==this.selectedIndex&&(index+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(index),delete this.isDragSelect,this.dispatchEvent("dragEnd",event,[pointer])}},proto.dragEndRestingSelect=function(){var restingX=this.getRestingPosition(),distance=Math.abs(this.getSlideDistance(-restingX,this.selectedIndex)),positiveResting=this._getClosestResting(restingX,distance,1),negativeResting=this._getClosestResting(restingX,distance,-1),index=
28positiveResting.distance<negativeResting.distance?positiveResting.index:negativeResting.index;return index},proto._getClosestResting=function(restingX,distance,increment){for(var index=this.selectedIndex,minDistance=1/0,condition=this.options.contain&&!this.options.wrapAround?function(dist,minDist){return dist<=minDist}:function(dist,minDist){return dist<minDist};condition(distance,minDistance)&&(index+=increment,minDistance=distance,distance=this.getSlideDistance(-restingX,index),distance!==null);)distance=Math.abs(distance);return{distance:minDistance,index:index-increment}},proto.getSlideDistance=function(x,index){var len=this.slides.length,isWrapAround=this.options.wrapAround&&len>1,slideIndex=isWrapAround?utils.modulo(index,len):index,slide=this.slides[slideIndex];if(!slide)return null;var wrap=isWrapAround?this.slideableWidth*Math.floor(index/len):0;return x-(slide.target+wrap)},proto.dragEndBoostSelect=function(){if(this.previousDragX===void 0||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var distance=this.getSlideDistance(-this.dragX,this.selectedIndex),delta=this.previousDragX-this.dragX;return distance>0&&delta>0?1:distance<0&&delta<0?-1:0},proto.staticClick=function(event,pointer){var clickedCell=this.getParentCell(event.target),cellElem=clickedCell&&clickedCell.element,cellIndex=clickedCell&&this.cells.indexOf(clickedCell);this.dispatchEvent("staticClick",event,[pointer,cellElem,cellIndex])},proto.onscroll=function(){var scroll=getScrollPosition(),scrollMoveX=this.pointerDownScroll.x-scroll.x,scrollMoveY=this.pointerDownScroll.y-scroll.y;(Math.abs(scrollMoveX)>3||Math.abs(scrollMoveY)>3)&&this._pointerDone()};function getScrollPosition(){return{x:window2.pageXOffset,y:window2.pageYOffset}}return Flickity}),(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_9__,__WEBPACK_LOCAL_MODULE_4__],__WEBPACK_LOCAL_MODULE_12__=(function(Flickity,Unipointer,utils){return factory(window2,Flickity,Unipointer,utils)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(window2,Flickity,Unipointer,utils){"use strict";var svgURI="http://www.w3.org/2000/svg";function PrevNextButton(direction,parent){this.direction=direction,this.parent=parent,this._create()}PrevNextButton.prototype=Object.create(Unipointer.prototype),PrevNextButton.prototype._create=function(){this.isEnabled=!0,this.isPrevious=this.direction==-1;var leftDirection=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==leftDirection;var element=this.element=document.createElement("button");element.className="flickity-button flickity-prev-next-button",element.className+=this.isPrevious?" previous":" next",element.setAttribute("type","button"),this.disable(),element.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var svg=this.createSVG();element.appendChild(svg),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},PrevNextButton.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},PrevNextButton.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},PrevNextButton.prototype.createSVG=function(){var svg=document.createElementNS(svgURI,"svg");svg.setAttribute("class","flickity-button-icon"),svg.setAttribute("viewBox","0 0 100 100");var path=document.createElementNS(svgURI,"path"),pathMovements=getArrowMovements(this.parent.options.arrowShape);return path.setAttribute("d",pathMovements),path.setAttribute("class","arrow"),this.isLeft||path.setAttribute("transform","translate(100, 100) rotate(180) "),svg.appendChild(path),svg};function getArrowMovements(shape){return typeof shape=="string"?shape:"M "+shape.x0+",50 L "+shape.x1+","+(shape.y1+50)+" L "+shape.x2+","+(shape.y2+50)+" L "+shape.x3+",50 L "+shape.x2+","+(50-shape.y2)+" L "+shape.x1+","+(50-shape.y1)+" Z"}PrevNextButton.prototype.handleEvent=utils.handleEvent,PrevNextButton.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var method=this.isPrevious?"previous":"next";this.parent[method]()}},PrevNextButton.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},PrevNextButton.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},PrevNextButton.prototype.update=function(){var slides=this.parent.slides;if(this.parent.options.wrapAround&&slides.length>1){this.enable();return}
28var lastIndex=slides.length?slides.length-1:0,boundIndex=this.isPrevious?0:lastIndex,method=this.parent.selectedIndex==boundIndex?"disable":"enable";this[method]()},PrevNextButton.prototype.destroy=function(){this.deactivate(),this.allOff()},utils.extend(Flickity.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),Flickity.createMethods.push("_createPrevNextButtons");var proto=Flickity.prototype;return proto._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new PrevNextButton(-1,this),this.nextButton=new PrevNextButton(1,this),this.on("activate",this.activatePrevNextButtons))},proto.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},proto.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},Flickity.PrevNextButton=PrevNextButton,Flickity}),(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_9__,__WEBPACK_LOCAL_MODULE_4__],__WEBPACK_LOCAL_MODULE_13__=(function(Flickity,Unipointer,utils){return factory(window2,Flickity,Unipointer,utils)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(window2,Flickity,Unipointer,utils){function PageDots(parent){this.parent=parent,this._create()}PageDots.prototype=Object.create(Unipointer.prototype),PageDots.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},PageDots.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},PageDots.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},PageDots.prototype.setDots=function(){var delta=this.parent.slides.length-this.dots.length;delta>0?this.addDots(delta):delta<0&&this.removeDots(-delta)},PageDots.prototype.addDots=function(count){for(var fragment=document.createDocumentFragment(),newDots=[],length=this.dots.length,max=length+count,i=length;i<max;i++){var dot=document.createElement("li");dot.className="dot",dot.setAttribute("aria-label","Page dot "+(i+1)),fragment.appendChild(dot),newDots.push(dot)}this.holder.appendChild(fragment),this.dots=this.dots.concat(newDots)},PageDots.prototype.removeDots=function(count){var removeDots=this.dots.splice(this.dots.length-count,count);removeDots.forEach(function(dot){this.holder.removeChild(dot)},this)},PageDots.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},PageDots.prototype.onTap=PageDots.prototype.onClick=function(event){var target=event.target;if(target.nodeName=="LI"){this.parent.uiChange();var index=this.dots.indexOf(target);this.parent.select(index)}},PageDots.prototype.destroy=function(){this.deactivate(),this.allOff()},Flickity.PageDots=PageDots,utils.extend(Flickity.defaults,{pageDots:!0}),Flickity.createMethods.push("_createPageDots");var proto=Flickity.prototype;return proto._createPageDots=function(){this.options.pageDots&&(this.pageDots=new PageDots(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))},proto.activatePageDots=function(){this.pageDots.activate()},proto.updateSelectedPageDots=function(){this.pageDots.updateSelected()},proto.updatePageDots=function(){this.pageDots.setDots()},proto.deactivatePageDots=function(){this.pageDots.deactivate()},Flickity.PageDots=PageDots,Flickity}),(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_1__,__WEBPACK_LOCAL_MODULE_4__,__WEBPACK_LOCAL_MODULE_8__],__WEBPACK_LOCAL_MODULE_14__=(function(EvEmitter,utils,Flickity){return factory(EvEmitter,utils,Flickity)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(EvEmitter,utils,Flickity){function Player(parent){this.parent=parent,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}Player.prototype=Object.create(EvEmitter.prototype),Player.prototype.play=function(){if(this.state!="playing"){var isPageHidden=document.hidden;if(isPageHidden){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},Player.prototype.tick=function(){if(this.state=="playing"){var time=this.parent.options.autoPlay;time=typeof time=="number"?time:3e3;var _this=this;this.clear(),this.timeout=setTimeout(function(){_this.parent.next(!0),_this.tick()},time)}},Player.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},Player.prototype.clear=function(){clearTimeout(this.timeout)},Player.prototype.pause=function(){this.state=="playing"&&(this.state="paused",this.clear())},Player.prototype.unpause=function(){this.state=="paused"&&this.play()},Player.prototype.visibilityChange=function(){var isPageHidden=document.hidden;this[isPageHidden?"pause":"unpause"]()},Player.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},utils.extend(Flickity.defaults,{pauseAutoPlayOnHover:!0}),Flickity.createMethods.push("_createPlayer");var proto=Flickity.prototype;return proto._createPlayer=function(){this.player=new Player(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},proto.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},proto.playPlayer=function(){this.player.play()},proto.stopPlayer=function(){this.player.stop()},proto.pausePlayer=function(){this.player.pause()},proto.unpausePlayer=function(){this.player.unpause()},proto.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},proto.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},proto.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},Flickity.Player=Player,Flickity}),(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_4__],__WEBPACK_LOCAL_MODULE_15__=(function(Flickity,utils){return factory(window2,Flickity,utils)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(window2,Flickity,utils){function getCellsFragment(cells){var fragment=document.createDocumentFragment();
28return cells.forEach(function(cell){fragment.appendChild(cell.element)}),fragment}var proto=Flickity.prototype;return proto.insert=function(elems,index){var cells=this._makeCells(elems);if(!(!cells||!cells.length)){var len=this.cells.length;index=index===void 0?len:index;var fragment=getCellsFragment(cells),isAppend=index==len;if(isAppend)this.slider.appendChild(fragment);else{var insertCellElement=this.cells[index].element;this.slider.insertBefore(fragment,insertCellElement)}if(index===0)this.cells=cells.concat(this.cells);else if(isAppend)this.cells=this.cells.concat(cells);else{var endCells=this.cells.splice(index,len-index);this.cells=this.cells.concat(cells).concat(endCells)}this._sizeCells(cells),this.cellChange(index,!0)}},proto.append=function(elems){this.insert(elems,this.cells.length)},proto.prepend=function(elems){this.insert(elems,0)},proto.remove=function(elems){var cells=this.getCells(elems);if(!(!cells||!cells.length)){var minCellIndex=this.cells.length-1;cells.forEach(function(cell){cell.remove();var index=this.cells.indexOf(cell);minCellIndex=Math.min(index,minCellIndex),utils.removeFrom(this.cells,cell)},this),this.cellChange(minCellIndex,!0)}},proto.cellSizeChange=function(elem){var cell=this.getCell(elem);if(cell){cell.getSize();var index=this.cells.indexOf(cell);this.cellChange(index)}},proto.cellChange=function(changedCellIndex,isPositioningSlider){var prevSelectedElem=this.selectedElement;this._positionCells(changedCellIndex),this._getWrapShiftCells(),this.setGallerySize();var cell=this.getCell(prevSelectedElem);cell&&(this.selectedIndex=this.getCellSlideIndex(cell)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[changedCellIndex]),this.select(this.selectedIndex),isPositioningSlider&&this.positionSliderAtSelected()},Flickity}),(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_4__],__WEBPACK_LOCAL_MODULE_16__=(function(Flickity,utils){return factory(window2,Flickity,utils)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(window,function(window2,Flickity,utils){"use strict";Flickity.createMethods.push("_createLazyload");var proto=Flickity.prototype;proto._createLazyload=function(){this.on("select",this.lazyLoad)},proto.lazyLoad=function(){var lazyLoad=this.options.lazyLoad;if(lazyLoad){var adjCount=typeof lazyLoad=="number"?lazyLoad:0,cellElems=this.getAdjacentCellElements(adjCount),lazyImages=[];
28cellElems.forEach(function(cellElem){var lazyCellImages=getCellLazyImages(cellElem);lazyImages=lazyImages.concat(lazyCellImages)}),lazyImages.forEach(function(img){new LazyLoader(img,this)},this)}};function getCellLazyImages(cellElem){if(cellElem.nodeName=="IMG"){var lazyloadAttr=cellElem.getAttribute("data-flickity-lazyload"),srcAttr=cellElem.getAttribute("data-flickity-lazyload-src"),srcsetAttr=cellElem.getAttribute("data-flickity-lazyload-srcset");if(lazyloadAttr||srcAttr||srcsetAttr)return[cellElem]}var lazySelector="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",imgs=cellElem.querySelectorAll(lazySelector);return utils.makeArray(imgs)}function LazyLoader(img,flickity){this.img=img,this.flickity=flickity,this.load()}return LazyLoader.prototype.handleEvent=utils.handleEvent,LazyLoader.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var src=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),srcset=this.img.getAttribute("data-flickity-lazyload-srcset");src&&(this.img.src=src),srcset&&this.img.setAttribute("srcset",srcset),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},LazyLoader.prototype.onload=function(event){this.complete(event,"flickity-lazyloaded")},LazyLoader.prototype.onerror=function(event){this.complete(event,"flickity-lazyerror")},LazyLoader.prototype.complete=function(event,className){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var cell=this.flickity.getParentCell(this.img),cellElem=cell&&cell.element;this.flickity.cellSizeChange(cellElem),this.img.classList.add(className),this.flickity.dispatchEvent("lazyLoad",event,cellElem)},Flickity.LazyLoader=LazyLoader,Flickity});/*! 29 * Flickity v2.2.2 30 * Touch, responsive, flickable carousels 31 * 32 * Licensed GPLv3 for open source use 33 * or Flickity Commercial License for commercial use 34 * 35 * https://flickity.metafizzy.co 36 * Copyright 2015-2021 Metafizzy 37 */(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_11__,__WEBPACK_LOCAL_MODULE_12__,__WEBPACK_LOCAL_MODULE_13__,__WEBPACK_LOCAL_MODULE_14__,__WEBPACK_LOCAL_MODULE_15__,__WEBPACK_LOCAL_MODULE_16__],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_LOCAL_MODULE_17__=typeof __WEBPACK_AMD_DEFINE_FACTORY__=="function"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__})(window,function(Flickity){return Flickity});/*! 38 * Flickity asNavFor v2.0.2 39 * enable asNavFor for Flickity 40 */(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_17__,__WEBPACK_LOCAL_MODULE_4__],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__=="function"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)})(window,function(Flickity,utils){Flickity.createMethods.push("_createAsNavFor");var proto=Flickity.prototype;proto._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var asNavForOption=this.options.asNavFor;if(asNavForOption){var _this=this;setTimeout(function(){_this.setNavCompanion(asNavForOption)})}},proto.setNavCompanion=function(elem){elem=utils.getQueryElement(elem);var companion=Flickity.data(elem);if(!(!companion||companion==this)){this.navCompanion=companion;var _this=this;this.onNavCompanionSelect=function(){_this.navCompanionSelect()},companion.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},proto.navCompanionSelect=function(isInstant){var companionCells=this.navCompanion&&this.navCompanion.selectedCells;if(companionCells){var selectedCell=companionCells[0],firstIndex=this.navCompanion.cells.indexOf(selectedCell),lastIndex=firstIndex+companionCells.length-1,selectIndex=Math.floor(lerp(firstIndex,lastIndex,this.navCompanion.cellAlign));if(this.selectCell(selectIndex,!1,isInstant),this.removeNavSelectedElements(),!(selectIndex>=this.cells.length)){var selectedCells=this.cells.slice(firstIndex,lastIndex+1);this.navSelectedElements=selectedCells.map(function(cell){return cell.element}),this.changeNavSelectedClass("add")}}};function lerp(a,b,t){return(b-a)*t+a}return proto.changeNavSelectedClass=function(method){this.navSelectedElements.forEac
40h(function(navElem){navElem.classList[method]("is-nav-selected")})},proto.activateAsNavFor=function(){this.navCompanionSelect(!0)},proto.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},proto.onNavStaticClick=function(event,pointer,cellElement,cellIndex){typeof cellIndex=="number"&&this.navCompanion.selectCell(cellIndex)},proto.deactivateAsNavFor=function(){this.removeNavSelectedElements()},proto.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},Flickity});/*! 41 * imagesLoaded v4.1.4 42 * JavaScript is all like "You images are done yet or what?" 43 * MIT License 44 */(function(window2,factory){"use strict";__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_1__],__WEBPACK_LOCAL_MODULE_19__=(function(EvEmitter){return factory(window2,EvEmitter)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)})(typeof window!="undefined"?window:this,function(window2,EvEmitter){var $2=window2.jQuery,console2=window2.console;function extend(a,b){for(var prop in b)a[prop]=b[prop];return a}var arraySlice=Array.prototype.slice;function makeArray(obj){if(Array.isArray(obj))return obj;var isArrayLike=_typeof(obj)=="object"&&typeof obj.length=="number";return isArrayLike?arraySlice.call(obj):[obj]}function ImagesLoaded(elem,options,onAlways){if(!(this instanceof ImagesLoaded))return new ImagesLoaded(elem,options,onAlways);var queryElem=elem;if(typeof elem=="string"&&(queryElem=document.querySelectorAll(elem)),!queryElem){console2.error("Bad element for imagesLoaded "+(queryElem||elem));return}this.elements=makeArray(queryElem),this.options=extend({},this.options),typeof options=="function"?onAlways=options:extend(this.options,options),onAlways&&this.on("always",onAlways),this.getImages(),$2&&(this.jqDeferred=new $2.Deferred),setTimeout(this.check.bind(this))}ImagesLoaded.prototype=Object.create(EvEmitter.prototype),ImagesLoaded.prototype.options={},ImagesLoaded.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},ImagesLoaded.prototype.addElementImages=function(elem){elem.nodeName=="IMG"&&this.addImage(elem),this.options.background===!0&&this.addElementBackgroundImages(elem);var nodeType=elem.nodeType;if(!(!nodeType||!elementNodeTypes[nodeType])){for(var childImgs=elem.querySelectorAll("img"),i=0;i<childImgs.length;i++){var img=childImgs[i];this.addImage(img)}if(typeof this.options.background=="string"){var children=elem.querySelectorAll(this.options.background);for(i=0;i<children.length;i++){var child=children[i];this.addElementBackgroundImages(child)}}}};var elementNodeTypes={1:!0,9:!0,11:!0};ImagesLoaded.prototype.addElementBackgroundImages=function(elem){var style=getComputedStyle(elem);if(style)for(var reURL=/url\((['"])?(.*?)\1\)/gi,matches=reURL.exec(style.backgroundImage);matches!==null;){var url=matches&&matches[2];url&&this.addBackground(url,elem),matches=reURL.exec(style.backgroundImage)}},ImagesLoaded.prototype.addImage=function(img){var loadingImage=new LoadingImage(img);this.images.push(loadingImage)},ImagesLoaded.prototype.addBackground=function(url,elem){var background=new Background(url,elem);this.images.push(background)},ImagesLoaded.prototype.check=function(){var _this=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}function onProgress(image,elem,message){setTimeout(function(){_this.progress(image,elem,message)})}this.images.forEach(function(loadingImage){loadingImage.once("progress",onProgress),loadingImage.check()})},ImagesLoaded.prototype.progress=function(image,elem,message){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!image.isLoaded,this.emitEvent("progress",[this,image,elem]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,image),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&console2&&console2.log("progress: "+message,image,elem)},ImagesLoaded.prototype.complete=function(){var eventName=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(eventName,[this]),this.emitEvent("always",[this]),this.jqDeferred){var jqMethod=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[jqMethod](this)}};function LoadingImage(img){this.img=img}LoadingImage.prototype=Object.create(EvEmitter.prototype),LoadingImage.prototype.check=function(){var isComplete=this.getIsImageComplete();
44if(isComplete){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src},LoadingImage.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},LoadingImage.prototype.confirm=function(isLoaded,message){this.isLoaded=isLoaded,this.emitEvent("progress",[this,this.img,message])},LoadingImage.prototype.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},LoadingImage.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},LoadingImage.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},LoadingImage.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function Background(url,element){this.url=url,this.element=element,this.img=new Image}return Background.prototype=Object.create(LoadingImage.prototype),Background.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var isComplete=this.getIsImageComplete();isComplete&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},Background.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},Background.prototype.confirm=function(isLoaded,message){this.isLoaded=isLoaded,this.emitEvent("progress",[this,this.element,message])},ImagesLoaded.makeJQueryPlugin=function(jQuery){jQuery=jQuery||window2.jQuery,jQuery&&($2=jQuery,$2.fn.imagesLoaded=function(options,callback){var instance=new ImagesLoaded(this,options,callback);return instance.jqDeferred.promise($2(this))})},ImagesLoaded.makeJQueryPlugin(),ImagesLoaded});/*! 45 * Flickity imagesLoaded v2.0.0 46 * enables imagesLoaded option for Flickity 47 */(function(window2,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_17__,__WEBPACK_LOCAL_MODULE_19__],__WEBPACK_AMD_DEFINE_RESULT__=(function(Flickity,imagesLoaded){return factory(window2,Flickity,imagesLoaded)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)})(window,function(window2,Flickity,imagesLoaded){"use strict";Flickity.createMethods.push("_createImagesLoaded");var proto=Flickity.prototype;return proto._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},proto.imagesLoaded=function(){if(!this.options.imagesLoaded)return;var _this=this;function onImagesLoadedProgress(instance,image){var cell=_this.getParentCell(image.img);_this.cellSizeChange(cell&&cell.element),_this.options.freeScroll||_this.positionSliderAtSelected()}imagesLoaded(this.slider).on("progress",onImagesLoadedProgress)},Flickity})}),(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return AjaxCartEvents});var AjaxCartEvents=(function(){return{eventStrs:{addToCartSuccess:"theme:ajaxCart:addSuccess",addToCartError:"theme:ajaxCart:addError",updateCartSuccess:"theme:ajaxCart:updateSuccess",updateCartError:"theme:ajaxCart:updateError",getCartSuccess:"theme:ajaxCart:getCartSuccess",getCartError:"theme:ajaxCart:getCartError",getDiscountSuccess:"theme:ajaxCart:getDiscountSuccess"}}})(),StandardCartEvents=(function(){return{eventStrs:{addToCartSuccess:"theme:ajaxCart:addSuccess",addToCartError:"theme:ajaxCart:addError",updateCartSuccess:"theme:ajaxCart:updateSuccess",updateCartError:"theme:ajaxCart:updateError",getCartSuccess:"theme:ajaxCart:getCartSuccess",getCartError:"theme:ajaxCart:getCartError",getDiscountSuccess:"theme:ajaxCart:getDiscountSuccess"}}})()}),(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return formatMoney});var moneyFormat="${{amount}}";function formatMoney(cents,format){typeof cents=="string"&&(cents=cents.replace(".",""));var value="",placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||moneyFormat;function formatWithDelimiters(number,precision,thousands,decimal){if(thousands=thousands||",",decimal=decimal||".",isNaN(number)||number===null)return 0;number=(number/100).toFixed(precision);var parts=number.split("."),dollarsAmount=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),centsAmount=parts[1]?decimal+parts[1]:"";return dollarsAmount+centsAmount}switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break;case"amount_no_decimals_with_space_separator":value=formatWithDelimiters(cents,0," ");break;case"amount_with_apostrophe_separator":value=formatWithDelimiters(cents,2,"'");break}return formatString.replace(placeholderRegex,value)}}),(function(module,__webpack_exports__,__webpack_require__){"use strict";function e(e2,t2){for(var o2=0;o2<t2.length;o2++){var n2=t2[o2];n2.enumerable=n2.enumerable||!1,n2.configurable=!0,"value"in n2&&(n2.writable=!0),Object.defineProperty(e2,n2.key,n2)}}function t(e2){return(function(e3){if(Array.isArray(e3))return o(e3)})(e2)||(function(e3){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e3))return Array.from(e3)})(e2)||(function(e3,t2){if(e3){if(typeof e3=="string")return o(e3,t2);var n2=Object.prototype.toString.call(e3).slice(8,-1);if(n2==="Object"&&e3.constructor&&(n2=e3.constructor.name),n2==="Map"||n2==="Set")return Array.from(e3);if(n2==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))return o(e3,t2)}})(e2)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function o(e2,t2){(t2==null||t2>e2.length)&&(t2=e2.length);for(var o2=0,n2=new Array(t2);o2<t2;o2++)n2[o2]=e2[o2];return n2}var n,i,a,r,s,l=(n=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not
47([tabindex^="-"])'],i=(function(){function o2(e2){var n2=e2.targetModal,i3=e2.triggers,a3=i3===void 0?[]:i3,r3=e2.onShow,s2=r3===void 0?function(){}:r3,l2=e2.onClose,c=l2===void 0?function(){}:l2,d=e2.openTrigger,u=d===void 0?"data-micromodal-trigger":d,f=e2.closeTrigger,h=f===void 0?"data-micromodal-close":f,v=e2.openClass,g=v===void 0?"is-open":v,m=e2.disableScroll,b=m!==void 0&&m,y=e2.disableFocus,p=y!==void 0&&y,w=e2.awaitCloseAnimation,E=w!==void 0&&w,k=e2.awaitOpenAnimation,M=k!==void 0&&k,A=e2.debugMode,C=A!==void 0&&A;(function(e3,t2){if(!(e3 instanceof t2))throw new TypeError("Cannot call a class as a function")})(this,o2),this.modal=document.getElementById(n2),this.config={debugMode:C,disableScroll:b,openTrigger:u,closeTrigger:h,openClass:g,onShow:s2,onClose:c,awaitCloseAnimation:E,awaitOpenAnimation:M,disableFocus:p},a3.length>0&&this.registerTriggers.apply(this,t(a3)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var i2,a2,r2;return i2=o2,(a2=[{key:"registerTriggers",value:function(){for(var e2=this,t2=arguments.length,o3=new Array(t2),n2=0;n2<t2;n2++)o3[n2]=arguments[n2];o3.filter(Boolean).forEach((function(t3){t3.addEventListener("click",(function(t4){return e2.showModal(t4)}))}))}},{key:"showModal",value:function(){var e2=this,t2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var o3=function t3(){e2.modal.removeEventListener("animationend",t3,!1),e2.setFocusToFirstNode()};this.modal.addEventListener("animationend",o3,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t2)}},{key:"closeModal",value:function(){var e2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t2=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e2),this.config.awaitCloseAnimation){var o3=this.config.openClass;this.modal.addEventListener("animationend",(function e3(){t2.classList.remove(o3),t2.removeEventListener("animationend",e3,!1)}),!1)}else t2.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e2){this.modal=document.getElementById(e2),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e2){if(this.config.disableScroll){var t2=document.querySelector("body");switch(e2){case"enable":Object.assign(t2.style,{overflow:""});break;case"disable":Object.assign(t2.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e2){(e2.target.hasAttribute(this.config.closeTrigger)||e2.target.parentNode.hasAttribute(this.config.closeTrigger))&&(e2.preventDefault(),e2.stopPropagation(),this.closeModal(e2))}},{key:"onKeydown",value:function(e2){e2.keyCode===27&&this.closeModal(e2),e2.keyCode===9&&this.retainFocus(e2)}},{key:"getFocusableNodes",value:function(){var e2=this.modal.querySelectorAll(n);return Array.apply(void 0,t(e2))}},{key:"setFocusToFirstNode",value:function(){var e2=this;if(!this.config.disableFocus){var t2=this.getFocusableNodes();if(t2.length!==0){var o3=t2.filter((function(t3){return!t3.hasAttribute(e2.config.closeTrigger)}));o3.length>0&&o3[0].focus(),o3.length===0&&t2[0].focus()}}}},{key:"retainFocus",value:function(e2){var t2=this.getFocusableNodes();if(t2.length!==0)if(t2=t2.filter((function(e3){return e3.offsetParent!==null})),this.modal.contains(document.activeElement)){var o3=t2.indexOf(document.activeElement);e2.shiftKey&&o3===0&&(t2[t2.length-1].focus(),e2.preventDefault()),!e2.shiftKey&&t2.length>0&&o3===t2.length-1&&(t2[0].focus(),e2.preventDefault())}else t2[0].focus()}}])&&e(i2.prototype,a2),r2&&e(i2,r2),o2})(),a=null,r=function(e2){if(!document.getElementById(e2))return console.warn("MicroModal: \u2757Seems like you have missed %c'".concat(e2,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(e2,'"></div>')),!1},s=function(e2,t2){if((function(e3){e3.length<=0&&(console.warn("MicroModal: \u2757Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>'))})(e2),!t2)return!0;for(var o2 in t2)r(o2);return!0},{init:function(e2){var o2=Object.assign({},{openTrigger:"data-micromodal-trigger"},e2),n2=t(document.querySelectorAll("[".concat(o2.openTrigger,"]"))),r2=(function(e3,t2){var o3=[];return e3.forEach((function(e4){var n3=e4.attributes[t2].value;o3[n3]===void 0&&(o3[n3]=[]),o3[n3].push(e4)})),o3})(n2,o2.openTrigger);if(o2.debugMode!==!0||s(n2,r2)!==!1)for(var l2 in r2){var c=r2[l2];o2.targetModal=l2,o2.triggers=t(c),a=new i(o2)}},show:function(e2,t2){var o2=t2||{};o2.targetModal=e2,o2.debugMode===!0&&r(e2)===!1||(a&&a.removeEventListeners(),(a=new i(o2)).showModal())},close:function(e2){e2?a.closeModalById(e2):a.closeModal()}});typeof window!="undefined"&&(window.MicroModal=l),__webpack_exports__.a=l}),(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return ProductSlider});var _vendors_sections_flickity_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_vendors_sections_flickity_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_vendors_sections_flickity_js__WEBPACK_IMPORTED_MODULE_0__),_vendors_global_events_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_vendors_global_events_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_vendors_global_events_js__WEBPACK_IMPORTED_MODULE_1__);function ProductSlider(container,options){var mainSliderConfig={arrowShape:{x0:10,x1:60,y1:50,x2:75,y2:35,x3:40},cellAlign:"left",contain:!0,groupCells:"100%",imagesLoaded:!1,pageDots:!1,resize:!0,draggable:!0,prevNextButtons:!0,adaptiveHeight:!0,wrapAround:!1,freeScroll:!1},thumbnailSliderConfig={arrowShape:{x0:10,x1:60,y1:50,x2:75,y2:35,x3:40},asNavFor:".product__slides",groupCells:"100%",contain:!0,pageDots:!1,draggable:!0,freeScroll:!1,imagesLoaded:!1};matchMedia("screen and (min-width: 769px)").matches&&(mainSliderConfig.pageDots=!1,mainSliderConfig.lazyLoad=1),matchMedia("screen and (max-width: 768px)").matches&&(mainSliderConfig.pageDots=!0,mainSliderConfig.adaptiveHeight=!1,mainSliderConfig.lazyLoad=1),this.slideParentContainer=container.parentNode,this.options=options,this.init(mainSliderConfig,thumbnailSliderConfig)}ProductSlider.prototype={init:function(mainConfig,thumbnailConfig){this.mainConfig=mainConfig,this.thumbnailConfig=thumbnailConfig,this.mainSliderContainer=this.slideParentContainer.querySelector(".product__slides"),this.thumbnailSliderContainer=this.slideParentContainer.querySelector(this.options.slideNavWrapper),this.mainSlider=this.buildMainSlider(this.mainSliderContainer,this.mainConfig),matchMedia("screen and (min-width: 769px)").matches&&(this.thumbnailSlider=this.buildThumbnailSlider(this.thumbnailSliderContainer,this.thumbnailConfig)),this.sectionId=this.slideParentContainer.getAttribute("data-sli
47der-id"),this.recordActiveSlide(this.mainSlider.selectedElement),this.initEvents()},initEvents:function(){_vendors_global_events_js__WEBPACK_IMPORTED_MODULE_1___default.a.on("loft:Product:Variant__Changed","*",function(event){if(event.detail!==null&&event.detail.featured_media){var imageId=event.detail.featured_media.id;this.changeSlide(imageId)}}.bind(this)),this.mainSlider.on("change",function(index){var previousSlide=this.getActiveSlide();$(previousSlide).trigger("mediaHidden");var newSlide=this.recordActiveSlide(index);this.emitSlideChange(previousSlide,newSlide),this.toggleDraggableSlider(newSlide),$(newSlide).trigger("mediaVisible")}.bind(this))},buildMainSlider:function(container,config){return new _vendors_sections_flickity_js__WEBPACK_IMPORTED_MODULE_0___default.a(container,config)},buildThumbnailSlider:function(container,config){return new _vendors_sections_flickity_js__WEBPACK_IMPORTED_MODULE_0___default.a(container,config)},resizeSlider:function(slider){slider&&slider.resize()},changeSlide:function(targetImageId){var sectionId=this.sectionId;if(this.mainSlider.cells){var desiredSlideIndex=this.mainSlider.cells.findIndex(function(slide){return slide.element.dataset.mediaId=="".concat(sectionId,"-").concat(targetImageId)});desiredSlideIndex!==-1&&this.mainSlider.selectCell(desiredSlideIndex,!1,!0)}},emitSlideChange:function(previousElement,newElement){window.dispatchEvent(new CustomEvent("loft:Product:Slide__Changed",{detail:{newSlide:newElement,previousSlide:previousElement}}))},toggleDraggableSlider:function(slide){slide.hasAttribute("data-product-media-type-model")?(this.mainSlider.draggable=!1,this.mainSlider.isDraggable=!1):(this.mainSlider.draggable=!0,this.mainSlider.isDraggable=!0)},recordActiveSlide:function(newSlide){return isNaN(newSlide)?this.activeSlideContainer=newSlide:this.activeSlideContainer=this.mainSlider.slides[newSlide].cells[0].element,this.activeSlideContainer},getActiveSlide:function(){return this.activeSlideContainer}}}),(function(module,__webpack_exports__,__webpack_require__){"use strict";var _utilities_helpers_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8),_utilities_library_loader_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9),Utilities=Object(_utilities_helpers_js__WEBPACK_IMPORTED_MODULE_0__.a)(),Loader=Object(_utilities_library_loader_js__WEBPACK_IMPORTED_MODULE_1__.a)();__webpack_exports__.a=(function(){var videos={},hosts={shopify:"shopify",external:"external"},selectors={productMediaWrapper:".video-section-wrapper"},attributes={enableVideoLooping:"enable-video-looping",videoId:"video-id",enableAutoplay:"enable-autoplay",videoMuted:"muted"};function init(videoContainer,sectionId){if(videoContainer){var videoElement=videoContainer.querySelector(".video-section__video");if(videoElement){var mediaId=videoContainer.getAttribute("data-section-id");videos[mediaId]={mediaId:mediaId,sectionId:sectionId,host:hostFromVideoElement(videoElement),container:videoContainer,element:videoElement,ready:function(){createPlayer(this)}},window.Shopify.loadFeatures([{name:"video-ui",version:"2.0",onLoad:setupVideos}]),Loader.load("plyrShopifyStyles")}}}function setupVideos(errors){if(errors){fallbackToNativeVideo();return}loadVideos()}function createPlayer(video){if(!video.player){var productMediaWrapper=video.container,enableLooping=productMediaWrapper.getAttribute("data-"+attributes.enableVideoLooping)==="true",enableAutoplay=function(){var isAutoplay=productMediaWrapper.getAttribute("data-"+attributes.enableAutoplay)==="true";return!!isAutoplay},videoMuted=function(){var isMuted=productMediaWrapper.getAttribute("data-"+attributes.videoMuted)==="true";return!!isMuted},videoPlayer=new window.Shopify.Video(video.element,{storage:{enabled:!1},loop:{active:enableLooping},autoplay:enableAutoplay(),muted:videoMuted(),hideControls:!0,controls:[]}),videoPlayerReady=new CustomEvent("loft:VideoPlayer__Loaded",{detail:video});video.container.dispatchEvent(videoPlayerReady);var pauseVideo=function(){video.player&&video.player.pause()};return productMediaWrapper.addEventListener("mediaHidden",pauseVideo),productMediaWrapper.addEventListener("mediaVisible",function(){Utilities.isTouch()||video.player&&video.player.play()}),video.player}}function hostFromVideoElement(video){return video.tagName==="VIDEO"?hosts.shopify:hosts.external}function loadVideos(){for(var key in videos)if(videos.hasOwnProperty(key)){var video=videos[key];video.ready()}}function fallbackToNativeVideo(){for(var key in videos)if(videos.hasOwnProperty(key)){var video=videos[key];if(video.nativeVideo)continue;video.host===hosts.shopify&&(video.element.setAttribute("controls","controls"),video.nativeVideo=!0)}}function removeSectionVideos(sectionId){for(var key in videos)if(videos.hasOwnProperty(key)){var video=videos[key];video.sectionId===sectionId&&(video.player&&video.player.destroy(),delete videos[key])}}function setupSectionEvents(video){var videoPlayerReady=new CustomEvent("loft:VideoPlayer__Loaded",{detail:video});
47video.container.dispatchEvent(videoPlayerReady)}return{init:init,hosts:hosts,loadVideos:loadVideos,removeSectionVideos:removeSectionVideos}})}),(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a=(function(){var touchDevice=!1,classes={preventScrolling:"prevent-scrolling"},scrollPosition=window.pageYOffset;function setTouch(){touchDevice=!0}function isTouch(){return touchDevice}function enableScrollLock(){scrollPosition=window.pageYOffset,document.body.style.top="-"+scrollPosition+"px",document.body.classList.add(classes.preventScrolling)}function disableScrollLock(){document.body.classList.remove(classes.preventScrolling),document.body.style.removeProperty("top"),window.scrollTo(0,scrollPosition)}function debounce(func,wait,immediate){var timeout;return function(){var context=this,args=arguments,later=function(){timeout=null,immediate||func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&func.apply(context,args)}}function getScript(source,beforeEl){return new Promise(function(resolve,reject){var script=document.createElement("script"),prior=beforeEl||document.getElementsByTagName("script")[0];script.async=!0,script.defer=!0;function onloadHander(_,isAbort){(isAbort||!script.readyState||/loaded|complete/.test(script.readyState))&&(script.onload=null,script.onreadystatechange=null,script=void 0,isAbort?reject():resolve())}script.onload=onloadHander,script.onreadystatechange=onloadHander,script.src=source,prior.parentNode.insertBefore(script,prior)})}function prepareTransition(element){element.addEventListener("transitionend",function(event){event.currentTarget.classList.remove("is-transitioning")},{once:!0});var properties=["transition-duration","-moz-transition-duration","-webkit-transition-duration","-o-transition-duration"],duration=0;properties.forEach(function(property){var computedValue=getComputedStyle(element)[property];computedValue&&(computedValue.replace(/\D/g,""),duration||(duration=parseFloat(computedValue)))}),duration!==0&&(element.classList.add("is-transitioning"),element.offsetWidth)}/*! 48 * Serialize all form data into a SearchParams string 49 * (c) 2020 Chris Ferdinandi, MIT License, https://gomakethings.com 50 * @param {Node} form The form to serialize 51 * @return {String} The serialized form data 52 */function serialize(form){var arr=[];return Array.prototype.slice.call(form.elements).forEach(function(field){if(!(!field.name||field.disabled||["file","reset","submit","button"].indexOf(field.type)>-1)){if(field.type==="select-multiple"){Array.prototype.slice.call(field.options).forEach(function(option){option.selected&&arr.push(encodeURIComponent(field.name)+"="+encodeURIComponent(option.value))});return}["checkbox","radio"].indexOf(field.type)>-1&&!field.checked||arr.push(encodeURIComponent(field.name)+"="+encodeURIComponent(field.value))}}),arr.join("&")}function cookiesEnabled(){var cookieEnabled=navigator.cookieEnabled;return cookieEnabled||(document.cookie="testcookie",cookieEnabled=document.cookie.indexOf("testcookie")!==-1),cookieEnabled}function promiseStylesheet(stylesheet){var stylesheetUrl=stylesheet||theme.stylesheet;return typeof this.stylesheetPromise=="undefined"&&(this.stylesheetPromise=new Promise(function(resolve){var link=document.querySelector('link[href="'+stylesheetUrl+'"]');link.loaded&&resolve(),link.addEventListener("load",function(){setTimeout(resolve,0)})})),this.stylesheetPromise}return{setTouch:setTouch,isTouch:isTouch,enableScrollLock:enableScrollLock,disableScrollLock:disableScrollLock,debounce:debounce,getScript:getScript,prepareTransition:prepareTransition,serialize:serialize,cookiesEnabled:cookiesEnabled,promiseStylesheet:promiseStylesheet}})}),(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a=(function(){var types={link:"link",script:"script"},status={requested:"requested",loaded:"loaded"},cloudCdn="https://cdn.shopify.com/shopifycloud/",libraries={plyrShopifyStyles:{tagId:"plyr-shopify-styles",src:cloudCdn+"plyr/v2.0/shopify-plyr.css",type:types.link},modelViewerUiStyles:{tagId:"shopify-model-viewer-ui-styles",src:cloudCdn+"model-viewer-ui/assets/v1.0/model-viewer-ui.css",type:types.link}};function load(libraryName,callback){var library=libraries[libraryName];if(library&&library.status!==status.requested){if(callback=callback||function(){},library.status===status.loaded){callback();return}library.status=status.requested;var tag;switch(library.type){case types.script:tag=createScriptTag(library,callback);break;case types.link:tag=createLinkTag(library,callback);break}tag.id=library.tagId,library.element=tag;var firstScriptTag=document.getElementsByTagName(library.type)[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}}function createScriptTag(library,callback){var tag=document.createElement("script");return tag.src=library.src,tag.addEventListener("load",function(){library.status=status.loaded,callback()}),tag}function createLinkTag(library,callback){var tag=document.createElement("link");return tag.href=library.src,tag.rel="stylesheet",tag.type="text/css",tag.addEventListener("load",function(){library.status=status.loaded,callback()}),tag}return{load:load}})}),(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return products});var helpers=__webpack_require__(8),library_loader=__webpack_require__(9),Utilities=Object(helpers.a)(),Loader=Object(library_loader.a)(),product_video=(function(){var videos={},hosts={shopify:"shopify",external:"external"},selectors={productMediaWrapper:"[data-product-single-media-wrapper]"},attributes={enableVideoLooping:"enable-video-looping",videoId:"video-id"};function init(videoContainer,sectionId){if(videoContainer){var videoElement=videoContainer.querySelector("iframe, video");if(videoElement){var mediaId=videoContainer.getAttribute("data-media-id");videos[mediaId]={mediaId:mediaId,sectionId:sectionId,host:hostFromVideoElement(videoElement),container:videoContainer,element:videoElement,ready:function(){createPlayer(this)}}
52,window.Shopify.loadFeatures([{name:"video-ui",version:"2.0",onLoad:setupVideos}]),Loader.load("plyrShopifyStyles")}}}function setupVideos(errors){if(errors){fallbackToNativeVideo();return}loadVideos()}function createPlayer(video){if(!video.player){var productMediaWrapper=video.container.closest(selectors.productMediaWrapper),enableLooping=productMediaWrapper.getAttribute("data-"+attributes.enableVideoLooping)==="true";video.player=new Shopify.Video(video.element,{loop:{active:enableLooping}});var pauseVideo=function(){video.player&&video.player.pause()};productMediaWrapper.addEventListener("mediaHidden",pauseVideo),productMediaWrapper.addEventListener("xrLaunch",pauseVideo),productMediaWrapper.addEventListener("mediaVisible",function(){Utilities.isTouch()||video.player&&video.player.play()}),window.addEventListener("loft:Product:Slide__Changed",pauseVideo)}}function hostFromVideoElement(video){return video.tagName==="VIDEO"?hosts.shopify:hosts.external}function loadVideos(){for(var key in videos)if(videos.hasOwnProperty(key)){var video=videos[key];video.ready()}}function fallbackToNativeVideo(){for(var key in videos)if(videos.hasOwnProperty(key)){var video=videos[key];if(video.nativeVideo)continue;video.host===hosts.shopify&&(video.element.setAttribute("controls","controls"),video.nativeVideo=!0)}}function removeSectionVideos(sectionId){for(var key in videos)if(videos.hasOwnProperty(key)){var video=videos[key];video.sectionId===sectionId&&(video.player&&video.player.destroy(),delete videos[key])}}return{init:init,hosts:hosts,loadVideos:loadVideos,removeSectionVideos:removeSectionVideos}}),productModel=(function(){var modelJsonSections={},models={},xrButtons={},selectors={mediaGroup:"[data-product-single-media-group]",xrButton:"[data-shopify-xr]"};function init(modelViewerContainers,sectionId){modelJsonSections[sectionId]={loaded:!1},modelViewerContainers.each(function(index){var $modelViewerContainer=$(this),mediaId=$modelViewerContainer.data("media-id"),$modelViewerElement=$($modelViewerContainer.find("model-viewer")[0]),modelId=$modelViewerElement.data("model-id");if(index===0){var $xrButton=$modelViewerContainer.closest(selectors.mediaGroup).find(selectors.xrButton);xrButtons[sectionId]={$element:$xrButton,defaultId:modelId}}models[mediaId]={modelId:modelId,sectionId:sectionId,$container:$modelViewerContainer,$element:$modelViewerElement}}),window.Shopify.loadFeatures([{name:"shopify-xr",version:"1.0",onLoad:setupShopifyXr}]),window.Shopify.loadFeatures([{name:"model-viewer-ui",version:"1.0",onLoad:setupModelViewerUi}])}function setupShopifyXr(errors){if(errors){errors.forEach(function(error){console.warn(error.message)});return}if(!window.ShopifyXR){document.addEventListener("shopify_xr_initialized",function(){setupShopifyXr()});return}for(var sectionId in modelJsonSections)if(modelJsonSections.hasOwnProperty(sectionId)){var modelSection=modelJsonSections[sectionId];if(modelSection.loaded)continue;var $modelJson=$("#ModelJson-"+sectionId);window.ShopifyXR.addModels(JSON.parse($modelJson.html())),modelSection.loaded=!0}window.ShopifyXR.setupXRElements()}function setupModelViewerUi(errors){if(errors){errors.forEach(function(error){console.warn(error.message)});return}var config={controls:["zoom-in","zoom-out","fullscreen"],focusOnPlay:!0};for(var key in models)if(models.hasOwnProperty(key)){var model=models[key];model.modelViewerUi||(model.modelViewerUi=new Shopify.ModelViewerUI(model.$element,config)),setupModelViewerListeners(model)}}function setupModelViewerListeners(model){var xrButton=xrButtons[model.sectionId];$(".shopify-model-viewer-ui--desktop, .shopify-model-viewer-ui__button").on("click touch",function(evt){evt.preventDefault()}),model.$element.on("shopify_model_viewer_ui_toggle_play",function(){$(this).focus()}),model.$element.on("shopify_model_viewer_ui_toggle_pause",function(){}),model.$container.on("mediaVisible",function(){xrButton.$element.attr("data-shopify-model3d-id",model.modelId),!theme.Helpers.isTouch()&&($(model.$container).find("button").attr("tabindex",0),model.modelViewerUi.play(),model.modelViewerUi.container.focus())}).on("mediaHidden",function(){$(model.$container).find("button").attr("tabindex",-1),$(model.$element).attr("tabindex",-1),xrButton.$element.attr("data-shopify-model3d-id",xrButton.defaultId),model.modelViewerUi.pause()}).on("xrLaunch",function(){$(model.$container).find("button").attr("tabindex",-1),model.modelViewerUi.pause()}),$(model.modelViewerUi.container).on("mousedown keydown",function(evt){model.modelViewerUi.interacting&&evt.stopPropagation()})}function removeSectionModels(sectionId){for(var key in models)if(models.hasOwnProperty(key)){var model=models[key];model.sectionId===sectionId&&delete models[key]}delete modelJsonSections[sectionId]}return{init:init,removeSectionModels:removeSectionModels}})(),LoftVideo=product_video(),products=(function(){return{_selectors:{soldOutBtnText:".js-prod-soldout-btn-text",productSlides:".product__slides",smart:".smart-wrapper",comparePriceContainer:"#Compare-Price-Container",comparePrice:"#ComparePrice",productPrice:"[data-product-price]",unitPriceWrapper:"[data-unit-price-wrapper]",unitPrice:"[data-unit-price]",unitPriceMeasurementReferenceValue:"[data-unit-price-measurement-reference-value]",unitPriceMeasurementReferenceUnit:"[data-unit-price-measurement-reference-unit]",variantSkuContainer:".product-single__sku-container",variantSKU:".product-single__sku",disableOnSoldOut:".js-prod-disable-on-soldout",priceDisplays:".js-prod-price",showAvailable:".js-prod-show-available",showSoldOut:".js-prod-show-soldout",showOnSale:".js-prod-show-sale",badge:".js-prod-badge",productMediaWrapper:"[data-product-single-media-wrapper]",productMediaTypeVideo:"[data-product-media-type-video]",productMediaTypeModel:"[data-product-media-type-model]",productDescriptionContainer:"[data-product-description-container]"},_classes:{hidden:"hide"},init:function(container){var self=this,$container=$(container);self._initProductVideo(container),self._initModelViewerLibraries(container),self._initShopifyXrLaunch(container)},_initProductVideo:function(container){var jsContainer=$(container)[0],self=this,sectionId=jsContainer.getAttribute("data-section-id"),videoContainers=jsContainer.querySelectorAll(self._selectors.productMediaTypeVideo);
52videoContainers.length!==0&&videoContainers.forEach(function(videoItem){LoftVideo.init(videoItem,sectionId)})},_initModelViewerLibraries:function(container){var self=this,$container=$(container),sectionId=$container.data("xr-id"),$modelViewerElements=$(self._selectors.productMediaTypeModel,self.$container);$modelViewerElements.length<1||productModel.init($modelViewerElements,sectionId)},_initShopifyXrLaunch:function(container){var self=this,$container=$(container);$(document).on("shopify_xr_launch",function(){var $currentMedia=$(self._selectors.productMediaWrapper+":not(."+self._classes.hidden+")",self.$container);$currentMedia.trigger("xrLaunch")})}}})()}),,(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return ThemeCart});var currency=__webpack_require__(4),quantityUtilities=(function(){return{eventStrs:{onQtyChanged:"theme:variants:qtyChanged"},_selectors:{qtyContainer:"quantity-input",qtyField:".quantity__input",qtyMinus:'.quantity__button[name="minus"]',qtyPlus:'.quantity__button[name="plus"]'},initQtyControls:function(container){var self=this,$container=$(container);$container.find(this._selectors.qtyField).change(function(e){e.preventDefault(),self._adjustQty($(this))})},enableControl:function($control){$control.prop("disabled",!1)},disableControl:function($control){$control.prop("disabled",!0)},enableAllControls:function(){var self=this,selector=self._determineAllSelectorFromStr(quantityUtilities._selectors.qtyContainer);$(selector).each(function(){var $this=$(this);self._performOnQtyControls($this,self.enableControl)})},disableAllControls:function(){var self=this,selector=self._determineAllSelectorFromStr(quantityUtilities._selectors.qtyContainer);$(selector).each(function(){var $this=$(this);self._performOnQtyControls($this,self.disableControl)})},_fireQtyChangeEvent:function(container,newQty,oldQty){var line_item_changed=container.dataset.index,event=new CustomEvent(this.eventStrs.onQtyChanged,{bubbles:!0,detail:{line:line_item_changed,new_quantity:newQty,old_quantity:oldQty}});container.dispatchEvent(event)},_determineAllSelectorFromStr:function(str){return str[0]=="#"?'[id="'+str.substring(1)+'"]':str},_performOnQtyControls:function($container,func){func($container.find(quantityUtilities._selectors.qtyMinus)),func($container.find(quantityUtilities._selectors.qtyField)),func($container.find(quantityUtilities._selectors.qtyPlus))},_adjustQty:function($qtyInput){var quantityInput=$qtyInput[0],currentVal=parseInt($qtyInput.val()),previousVal=parseInt(quantityInput.getAttribute("previous-value"));$qtyInput.val(currentVal),this._fireQtyChangeEvent(quantityInput,currentVal,previousVal)},gatherQuantityFields:function(container){return $(this._determineAllSelectorFromStr(this._selectors.qtyField),container)},getVariantQuantity:function(container){var quantityField=container.querySelector(this._selectors.qtyField);return quantityField?parseInt(quantityField.value):1}}})(),events=__webpack_require__(3);function _typeof(o){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r2){return Object.getOwnPropertyDescriptor(e,r2).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r2){_defineProperty(e,r2,t[r2])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r2){Object.defineProperty(e,r2,Object.getOwnPropertyDescriptor(t,r2))})}return e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return _typeof(i)=="symbol"?i:i+""}function _toPrimitive(t,r){if(_typeof(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(_typeof(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var AjaxCart=(function(){return{init:function(container){var self=this;this.currentItemCount=Array.from(container.querySelectorAll('[name="updates[]"]')).reduce(function(total,quantityInput){return total+parseInt(quantityInput.value)},0)},addToCart:function(variantId,qty,properties){var self=this,data={id:variantId,quantity:qty},successEvent=new CustomEvent(events.a.eventStrs.addToCartSuccess),errorEvent=ne
52w CustomEvent(events.a.eventStrs.addToCartError);properties&&!$.isEmptyObject(properties)&&(data.properties=properties),this._doAjax(theme.routes.cart_add_url+".js",data,function(resultObj){$("body").trigger(events.a.eventStrs.addToCartSuccess),document.body.dispatchEvent(successEvent)},function(resultObj){$("body").trigger(events.a.eventStrs.addToCartError),document.body.dispatchEvent(errorEvent)})},updateCart:function(cartStr){var _this=this,successEvent=new CustomEvent(events.a.eventStrs.updateCartSuccess),errorEvent=new CustomEvent(events.a.eventStrs.updateCartError),self=this,line=cartStr.line,quantity=cartStr.new_quantity,body=JSON.stringify({line:line,quantity:quantity});fetch("".concat(window.theme.routes.cart_change_url),_objectSpread(_objectSpread({},fetchConfig()),{body:body})).then(function(response){return response.text()}).then(function(state){var parsedState=JSON.parse(state);_this.updateLiveRegions(line,parsedState.item_count);var lineItem=document.getElementById("CartItem-".concat(line));lineItem&&lineItem.querySelector('[name="'.concat(name,'"]'))&&lineItem.querySelector('[name="'.concat(name,'"]')).focus(),_this.disableLoading(),document.body.dispatchEvent(new CustomEvent(events.a.eventStrs.updateCartSuccess,{detail:{count:parsedState.item_count}}))}).catch(function(error){_this.querySelectorAll(".loading-overlay").forEach(function(overlay){return overlay.classList.add("hidden")}),document.getElementById("cart-errors").textContent=window.cartStrings.error,_this.disableLoading(),document.body.dispatchEvent(errorEvent)})},getSectionInnerHTML:function(html,selector){return new DOMParser().parseFromString(html,"text/html").querySelector(selector).innerHTML},enableLoading:function(line){document.getElementById("main-cart-items").classList.add("cart__items--disabled"),this.querySelectorAll("#CartItem-".concat(line," .loading-overlay")).forEach(function(overlay){return overlay.classList.remove("hidden")}),document.activeElement.blur(),this.lineItemStatusElement.setAttribute("aria-hidden",!1)},disableLoading:function(){document.getElementById("main-cart-items").classList.remove("cart__items--disabled")},getSectionsToRender:function(){return[{id:"main-cart-items",section:document.getElementById("main-cart-items").dataset.id,selector:".js-contents"}]},updateLiveRegions:function(line,itemCount){var modifiedQuantityInput=document.getElementById("Quantity-".concat(line)),previousValue=parseInt(modifiedQuantityInput.getAttribute("previous-value")),modifiedValue=parseInt(modifiedQuantityInput.value);this.currentItemCount===itemCount?(modifiedQuantityInput.value=previousValue,document.getElementById("Line-item-error-".concat(line)).querySelector(".cart-item__error-text").innerHTML=window.cartStrings.quantityError.replace("[quantity]",document.getElementById("Quantity-".concat(line)).value)):modifiedQuantityInput.setAttribute("previous-value",modifiedValue),this.currentItemCount=itemCount},getCartData:function(){var self=this;this._doAjax(theme.routes.cart_url+".js",null,function(cart){$("body").trigger(events.a.eventStrs.getCartSuccess,[cart])},function(cart){$("body").trigger(events.a.eventStrs.getCartError,[cart])})},_doAjax:function(url,data,successFunc,errorFunc){var self=this;$.ajax({type:"POST",url:url,data:data,dataType:"json",success:function(resultObj){$.isFunction(successFunc)&&successFunc(resultObj)},error:function(resultObj){$.isFunction(errorFunc)&&errorFunc(resultObj)}})}}})(),ThemeCart=(function(){return{_selectors:{cartItemsContainer:".js-cart-items-container",cartItem:".js-cart-item-info-container",cartItemPrice:".js-cart-item-price",cartItemOrigPrice:".js-cart-item-orig-price",hideOnEmpty:".js-cart-hide-on-empty",cartDiscounts:".cart-item__discount",showOnEmpty:".js-cart-show-on-empty",subtotal:".js-cart-subtotal",note:"#CartSpecialInstructions",cartItemIconSVG:".js-cart-icon #cart-svg",cartItemIconWrapper:".js-cart-icon",cartItemIconCount:".js-cart-icon #cart-svg-count",cartItemDiscount:".cart-item__discount span.money",cartItemIconMobileCount:".js-cart-mobile-icon #mobile-cart-svg-count",cartItemCount:".js-cart-count #CartCount",cartItemCost:".js-cart-count #CartCost"},_classes:{cartItemCountExtraPad:"cart-extra-pad"},init:function(container){var self=this,$container=$(container);AjaxCart.init(container),$container.find(self._selectors.cartItem).each(function(){quantityUtilities.initQtyControl
52s($(this))}),$container.find("#AddToCart").click(function(e){$("#mobile-cart-submit-button").trigger("click")}),$container.on(quantityUtilities.eventStrs.onQtyChanged,function(e){var eventData=e.detail;self._updateCart(eventData)}),$("body").on(events.a.eventStrs.updateCartSuccess,function(){self._updateCartValues(),quantityUtilities.enableAllControls()}),$("body").on(events.a.eventStrs.updateCartError,function(){quantityUtilities.enableAllControls()})},updateCartItemCount:function(newCount,cartTotalCost,discountTotal,items){$(this._selectors.cartItemIconCount+","+this._selectors.cartItemCount).html(newCount),$(this._selectors.cartItemIconMobileCount+","+this._selectors.cartItemCount).html(newCount),$(this._selectors.cartItemDiscount).html(Object(currency.a)(discountTotal,window.theme.settings.product.moneyFormat)),$(this._selectors.cartItemCost).html(Object(currency.a)(cartTotalCost,window.theme.settings.product.moneyFormat)),newCount==0?($(this._selectors.cartItemIconCount+","+this._selectors.cartItemCount).hide(),$(this._selectors.cartItemIconMobileCount+","+this._selectors.cartItemCount).hide(),$(this._selectors.cartItemIconWrapper).removeClass("cart-show")):($(this._selectors.cartItemIconCount+","+this._selectors.cartItemCount).show(),$(this._selectors.cartItemIconMobileCount+","+this._selectors.cartItemCount).show(),$(this._selectors.cartItemIconWrapper).addClass("cart-show")),newCount>9&&$(this._selectors.cartItemCount).addClass(this._classes.cartItemCountExtraPad)},_updateCart:function(data){quantityUtilities.disableAllControls(),AjaxCart.updateCart(data)},_updateCartValues:function(){var self=this,total=0,qty=0,compare=0,totalQty=0,newPrice=0,discount=0,$this,$productInfo;if(quantityUtilities.gatherQuantityFields().each(function(){if($this=$(this),qty=parseInt($this.val()),qty>0){if($productInfo=$this.closest(self._selectors.cartItem),newPrice=qty*$productInfo.data("price"),total+=newPrice,totalQty+=qty,$productInfo.data("orig-price")){var newOrigPrice=qty*$productInfo.data("orig-price");$productInfo.find(self._selectors.cartItemOrigPrice).html(Object(currency.a)(newOrigPrice,window.theme.settings.product.moneyFormat))}$productInfo.find(self._selectors.cartItemPrice).html(Object(currency.a)(newPrice,window.theme.settings.product.moneyFormat))}else $this.closest(self._selectors.cartItemsContainer).remove()}),$(".js-cart-subtotal[data-cart_discounts]").length>0){var dcount=$(".js-cart-subtotal").attr("data-cart_discounts");discount=dcount,total=total-discount}if(totalQty==0)$(self._selectors.showOnEmpty).show(),$(self._selectors.hideOnEmpty).hide();else{var totalFormatted=Object(currency.a)(total,window.theme.settings.product.moneyFormat);$(self._selectors.subtotal).html(totalFormatted),$(self._selectors.cartBtnSubtotal).html("Total: "+totalFormatted)}self.updateCartItemCount(totalQty,total)},_getCartValsStr:function(){var self=this,toReturn="",id,$this,$productInfo;quantityUtilities.gatherQuantityFields().each(function(){$this=$(this),$productInfo=$this.closest(self._selectors.cartItem),id=$productInfo.data("id"),toReturn!=""&&(toReturn+="&"),toReturn+="updates["+id+"]="+$this.val()});var note_str=$(self._selectors.note).val();return note_str!=""&&(toReturn!=""&&(toReturn+="&"),toReturn+="note="+note_str),toReturn}}})()}),(function(module,exports){var g;g=(function(){return this})();try{g=g||new Function("return this")()}catch(e){typeof window=="object"&&(g=window)}module.exports=g})]]); 53//# sourceMappingURL=/cdn/shop/t/30/assets/commons.nomin.js.map?v=75375851980933005871766703035
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.