403Webshell
Server IP : 104.21.14.103  /  Your IP : 3.16.48.122
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/bnnagency.com/wp-content/themes/flatsome/assets/js/builder/custom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/bnnagency.com/wp-content/themes/flatsome/assets/js/builder/custom/content.js
!function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=4)}([function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}},function(t,e,i){i.p=window.flatsomeVars?window.flatsomeVars.assets_url:"/"},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){i(2),t.exports=i(5)},function(t,e,i){"use strict";i.r(e),i(6),UxBuilder.controller("block",i(7).default),UxBuilder.controller("col",i(8).default),UxBuilder.controller("col_grid",i(9).default),UxBuilder.controller("tabgroup",i(10).default),UxBuilder.controller("text",i(11).default),UxBuilder.controller("ux_banner",i(12).default),UxBuilder.controller("ux_banner_grid",i(13).default),UxBuilder.controller("ux_slider",i(14).default),UxBuilder.controller("ux_hotspot",i(17).default),UxBuilder.controller("scroll_to",i(18).default),UxBuilder.controller("map",i(19).default),UxBuilder.controller("text_box",i(20).default),UxBuilder.on("shortcode-attached",(function(t){console.debug("+ shortcode-attached",t.tag),Flatsome.attach(t.$element)})),UxBuilder.on("shortcode-moved",(function(t){console.debug("⬍ shortcode-moved",t.tag),"scroll_to"===t.tag&&Flatsome.attach("scroll-to",t.$element)})),UxBuilder.on("shortcode-detached",(function(t){console.debug("- shortcode-detached",t.tag),Flatsome.detach(t.$element)})),UxBuilder.addfilter("shortcode-content",(function(t){return t.replace(/data-animate="(.*?)"/g,'data-animate="$1" data-animated="true"')})),UxBuilder.on("shortcode-content-change",(function(t){console.debug("~ shortcode-content-change",t.tag)})),UxBuilder.on("shortcode-content-mcetoggleformat",(function(t,e,i){console.debug("~ shortcode-content-mcetoggleformat",t.tag,e,i),Flatsome.detach(t.$element),Flatsome.attach(t.$element)}))},function(t,e){angular.module("uxBuilder").component("uxBannerTool",{controller:["app","$element",function(t,e){this.highlightHorizontalCenter=function(t){e.find(".grid-h-center").toggleClass("active",t)},this.highlightVerticalCenter=function(t){e.find(".grid-v-center").toggleClass("active",t)}}],controllerAs:"grid",template:'\n      <div class="grid-v-center"></div>\n      <div class="grid-h-center"></div>\n    '})},function(t,e,i){"use strict";i.r(e),function(t){i.d(e,"default",(function(){return a}));var n=i(0),s=i.n(n),o=i(1),r=i.n(o),a=function(){function e(t,i){s()(this,e),this.app=t,this.shortcode=i}return e.$inject=["app","shortcode"],r()(e,[{key:"$getShortcodeInfo",value:function(){var e=this;return this.shortcode._blockId!==this.shortcode.options.id&&(this.shortcode._blockId=this.shortcode.options.id,jQuery.get(t.flatsomeVars.ajaxurl,{action:"flatsome_block_title",block_id:this.shortcode.options.id},(function(t){var i=t.data;e.shortcode._blockTitle=i.block_title,e.app.apply()}))),this.shortcode._blockTitle}}]),e}()}.call(this,i(3))},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return a}));var n=i(0),s=i.n(n),o=i(1),r=i.n(o),a=function(){function t(e,i,n){s()(this,t),this.app=e,this.shortcode=i,this.$element=n,this.minColumns=1,this.maxColumns=12}return t.$inject=["app","shortcode","$element"],r()(t,[{key:"onResizeStart",value:function(t){var e,i,n;this.screenWidth=window.innerWidth,this.rowWidth=this.shortcode.parent.$element.width(),this.columnWidth=this.rowWidth/this.maxColumns,this.currentColumn=(e=this.shortcode,this.rowWidth,i=this.columnWidth,n=e.$element.offset().left+i/2-e.parent.$element.offset().left,Math.floor(n/i)),this.currentColumnSpans=this.shortcode.options.span,this.nextColumnSpans=this.shortcode.nextSibling?this.shortcode.nextSibling.options.span:this.maxColumns,this.shortcode.$element.addClass("uxb-is-resizing"),this.shortcode.nextSibling&&this.shortcode.nextSibling.$element.addClass("uxb-is-resizing")}},{key:"onResizeMove",value:function(t){var e=Math.floor((t.deltaX+this.columnWidth/2)/this.columnWidth);this.currentColumnSpans+e<this.minColumns&&(e=-(this.currentColumnSpans-1)),this.currentColumnSpans+e>this.maxColumns&&(e=this.maxColumns-this.currentColumnSpans),this.screenWidth>600&&this.shortcode.nextSibling&&(this.nextColumnSpans-e<this.minColumns&&(e=this.nextColumnSpans-1),this.currentColumn+this.currentColumnSpans+this.nextColumnSpans<=this.maxColumns&&(this.shortcode.nextSibling.options.span=this.nextColumnSpans-e,this.shortcode.nextSibling.apply())),this.shortcode.options.span=this.currentColumnSpans+e}},{key:"onResizeEnd",value:function(t){this.shortcode.$element.removeClass("uxb-is-resizing"),this.shortcode.nextSibling&&this.shortcode.nextSibling.$element.removeClass("uxb-is-resizing"),delete this.screenWidth,delete this.rowWidth,delete this.columnWidth,delete this.currentColumn,delete this.currentColumnSpans,delete this.nextColumnSpans}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return a}));var n=i(0),s=i.n(n),o=i(1),r=i.n(o),a=function(){function t(e,i,n){s()(this,t),this.app=e,this.shortcode=i}return t.$inject=["app","shortcode","$element"],r()(t,[{key:"onResizeRightStart",value:function(t){this.initColumns=this.shortcode.options.span,this.maxColumns=12}},{key:"onResizeRightMove",value:function(t){var e=this.shortcode.parent.$element.width()/12,i=Math.floor((t.deltaX+e/2)/e);i<=1-this.initColumns&&(i=1-this.initColumns),i>=this.maxColumns-1&&(i=this.maxColumns-1),this.shortcode.options.span=this.initColumns+i}},{key:"onResizeRightEnd",value:function(t){delete this.currentColumnSpans,delete this.maxColumns}},{key:"onResizeBottomStart",value:function(t){this.containerHeight=this.shortcode.parent.options.height,this.initElementHeight=this.shortcode.$element.height(),this.initOptionHeight=this.shortcode.options.height}},{key:"onResizeBottomMove",value:function(t){var e=this.shortcode.parent.options.height/4,i=(this.initElementHeight+(t.deltaY+e/2))/this.containerHeight;i>=1?this.shortcode.options.height="1":i>=.75?this.shortcode.options.height="3-4":i>=.66?this.shortcode.options.height="2-3":i>=.5?this.shortcode.options.height="1-2":i>=.33?this.shortcode.options.height="1-3":i>=.25&&(this.shortcode.options.height="1-4")}},{key:"onResizeBottomEnd",value:function(t){delete this.containerHeight,delete this.initElementHeight,delete this.initOptionHeight}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return a}));var n=i(0),s=i.n(n),o=i(1),r=i.n(o),a=function(){function t(e,i,n,o,r,a){var h=this;s()(this,t),this.app=i,this.targets=n,this.shortcode=o,this.shortcode.states.activeTab=0,r((function(){h.targets.disable(h.shortcode.children),h.targets.enable(h.shortcode.childAt(0))}),0,!1),e.$watch((function(){return i.states.selectedShortcode}),(function(t){t&&t.isChildOf(h.shortcode)&&t.index!==h.shortcode.states.activeTab&&h.setTab(t.index)})),e.$on(a.DETACHED,(function(t,e){e.isChildOf(h.shortcode)&&h.setTab(e.index-1)}))}return t.$inject=["$scope","app","targets","shortcode","$timeout","ShortcodeEvent"],r()(t,[{key:"setTab",value:function(t){t=t<0?0:t,this.shortcode.states.activeTab=t,this.targets.disable(this.shortcode.children),this.targets.enable(this.shortcode.childAt(t)),this.app.selectShortcode(this.shortcode.childAt(t)),this.app.configureShortcode(this.shortcode.childAt(t))}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return o}));var n=i(0),s=i.n(n),o=function t(e,i,n,o,r){function a(){e("wp-editor").open()}s()(this,t),r.on("dblclick",a),o.$on("$destroy",(function(){r.off("dblclick",a)}))};o.$inject=["app","shortcode","tools","$scope","$element"]},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return o}));var n=i(0),s=i.n(n),o=function t(e,i,n,o,r,a,h,l){s()(this,t),e("tools").addTool(i.$id,'<ux-banner-tool id="'+i.$id+'"/>',o.find(".banner-layers")),n.$on(h.START,(function(t,n){n.shortcode.isChildOf(i)&&(n.preventDefault(),n.setContainment(i.$element.find(".banner-layers")),e("tools").showTool(i.$id))})),n.$on(h.MOVE,(function(t,n){if(n.shortcode.isChildOf(i)){var s=function(t){var n=null,s=null,o=t.innerY,r=t.constrains.width-(t.innerX+t.virtual.width),a=t.constrains.height-(t.innerY+t.virtual.height),h=t.innerX,l=_.min([{name:"right",distance:r},{name:"left",distance:h}],(function(t){return t.distance})),c=_.min([{name:"top",distance:o},{name:"bottom",distance:a}],(function(t){return t.distance})),d=Math.abs(o-a)<t.constrains.height/100*5,u=Math.abs(h-r)<t.constrains.width/100*5;return e("tools").getTool(i.$id).scope().grid.highlightHorizontalCenter(d),e("tools").getTool(i.$id).scope().grid.highlightVerticalCenter(u),n=round(l.distance/t.constrains.width*100,5),s=round(c.distance/t.constrains.height*100,5),"right"===l.name&&(n=100-n),"bottom"===c.name&&(s=100-s),d&&(s=50),u&&(n=50),{x:n=(n=n>=100?100:n)<=0?0:n,y:s=(s=s>=100?100:s)<=0?0:s}}(n);n.shortcode.$element.addClass("text-box-dragging"),n.shortcode.options.positionX=s.x,n.shortcode.options.positionY=s.y}})),n.$on(h.END,(function(t,n){n.shortcode.isChildOf(i)&&(n.shortcode.$element.removeClass("text-box-dragging"),e("tools").hideTool(i.$id))})),n.$on(l.ATTACHED,(function(t,e){e.isChildOf(i)})),n.$on("$destroy",(function(){e("tools").removeTool(i.$id)})),n.$watch((function(){return i.options.height}),(function(t,e){t!==e&&i.parent.is("ux_slider")&&i.parent.$scope.$customCtrl.setHeight()}))};o.$inject=["app","shortcode","$scope","$element","$timeout","$interpolate","DragEvent","ShortcodeEvent"]},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return a}));var n=i(0),s=i.n(n),o=i(1),r=i.n(o),a=function(){function t(e,i,n,o,r,a,h){var l=this;s()(this,t),this.app=e,this.shortcode=i,this.$element=n,this.$iframe=o,this.$scope=r,this.$timeout=a,this.$row=n.find(".row"),this.options={gutter:0,percentPosition:!0,itemSelector:".col",columnWidth:".grid-size",transitionDuration:"250ms"},this.packery=new Packery(this.$row.get(0),this.options),r.$watchCollection("shortcode.children",this.onChildrenChange.bind(this)),r.$watchCollection("shortcode.options",this.onOptionsChange.bind(this)),r.$on(h.START,this.onDragStart.bind(this)),r.$on(h.MOVE,this.onDragMove.bind(this)),r.$on(h.END,this.onDragEnd.bind(this)),r.$on("$destroy",(function(){return l.packery.destroy()}))}return t.$inject=["app","shortcode","$element","$iframe","$scope","$timeout","DragEvent"],r()(t,[{key:"onChildrenChange",value:function(t,e){var i=this,n=t!==e?_.difference(t,e):t;n.length&&t!==e&&this.$timeout((function(){i.$iframe().contents().find("body").scrollToElement(n[0].$element)}),250,!1),_.each(n,(function(t){i.$scope.$watchCollection((function(){return t.options}),i.onChildOptionsChange.bind(i))})),this.$timeout((function(){i.packery.reloadItems(),i.packery.layout()}),0,!1)}},{key:"onChildOptionsChange",value:function(t,e){var i=this,n=!1;t.span!==e.span&&(n=!0),t.height!==e.height&&(n=!0),t.spacing!==e.spacing&&(n=!0),n&&this.$timeout((function(){return i.packery.layout()}),0,!1)}},{key:"onOptionsChange",value:function(t,e){var i=this;this.$timeout((function(){return i.packery.layout()}),0,!1)}},{key:"onDragStart",value:function(t,e){e.shortcode.isChildOf(this.shortcode)&&(e.preventDefault(),e.setContainment(this.$row),this.packery.itemDragStart(e.shortcode.$element.get(0)))}},{key:"onDragMove",value:function(t,e){e.shortcode.isChildOf(this.shortcode)&&(e.shortcode.$element.css({left:e.innerX,top:e.innerY}),this.packery.itemDragMove(e.shortcode.$element.get(0),e.innerX,e.innerY))}},{key:"onDragEnd",value:function(t,e){e.shortcode.isChildOf(this.shortcode)&&(this.packery.itemDragEnd(e.shortcode.$element.get(0)),this.reorderChildren())}},{key:"reorderChildren",value:function(){var t=this.shortcode.children,e=this.packery.getItemElements();_.each(e,(function(t,e){angular.element(t).shortcode().$$order=e})),this.shortcode.children=_.sortBy(t,"$$order"),_.each(this.shortcode.children,(function(t){delete t.$$order}))}}]),t}()},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return a}));var n=i(0),s=i.n(n),o=i(1),r=i.n(o),a=(i(15),function(){function t(e,i,n,o,r,a,h,l){var c=this;s()(this,t),this.app=e,this.shortcode=i,this.targets=n,this.$element=r,this.$timeout=a,this.$slider=r.find(".slider"),this.isInitializing=!1,this.flickity=null,this.options={initialIndex:0,cellAlign:"center",imagesLoaded:!0,freeScroll:"true"===this.shortcode.options.freescroll,wrapAround:"true"===this.shortcode.options.infinitive,prevNextButtons:"true"===this.shortcode.options.arrows,contain:!0,percentPosition:!0,pageDots:"true"===this.shortcode.options.bullets,selectedAttraction:.1,friction:.6,rightToLeft:!1,draggable:!1,on:{ready:function(){c.handleVideo()}}},o.$watch((function(){return e.states.selectedShortcode}),(function(t){if(t){for(var e=0;e<c.shortcode.children.length;e++)if(t.isSelfOrDescendantOf(c.shortcode.children[e])){c.flickity.select(e);break}t.isAncestorOf(c.shortcode)&&c.$timeout((function(){return c.setHeight()}),0,!1)}})),o.$watchCollection((function(){return c.shortcode.children}),(function(t,e){if(t.length&&t.length===e.length){var i=c.flickity?c.flickity.selectedIndex:0;c.options.initialIndex=e[i].index,c.initialize()}})),o.$watchCollection((function(){return c.shortcode.options}),(function(t,e){var i=!1,n=!1;t!==e&&(t.slideAlign!==e.slideAlign&&(c.options.cellAlign=t.slideAlign,i=!0),t.visibility!==e.visibility&&(i=!0),t.arrows!==e.arrows&&(c.options.prevNextButtons="true"===t.arrows,i=!0),t.bullets!==e.bullets&&(c.options.pageDots="true"===t.bullets,i=!0),t.parallax!==e.parallax&&(c.options.parallax=t.parallax,i=!0),t.freescroll!==e.freescroll&&(c.options.freeScroll="true"===t.freescroll,i=!0),t.infinitive!==e.infinitive&&(c.options.wrapAround="true"===t.infinitive,i=!0),t.slideWidth!==e.slideWidth&&(n=!0),t.style!==e.style&&(n=!0),i&&c.initialize(),!i&&n&&c.$timeout((function(){return c.$slider.flickity("resize")}),100,!1))})),o.$on(l.REMOVED,(function(t,e){e.isChildOf(c.shortcode)&&c.initialize()})),o.$on(l.ADDED,(function(t,e){e.isChildOf(c.shortcode)&&(c.options.initialIndex=e.index,c.initialize())})),o.$on(h.ATTACHED,(function(t,e){e.isChildOf(c.shortcode)&&(e.data.template||c.initialize())})),o.$on("$destroy",(function(){c.destroy(),c.$slider=null}))}return t.$inject=["app","shortcode","targets","$scope","$element","$timeout","ShortcodeEvent","ChildEvent"],r()(t,[{key:"initialize",value:function(){var t=this;this.isInitializing||(this.isInitializing=!0,this.flickity&&this.destroy(),this.$timeout((function(){if(t.flickity=t.$slider.flickity(t.options).data("flickity"),t.flickity.on("select",t.onSelect.bind(t)),t.flickity.on("settle",t.onSettle.bind(t)),t.flickity.on("change",t.onChange.bind(t)),t.options.parallax){var e=jQuery(t.$slider).find(".bg, .flickity-slider > .img img"),i=t.flickity,n=t.options.parallax;jQuery(t.$slider).addClass("slider-has-parallax"),t.flickity.on("scroll",(function(t,s){i.slides.forEach((function(t,s){var o=e[s],r=-1*(t.target+i.x)/n;o&&(o.style.transform="translateX(".concat(r,"px)"))}))}))}t.$slider.on("click.uxSlider",".flickity-prev-next-button.previous",t.previous.bind(t)),t.$slider.on("click.uxSlider",".flickity-prev-next-button.next",t.next.bind(t)),t.$slider.on("click",t.onClick.bind(t)),t.enableCurrentSlideTargets(),t.isInitializing=!1}),0,!1))}},{key:"destroy",value:function(){this.flickity&&(this.flickity.off("select",this.onSelect),this.flickity.off("settle",this.onSettle),this.flickity.off("change",this.onChange),this.$slider.off("click",this.onClick),this.$slider.off("click.uxSlider",".flickity-prev-next-button.previous"),this.$slider.off("click.uxSlider",".flickity-prev-next-button.next"),this.flickity.destroy(),this.flickity=null)}},{key:"onClick",value:function(t){var e=this.flickity.selectedIndex;this.app.configureShortcode(null),this.app.selectShortcode(this.shortcode.childAt(e)),this.shortcode.apply(),t.stopPropagation()}},{key:"onSelect",value:function(){this.$slider.hasClass("slider-auto-height")&&this.$slider.find(".flickity-viewport").css({height:this.$slider.find(".is-selected").outerHeight()})}},{key:"onSettle",value:function(){this.options.initialIndex=this.flickity.selectedIndex,this.enableCurrentSlideTargets()}},{key:"onChange",value:function(){this.handleVideo()}},{key:"setHeight",value:function(t){this.$element.find(".flickity-viewport").css({height:t||this.flickity?this.flickity.selectedElement.offsetHeight:null})}},{key:"enableCurrentSlideTargets",value:function(){var t=this;this.shortcode.children.forEach((function(e,i){i===t.flickity.selectedIndex?t.targets.enableElement(e.$element.get(0)):t.targets.disableElement(e.$element.get(0))}))}},{key:"handleVideo",value:function(){this.$slider.find(".flickity-slider > :not(.is-selected) .video-bg").trigger("pause"),this.$slider.find(".is-selected .video-bg").trigger("play")}},{key:"next",value:function(){this.$slider.off("click.uxSlider",".flickity-prev-next-button.next"),this.flickity.next()}},{key:"previous",value:function(){this.$slider.off("click.uxSlider",".flickity-prev-next-button.previous"),this.flickity.previous()}}]),t}())},function(t,e,i){var n,s,o,r,a,h,l,c,d,u,p,f,g,v,m,y,b,C,x,S,E,w,k,D,_,$,A,P,L;!function(n,s){P=[i(16)],void 0===(L=function(t){return function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,s=void 0===n?function(){}:function(t){n.error(t)};function o(n,o,a){function h(t,e,i){var o,r="$()."+n+'("'+e+'")';return t.each((function(t,h){var l=a.data(h,n);if(l){var c=l[e];if(c&&"_"!=e.charAt(0)){var d=c.apply(l,i);o=void 0===o?d:o}else s(r+" is not a valid method")}else s(n+" not initialized. Cannot call methods, i.e. "+r)})),void 0!==o?o:t}function l(t,e){t.each((function(t,i){var s=a.data(i,n);s?(s.option(e),s._init()):(s=new o(i,e),a.data(i,n,s))}))}(a=a||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[n]=function(t){if("string"==typeof t){var e=i.call(arguments,1);return h(this,t,e)}return l(this,t),this},r(a))}function r(t){!t||t&&t.bridget||(t.bridget=o)}return r(e||t.jQuery),o}(n,t)}.apply(e,P))||(t.exports=L)}(window),"undefined"!=typeof window&&window,o={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},n="function"==typeof(s=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?s.call(o.exports,i,o.exports,o):s,o.loaded=!0,void 0!==n||(n=o.exports),window,h={id:"get-size/get-size",exports:{},loaded:!1},r="function"==typeof(a=function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],n=i.length;function s(t){var i=getComputedStyle(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var o,r=!1;return function e(a){if(function(){if(!r){r=!0;var i=document.createElement("div");i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(i);var a=s(i);o=200==Math.round(t(a.width)),e.isBoxSizeOuter=o,n.removeChild(i)}}(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var h=s(a);if("none"==h.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<n;e++)t[i[e]]=0;return t}();var l={};l.width=a.offsetWidth,l.height=a.offsetHeight;for(var c=l.isBorderBox="border-box"==h.boxSizing,d=0;d<n;d++){var u=i[d],p=h[u],f=parseFloat(p);l[u]=isNaN(f)?0:f}var g=l.paddingLeft+l.paddingRight,v=l.paddingTop+l.paddingBottom,m=l.marginLeft+l.marginRight,y=l.marginTop+l.marginBottom,b=l.borderLeftWidth+l.borderRightWidth,C=l.borderTopWidth+l.borderBottomWidth,x=c&&o,S=t(h.width);!1!==S&&(l.width=S+(x?0:g+b));var E=t(h.height);return!1!==E&&(l.height=E+(x?0:v+C)),l.innerWidth=l.width-(g+b),l.innerHeight=l.height-(v+C),l.outerWidth=l.width+m,l.outerHeight=l.height+y,l}}})?a.call(h.exports,i,h.exports,h):a,h.loaded=!0,void 0!==r||(r=h.exports),function(t,e){"use strict";d={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},l="function"==typeof(c=e)?c.call(d.exports,i,d.exports,d):c,d.loaded=!0,void 0!==l||(l=d.exports)}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}})),function(t,i){u=function(e){return function(t,e){var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},n=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var s=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(n){e(t,n)&&s.push(t);for(var i=t.querySelectorAll(n),o=0;o<i.length;o++)s.push(i[o])}else s.push(t)})),s},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];clearTimeout(t);var e=arguments,o=this;this[s]=setTimeout((function(){n.apply(o,e),delete o[s]}),i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()};var s=t.console;return i.htmlInit=function(e,n){i.docReady((function(){var o=i.toDashed(n),r="data-"+o,a=document.querySelectorAll("["+r+"]"),h=document.querySelectorAll(".js-"+o),l=i.makeArray(a).concat(i.makeArray(h)),c=r+"-options",d=t.jQuery;l.forEach((function(t){var i,o=t.getAttribute(r)||t.getAttribute(c);try{i=o&&JSON.parse(o)}catch(e){return void(s&&s.error("Error parsing "+r+" on "+t.className+": "+e))}var a=new e(t,i);d&&d.data(t,n,a)}))}))},i}(t,e)}.apply(e,P=[l])}(window),window,p=function(t){return function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},n.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}(0,t)}.apply(e,P=[r]),window,v={id:"flickity/js/slide",exports:{},loaded:!1},f="function"==typeof(g=function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.cells.forEach((function(t){t.select()}))},e.unselect=function(){this.cells.forEach((function(t){t.unselect()}))},e.getCellElements=function(){return this.cells.map((function(t){return t.element}))},t})?g.call(v.exports,i,v.exports,v):g,v.loaded=!0,void 0!==f||(f=v.exports),window,m=function(t){return function(t,e){return{startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame((function(){e.animate()}))}},positionSlider:function(){var t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"},dispatchScrollEvent:function(){var t=this.slides[0];if(t){var e=-this.x-t.target,i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){!this.isPointerDown&&Math.round(100*this.x)==Math.round(100*t)&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n],o=e>0?i:0;s.wrapShift(o),e-=s.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x-this.velocity;this.applyForce(t)}},applySelectedAttraction:function(){if((!this.isDraggable||!this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}}}}(0,t)}.apply(e,P=[u]),function(t,i){y=function(e,i,n,s,o,r){return function(t,e,i,n,s,o,r){var a=t.jQuery,h=t.getComputedStyle,l=t.console;function c(t,e){for(t=n.makeArray(t);t.length;)e.appendChild(t.shift())}var d=0,u={};function p(t,e){var i=n.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var s=u[this.element.flickityGUID];return s&&s.option(e),s}a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),this._create()}else l&&l.error("Bad element for Flickity: "+(i||t))}p.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},p.createMethods=[];var f=p.prototype;n.extend(f,e.prototype),f._create=function(){var e=this.guid=++d;for(var i in this.element.flickityGUID=e,u[e]=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)&&t.addEventListener("resize",this),this.options.on){var n=this.options.on[i];this.on(i,n)}p.createMethods.forEach((function(t){this[t]()}),this),this.options.watchCSS?this.watchCSS():this.activate()},f.option=function(t){n.extend(this.options,t)},f.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),c(this._filterFindCellElements(this.element.children),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"))},f._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},f._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},f.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},f._makeCells=function(t){return this._filterFindCellElements(t).map((function(t){return new s(t,this)}),this)},f.getLastCell=function(){return this.cells[this.cells.length-1]},f.getLastSlide=function(){return this.slides[this.slides.length-1]},f.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},f._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,s=t;s<n;s++){var o=this.cells[s];o.setPosition(e),e+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},f._sizeCells=function(t){t.forEach((function(t){t.getSize()}))},f.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new o(this);this.slides.push(t);var e="left"==this.originSide?"marginRight":"marginLeft",i=this._getCanCellFit();this.cells.forEach((function(n,s){if(t.cells.length){var r=t.outerWidth-t.firstMargin+(n.size.outerWidth-n.size[e]);i.call(this,s,r)||(t.updateTarget(),t=new o(this),this.slides.push(t)),t.addCell(n)}else t.addCell(n)}),this),t.updateTarget(),this.updateSelectedSlide()}},f._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},f._init=f.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},f.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return f.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},f.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},f._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},f._getGapCells=function(t,e,i){for(var n=[];t>0;){var s=this.cells[e];if(!s)break;n.push(s),e+=i,t-=s.size.outerWidth}return n},f._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],s=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],r=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach((function(t){s?t.target=n*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,r))}),this)}},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),a&&this.$element){var s=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var o=new a.Event(e);o.type=t,s=o}this.$element.trigger(s,i)}},f.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=n.modulo(t,this.slides.length)),this.slides[t])){var s=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=s&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},f._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&e>1))return t;var i=n.modulo(t,e),s=Math.abs(i-this.selectedIndex),o=Math.abs(i+e-this.selectedIndex),r=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&o<s?t+=e:!this.isDragSelect&&r<s&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},f.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},f.next=function(t,e){this.select(this.selectedIndex+1,t,e)},f.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},f.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},f.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t&&this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},f.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var s=this.getCellSlideIndex(n);this.select(s,e,i)}},f.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++)if(-1!=this.slides[e].cells.indexOf(t))return e},f.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},f.getCells=function(t){t=n.makeArray(t);var e=[];return t.forEach((function(t){var i=this.getCell(t);i&&e.push(i)}),this),e},f.getCellElements=function(){return this.cells.map((function(t){return t.element}))},f.getParentCell=function(t){return this.getCell(t)||(t=n.getParent(t,".flickity-slider > *"),this.getCell(t))},f.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var s=[],o=e-t;o<=e+t;o++){var r=this.options.wrapAround?n.modulo(o,i):o,a=this.slides[r];a&&(s=s.concat(a.getCellElements()))}return s},f.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#.]?[\d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},f.uiChange=function(){this.emitEvent("uiChange")},f.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},f.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(p,"onresize",150),f.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},f.watchCSS=function(){this.options.watchCSS&&(-1!=h(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},f.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=p.keyboardHandlers[t.keyCode];i&&i.call(this)}},p.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},f.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&t.scrollTo(t.pageXOffset,e)},f.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach((function(t){t.destroy()})),this.element.removeChild(this.viewport),c(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},f.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),a&&this.$element&&a.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete u[this.guid]},n.extend(f,r),p.data=function(t){var e=(t=n.getQueryElement(t))&&t.flickityGUID;return e&&u[e]},n.htmlInit(p,"flickity"),a&&a.bridget&&a.bridget("flickity",p),p.setJQuery=function(t){a=t},p.Cell=s,p.Slide=o,p}(t,e,i,n,s,o,r)}.apply(e,P=[n,r,u,p,f,m])}(window),function(t,i){b=function(e){return function(t,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindStartEvent=function(t){this._bindStartEvent(t,!0)},n.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},n._bindStartEvent=function(e,i){var n=(i=void 0===i||i)?"addEventListener":"removeEventListener",s="mousedown";t.PointerEvent?s="pointerdown":"ontouchstart"in t&&(s="touchstart"),e[n](s,this)},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},n.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},n.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},n.onpointerdown=function(t){this._pointerDown(t,t)},n._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},n.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var s={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return n._bindPostStartEvents=function(e){if(e){var i=s[e.type];i.forEach((function(e){t.addEventListener(e,this)}),this),this._boundPointerEvents=i}},n._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach((function(e){t.removeEventListener(e,this)}),this),delete this._boundPointerEvents)},n.onmousemove=function(t){this._pointerMove(t,t)},n.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},n.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},n._pointerMove=function(t,e){this.pointerMove(t,e)},n.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},n.onmouseup=function(t){this._pointerUp(t,t)},n.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},n.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},n._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},n._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},n._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},n.pointerDone=function(){},n.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},n.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},n._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},n.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},i.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},i}(t,e)}.apply(e,P=[n])}(window),function(t,i){C=function(e){return function(t,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){for(var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",s=0;s<this.handles.length;s++){var o=this.handles[s];this._bindStartEvent(o,e),o[i]("click",this),t.PointerEvent&&(o.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var s={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=s[t.target.nodeName],i=o[t.target.type],n=!e||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}(t,e)}.apply(e,P=[b])}(window),function(t,i){x=function(e,i,n){return function(t,e,i,n){n.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var s=e.prototype;n.extend(s,i.prototype),s._touchActionValue="pan-y";var o="createTouch"in document,r=!1;s._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),o&&!r&&(t.addEventListener("touchmove",(function(){})),r=!0)},s.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},s.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},s.updateDraggable=function(){">1"==this.options.draggable?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")},s.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},s.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},s._uiChangeDrag=function(){delete this.isFreeScrolling},s.pointerDown=function(e,i){this.isDraggable?this.okayPointerDown(e)&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=h(),t.addEventListener("scroll",this),this._pointerDownDefault(e,i)):this._pointerDownDefault(e,i)},s._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var a={INPUT:!0,TEXTAREA:!0,SELECT:!0};function h(){return{x:t.pageXOffset,y:t.pageYOffset}}return s.pointerDownFocus=function(t){a[t.target.nodeName]||this.focus()},s._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,n=a[t.target.nodeName];e||i||n||t.preventDefault()},s.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},s.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},s.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},s.dragStart=function(e,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[i]))},s.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},s.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x%=this.slideableWidth);var s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);s=s>o?.5*(s+o):s;var r=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=s<r?.5*(s+r):s}this.dragX=s,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},s.dragEnd=function(t,e){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])}},s.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index},s._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,s=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,s)&&(n+=i,s=e,null!==(e=this.getSlideDistance(-t,n)));)e=Math.abs(e);return{distance:s,index:n-i}},s.getSlideDistance=function(t,e){var i=this.slides.length,s=this.options.wrapAround&&i>1,o=s?n.modulo(e,i):e,r=this.slides[o];if(!r)return null;var a=s?this.slideableWidth*Math.floor(e/i):0;return t-(r.target+a)},s.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},s.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])},s.onscroll=function(){var t=h(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}(t,e,i,n)}.apply(e,P=[y,C,u])}(window),window,S=function(t,e,i){return function(t,e,i,n){"use strict";var s="http://www.w3.org/2000/svg";function o(t,e){this.direction=t,this.parent=e,this._create()}o.prototype=Object.create(i.prototype),o.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(s,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e,i=document.createElementNS(s,"path"),n="string"==typeof(e=this.parent.options.arrowShape)?e:"M "+e.x0+",50 L "+e.x1+","+(e.y1+50)+" L "+e.x2+","+(e.y2+50)+" L "+e.x3+",50  L "+e.x2+","+(50-e.y2)+" L "+e.x1+","+(50-e.y1)+" Z";return i.setAttribute("d",n),i.setAttribute("class","arrow"),this.isLeft||i.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(i),t},o.prototype.handleEvent=n.handleEvent,o.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e;this[this.parent.selectedIndex==i?"disable":"enable"]()}},o.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var r=e.prototype;return r._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},r.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},r.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}(0,t,e,i)}.apply(e,P=[y,b,u]),window,E=function(t,e,i){return function(t,e,i,n){function s(t){this.parent=t,this._create()}s.prototype=Object.create(i.prototype),s.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))},s.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,o=n;o<s;o++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach((function(t){this.holder.removeChild(t)}),this)},s.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"))},s.prototype.onTap=s.prototype.onClick=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},s.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(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))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=s,e}(0,t,e,i)}.apply(e,P=[y,b,u]),window,w=function(t,e,i){return function(t,e,i){function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout((function(){e.parent.next(!0),e.tick()}),t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}(t,e,i)}.apply(e,P=[n,u,y]),window,k=function(t,e){return function(t,e,i){var n=e.prototype;return n.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var n=this.cells.length;e=void 0===e?n:e;var s=function(t){var e=document.createDocumentFragment();return t.forEach((function(t){e.appendChild(t.element)})),e}(i),o=e==n;if(o)this.slider.appendChild(s);else{var r=this.cells[e].element;this.slider.insertBefore(s,r)}if(0===e)this.cells=i.concat(this.cells);else if(o)this.cells=this.cells.concat(i);else{var a=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i),this.cellChange(e,!0)}},n.append=function(t){this.insert(t,this.cells.length)},n.prepend=function(t){this.insert(t,0)},n.remove=function(t){var e=this.getCells(t);if(e&&e.length){var n=this.cells.length-1;e.forEach((function(t){t.remove();var e=this.cells.indexOf(t);n=Math.min(e,n),i.removeFrom(this.cells,t)}),this),this.cellChange(n,!0)}},n.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},n.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}(0,t,e)}.apply(e,P=[y,u]),window,D=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createLazyload");var n=e.prototype;function s(t,e){this.img=t,this.flickity=e,this.load()}return n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,n=this.getAdjacentCellElements(e),o=[];n.forEach((function(t){var e=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),n=t.getAttribute("data-flickity-lazyload-src"),s=t.getAttribute("data-flickity-lazyload-srcset");if(e||n||s)return[t]}var o=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(o)}(t);o=o.concat(e)})),o.forEach((function(t){new s(t,this)}),this)}},s.prototype.handleEvent=i.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=s,e}(0,t,e)}.apply(e,P=[y,u]),window,P=[y,x,S,E,w,k,D],_="function"==typeof($=function(t){return t})?$.apply(e,P):$,window,P=[_,u],void 0===(L="function"==typeof($=function(t,e){t.createMethods.push("_createAsNavFor");var i=t.prototype;return i._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout((function(){e.setNavCompanion(t)}))}},i.setNavCompanion=function(i){i=e.getQueryElement(i);var n=t.data(i);if(n&&n!=this){this.navCompanion=n;var s=this;this.onNavCompanionSelect=function(){s.navCompanionSelect()},n.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},i.navCompanionSelect=function(t){var e=this.navCompanion&&this.navCompanion.selectedCells;if(e){var i,n=e[0],s=this.navCompanion.cells.indexOf(n),o=s+e.length-1,r=Math.floor((o-(i=s))*this.navCompanion.cellAlign+i);if(this.selectCell(r,!1,t),this.removeNavSelectedElements(),!(r>=this.cells.length)){var a=this.cells.slice(s,o+1);this.navSelectedElements=a.map((function(t){return t.element})),this.changeNavSelectedClass("add")}}},i.changeNavSelectedClass=function(t){this.navSelectedElements.forEach((function(e){e.classList[t]("is-nav-selected")}))},i.activateAsNavFor=function(){this.navCompanionSelect(!0)},i.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},i.onNavStaticClick=function(t,e,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},i.deactivateAsNavFor=function(){this.removeNavSelectedElements()},i.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t})?$.apply(e,P):$)||(t.exports=L),function(t,i){"use strict";A=function(e){return function(t,e){var i=t.jQuery,n=t.console;function s(t,e){for(var i in e)t[i]=e[i];return t}var o=Array.prototype.slice;function r(t,e,a){if(!(this instanceof r))return new r(t,e,a);var h,l=t;"string"==typeof t&&(l=document.querySelectorAll(t)),l?(this.elements=(h=l,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?o.call(h):[h]),this.options=s({},this.options),"function"==typeof e?a=e:s(this.options,e),a&&this.on("always",a),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(l||t))}r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&a[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}}};var a={1:!0,9:!0,11:!0};function h(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)}},r.prototype.addImage=function(t){var e=new h(t);this.images.push(e)},r.prototype.addBackground=function(t,e){var i=new l(t,e);this.images.push(i)},r.prototype.check=function(){var t=this;function e(e,i,n){setTimeout((function(){t.progress(e,i,n)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&n&&n.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(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)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},h.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(h.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(i(this))})},r.makeJQueryPlugin(),r}(t,e)}.apply(e,P=[n])}("undefined"!=typeof window?window:this),window,void 0===(L=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createImagesLoaded");var n=e.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){if(this.options.imagesLoaded){var t=this;i(this.slider).on("progress",(function(e,i){var n=t.getParentCell(i.img);t.cellSizeChange(n&&n.element),t.options.freeScroll||t.positionSliderAtSelected()}))}},e}(0,t,e)}.apply(e,P=[_,A]))||(t.exports=L)},function(t,e){t.exports=window.jQuery},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return o}));var n=i(0),s=i.n(n),o=function t(e,i,n,o){var r=this;s()(this,t),this.shortcode=i,this.$element=n,this.$timeout=o,e.$watchCollection((function(){return r.shortcode.options}),(function(t,e){t!==e&&"text"===t.type&&r.$timeout((function(){jQuery(n).find(".tooltip").lazyTooltipster("content",t.text)}),100,!1)}))};o.$inject=["$scope","shortcode","$element","$timeout"]},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return o}));var n=i(0),s=i.n(n),o=function t(e,i,n,o){var r=this;s()(this,t),this.shortcode=i,this.$element=n,this.$timeout=o,e.$watchCollection((function(){return r.shortcode.options}),(function(t,e){}))};o.$inject=["$scope","shortcode","$element","$timeout"]},function(t,e,i){"use strict";i.r(e),function(t){i.d(e,"default",(function(){return a}));var n=i(0),s=i.n(n),o=i(1),r=i.n(o),a=function(){function e(t,i,n,o,r){var a=this;s()(this,e),this.app=t,this.shortcode=i,this.mapElement=o.find("#map_"+i.$id).get(0),this.map=null,this.marker=null,this.initializeMap(),n.$watchCollection((function(){return a.shortcode.options}),(function(t,e){if(t!==e){var i=a.getOptions(t);a.map.setOptions(i),a.marker.setPosition(i.center),a.map.mapTypes.set("flatsome",a.getStyle(t))}})),n.$on("$destroy",(function(){a.map=null,a.marker=null}))}return e.$inject=["app","shortcode","$scope","$element","$window"],r()(e,[{key:"initializeMap",value:function(){var e=t.google,i=this.getOptions(this.shortcode.options),n=this.getStyle(this.shortcode.options);this.map=new e.maps.Map(this.mapElement,i),this.map.mapTypes.set("flatsome",n),this.marker=new t.google.maps.Marker({position:i.center,map:this.map,title:""})}},{key:"getOptions",value:function(e){var i=t.google,n="true"===e.controls;return{zoom:e.zoom,center:new i.maps.LatLng(e.lat,e.long),disableDefaultUI:!0,mapTypeId:"flatsome",draggable:!1,zoomControl:n&&"true"===e.zoomControl,zoomControlOptions:{position:i.maps.ControlPosition.TOP_LEFT},mapTypeControl:n&&"true"===e.mapTypeControl,mapTypeControlOptions:{position:i.maps.ControlPosition.TOP_LEFT},streetViewControl:n&&"true"===e.streetViewControl,streetViewControlOptions:{position:i.maps.ControlPosition.TOP_LEFT},scrollwheel:!1,disableDoubleClickZoom:!0}}},{key:"getStyle",value:function(e){var i=t.google,n=e.color,s=e.saturation;return new i.maps.StyledMapType([{featureType:"administrative",stylers:[{visibility:"on"}]},{featureType:"road",stylers:[{visibility:"on"},{hue:n}]},{stylers:[{visibility:"on"},{hue:n},{saturation:s}]}],{name:"flatsome"})}}]),e}()}.call(this,i(3))},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return a}));var n=i(0),s=i.n(n),o=i(1),r=i.n(o),a=function(){function t(e,i,n){s()(this,t),this.app=e,this.shortcode=i,this.$element=n}return t.$inject=["app","shortcode","$element"],r()(t,[{key:"onResizeRightStart",value:function(t){var e,i,n,s;this.maxWidth=this.shortcode.parent.$element.width(),this.initWidth=this.shortcode.options.width,this.isCenterX=(e=this.shortcode,i=this.maxWidth,n=e.$element.offset(),s=e.$element.width(),n.left+s/2===i/2)}},{key:"onResizeRightMove",value:function(t){var e=t.deltaX*(this.isCenterX?2:1),i=this.initWidth+e/this.maxWidth*100;i>100&&(i=100),i<0&&(i=0),this.shortcode.options.width=parseInt(i,10)}},{key:"onResizeBottomMove",value:function(t){delete this.maxWidth,delete this.initWidth}}]),t}()}]);

Youez - 2016 - github.com/yon3zu
LinuXploit