PageSourceSearch

https://technology-signals.com/_static/??-eJyVzUsOgzAMANELlZhSIcqi…rlIepka9798X4trVFW6eOfXfVnHxzQ9lzn8AMnNPF0=

js technology-signals.com collected 2026-10-02 17:30:26 UTC 152,384 bytes, 2,683 lines download raw bytes

vendor: 6,414 bytes, lines 1-24
1/*! This file is auto-generated */
2/*!
3 * imagesLoaded PACKAGED v5.0.0
4 * JavaScript is all like "You images are done yet or what?"
5 * MIT License
6 */
7!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
8/*!
9 * imagesLoaded v5.0.0
10 * JavaScript is all like "You images are done yet or what?"
11 * MIT License
12 */
13function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.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&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](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.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),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.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let 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)},d.prototype=Object.create(h.prototype),d.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())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));;
14/*!
15 * Flickity PACKAGED v2.2.2
16 * Touch, responsive, flickable carousels
17 *
18 * Licensed GPLv3 for open source use
19 * or Flickity Commercial License for commercial use
20 *
21 * https://flickity.metafizzy.co
22 * Copyright 2015-2021 Metafizzy
23 */
24(function(e,i){if(typeof define=="function"&&define.amd){define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("jquery"))}else{e.jQueryBridget=i(e,e.jQuery)}})(window,function t(e,r){"use strict";var o=Array.prototype.slice;var i=e.console;var u=typeof i=="undefined"?function(){}:function(t){i.error(t)};function n(h,s,c){c=c||r||e.jQuery;if(!c){return}if(!s.prototype.option){s.prototype.option=function(t){if(!c.isPlainObject(t)){return}this.options=c.extend(true,this.options,t)}}c.fn[h]=function(t){if(typeof t=="string"){var e=o.call(arguments,1
24);return i(this,t,e)}n(this,t);return this};function i(t,r,o){var a;var l="$()."+h+'("'+r+'")';t.each(function(t,e){var i=c.data(e,h);if(!i){u(h+" not initialized. Cannot call methods, i.e. "+l);return}var n=i[r];if(!n||r.charAt(0)=="_"){u(l+" is not a valid method");return}var s=n.apply(i,o);a=a===undefined?s:a});return a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=c.data(e,h);if(i){i.option(n);i._init()}else{i=new s(e,n);c.data(e,h,i)}})}a(c)}function a(t){if(!t||t&&t.bridget){return}t.bridget=n}a(r||e.jQuery);return n});(function(t,e){if(typeof define=="function"&&define.amd){define("ev-emitter/ev-emitter",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.EvEmitter=e()}})(typeof window!="undefined"?window:this,function(){function t(){}var e=t.prototype;e.on=function(t,e){if(!t||!e){return}var i=this._events=this._events||{};var n=i[t]=i[t]||[];if(n.indexOf(e)==-1){n.push(e)}return this};e.once=function(t,e){if(!t||!e){return}this.on(t,e);var i=this._onceEvents=this._onceEvents||{};var n=i[t]=i[t]||{};n[e]=true;return this};e.off=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length){return}var n=i.indexOf(e);if(n!=-1){i.splice(n,1)}return this};e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length){return}i=i.slice(0);e=e||[];var n=this._onceEvents&&this._onceEvents[t];for(var s=0;s<i.length;s++){var r=i[s];var o=n&&n[r];if(o){this.off(t,r);delete n[r]}r.apply(this,e)}return this};e.allOff=function(){delete this._events;delete this._onceEvents};return t});
25/*!
26 * getSize v2.0.3
27 * measure size of elements
28 * MIT license
29 */
30(function(t,e){if(typeof define=="function"&&define.amd){define("get-size/get-size",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.getSize=e()}})(window,function t(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}var i=typeof console=="undefined"?e:function(t){console.error(t)};var y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var b=y.length;function E(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<b;e++){var i=y[e];t[i]=0}return t}function S(t){var e=getComputedStyle(t);if(!e){i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1")}return e}var n=false;var C;function x(){if(n){return}n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=S(t);C=Math.round(m(i.width))==200;s.isBoxSizeOuter=C;e.removeChild(t)}function s(t){x();if(typeof t=="string"){t=document.querySelector(t)}if(!t||typeof t!="object"||!t.nodeType){return}var e=S(t);if(e.display=="none"){return E()}var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var s=0;s<b;s++){var r=y[s];var o=e[r];var a=parseFloat(o);i[r]=!isNaN(a)?a:0}var l=i.paddingLeft+i.paddingRight;var h=i.paddingTop+i.paddingBottom;var c=i.marginLeft+i.marginRight;var u=i.marginTop+i.marginBottom;var d=i.borderLeftWidth+i.borderRightWidth;var f=i.borderTopWidth+i.borderBottomWidth;var p=n&&C;var v=m(e.width);if(v!==false){i.width=v+(p?0:l+d)}var g=m(e.height);if(g!==false){i.height=g+(p?0:h+f)}i.innerWidth=i.width-(l+d);i.innerHeight=i.height-(h+f);i.outerWidth=i.width+c;i.outerHeight=i.height+u;return i}return s});(function(t,e){"use strict";if(typeof define=="function"&&define.amd){define("desandro-matches-selector/matches-selector",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.matchesSelector=e()}})(window,function t(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches){return"matches"}if(t.matchesSelector){return"matchesSelector"}var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var s=n+"MatchesSelector";if(t[s]){return s}}}();return function t(e,i){return e[n](i)}});(function(e,i){if(typeof define=="function"&&define.amd){define("fizzy-ui-utils/utils",["de
30sandro-matches-selector/matches-selector"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("desandro-matches-selector"))}else{e.fizzyUIUtils=i(e,e.matchesSelector)}})(window,function t(h,r){var c={};c.extend=function(t,e){for(var i in e){t[i]=e[i]}return t};c.modulo=function(t,e){return(t%e+e)%e};var i=Array.prototype.slice;c.makeArray=function(t){if(Array.isArray(t)){return t}if(t===null||t===undefined){return[]}var e=typeof t=="object"&&typeof t.length=="number";if(e){return i.call(t)}return[t]};c.removeFrom=function(t,e){var i=t.indexOf(e);if(i!=-1){t.splice(i,1)}};c.getParent=function(t,e){while(t.parentNode&&t!=document.body){t=t.parentNode;if(r(t,e)){return t}}};c.getQueryElement=function(t){if(typeof t=="string"){return document.querySelector(t)}return t};c.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};c.filterFindElements=function(t,n){t=c.makeArray(t);var s=[];t.forEach(function(t){if(!(t instanceof HTMLElement)){return}if(!n){s.push(t);return}if(r(t,n)){s.push(t)}var e=t.querySelectorAll(n);for(var i=0;i<e.length;i++){s.push(e[i])}});return s};c.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e];var r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments;var i=this;this[r]=setTimeout(function(){s.apply(i,e);delete i[r]},n)}};c.docReady=function(t){var e=document.readyState;if(e=="complete"||e=="interactive"){setTimeout(t)}else{document.addEventListener("DOMContentLoaded",t)}};c.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=h.console;c.htmlInit=function(a,l){c.docReady(function(){var t=c.toDashed(l);var s="data-"+t;var e=document.querySelectorAll("["+s+"]");var i=document.querySelectorAll(".js-"+t);var n=c.makeArray(e).concat(c.makeArray(i));var r=s+"-options";var o=h.jQuery;n.forEach(function(e){var t=e.getAttribute(s)||e.getAttribute(r);var i;try{i=t&&JSON.parse(t)}catch(t){if(u){u.error("Error parsing "+s+" on "+e.className+": "+t)}return}var n=new a(e,i);if(o){o.data(e,l,n)}})})};return c});(function(e,i){if(typeof define=="function"&&define.amd){define("flickity/js/cell",["get-size/get-size"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("get-size"))}else{e.Flickity=e.Flickity||{};e.Flickity.Cell=i(e,e.getSize)}})(window,function t(e,i){function n(t,e){this.element=t;this.parent=e;this.create()}var s=n.prototype;s.create=function(){this.element.style.position="absolute";this.element.setAttribute("aria-hidden","true");this.x=0;this.shift=0};s.destroy=function(){this.unselect();this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="";this.element.removeAttribute("aria-hidden")};s.getSize=function(){this.size=i(this.element)};s.setPosition=function(t){this.x=t;this.updateTarget();this.renderPosition(t)};s.updateTarget=s.setDefaultTarget=function(){var t=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign};s.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)};s.select=function(){this.element.classList.add("is-selected");this.element.removeAttribute("aria-hidden")};s.unselect=function(){this.element.classList.remove("is-selected");this.element.setAttribute("aria-hidden","true")};s.wrapShift=function(t){this.shift=t;this.renderPosition(this.x+this.parent.slideableWidth*t)};s.remove=function(){this.element.parentNode.removeChild(this.element)};return n});(function(t,e){if(typeof define=="function"&&define.amd){define("flickity/js/slide",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.Flickity=t.Flickity||{};t.Flickity.Slide=e()}})(window,function t(){"use strict";function e(t){this.parent=t;this.isOriginLeft=t.originSide=="left";this.cells=[];this.outerWidth=0;this.height=0}var i=e.prototype;i.addCell=function(t){this.cells.push(t);this.outerWidth+=t.size.outerWidth;this.height=Math.max(t.size.outerHeight,this.height);if(this.cells.length==1){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}};i.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft";var e=this.getLastCell();var i=e?e.size[t]:0;var n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign};i.getLastCell=function(){return this.cells[this.cells.length-1]};
30i.select=function(){this.cells.forEach(function(t){t.select()})};i.unselect=function(){this.cells.forEach(function(t){t.unselect()})};i.getCellElements=function(){return this.cells.map(function(t){return t.element})};return e});(function(e,i){if(typeof define=="function"&&define.amd){define("flickity/js/animate",["fizzy-ui-utils/utils"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("fizzy-ui-utils"))}else{e.Flickity=e.Flickity||{};e.Flickity.animatePrototype=i(e,e.fizzyUIUtils)}})(window,function t(e,i){var n={};n.startAnimation=function(){if(this.isAnimating){return}this.isAnimating=true;this.restingFrames=0;this.animate()};n.animate=function(){this.applyDragForce();this.applySelectedAttraction();var t=this.x;this.integratePhysics();this.positionSlider();this.settle(t);if(this.isAnimating){var e=this;requestAnimationFrame(function t(){e.animate()})}};n.positionSlider=function(){var t=this.x;if(this.options.wrapAround&&this.cells.length>1){t=i.modulo(t,this.slideableWidth);t-=this.slideableWidth;this.shiftWrapCells(t)}this.setTranslateX(t,this.isAnimating);this.dispatchScrollEvent()};n.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+")"};n.dispatchScrollEvent=function(){var t=this.slides[0];if(!t){return}var e=-this.x-t.target;var i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])};n.positionSliderAtSelected=function(){if(!this.cells.length){return}this.x=-this.selectedSlide.target;this.velocity=0;this.positionSlider()};n.getPositionValue=function(t){if(this.options.percentPosition){return Math.round(t/this.size.innerWidth*1e4)*.01+"%"}else{return Math.round(t)+"px"}};n.settle=function(t){var e=!this.isPointerDown&&Math.round(this.x*100)==Math.round(t*100);if(e){this.restingFrames++}if(this.restingFrames>2){this.isAnimating=false;delete this.isFreeScrolling;this.positionSlider();this.dispatchEvent("settle",null,[this.selectedIndex])}};n.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)};n._shiftCells=function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n];var r=e>0?i:0;s.wrapShift(r);e-=s.size.outerWidth}};n._unshiftCells=function(t){if(!t||!t.length){return}for(var e=0;e<t.length;e++){t[e].wrapShift(0)}};n.integratePhysics=function(){this.x+=this.velocity;this.velocity*=this.getFrictionFactor()};n.applyForce=function(t){this.velocity+=t};n.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]};n.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())};n.applyDragForce=function(){if(!this.isDraggable||!this.isPointerDown){return}var t=this.dragX-this.x;var e=t-this.velocity;this.applyForce(e)};n.applySelectedAttraction=function(){var t=this.isDraggable&&this.isPointerDown;if(t||this.isFreeScrolling||!this.slides.length){return}var e=this.selectedSlide.target*-1-this.x;var i=e*this.options.selectedAttraction;this.applyForce(i)};return n});(function(o,a){if(typeof define=="function"&&define.amd){define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(t,e,i,n,s,r){return a(o,t,e,i,n,s,r)})}else if(typeof module=="object"&&module.exports){module.exports=a(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
30de"),require("./animate"))}else{var t=o.Flickity;o.Flickity=a(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype)}})(window,function t(n,e,i,a,s,o,r){var l=n.jQuery;var h=n.getComputedStyle;var c=n.console;function u(t,e){t=a.makeArray(t);while(t.length){e.appendChild(t.shift())}}var d=0;var f={};function p(t,e){var i=a.getQueryElement(t);if(!i){if(c){c.error("Bad element for Flickity: "+(i||t))}return}this.element=i;if(this.element.flickityGUID){var n=f[this.element.flickityGUID];if(n)n.option(e);return n}if(l){this.$element=l(this.element)}this.options=a.extend({},this.constructor.defaults);this.option(e);this._create()}p.defaults={accessibility:true,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:true,percentPosition:true,resize:true,selectedAttraction:.025,setGallerySize:true};p.createMethods=[];var v=p.prototype;a.extend(v,e.prototype);v._create=function(){var t=this.guid=++d;this.element.flickityGUID=t;f[t]=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();if(this.options.resize||this.options.watchCSS){n.addEventListener("resize",this)}for(var e in this.options.on){var i=this.options.on[e];this.on(e,i)}p.createMethods.forEach(function(t){this[t]()},this);if(this.options.watchCSS){this.watchCSS()}else{this.activate()}};v.option=function(t){a.extend(this.options,t)};v.activate=function(){if(this.isActive){return}this.isActive=true;this.element.classList.add("flickity-enabled");if(this.options.rightToLeft){this.element.classList.add("flickity-rtl")}this.getSize();var t=this._filterFindCellElements(this.element.children);u(t,this.slider);this.viewport.appendChild(this.slider);this.element.appendChild(this.viewport);this.reloadCells();if(this.options.accessibility){this.element.tabIndex=0;this.element.addEventListener("keydown",this)}this.emitEvent("activate");this.selectInitialIndex();this.isInitActivated=true;this.dispatchEvent("ready")};v._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider";t.style[this.originSide]=0;this.slider=t};v._filterFindCellElements=function(t){return a.filterFindElements(t,this.options.cellSelector)};v.reloadCells=function(){this.cells=this._makeCells(this.slider.children);this.positionCells();this._getWrapShiftCells();this.setGallerySize()};v._makeCells=function(t){var e=this._filterFindCellElements(t);var i=e.map(function(t){return new s(t,this)},this);return i};v.getLastCell=function(){return this.cells[this.cells.length-1]};v.getLastSlide=function(){return this.slides[this.slides.length-1]};v.positionCells=function(){this._sizeCells(this.cells);this._positionCells(0)};v._positionCells=function(t){t=t||0;this.maxCellHeight=t?this.maxCellHeight||0:0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}var n=this.cells.length;for(var s=t;s<n;s++){var r=this.cells[s];r.setPosition(e);e+=r.size.outerWidth;this.maxCellHeight=Math.max(r.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e;this.updateSlides();this._containSlides();this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0};v._sizeCells=function(t){t.forEach(function(t){t.getSize()})};v.updateSlides=function(){this.slides=[];if(!this.cells.length){return}var n=new o(this);this.slides.push(n);var t=this.originSide=="left";var s=t?"marginRight":"marginLeft";var r=this._getCanCellFit();this.cells.forEach(function(t,e){if(!n.cells.length){n.addCell(t);return}var i=n.outerWidth-n.firstMargin+(t.size.outerWidth-t.size[s]);if(r.call(this,e,i)){n.addCell(t)}else{n.updateTarget();n=new o(this);this.slides.push(n);n.addCell(t)}},this);n.updateTarget();this.updateSelectedSlide()};v._getCanCellFit=function(){var t=this.options.groupCells;if(!t){return function(){return false}}else if(typeof t=="number"){var e=parseInt(t,10);return function(t){return t%e!==0}}var i=typeof t=="string"&&t.match(/^(\d+)%$/);var n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}};v._init=v.reposition=function(){this.positionCells();this.positionSliderAtSelected()};v.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}};v.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign};v.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}};v._getWrapShiftCells=function(){if(!this.options.wrapAround){return}this._unshiftCells(this.beforeShiftCells);this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition;var e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1);
30t=this.size.innerWidth-this.cursorPosition;this.afterShiftCells=this._getGapCells(t,0,1)};v._getGapCells=function(t,e,i){var n=[];while(t>0){var s=this.cells[e];if(!s){break}n.push(s);e+=i;t-=s.size.outerWidth}return n};v._containSlides=function(){if(!this.options.contain||this.options.wrapAround||!this.cells.length){return}var t=this.options.rightToLeft;var e=t?"marginRight":"marginLeft";var i=t?"marginLeft":"marginRight";var n=this.slideableWidth-this.getLastCell().size[i];var s=n<this.size.innerWidth;var r=this.cursorPosition+this.cells[0].size[e];var o=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){if(s){t.target=n*this.cellAlign}else{t.target=Math.max(t.target,r);t.target=Math.min(t.target,o)}},this)};v.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n);if(l&&this.$element){t+=this.options.namespaceJQueryEvents?".flickity":"";var s=t;if(e){var r=new l.Event(e);r.type=t;s=r}this.$element.trigger(s,i)}};v.select=function(t,e,i){if(!this.isActive){return}t=parseInt(t,10);this._wrapSelect(t);if(this.options.wrapAround||e){t=a.modulo(t,this.slides.length)}if(!this.slides[t]){return}var n=this.selectedIndex;this.selectedIndex=t;this.updateSelectedSlide();if(i){this.positionSliderAtSelected()}else{this.startAnimation()}if(this.options.adaptiveHeight){this.setGallerySize()}this.dispatchEvent("select",null,[t]);if(t!=n){this.dispatchEvent("change",null,[t])}this.dispatchEvent("cellSelect")};v._wrapSelect=function(t){var e=this.slides.length;var i=this.options.wrapAround&&e>1;if(!i){return t}var n=a.modulo(t,e);var s=Math.abs(n-this.selectedIndex);var r=Math.abs(n+e-this.selectedIndex);var o=Math.abs(n-e-this.selectedIndex);if(!this.isDragSelect&&r<s){t+=e}else if(!this.isDragSelect&&o<s){t-=e}if(t<0){this.x-=this.slideableWidth}else if(t>=e){this.x+=this.slideableWidth}};v.previous=function(t,e){this.select(this.selectedIndex-1,t,e)};v.next=function(t,e){this.select(this.selectedIndex+1,t,e)};v.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];if(!t){return}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]};v.unselectSelectedSlide=function(){if(this.selectedSlide){this.selectedSlide.unselect()}};v.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated){this.select(this.selectedIndex,false,true);return}if(t&&typeof t=="string"){var e=this.queryCell(t);if(e){this.selectCell(t,false,true);return}}var i=0;if(t&&this.slides[t]){i=t}this.select(i,false,true)};v.selectCell=function(t,e,i){var n=this.queryCell(t);if(!n){return}var s=this.getCellSlideIndex(n);this.select(s,e,i)};v.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){var i=this.slides[e];var n=i.cells.indexOf(t);if(n!=-1){return e}}};v.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t){return i}}};v.getCells=function(t){t=a.makeArray(t);var i=[];t.forEach(function(t){var e=this.getCell(t);if(e){i.push(e)}},this);return i};v.getCellElements=function(){return this.cells.map(function(t){return t.element})};v.getParentCell=function(t){var e=this.getCell(t);if(e){return e}t=a.getParent(t,".flickity-slider > *");return this.getCell(t)};v.getAdjacentCellElements=function(t,e){if(!t){return this.selectedSlide.getCellElements()}e=e===undefined?this.selectedIndex:e;var i=this.slides.length;if(1+t*2>=i){return this.getCellElements()}var n=[];for(var s=e-t;s<=e+t;s++){var r=this.options.wrapAround?a.modulo(s,i):s;var o=this.slides[r];if(o){n=n.concat(o.getCellElements())}}return n};v.queryCell=function(t){if(typeof t=="number"){return this.cells[t]}if(typeof t=="string"){if(t.match(/^[#.]?[\d/]/)){return}t=this.element.querySelector(t)}return this.getCell(t)};v.uiChange=function(){this.emitEvent("uiChange")};v.childUIPointerDown=function(t){if(t.type!="touchstart"){t.preventDefault()}this.focus()};v.onresize=function(){this.watchCSS();this.resize()};a.debounceMethod(p,"onresize",150);v.resize=function(){if(!this.isActive){return}this.getSize();if(this.options.wrapAround){this.x=a.modulo(this.x,this.slideableWidth)}this.positionCells();this._getWrapShiftCells();this.setGallerySize();this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,false,true)};v.watchCSS=function(){var t=this.options.watchCSS;if(!t){return}var e=h(this.element,":after").content;if(e.indexOf("flickity")!=-1){this.activate()}else{this.deactivate()}};v.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(!this.options.accessibility||e){return}var i=p.keyboardHandlers[t.keyCode];if(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]()}};v.focus=function(){var t=n.pageYOffset;this.element.focus({preventScroll:true});if(n.pageYOffset!=t){n.scrollTo(n.pageXOffset,t)}};v.deactivate=function(){if(!this.isActive){return}this.element.classList.remove("flickity-enabled");this.element.classList.remove("flickity-rtl");this.unselectSelectedSlide();
30this.cells.forEach(function(t){t.destroy()});this.element.removeChild(this.viewport);u(this.slider.children,this.element);if(this.options.accessibility){this.element.removeAttribute("tabIndex");this.element.removeEventListener("keydown",this)}this.isActive=false;this.emitEvent("deactivate")};v.destroy=function(){this.deactivate();n.removeEventListener("resize",this);this.allOff();this.emitEvent("destroy");if(l&&this.$element){l.removeData(this.element,"flickity")}delete this.element.flickityGUID;delete f[this.guid]};a.extend(v,r);p.data=function(t){t=a.getQueryElement(t);var e=t&&t.flickityGUID;return e&&f[e]};a.htmlInit(p,"flickity");if(l&&l.bridget){l.bridget("flickity",p)}p.setJQuery=function(t){l=t};p.Cell=s;p.Slide=o;return p});
31/*!
32 * Unipointer v2.3.0
33 * base class for doing one thing with pointer event
34 * MIT license
35 */
36(function(e,i){if(typeof define=="function"&&define.amd){define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("ev-emitter"))}else{e.Unipointer=i(e,e.EvEmitter)}})(window,function t(s,e){function i(){}function n(){}var r=n.prototype=Object.create(e.prototype);r.bindStartEvent=function(t){this._bindStartEvent(t,true)};r.unbindStartEvent=function(t){this._bindStartEvent(t,false)};r._bindStartEvent=function(t,e){e=e===undefined?true:e;var i=e?"addEventListener":"removeEventListener";var n="mousedown";if(s.PointerEvent){n="pointerdown"}else if("ontouchstart"in s){n="touchstart"}t[i](n,this)};r.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};r.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier){return i}}};r.onmousedown=function(t){var e=t.button;if(e&&(e!==0&&e!==1)){return}this._pointerDown(t,t)};r.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])};r.onpointerdown=function(t){this._pointerDown(t,t)};r._pointerDown=function(t,e){if(t.button||this.isPointerDown){return}this.isPointerDown=true;this.pointerIdentifier=e.pointerId!==undefined?e.pointerId:e.identifier;this.pointerDown(t,e)};r.pointerDown=function(t,e){this._bindPostStartEvents(t);this.emitEvent("pointerDown",[t,e])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};r._bindPostStartEvents=function(t){if(!t){return}var e=o[t.type];e.forEach(function(t){s.addEventListener(t,this)},this);this._boundPointerEvents=e};r._unbindPostStartEvents=function(){if(!this._boundPointerEvents){return}this._boundPointerEvents.forEach(function(t){s.removeEventListener(t,this)},this);delete this._boundPointerEvents};r.onmousemove=function(t){this._pointerMove(t,t)};r.onpointermove=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerMove(t,t)}};r.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerMove(t,e)}};r._pointerMove=function(t,e){this.pointerMove(t,e)};r.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])};r.onmouseup=function(t){this._pointerUp(t,t)};r.onpointerup=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerUp(t,t)}};r.ontouchend=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerUp(t,e)}};r._pointerUp=function(t,e){this._pointerDone();this.pointerUp(t,e)};r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])};r._pointerDone=function(){this._pointerReset();this._unbindPostStartEvents();this.pointerDone()};r._pointerReset=function(){this.isPointerDown=false;delete this.pointerIdentifier};r.pointerDone=i;r.onpointercancel=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerCancel(t,t)}};r.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerCancel(t,e)}};r._pointerCancel=function(t,e){this._pointerDone();this.pointerCancel(t,e)};r.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])};n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}};return n});
37/*!
38 * Unidragger v2.3.1
39 * Draggable base class
40 * MIT license
41 */
42(function(e,i){if(typeof define=="function"&&define.amd){define("unidragger/unidragger",["unipointer/unipointer"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("unipointer"))}else{e.Unidragger=i(e,e.Unipointer)}})(window,function t(r,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(true)};n.unbindHandles=function(){this._bindHandles(false)};n._bindHandles=function(t){t=t===undefined?true:t;var e=t?"addEventListener":"removeEventListener";var i=t?this._touchActionValue:"";for(var n=0;n<this.handles.length;n++){var s=this.handles[n];this._bindStartEvent(s,t);s[e]("click",this);if(r.PointerEvent){s.style.touchAction=i}}};n._touchActionValue="none";n.pointerDown=function(t,e){var i=this.okayPointerDown(t);if(!i){return}this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY};t.preventDefault();this.pointerDownBlur();this._bindPostStartEvents(t);this.emitEvent("pointerDown",[t,e])};var s={TEXTAREA:true,INPUT:true,SELECT:true,OPTION:true};var o={radio:true,checkbox:true,button:true,submit:true,image:true,file:true};n.okayPointerDown=function(t){var e=s[t.target.nodeName];var i=o[t.target.type];var n=!e||i;
42if(!n){this._pointerReset()}return n};n.pointerDownBlur=function(){var t=document.activeElement;var e=t&&t.blur&&t!=document.body;if(e){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};if(!this.isDragging&&this.hasDragStarted(i)){this._dragStart(t,e)}return 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){if(this.isDragging){this._dragEnd(t,e)}else{this._staticClick(t,e)}};n._dragStart=function(t,e){this.isDragging=true;this.isPreventingClicks=true;this.dragStart(t,e)};n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])};n._dragMove=function(t,e,i){if(!this.isDragging){return}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=false;
42setTimeout(function(){delete this.isPreventingClicks}.bind(this));this.dragEnd(t,e)};n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])};n.onclick=function(t){if(this.isPreventingClicks){t.preventDefault()}};n._staticClick=function(t,e){if(this.isIgnoringMouseUp&&t.type=="mouseup"){return}this.staticClick(t,e);if(t.type!="mouseup"){this.isIgnoringMouseUp=true;setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)}};n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])};i.getPointerPoint=e.getPointerPoint;return i});(function(n,s){if(typeof define=="function"&&define.amd){define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=s(n,require("./flickity"),require("unidragger"),require("fizzy-ui-utils"))}else{n.Flickity=s(n,n.Flickity,n.Unidragger,n.fizzyUIUtils)}})(window,function t(n,e,i,a){a.extend(e.defaults,{draggable:">1",dragThreshold:3});e.createMethods.push("_createDrag");var s=e.prototype;a.extend(s,i.prototype);s._touchActionValue="pan-y";var r="createTouch"in document;var o=false;s._createDrag=function(){this.on("activate",this.onActivateDrag);this.on("uiChange",this._uiChangeDrag);this.on("deactivate",this.onDeactivateDrag);this.on("cellChange",this.updateDraggable);if(r&&!o){n.addEventListener("touchmove",function(){});o=true}};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(){if(this.options.draggable==">1"){this.isDraggable=this.slides.length>1}else{this.isDraggable=this.options.draggable}if(this.isDraggable){this.element.classList.add("is-draggable")}else{this.element.classList.remove("is-draggable")}};s.bindDrag=function(){this.options.draggable=true;this.updateDraggable()};s.unbindDrag=function(){this.options.draggable=false;this.updateDraggable()};s._uiChangeDrag=function(){delete this.isFreeScrolling};s.pointerDown=function(t,e){if(!this.isDraggable){this._pointerDownDefault(t,e);return}var i=this.okayPointerDown(t);if(!i){return}this._pointerDownPreventDefault(t);this.pointerDownFocus(t);if(document.activeElement!=this.element){this.pointerDownBlur()}this.dragX=this.x;this.viewport.classList.add("is-pointer-down");this.pointerDownScroll=h();n.addEventListener("scroll",this);this._pointerDownDefault(t,e)};s._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY};this._bindPostStartEvents(t);this.dispatchEvent("pointerDown",t,[e])};var l={INPUT:true,TEXTAREA:true,SELECT:true};s.pointerDownFocus=function(t){var e=l[t.target.nodeName];if(!e){this.focus()}};s._pointerDownPreventDefault=function(t){var e=t.type=="touchstart";var i=t.pointerType=="touch";var n=l[t.target.nodeName];if(!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(){n.removeEventListener("scroll",this);delete this.pointerDownScroll};s.dragStart=function(t,e){if(!this.isDraggable){return}this.dragStartPosition=this.x;this.startAnimation();n.removeEventListener("scroll",this);this.dispatchEvent("dragStart",t,[e])};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){return}t.preventDefault();this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;if(this.options.wrapAround){i.x%=this.slideableWidth}var s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var r=Math.max(-this.slides[0].target,this.dragStartPosition);s=s>r?(s+r)*.5:s;var o=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=s<o?(s+o)*.5:s}this.dragX=s;this.dragMoveTime=new Date;this.dispatchEvent("dragMove",t,[e,i])};s.dragEnd=function(t,e){if(!this.isDraggable){return}if(this.options.freeScroll){this.isFreeScrolling=true}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 if(!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();var e=Math.abs(this.getSlideDistance(-t,this.selectedIndex));var i=this._getClosestResting(t,e,1);var n=this._getClosestResting(t,e,-1);var s=i.distance<n.distance?i.index:n.index;return s};
42s._getClosestResting=function(t,e,i){var n=this.selectedIndex;var s=Infinity;var r=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};while(r(e,s)){n+=i;s=e;e=this.getSlideDistance(-t,n);if(e===null){break}e=Math.abs(e)}return{distance:s,index:n-i}};s.getSlideDistance=function(t,e){var i=this.slides.length;var n=this.options.wrapAround&&i>1;var s=n?a.modulo(e,i):e;var r=this.slides[s];if(!r){return null}var o=n?this.slideableWidth*Math.floor(e/i):0;return t-(r.target+o)};s.dragEndBoostSelect=function(){if(this.previousDragX===undefined||!this.dragMoveTime||new Date-this.dragMoveTime>100){return 0}var t=this.getSlideDistance(-this.dragX,this.selectedIndex);var e=this.previousDragX-this.dragX;if(t>0&&e>0){return 1}else if(t<0&&e<0){return-1}return 0};s.staticClick=function(t,e){var i=this.getParentCell(t.target);var n=i&&i.element;var s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])};s.onscroll=function(){var t=h();var e=this.pointerDownScroll.x-t.x;var i=this.pointerDownScroll.y-t.y;if(Math.abs(e)>3||Math.abs(i)>3){this._pointerDone()}};function h(){return{x:n.pageXOffset,y:n.pageYOffset}}return e});(function(n,s){if(typeof define=="function"&&define.amd){define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=s(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils"))}else{s(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}})(window,function t(e,i,n,s){"use strict";var r="http://www.w3.org/2000/svg";function o(t,e){this.direction=t;this.parent=e;this._create()}o.prototype=Object.create(n.prototype);o.prototype._create=function(){this.isEnabled=true;this.isPrevious=this.direction==-1;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(r,"svg");t.setAttribute("class","flickity-button-icon");t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(r,"path");var i=a(this.parent.options.arrowShape);e.setAttribute("d",i);e.setAttribute("class","arrow");if(!this.isLeft){e.setAttribute("transform","translate(100, 100) rotate(180) ")}t.appendChild(e);return t};function a(t){if(typeof t=="string"){return t}return"M "+t.x0+",50"+" L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 "+" L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}o.prototype.handleEvent=s.handleEvent;o.prototype.onclick=function(){if(!this.isEnabled){return}this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()};o.prototype.enable=function(){if(this.isEnabled){return}this.element.disabled=false;this.isEnabled=true};o.prototype.disable=function(){if(!this.isEnabled){return}this.element.disabled=true;this.isEnabled=false};o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1){this.enable();return}var e=t.length?t.length-1:0;var i=this.isPrevious?0:e;var n=this.parent.selectedIndex==i?"disable":"enable";this[n]()};o.prototype.destroy=function(){this.deactivate();this.allOff()};s.extend(i.defaults,{prevNextButtons:true,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}});i.createMethods.push("_createPrevNextButtons");var l=i.prototype;l._createPrevNextButtons=function(){if(!this.options.prevNextButtons){return}this.prevButton=new o(-1,this);this.nextButton=new o(1,this);this.on("activate",this.activatePrevNextButtons)};l.activatePrevNextButtons=function(){this.prevButton.activate();this.nextButton.activate();this.on("deactivate",this.deactivatePrevNextButtons)};l.deactivatePrevNextButtons=function(){this.prevButton.deactivate();this.nextButton.deactivate();this.off("deactivate",this.deactivatePrevNextButtons)};i.PrevNextButton=o;return i});(function(n,s){if(typeof define=="function"&&define.amd){define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,
42i){return s(n,t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=s(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils"))}else{s(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}})(window,function t(e,i,n,s){function r(t){this.parent=t;this._create()}r.prototype=Object.create(n.prototype);r.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))};r.prototype.activate=function(){this.setDots();this.holder.addEventListener("click",this.handleClick);this.bindStartEvent(this.holder);this.parent.element.appendChild(this.holder)};r.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick);this.unbindStartEvent(this.holder);this.parent.element.removeChild(this.holder)};r.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;if(t>0){this.addDots(t)}else if(t<0){this.removeDots(-t)}};r.prototype.addDots=function(t){var e=document.createDocumentFragment();var i=[];var n=this.dots.length;var s=n+t;for(var r=n;r<s;r++){var o=document.createElement("li");o.className="dot";o.setAttribute("aria-label","Page dot "+(r+1));e.appendChild(o);i.push(o)}this.holder.appendChild(e);this.dots=this.dots.concat(i)};r.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)};r.prototype.updateSelected=function(){if(this.selectedDot){this.selectedDot.className="dot";this.selectedDot.removeAttribute("aria-current")}if(!this.dots.length){return}this.selectedDot=this.dots[this.parent.selectedIndex];this.selectedDot.className="dot is-selected";this.selectedDot.setAttribute("aria-current","step")};r.prototype.onTap=r.prototype.onClick=function(t){var e=t.target;if(e.nodeName!="LI"){return}this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)};r.prototype.destroy=function(){this.deactivate();this.allOff()};i.PageDots=r;s.extend(i.defaults,{pageDots:true});i.createMethods.push("_createPageDots");var o=i.prototype;o._createPageDots=function(){if(!this.options.pageDots){return}this.pageDots=new r(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()};i.PageDots=r;return i});(function(t,n){if(typeof define=="function"&&define.amd){define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,e,i){return n(t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=n(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity"))}else{n(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}})(window,function t(e,i,n){function s(t){this.parent=t;this.state="stopped";this.onVisibilityChange=this.visibilityChange.bind(this);this.onVisibilityPlay=this.visibilityPlay.bind(this)}s.prototype=Object.create(e.prototype);s.prototype.play=function(){if(this.state=="playing"){return}var t=document.hidden;if(t){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing";document.addEventListener("visibilitychange",this.onVisibilityChange);this.tick()};s.prototype.tick=function(){if(this.state!="playing"){return}var t=this.parent.options.autoPlay;t=typeof t=="number"?t:3e3;var e=this;this.clear();this.timeout=setTimeout(function(){e.parent.next(true);e.tick()},t)};s.prototype.stop=function(){this.state="stopped";this.clear();document.removeEventListener("visibilitychange",this.onVisibilityChange)};s.prototype.clear=function(){clearTimeout(this.timeout)};s.prototype.pause=function(){if(this.state=="playing"){this.state="paused";this.clear()}};s.prototype.unpause=function(){if(this.state=="paused"){this.play()}};s.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()};s.prototype.visibilityPlay=function(){this.play();document.removeEventListener("visibilitychange",this.onVisibilityPlay)};i.extend(n.defaults,{pauseAutoPlayOnHover:true});n.createMethods.push("_createPlayer");var r=n.prototype;r._createPlayer=function(){this.player=new s(this);this.on("activate",this.activatePlayer);this.on("uiChange",this.stopPlayer);this.on("pointerDown",this.stopPlayer);this.on("deactivate",this.deactivatePlayer)};r.activatePlayer=function(){if(!this.options.autoPlay){return}this.player.play();this.element.addEventListener("mouseenter",this)};r.playPlayer=function(){this.player.play()};r.stopPlayer=function(){this.player.stop()};r.pausePlayer=function(){this.player.pause()};r.unpausePlayer=function(){this.player.unpause()};r.deactivatePlayer=function(){this.player.stop();this.element.removeEventListener("mouseenter",this)};r.onmouseenter=function(){if(!this.options.pauseAutoPlayOnHover){return}this.player.pause();this.element.addEventListener("mouseleave",this)};r.onmouseleave=function(){this.player.unpause();this.element.removeEventListener("mouseleave",this)};n.Player=s;return n});(function(i,n){if(typeof define=="function"&&define.amd){define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(t,e){return n(i,t,e)})}else if(typeof module=="object"&&module.exports){module.exports=n(i,require("./flickity"),require("fizzy-ui-utils"))}else{n(i,i.Flickity,i.fizzyUIUtils)}})(window,function t(e,i,n){function l(t){var e=document.createDocumentFragment();t.forEach(function(t){e.appendChild(t.element)});return e}var s=i.prototype;s.insert=function(t,e){var i=this._makeCells(t);if(!i||!i.length){return}var n=this.cells.length;e=e===undefined?n:e;var s=l(i);var r=e==n;if(r){this.slider.appendChild(s)}else{var o=this.cells[e].element;this.slider.insertBefore(s,o)}if(e===0){this.cells=i.concat(this.cells)}else if(r){this.cells=this.cells.concat(i)}else{var a=this.cells.splice(e,n-e);
42this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i);this.cellChange(e,true)};s.append=function(t){this.insert(t,this.cells.length)};s.prepend=function(t){this.insert(t,0)};s.remove=function(t){var e=this.getCells(t);if(!e||!e.length){return}var i=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i);n.removeFrom(this.cells,t)},this);this.cellChange(i,true)};s.cellSizeChange=function(t){var e=this.getCell(t);if(!e){return}e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)};s.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t);this._getWrapShiftCells();this.setGallerySize();var n=this.getCell(i);if(n){this.selectedIndex=this.getCellSlideIndex(n)}this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex);this.emitEvent("cellChange",[t]);this.select(this.selectedIndex);if(e){this.positionSliderAtSelected()}};return i});(function(i,n){if(typeof define=="function"&&define.amd){define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(t,e){return n(i,t,e)})}else if(typeof module=="object"&&module.exports){module.exports=n(i,require("./flickity"),require("fizzy-ui-utils"))}else{n(i,i.Flickity,i.fizzyUIUtils)}})(window,function t(e,i,o){"use strict";i.createMethods.push("_createLazyload");var n=i.prototype;n._createLazyload=function(){this.on("select",this.lazyLoad)};n.lazyLoad=function(){var t=this.options.lazyLoad;if(!t){return}var e=typeof t=="number"?t:0;var i=this.getAdjacentCellElements(e);var n=[];i.forEach(function(t){var e=s(t);n=n.concat(e)});n.forEach(function(t){new r(t,this)},this)};function s(t){if(t.nodeName=="IMG"){var e=t.getAttribute("data-flickity-lazyload");var i=t.getAttribute("data-flickity-lazyload-src");var n=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||n){return[t]}}var s="img[data-flickity-lazyload], "+"img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]";var r=t.querySelectorAll(s);return o.makeArray(r)}function r(t,e){this.img=t;this.flickity=e;this.load()}r.prototype.handleEvent=o.handleEvent;r.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");var e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t;if(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")};r.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")};r.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")};r.prototype.complete=function(t,e){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img);var n=i&&i.element;this.flickity.cellSizeChange(n);this.img.classList.add(e);this.flickity.dispatchEvent("lazyLoad",t,n)};i.LazyLoader=r;return i});
43/*!
44 * Flickity v2.2.2
45 * Touch, responsive, flickable carousels
46 *
47 * Licensed GPLv3 for open source use
48 * or Flickity Commercial License for commercial use
49 *
50 * https://flickity.metafizzy.co
51 * Copyright 2015-2021 Metafizzy
52 */
53(function(t,e){if(typeof define=="function"&&define.amd){define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e)}else if(typeof module=="object"&&module.exports){module.exports=e(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload"))}})(window,function t(e){return e});
54/*!
55 * Flickity asNavFor v2.0.2
56 * enable asNavFor for Flickity
57 */
58(function(t,e){if(typeof define=="function"&&define.amd){define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e)}else if(typeof module=="object"&&module.exports){module.exports=e(require("flickity"),require("fizzy-ui-utils"))}else{t.Flickity=e(t.Flickity,t.fizzyUIUtils)}})(window,function t(n,s){n.createMethods.push("_createAsNavFor");var e=n.prototype;e._createAsNavFor=function(){this.on("activate",this.activateAsNavFor);this.on("deactivate",this.deactivateAsNavFor);this.on("destroy",this.destroyAsNavFor);var e=this.options.asNavFor;if(!e){return}var i=this;setTimeout(function t(){i.setNavCompanion(e)})};e.setNavCompanion=function(t){t=s.getQueryElement(t);var e=n.data(t);
58if(!e||e==this){return}this.navCompanion=e;var i=this;this.onNavCompanionSelect=function(){i.navCompanionSelect()};e.on("select",this.onNavCompanionSelect);this.on("staticClick",this.onNavStaticClick);this.navCompanionSelect(true)};e.navCompanionSelect=function(t){var e=this.navCompanion&&this.navCompanion.selectedCells;if(!e){return}var i=e[0];var n=this.navCompanion.cells.indexOf(i);var s=n+e.length-1;var r=Math.floor(a(n,s,this.navCompanion.cellAlign));this.selectCell(r,false,t);this.removeNavSelectedElements();if(r>=this.cells.length){return}var o=this.cells.slice(n,s+1);this.navSelectedElements=o.map(function(t){return t.element});this.changeNavSelectedClass("add")};function a(t,e,i){return(e-t)*i+t}e.changeNavSelectedClass=function(e){this.navSelectedElements.forEach(function(t){t.classList[e]("is-nav-selected")})};e.activateAsNavFor=function(){this.navCompanionSelect(true)};e.removeNavSelectedElements=function(){if(!this.navSelectedElements){return}this.changeNavSelectedClass("remove");delete this.navSelectedElements};e.onNavStaticClick=function(t,e,i,n){if(typeof n=="number"){this.navCompanion.selectCell(n)}};e.deactivateAsNavFor=function(){this.removeNavSelectedElements()};e.destroyAsNavFor=function(){if(!this.navCompanion){return}this.navCompanion.off("select",this.onNavCompanionSelect);this.off("staticClick",this.onNavStaticClick);delete this.navCompanion};return n});
59/*!
60 * imagesLoaded v4.1.4
61 * JavaScript is all like "You images are done yet or what?"
62 * MIT License
63 */
64(function(e,i){"use strict";if(typeof define=="function"&&define.amd){define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("ev-emitter"))}else{e.imagesLoaded=i(e,e.EvEmitter)}})(typeof window!=="undefined"?window:this,function t(e,i){var s=e.jQuery;var r=e.console;function o(t,e){for(var i in e){t[i]=e[i]}return t}var n=Array.prototype.slice;function a(t){if(Array.isArray(t)){return t}var e=typeof t=="object"&&typeof t.length=="number";if(e){return n.call(t)}return[t]}function l(t,e,i){if(!(this instanceof l)){return new l(t,e,i)}var n=t;if(typeof t=="string"){n=document.querySelectorAll(t)}if(!n){r.error("Bad element for imagesLoaded "+(n||t));return}this.elements=a(n);this.options=o({},this.options);if(typeof e=="function"){i=e}else{o(this.options,e)}if(i){this.on("always",i)}this.getImages();if(s){this.jqDeferred=new s.Deferred}setTimeout(this.check.bind(this))}l.prototype=Object.create(i.prototype);l.prototype.options={};l.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)};l.prototype.addElementImages=function(t){if(t.nodeName=="IMG"){this.addImage(t)}if(this.options.background===true){this.addElementBackgroundImages(t)}var e=t.nodeType;if(!e||!h[e]){return}var i=t.querySelectorAll("img");for(var n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if(typeof this.options.background=="string"){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var o=r[n];this.addElementBackgroundImages(o)}}};var h={1:true,9:true,11:true};l.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(!e){return}var i=/url\((['"])?(.*?)\1\)/gi;var n=i.exec(e.backgroundImage);while(n!==null){var s=n&&n[2];if(s){this.addBackground(s,t)}n=i.exec(e.backgroundImage)}};l.prototype.addImage=function(t){var e=new c(t);this.images.push(e)};l.prototype.addBackground=function(t,e){var i=new u(t,e);this.images.push(i)};l.prototype.check=function(){var n=this;this.progressedCount=0;this.hasAnyBroken=false;if(!this.images.length){this.complete();return}function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.images.forEach(function(t){t.once("progress",e);t.check()})};l.prototype.progress=function(t,e,i){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;this.emitEvent("progress",[this,t,e]);if(this.jqDeferred&&this.jqDeferred.notify){this.jqDeferred.notify(this,t)}if(this.progressedCount==this.images.length){this.complete()}if(this.options.debug&&r){r.log("progress: "+i,t,e)}};l.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=true;this.emitEvent(t,[this]);this.emitEvent("always",[this]);if(this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}};function c(t){this.img=t}c.prototype=Object.create(i.prototype);c.prototype.check=function(){var t=this.getIsImageComplete();
64if(t){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};c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth};c.prototype.confirm=function(t,e){this.isLoaded=t;this.emitEvent("progress",[this,this.img,e])};c.prototype.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};c.prototype.onload=function(){this.confirm(true,"onload");this.unbindEvents()};c.prototype.onerror=function(){this.confirm(false,"onerror");this.unbindEvents()};c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};function u(t,e){this.url=t;this.element=e;this.img=new Image}u.prototype=Object.create(c.prototype);u.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var t=this.getIsImageComplete();if(t){this.confirm(this.img.naturalWidth!==0,"naturalWidth");this.unbindEvents()}};u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};u.prototype.confirm=function(t,e){this.isLoaded=t;this.emitEvent("progress",[this,this.element,e])};l.makeJQueryPlugin=function(t){t=t||e.jQuery;if(!t){return}s=t;s.fn.imagesLoaded=function(t,e){var i=new l(this,t,e);return i.jqDeferred.promise(s(this))}};l.makeJQueryPlugin();return l});
65/*!
66 * Flickity imagesLoaded v2.0.0
67 * enables imagesLoaded option for Flickity
68 */
69(function(i,n){if(typeof define=="function"&&define.amd){define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return n(i,t,e)})}else if(typeof module=="object"&&module.exports){module.exports=n(i,require("flickity"),require("imagesloaded"))}else{i.Flickity=n(i,i.Flickity,i.imagesLoaded)}})(window,function t(e,i,s){"use strict";i.createMethods.push("_createImagesLoaded");var n=i.prototype;n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)};n.imagesLoaded=function(){if(!this.options.imagesLoaded){return}var n=this;function t(t,e){var i=n.getParentCell(e.img);n.cellSizeChange(i&&i.element);if(!n.options.freeScroll){n.positionSliderAtSelected()}}s(this.slider).on("progress",t)};return i});;
70/******/ (function(modules) { // webpackBootstrap
71/******/ 	// The module cache
72/******/ 	var installedModules = {};
73/******/
74/******/ 	// The require function
75/******/ 	function __webpack_require__(moduleId) {
76/******/
77/******/ 		// Check if module is in cache
78/******/ 		if(installedModules[moduleId]) {
79/******/ 			return installedModules[moduleId].exports;
80/******/ 		}
81/******/ 		// Create a new module (and put it into the cache)
82/******/ 		var module = installedModules[moduleId] = {
83/******/ 			i: moduleId,
84/******/ 			l: false,
85/******/ 			exports: {}
86/******/ 		};
87/******/
88/******/ 		// Execute the module function
89/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
90/******/
91/******/ 		// Flag the module as loaded
92/******/ 		module.l = true;
93/******/
94/******/ 		// Return the exports of the module
95/******/ 		return module.exports;
96/******/ 	}
97/******/
98/******/
99/******/ 	// expose the modules object (__webpack_modules__)
100/******/ 	__webpack_require__.m = modules;
101/******/
102/******/ 	// expose the module cache
103/******/ 	__webpack_require__.c = installedModules;
104/******/
105/******/ 	// define getter function for harmony exports
106/******/ 	__webpack_require__.d = function(exports, name, getter) {
107/******/ 		if(!__webpack_require__.o(exports, name)) {
108/******/ 			Object.defineProperty(exports, name, {
109/******/ 				configurable: false,
110/******/ 				enumerable: true,
111/******/ 				get: getter
112/******/ 			});
113/******/ 		}
114/******/ 	};
115/******/
116/******/ 	// getDefaultExport function for compatibility with non-harmony modules
117/******/ 	__webpack_require__.n = function(module) {
118/******/ 		var getter = module && module.__esModule ?
119/******/ 			function getDefault() { return module['default']; } :
120/******/ 			function getModuleExports() { return module; };
121/******/ 		__webpack_require__.d(getter, 'a', getter);
122/******/ 		return getter;
123/******/ 	};
124/******/
125/******/ 	// Object.prototype.hasOwnProperty.call
126/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
127/******/
128/******/ 	// __webpack_public_path__
129/******/ 	__webpack_require__.p = "";
130/******/
131/******/ 	// Load entry module and return exports
132/******/ 	return __webpack_require__(__webpack_require__.s = 1);
133/******/ })
134/************************************************************************/
135/******/ ([
136/* 0 */
137/***/ (function(module, exports, __webpack_require__) {
138
139"use strict";
140
141
142Object.defineProperty(exports, "__esModule", {
143  value: true
144});
145exports.csThrottleScroll = csThrottleScroll;
146exports.csGetCookie = csGetCookie;
147exports.csSetCookie = csSetCookie;
148exports.docH = exports.wndH = exports.wndW = exports.csco = exports.$body = exports.$doc = exports.$window = exports.$ = void 0;
149// Create csco object.
150var csco = {
151  addAction: function addAction(x, y, z) {
152    return;
153  }
154};
155exports.csco = csco;
156
157if ('undefined' !== typeof wp && 'undefined' !== typeof wp.hooks) {
158  csco.addAction = wp.hooks.addAction;
159}
160/**
161 * Window size
162 */
163
164
165var $ = jQuery;
166exports.$ = $;
167var $window = $(window);
168exports.$window = $window;
169var $doc = $(document);
170exports.$doc = $doc;
171var $body = $('body');
172exports.$body = $body;
173var wndW = 0;
174exports.wndW = wndW;
175var wndH = 0;
176exports.wndH = wndH;
177var docH = 0;
178exports.docH = docH;
179
180function csGetWndSize() {
181  exports.wndW = wndW = $window.width();
182  exports.wndH = wndH = $window.height();
183  exports.docH = docH = $doc.height();
184}
185
186$window.on('resize load orientationchange', csGetWndSize);
187csGetWndSize();
188/**
189 * Throttle scroll
190 * thanks: https://jsfiddle.net/mariusc23/s6mLJ/31/
191 */
192
193var csHideOnScrollList = [];
194var csDidScroll;
195var csLastST = 0;
196$window.on('scroll load resize orientationchange', function () {
197  if (csHideOnScrollList.length) {
198    csDidScroll = true;
199  }
200});
201
202function csHasScrolled() {
203  var ST = $window.scrollTop();
204  var type = null;
205
206  if (ST > csLastST) {
207    type = 'down';
208  } else if (ST < csLastST) {
209    type = 'up';
210  } else {
211    type = 'none';
212  }
213
214  if (ST === 0) {
215    type = 'start';
216  } else if (ST >= docH - wndH) {
217    type = 'end';
218  }
219
220  csHideOnScrollList.forEach(function (item) {
221    if (typeof item === 'function') {
222      item(type, ST, csLastST, $window);
223    }
224  });
225  csLastST = ST;
226}
227
228setInterval(function () {
229  if (csDidScroll) {
230    csDidScroll = false;
231    window.requestAnimationFrame(csHasScrolled);
232  }
233}, 250);
234
235function csThrottleScroll(callback) {
236  csHideOnScrollList.push(callback);
237}
238/**
239 * In Viewport checker
240 */
241
242
243$.fn.isInViewport = function () {
244  var elementTop = $(this).offset().top;
245  var elementBottom = elementTop + $(this).outerHeight();
246  var viewportTop = $(window).scrollTop();
247  var viewportBottom = viewportTop + $(window).height();
248  return elementBottom > viewportTop && elementTop < viewportBottom;
249};
250/**
251 * Cookies
252 */
253
254
255function csGetCookie(name) {
256  var matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"));
257  return matches ? decodeURIComponent(matches[1]) : undefined;
258}
259
260function csSetCookie(name, value) {
261  var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
262  props = {
263    path: '/'
264  };
265
266  if (props.expires instanceof Date) {
267    props.expires = props.expires.toUTCString();
268  }
269
270  var updatedCookie = encodeURIComponent(name) + "=" + encodeURIComponent(value);
271
272  for (var optionKey in props) {
273    updatedCookie += "; " + optionKey;
274    var optionValue = props[optionKey];
275
276    if (optionValue !== true) {
277      updatedCookie += "=" + optionValue;
278    }
279  }
280
281  document.cookie = updatedCookie;
282}
283
284/***/ }),
285/* 1 */
286/***/ (function(module, exports, __webpack_require__) {
287
288__webpack_require__(2);
289__webpack_require__(3);
290__webpack_require__(4);
291__webpack_require__(5);
292__webpack_require__(6);
293__webpack_require__(7);
294__webpack_require__(8);
295__webpack_require__(9);
296__webpack_require__(10);
297__webpack_require__(11);
298__webpack_require__(12);
299__webpack_require__(13);
300__webpack_require__(14);
301__webpack_require__(15);
302__webpack_require__(16);
303module.exports = __webpack_require__(17);
304
305
306/***/ }),
307/* 2 */
308/***/ (function(module, exports, __webpack_require__) {
309
310"use strict";
311
312
313var _utility = __webpack_require__(0);
314
315(function () {
316  function initCarousel() {
317    /**
318     * Carousel-type-1
319     */
320    (0, _utility.$)('.cnvs-block-posts-layout-carousel-type-1').each(function (indexBlock, objectBlock) {
321      (0, _utility.$)(objectBlock).imagesLoaded(function (instance) {
322        var rtl = _utility.$body.hasClass('rtl') ? true : false; // Loop.
323
324        (0, _utility.$)(instance.elements).each(function (index, el) {
325          var objectSlider = (0, _utility.$)(el).find('.cs-carousel__items'); // Get data.
326
327          var autoPlay = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('autoplay'),
328              pageDots = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('pagedots'),
329              wrapAround = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('wraparound');
330          console.log(autoPlay);
331          var settings = {
332            wrapAround: wrapAround ? true : false,
333            autoPlay: autoPlay ? 5000 : false,
334            prevNextButtons: false,
335            pageDots: pageDots ? true : false,
336            rightToLeft: rtl,
337            resize: true
338          };
339          (0, _utility.$)(objectSlider).flickity(settings);
340          var flkty = (0, _utility.$)(objectSlider).data('flickity');
341          var $prev = (0, _utility.$)(objectBlock).find('.cs-carousel__arrow-previous');
342          var $next = (0, _utility.$)(objectBlock).find('.cs-carousel__arrow-next');
343          var elCount = (0, _utility.$)(objectSlider).find('.cs-carousel__cell').length;
344
345          if (elCount >= 2) {
346            (0, _utility.$)(objectSlider).flickity(settings);
347          } else {
348            (0, _utility.$)(objectSlider).flickity('destroy');
349          } // Select the previous slide.
350
351
352          $prev.on('click', function (event) {
353            event.preventDefault();
354            var type = rtl ? 'next' : 'previous';
355            (0, _utility.$)(objectSlider).flickity(type);
356          }); // Select the next slide.
357
358          $next.on('click', function (event) {
359            event.preventDefault();
360            var type = rtl ? 'previous' : 'next';
361            (0, _utility.$)(objectSlider).flickity(type);
362          });
363
364          if (!settings.wrapAround) {
365            (0, _utility.$)(objectSlider).on('select.flickity', function () {
366              // enable/disable previous/next buttons
367              if (!flkty.slides[flkty.selectedIndex - 1]) {
368                $prev.addClass('disabled');
369                $next.removeClass('disabled'); // <-- remove disabled from the next
370              } else if (!flkty.slides[flkty.selectedIndex + 1]) {
371                $next.addClass('disabled');
372                $prev.removeClass('disabled'); //<-- remove disabled from the prev
373              } else {
374                $prev.removeClass('disabled');
375                $next.removeClass('disabled');
376              }
377            });
378          }
379        });
380      });
381    });
382    /**
383     * Wide Carousel
384     */
385
386    (0, _utility.$)('.cnvs-block-posts-layout-wide-type-2').each(function (indexBlock, objectBlock) {
387      (0, _utility.$)(objectBlock).imagesLoaded(function (instance) {
388        var rtl = _utility.$body.hasClass('rtl') ? true : false; // Loop.
389
390        (0, _utility.$)(instance.elements).each(function (index, el) {
391          var objectSlider = (0, _utility.$)(el).find('.cs-wide-carousel__items'); // Get data.
392
393          var autoPlay = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('autoplay'),
394              pageDots = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('pagedots'),
395              wrapAround = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('wraparound');
396          var settings = {
397            wrapAround: wrapAround ? true : false,
398            autoPlay: autoPlay ? 5000 : false,
399            prevNextButtons: false,
400            pageDots: pageDots ? true : false,
401            rightToLeft: rtl,
402            resize: true
403          };
404          (0, _utility.$)(objectSlider).flickity(settings);
405          var flkty = (0, _utility.$)(objectSlider).data('flickity');
406          var $prev = (0, _utility.$)(objectBlock).find('.cs-wide-carousel__arrow-previous');
407          var $next = (0, _utility.$)(objectBlock).find('.cs-wide-carousel__arrow-next');
408          var elCount = (0, _utility.$)(objectSlider).find('.cs-wide-carousel__cell').length;
409
410          if (elCount >= 2) {
411            (0, _utility.$)(objectSlider).flickity(settings);
412          } else {
413            (0, _utility.$)(objectSlider).flickity('destroy');
414          } // Select the previous slide.
415
416
417          $prev.on('click', function (event) {
418            event.preventDefault();
419            var type = rtl ? 'next' : 'previous';
420            (0, _utility.$)(objectSlider).flickity(type);
421          }); // Select the next slide.
422
423          $next.on('click', function (event) {
424            event.preventDefault();
425            var type = rtl ? 'previous' : 'next';
426            (0, _utility.$)(objectSlider).flickity(type);
427          });
428
429          if (!settings.wrapAround) {
430            (0, _utility.$)(objectSlider).on('select.flickity', function () {
431              // enable/disable previous/next buttons
432              if (!flkty.slides[flkty.selectedIndex - 1]) {
433                $prev.addClass('disabled');
434                $next.removeClass('disabled'); // <-- remove disabled from the next
435              } else if (!flkty.slides[flkty.selectedIndex + 1]) {
436                $next.addClass('disabled');
437                $prev.removeClass('disabled'); //<-- remove disabled from the prev
438              } else {
439                $prev.removeClass('disabled');
440                $next.removeClass('disabled');
441              }
442            });
443          }
444        });
445      });
446    });
447    /**
448     * Wide Carousel-type-2
449     */
450
451    (0, _utility.$)('.cnvs-block-posts-layout-wide-type-3 ').each(function (indexBlock, objectBlock) {
452      (0, _utility.$)(objectBlock).imagesLoaded(function (instance) {
453        var rtl = _utility.$body.hasClass('rtl') ? true : false; // Loop.
454
455        (0, _utility.$)(instance.elements).each(function (index, el) {
456          var objectSlider = (0, _utility.$)(el).find('.cs-wide-carousel__items');
457          var $current; // Point.
458
459          var point = function point() {
460            var points = [340, 370, 480, 565, 640, 720, 1020, 1200, 1440, 1660, 1920];
461            var current = 0;
462
463            for (var i in points) {
464              if (window.innerWidth >= points[i]) {
465                current = points[i];
466              }
467            }
468
469            return current;
470          }; // Get columns.
471
472
473          var carouselColumns = parseInt(window.getComputedStyle((0, _utility.$)(objectBlock)[0]).getPropertyValue('--cs-carousel-columns')); // Get data.
474
475          var autoPlay = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('autoplay'),
476              pageDots = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('pagedots'),
477              wrapAround = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('wraparound');
478          var settings = {
479            cellAlign: rtl ? 'right' : 'left',
480            autoPlay: autoPlay ? 5000 : false,
481            prevNextButtons: false,
482            rightToLeft: rtl,
483            wrapAround: wrapAround ? true : false,
484            pageDots: pageDots ? true : false,
485            resize: true
486          };
487          (0, _utility.$)(objectSlider).flickity(settings);
488          var flkty = (0, _utility.$)(objectSlider).data('flickity');
489          var $prev = (0, _utility.$)(objectBlock).find('.cs-wide-carousel__arrow-previous');
490          var $next = (0, _utility.$)(objectBlock).find('.cs-wide-carousel__arrow-next');
491          var elCount = (0, _utility.$)(objectSlider).find('.cs-wide-carousel__cell').length;
492
493          if (elCount >= carouselColumns + 1) {
494            (0, _utility.$)(objectSlider).flickity(settings);
495          } else {
496            (0, _utility.$)(objectSlider).flickity('destroy');
497          } // Set current point();
498
499
500          $current = point(); // Resize.
501
502          (0, _utility.$)(window).resize(function () {
503            var carouselColumnsResize = parseInt(window.getComputedStyle((0, _utility.$)(objectBlock)[0]).getPropertyValue('--cs-carousel-columns'));
504
505            if ($current !== point() && elCount >= carouselColumnsResize + 1) {
506              (0, _utility.$)(objectSlider).flickity(settings);
507              $current = point();
508
509              if ((0, _utility.$)(objectSlider).flickity(settings)) {
510                (0, _utility.$)(objectSlider).flickity('destroy');
511                (0, _utility.$)(objectSlider).flickity(settings);
512              }
513            } else if ($current !== point() && elCount <= carouselColumnsResize && (0, _utility.$)(objectSlider).flickity(settings)) {
514              (0, _utility.$)(objectSlider).flickity('destroy');
515              $current = point();
516            }
517          }); // Select the previous slide.
518
519          $prev.on('click', function (event) {
520            event.preventDefault();
521            var type = rtl ? 'next' : 'previous';
522            (0, _utility.$)(objectSlider).flickity(type);
523          }); // Select the next slide.
524
525          $next.on('click', function (event) {
526            event.preventDefault();
527            var type = rtl ? 'previous' : 'next';
528            (0, _utility.$)(objectSlider).flickity(type);
529          });
530
531          if (!settings.wrapAround) {
532            (0, _utility.$)(objectSlider).on('select.flickity', function () {
533              // enable/disable previous/next buttons
534              if (!flkty.slides[flkty.selectedIndex - 1]) {
535                $prev.addClass('disabled');
536                $next.removeClass('disabled'); // <-- remove disabled from the next
537              } else if (!flkty.slides[flkty.selectedIndex + 1]) {
538                $next.addClass('disabled');
539                $prev.removeClass('disabled'); //<-- remove disabled from the prev
540              } else {
541                $prev.removeClass('disabled');
542                $next.removeClass('disabled');
543              }
544            });
545          }
546        });
547      });
548    });
549    /**
550     * Wide Carousel-type-3
551     */
552
553    (0, _utility.$)('.cnvs-block-posts-layout-wide-type-4 ').each(function (indexBlock, objectBlock) {
554      (0, _utility.$)(objectBlock).imagesLoaded(function (instance) {
555        var rtl = _utility.$body.hasClass('rtl') ? true : false; // Loop.
556
557        (0, _utility.$)(instance.elements).each(function (index, el) {
558          var objectSlider = (0, _utility.$)(el).find('.cs-wide-carousel__items');
559          var $current; // Point.
560
561          var point = function point() {
562            var points = [340, 370, 480, 565, 640, 720, 1020, 1200, 1440, 1660, 1920];
563            var current = 0;
564
565            for (var i in points) {
566              if (window.innerWidth >= points[i]) {
567                current = points[i];
568              }
569            }
570
571            return current;
572          }; // Get columns.
573
574
575          var carouselColumns = parseInt(window.getComputedStyle((0, _utility.$)(objectBlock)[0]).getPropertyValue('--cs-carousel-columns')); // Get data.
576
577          var autoPlay = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('autoplay'),
578              pageDots = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('pagedots'),
579              wrapAround = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('wraparound');
580          var settings = {
581            cellAlign: rtl ? 'right' : 'left',
582            autoPlay: autoPlay ? 5000 : false,
583            prevNextButtons: false,
584            wrapAround: wrapAround ? true : false,
585            pageDots: pageDots ? true : false,
586            rightToLeft: rtl,
587            resize: true
588          };
589          (0, _utility.$)(objectSlider).flickity(settings);
590          var flkty = (0, _utility.$)(objectSlider).data('flickity');
591          var $prev = (0, _utility.$)(objectBlock).find('.cs-wide-carousel__arrow-previous');
592          var $next = (0, _utility.$)(objectBlock).find('.cs-wide-carousel__arrow-next');
593          var elCount = (0, _utility.$)(objectSlider).find('.cs-wide-carousel__cell').length;
594
595          if (elCount >= carouselColumns + 1) {
596            (0, _utility.$)(objectSlider).flickity(settings);
597          } else {
598            (0, _utility.$)(objectSlider).flickity('destroy');
599          } // Set current point();
600
601
602          $current = point(); // Resize.
603
604          (0, _utility.$)(window).resize(function () {
605            var carouselColumnsResize = parseInt(window.getComputedStyle((0, _utility.$)(objectBlock)[0]).getPropertyValue('--cs-carousel-columns'));
606
607            if ($current !== point() && elCount >= carouselColumnsResize + 1) {
608              (0, _utility.$)(objectSlider).flickity(settings);
609              $current = point();
610
611              if ((0, _utility.$)(objectSlider).flickity(settings)) {
612                (0, _utility.$)(objectSlider).flickity('destroy');
613                (0, _utility.$)(objectSlider).flickity(settings);
614              }
615            } else if ($current !== point() && elCount <= carouselColumnsResize && (0, _utility.$)(objectSlider).flickity(settings)) {
616              (0, _utility.$)(objectSlider).flickity('destroy');
617              $current = point();
618            }
619          }); // Select the previous slide.
620
621          $prev.on('click', function (event) {
622            event.preventDefault();
623            var type = rtl ? 'next' : 'previous';
624            (0, _utility.$)(objectSlider).flickity(type);
625          }); // Select the next slide.
626
627          $next.on('click', function (event) {
628            event.preventDefault();
629            var type = rtl ? 'previous' : 'next';
630            (0, _utility.$)(objectSlider).flickity(type);
631          });
632
633          if (!settings.wrapAround) {
634            (0, _utility.$)(objectSlider).on('select.flickity', function () {
635              // enable/disable previous/next buttons
636              if (!flkty.slides[flkty.selectedIndex - 1]) {
637                $prev.addClass('disabled');
638                $next.removeClass('disabled'); // <-- remove disabled from the next
639              } else if (!flkty.slides[flkty.selectedIndex + 1]) {
640                $next.addClass('disabled');
641                $prev.removeClass('disabled'); //<-- remove disabled from the prev
642              } else {
643                $prev.removeClass('disabled');
644                $next.removeClass('disabled');
645              }
646            });
647          }
648        });
649      });
650    });
651    /**
652     * Large Carousel Type 1
653     */
654
655    (0, _utility.$)('.cnvs-block-posts-layout-large-type-1').each(function (indexBlock, objectBlock) {
656      (0, _utility.$)(objectBlock).imagesLoaded(function (instance) {
657        var rtl = _utility.$body.hasClass('rtl') ? true : false; // Loop.
658
659        (0, _utility.$)(instance.elements).each(function (index, el) {
660          var objectSlider = (0, _utility.$)(el).find('.cs-slider__items');
661          var $current; // Point.
662
663          var point = function point() {
664            var points = [340, 370, 480, 565, 640, 720, 1020, 1200, 1440, 1660, 1920];
665            var current = 0;
666
667            for (var i in points) {
668              if (window.innerWidth >= points[i]) {
669                current = points[i];
670              }
671            }
672
673            return current;
674          }; // Get data.
675
676
677          var autoPlay = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('autoplay'),
678              pageDots = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('pagedots'),
679              wrapAround = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('wraparound');
680          var settings = {
681            wrapAround: wrapAround ? true : false,
682            contain: false,
683            autoPlay: autoPlay ? 5000 : false,
684            prevNextButtons: false,
685            pageDots: pageDots ? true : false,
686            rightToLeft: rtl,
687            resize: true,
688            selectedAttraction: 0.006,
689            friction: 0.14
690          };
691          (0, _utility.$)(objectSlider).flickity(settings);
692          var flkty = (0, _utility.$)(objectSlider).data('flickity');
693          var $prev = (0, _utility.$)(objectBlock).find('.cs-slider__arrow-previous');
694          var $next = (0, _utility.$)(objectBlock).find('.cs-slider__arrow-next');
695          var elCount = (0, _utility.$)(objectSlider).find('.cs-slider__cell').length;
696
697          if (elCount >= 2) {
698            (0, _utility.$)(objectSlider).flickity(settings);
699          } else {
700            (0, _utility.$)(objectSlider).flickity('destroy');
701          } // Set current point();
702
703
704          $current = point(); // Resize.
705
706          (0, _utility.$)(window).resize(function () {
707            if ($current !== point() && elCount >= 2) {
708              (0, _utility.$)(objectSlider).flickity(settings);
709              $current = point();
710
711              if ((0, _utility.$)(objectSlider).flickity(settings)) {
712                (0, _utility.$)(objectSlider).flickity('destroy');
713                (0, _utility.$)(objectSlider).flickity(settings);
714              }
715            } else if ($current !== point() && elCount <= 2 && (0, _utility.$)(objectSlider).flickity(settings)) {
716              (0, _utility.$)(objectSlider).flickity('destroy');
717              $current = point();
718            }
719          }); // Select the previous slide.
720
721          $prev.on('click', function (event) {
722            event.preventDefault();
723            var type = rtl ? 'next' : 'previous';
724            (0, _utility.$)(objectSlider).flickity(type);
725          }); // Select the next slide.
726
727          $next.on('click', function (event) {
728            event.preventDefault();
729            var type = rtl ? 'previous' : 'next';
730            (0, _utility.$)(objectSlider).flickity(type);
731          });
732
733          if (!settings.wrapAround) {
734            (0, _utility.$)(objectSlider).on('select.flickity', function () {
735              // enable/disable previous/next buttons
736              if (!flkty.slides[flkty.selectedIndex - 1]) {
737                $prev.addClass('disabled');
738                $next.removeClass('disabled'); // <-- remove disabled from the next
739              } else if (!flkty.slides[flkty.selectedIndex + 1]) {
740                $next.addClass('disabled');
741                $prev.removeClass('disabled'); //<-- remove disabled from the prev
742              } else {
743                $prev.removeClass('disabled');
744                $next.removeClass('disabled');
745              }
746            });
747          }
748        });
749      });
750    });
751    /**
752     * Large Carousel Type 2
753     */
754
755    (0, _utility.$)('.cnvs-block-posts-layout-large-type-2').each(function (indexBlock, objectBlock) {
756      (0, _utility.$)(objectBlock).imagesLoaded(function (instance) {
757        var rtl = _utility.$body.hasClass('rtl') ? true : false; // Loop.
758
759        (0, _utility.$)(instance.elements).each(function (index, el) {
760          var objectSlider = (0, _utility.$)(el).find('.cs-slider__items');
761          var $current; // Point.
762
763          var point = function point() {
764            var points = [340, 370, 480, 565, 640, 720, 1020, 1200, 1440, 1660, 1920];
765            var current = 0;
766
767            for (var i in points) {
768              if (window.innerWidth >= points[i]) {
769                current = points[i];
770              }
771            }
772
773            return current;
774          }; // Get columns.
775
776
777          var carouselColumns = parseInt(window.getComputedStyle((0, _utility.$)(objectBlock)[0]).getPropertyValue('--cs-carousel-columns')); // Get data.
778
779          var autoPlay = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('autoplay'),
780              pageDots = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('pagedots'),
781              wrapAround = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('wraparound'),
782              groupCells = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('groupcells');
783          var settings = {
784            wrapAround: wrapAround ? true : false,
785            groupCells: groupCells ? true : false,
786            autoPlay: autoPlay ? 5000 : false,
787            prevNextButtons: false,
788            pageDots: pageDots ? true : false,
789            rightToLeft: rtl,
790            resize: true,
791            selectedAttraction: 0.006,
792            friction: 0.14
793          };
794
795          if (settings.groupCells) {
796            settings.groupCells = carouselColumns;
797            (0, _utility.$)(objectSlider).addClass('cs-groupcells-active');
798          }
799
800          (0, _utility.$)(objectSlider).flickity(settings);
801          var flkty = (0, _utility.$)(objectSlider).data('flickity');
802          var $prev = (0, _utility.$)(objectBlock).find('.cs-slider__arrow-previous');
803          var $next = (0, _utility.$)(objectBlock).find('.cs-slider__arrow-next');
804          var elCount = (0, _utility.$)(objectSlider).find('.cs-slider__cell').length;
805
806          if (elCount >= carouselColumns + 1) {
807            (0, _utility.$)(objectSlider).flickity(settings);
808          } else {
809            (0, _utility.$)(objectSlider).flickity('destroy');
810          } // Set current point();
811
812
813          $current = point(); // Resize.
814
815          (0, _utility.$)(window).resize(function () {
816            var carouselColumnsResize = parseInt(window.getComputedStyle((0, _utility.$)(objectBlock)[0]).getPropertyValue('--cs-carousel-columns'));
817
818            if ($current !== point() && elCount >= carouselColumnsResize + 1) {
819              if (settings.groupCells) {
820                settings.groupCells = carouselColumnsResize;
821              }
822
823              (0, _utility.$)(objectSlider).flickity(settings);
824              $current = point();
825
826              if ((0, _utility.$)(objectSlider).flickity(settings)) {
827                (0, _utility.$)(objectSlider).flickity('destroy');
828
829                if (settings.groupCells) {
830                  settings.groupCells = carouselColumnsResize;
831                }
832
833                (0, _utility.$)(objectSlider).flickity(settings);
834              }
835            } else if ($current !== point() && elCount <= carouselColumnsResize && (0, _utility.$)(objectSlider).flickity(settings)) {
836              (0, _utility.$)(objectSlider).flickity('destroy');
837              $current = point();
838            }
839          }); // Select the previous slide.
840
841          $prev.on('click', function (event) {
842            event.preventDefault();
843            var type = rtl ? 'next' : 'previous';
844            (0, _utility.$)(objectSlider).flickity(type);
845          }); // Select the next slide.
846
847          $next.on('click', function (event) {
848            event.preventDefault();
849            var type = rtl ? 'previous' : 'next';
850            (0, _utility.$)(objectSlider).flickity(type);
851          });
852
853          if (!settings.wrapAround) {
854            (0, _utility.$)(objectSlider).on('select.flickity', function () {
855              // enable/disable previous/next buttons
856              if (!flkty.slides[flkty.selectedIndex - 1]) {
857                $prev.addClass('disabled');
858                $next.removeClass('disabled'); // <-- remove disabled from the next
859              } else if (!flkty.slides[flkty.selectedIndex + 1]) {
860                $next.addClass('disabled');
861                $prev.removeClass('disabled'); //<-- remove disabled from the prev
862              } else {
863                $prev.removeClass('disabled');
864                $next.removeClass('disabled');
865              }
866            });
867          }
868        });
869      });
870    });
871  }
872
873  function initIstagramWidgetCarousel() {
874    /**
875     * Instagram Widget Slider
876     */
877    (0, _utility.$)('.pk-instagram-template-slider .pk-slider-instagram-items').imagesLoaded(function (instance) {
878      // Set unique id.
879      var requestId; // Set rtl status.
880
881      var rtl = (0, _utility.$)('body').hasClass('rtl') ? true : false;
882      (0, _utility.$)(instance.elements).each(function (index, el) {
883        var mainTicker = new Flickity(el, {
884          freeScroll: true,
885          accessibility: true,
886          resize: true,
887          wrapAround: true,
888          prevNextButtons: false,
889          pageDots: false,
890          percentPosition: true,
891          setGallerySize: true,
892          adaptiveHeight: true,
893          rightToLeft: rtl,
894          on: {
895            ready: function ready() {
896              (0, _utility.$)(el).addClass('is-animate');
897            }
898          }
899        });
900        mainTicker.initAnimation = false; // Set initial position to be 0
901
902        mainTicker.x = 0; // Main function that 'plays' the marquee.
903
904        function flickity_play() {
905          // Set the decrement of position x
906          mainTicker.x = mainTicker.x - 0.5; // Settle position into the slider
907
908          mainTicker.settle(mainTicker.x); // Set the requestId to the local letiable
909
910          requestId = window.requestAnimationFrame(flickity_play);
911        } // Main function to cancel the animation.
912
913
914        function flickity_pause() {
915          if (requestId) {
916            // Cancel the animation.
917            window.cancelAnimationFrame(requestId);
918            requestId = undefined;
919          }
920        } // Main function init
921
922
923        function flickity_init() {
924          // The monitor.
925          var isInView = (0, _utility.$)(el).isInViewport();
926
927          if (isInView) {
928            if (!mainTicker.initAnimation) {
929              flickity_play();
930              mainTicker.initAnimation = true;
931            }
932          } else {
933            flickity_pause();
934            mainTicker.initAnimation = false;
935          }
936        } // Document scroll.
937
938
939        (0, _utility.$)(window).on('load scroll resize scrollstop', function () {
940          flickity_init();
941        }); // Document ready.
942
943        (0, _utility.$)(document).ready(function () {
944          flickity_init();
945        }); // Pause on hover/focus.
946
947        (0, _utility.$)(el).on('mouseenter focusin', function (e) {
948          flickity_pause();
949        }); // Unpause on mouse out / defocus.
950
951        (0, _utility.$)(el).on('mouseleave', function (e) {
952          flickity_play();
953        });
954      });
955    });
956  }
957
958  function initIstagramFooterCarousel() {
959    /**
960     * Footer Instagram Slider
961     */
962    (0, _utility.$)('.pk-instagram-carousel ').each(function (indexBlock, objectBlock) {
963      (0, _utility.$)(objectBlock).imagesLoaded(function (instance) {
964        var rtl = _utility.$body.hasClass('rtl') ? true : false; // Loop.
965
966        (0, _utility.$)(instance.elements).each(function (index, el) {
967          var objectSlider = (0, _utility.$)(el).find('.pk-alt-instagram-items'); // Get columns.
968
969          var carouselColumns = parseInt(window.getComputedStyle((0, _utility.$)(objectBlock)[0]).getPropertyValue('--cs-carousel-columns')); // Get data.
970
971          var autoPlay = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('autoplay'),
972              wrapAround = (0, _utility.$)(objectBlock).find('.cs-flickity-init').data('wraparound');
973          var settings = {
974            cellAlign: rtl ? 'right' : 'left',
975            wrapAround: wrapAround ? true : false,
976            autoPlay: autoPlay ? 5000 : false,
977            prevNextButtons: false,
978            pageDots: false,
979            rightToLeft: rtl,
980            resize: true
981          };
982          (0, _utility.$)(objectSlider).flickity(settings);
983          var flkty = (0, _utility.$)(objectSlider).data('flickity');
984          var $prev = (0, _utility.$)(objectBlock).find('.carousel-previous');
985          var $next = (0, _utility.$)(objectBlock).find('.carousel-next');
986          var elCount = (0, _utility.$)(objectSlider).find('.pk-alt-instagram-item').length;
987
988          if (elCount >= carouselColumns + 1) {
989            (0, _utility.$)(objectSlider).flickity(settings);
990          } else {
991            (0, _utility.$)(objectSlider).flickity('destroy');
992          } // Select the previous slide.
993
994
995          $prev.on('click', function (event) {
996            event.preventDefault();
997            var type = rtl ? 'next' : 'previous';
998            (0, _utility.$)(objectSlider).flickity(type);
999          }); // Select the next slide.
1000
1001          $next.on('click', function (event) {
1002            event.preventDefault();
1003            var type = rtl ? 'previous' : 'next';
1004            (0, _utility.$)(objectSlider).flickity(type);
1005          });
1006
1007          if (!settings.wrapAround) {
1008            (0, _utility.$)(objectSlider).on('select.flickity', function () {
1009              // enable/disable previous/next buttons
1010              if (!flkty.slides[flkty.selectedIndex - 1]) {
1011                $prev.addClass('disabled');
1012                $next.removeClass('disabled'); // <-- remove disabled from the next
1013              } else if (!flkty.slides[flkty.selectedIndex + 1]) {
1014                $next.addClass('disabled');
1015                $prev.removeClass('disabled'); //<-- remove disabled from the prev
1016              } else {
1017                $prev.removeClass('disabled');
1018                $next.removeClass('disabled');
1019              }
1020            });
1021          }
1022        });
1023      });
1024    });
1025  }
1026
1027  initCarousel();
1028  initIstagramWidgetCarousel();
1029  initIstagramFooterCarousel();
1030  (0, _utility.$)(document).ready(function () {
1031    (0, _utility.$)(document.body).on('post-load', function () {
1032      initCarousel();
1033    });
1034
1035    _utility.csco.addAction('canvas.components.serverSideRender.onChange', 'init-carousel', function (props) {
1036      if ('canvas/posts' === props.block) {
1037        initCarousel();
1038      }
1039    });
1040  });
1041})();
1042
1043/***/ }),
1044/* 3 */
1045/***/ (function(module, exports, __webpack_require__) {
1046
1047"use strict";
1048
1049
1050var _utility = __webpack_require__(0);
1051
1052/** ----------------------------------------------------------------------------
1053 * Comments Dropdown */
1054(function () {
1055  (0, _utility.$)(document).on('click', '.cs-entry__comments-show button', function (e) {
1056    (0, _utility.$)('.cs-entry__comments-collapse').show();
1057    (0, _utility.$)('.cs-entry__comments-show').remove();
1058  });
1059})();
1060
1061/***/ }),
1062/* 4 */
1063/***/ (function(module, exports, __webpack_require__) {
1064
1065"use strict";
1066
1067
1068var _utility = __webpack_require__(0);
1069
1070/** ----------------------------------------------------------------------------
1071 * Detect Aligment */
1072(function () {
1073  var ticking = false;
1074
1075  var update = function update() {
1076    // Sidebar.
1077    // -----------------------------------.
1078    (0, _utility.$)('.cs-site-primary').each(function () {
1079      var content = (0, _utility.$)(this).find('.entry-content');
1080      var sidebar = (0, _utility.$)(this).find('.cs-entry__metabar-inner'); // Vars offset.
1081
1082      var offsetTop = 20;
1083      var offsetBottom = -20; // Search elements.
1084
1085      var elements = [];
1086      elements.push('> .alignfull');
1087      elements.push('> .alignwide');
1088      var layouts = (0, _utility.$)(content).find(elements.join(','));
1089
1090      if (0 === sidebar.length) {
1091        return;
1092      }
1093
1094      if (0 === layouts.length) {
1095        return;
1096      }
1097
1098      var disabled = false; // Get sidebar values.
1099
1100      var sidebarTop = (0, _utility.$)(sidebar).offset().top;
1101      var sidebarHeight = (0, _utility.$)(sidebar).outerHeight(true);
1102
1103      for (var i = 0; i < (0, _utility.$)(layouts).length; ++i) {
1104        if ('none' === (0, _utility.$)(layouts[i]).css('transform')) {
1105          continue;
1106        } // Get layout values.
1107
1108
1109        var layoutTop = (0, _utility.$)(layouts[i]).offset().top;
1110        var layoutHeight = (0, _utility.$)(layouts[i]).outerHeight(true); // Calc points.
1111
1112        var pointTop = layoutTop - offsetTop;
1113        var pointBottom = layoutTop + layoutHeight + offsetBottom; // Detect sidebar location.
1114
1115        if (sidebarTop + sidebarHeight >= pointTop && sidebarTop <= pointBottom) {
1116          disabled = true;
1117        }
1118      }
1119
1120      if (disabled) {
1121        (0, _utility.$)(sidebar).css('opacity', '0');
1122      } else {
1123        (0, _utility.$)(sidebar).css('opacity', '1');
1124      }
1125    }); // Ticking.
1126
1127    ticking = false;
1128  };
1129
1130  var requestTick = function requestTick() {
1131    if (!ticking) {
1132      window.requestAnimationFrame(update);
1133      ticking = true;
1134    }
1135  };
1136
1137  var onProcess = function onProcess() {
1138    requestTick();
1139  };
1140
1141  (0, _utility.$)(window).on('scroll', onProcess);
1142  (0, _utility.$)(window).on('resize', onProcess);
1143  (0, _utility.$)(window).on('image-load', onProcess);
1144  (0, _utility.$)(window).on('post-load', onProcess);
1145})();
1146
1147/***/ }),
1148/* 5 */
1149/***/ (function(module, exports, __webpack_require__) {
1150
1151"use strict";
1152
1153
1154var _utility = __webpack_require__(0);
1155
1156/** ----------------------------------------------------------------------------
1157 * Comments Dropdown */
1158(function () {
1159  (0, _utility.$)(".cs-header__nav-inner > .menu-item").hover(function () {
1160    (0, _utility.$)(this).addClass('active').siblings('.menu-item').addClass('disable');
1161  }, function () {
1162    (0, _utility.$)(this).removeClass('active').siblings('.menu-item').removeClass('disable');
1163  });
1164})();
1165
1166/***/ }),
1167/* 6 */
1168/***/ (function(module, exports, __webpack_require__) {
1169
1170"use strict";
1171
1172
1173var _utility = __webpack_require__(0);
1174
1175/** ----------------------------------------------------------------------------
1176 * Comments Dropdown */
1177(function () {
1178  (0, _utility.$)('.cs-layout-large__col').hover(function () {
1179    (0, _utility.$)(this).addClass('active').siblings().removeClass('active').closest('.cs-layout-large__wrap').find('.cs-overlay-background').removeClass('active').eq((0, _utility.$)(this).index()).addClass('active');
1180  }, function () {
1181    (0, _utility.$)(this).closest('.cs-layout-large__wrap').find('.cs-overlay-background').removeClass('active').eq((0, _utility.$)(this).index()).addClass('active');
1182  });
1183})();
1184
1185/***/ }),
1186/* 7 */
1187/***/ (function(module, exports, __webpack_require__) {
1188
1189"use strict";
1190
1191
1192var _utility = __webpack_require__(0);
1193
1194function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1195
1196if ('undefined' === typeof window.load_more_query) {
1197  window.load_more_query = [];
1198}
1199/**
1200 * Get next posts
1201 */
1202
1203
1204function csco_ajax_get_posts(object) {
1205  var container = (0, _utility.$)(object).closest('.cs-posts-area');
1206  var settings = (0, _utility.$)(object).data('settings');
1207  var page = (0, _utility.$)(object).data('page');
1208  (0, _utility.$)(object).data('loading', true); // Set button text to Load More.
1209
1210  (0, _utility.$)(object).text(settings.translation.loading);
1211  var data = {
1212    action: 'csco_ajax_load_more',
1213    page: page,
1214    posts_per_page: settings.posts_per_page,
1215    query_data: settings.query_data,
1216    attributes: settings.attributes,
1217    options: settings.options,
1218    _ajax_nonce: settings.nonce
1219  };
1220
1221  if (settings.hasOwnProperty('current_lang') && settings.current_lang) {
1222    data.current_lang = settings.current_lang;
1223  }
1224
1225  if (settings.hasOwnProperty('current_locale') && settings.current_locale) {
1226    data.current_locale = settings.current_locale;
1227  } // Request Url.
1228
1229
1230  var csco_pagination_url;
1231
1232  if ('ajax_restapi' === settings.type) {
1233    csco_pagination_url = settings.rest_url;
1234  } else {
1235    csco_pagination_url = settings.url;
1236  } // Send Request.
1237
1238
1239  _utility.$.post(csco_pagination_url, data, function (res) {
1240    if (res.success) {
1241      // Get the posts.
1242      var data = (0, _utility.$)(res.data.content);
1243
1244      if (data.length) {
1245        var cscoAppendEnd = function cscoAppendEnd() {
1246          // WP Post Load trigger.
1247          (0, _utility.$)(document.body).trigger('post-load'); // Reinit Facebook widgets.
1248
1249          if ((0, _utility.$)('#fb-root').length && 'object' === (typeof FB === "undefined" ? "undefined" : _typeof(FB))) {
1250            FB.XFBML.parse();
1251          } // Set button text to Load More.
1252
1253
1254          (0, _utility.$)(object).text(settings.translation.load_more); // Increment a page.
1255
1256          page = page + 1;
1257          (0, _utility.$)(object).data('page', page); // Set the loading state.
1258
1259          (0, _utility.$)(object).data('loading', false);
1260        }; // Check archive type.
1261
1262
1263        if ((0, _utility.$)(container).find('.cs-posts-area__outer').hasClass('cs-posts-area__type-mixed')) {
1264          for (var key in data) {
1265            if (key % 1 !== 0) {
1266              continue;
1267            }
1268
1269            var last_section = (0, _utility.$)(container).find('.cs-posts-area__outer .cs-posts-area__main ').last();
1270            var last_posts = (0, _utility.$)(last_section).find('article').length;
1271            var last_class = (0, _utility.$)(last_section).attr('class');
1272            var new_section = false;
1273            var point_end = window.getComputedStyle((0, _utility.$)(last_section)[0]).getPropertyValue('--cs-posts-area-grid-columns-const') * 2;
1274
1275            if ((0, _utility.$)(last_section).hasClass('cs-posts-area__alt')) {
1276              new_section = 'cs-posts-area__grid';
1277            }
1278
1279            if ((0, _utility.$)(last_section).hasClass('cs-posts-area__grid') && last_posts === point_end) {
1280              new_section = 'cs-posts-area__alt';
1281            } // Append new section.
1282
1283
1284            if (new_section) {
1285              (0, _utility.$)('<div></div>').appendTo((0, _utility.$)(container).find('.cs-posts-area__outer')).addClass(last_class).removeClass('cs-posts-area__alt cs-posts-area__grid').addClass(new_section);
1286            } // Append new posts to layout.
1287
1288
1289            (0, _utility.$)(container).find('.cs-posts-area__outer .cs-posts-area__main').last().append(data[key]);
1290          }
1291
1292          cscoAppendEnd();
1293        } else {
1294          (0, _utility.$)(container).find('.cs-posts-area__main').append(data);
1295          cscoAppendEnd();
1296        }
1297      } // Remove Button on Posts End.
1298
1299
1300      if (res.data.posts_end || !data.length) {
1301        // Remove Load More button.
1302        (0, _utility.$)(object).remove();
1303      }
1304    } else {// console.log(res);
1305    }
1306  }).fail(function (xhr, textStatus, e) {// console.log(xhr.responseText);
1307  });
1308}
1309/**
1310 * Initialization Load More
1311 */
1312
1313
1314function csco_load_more_init(infinite) {
1315  (0, _utility.$)('.cs-posts-area').each(function () {
1316    if ((0, _utility.$)(this).data('init')) {
1317      return false;
1318    }
1319
1320    var csco_ajax_settings;
1321
1322    if (typeof csco_ajax_pagination !== 'undefined') {
1323      csco_ajax_settings = csco_ajax_pagination;
1324    }
1325
1326    var archive_data = (0, _utility.$)(this).data('posts-area');
1327
1328    if (archive_data) {
1329      csco_ajax_settings = JSON.parse(window.atob(archive_data));
1330    }
1331
1332    if (csco_ajax_settings) {
1333      if (!infinite && csco_ajax_settings.infinite_load) {
1334        return false;
1335      } // Add load more button.
1336
1337
1338      (0, _utility.$)(this).append('<div class="cs-posts-area__pagination"><button class="cs-load-more">' + csco_ajax_settings.translation.load_more + '</button></div>'); // Set load more settings.
1339
1340      (0, _utility.$)(this).find('.cs-load-more').data('settings', csco_ajax_settings);
1341      (0, _utility.$)(this).find('.cs-load-more').data('page', 2);
1342      (0, _utility.$)(this).find('.cs-load-more').data('loading', false);
1343      (0, _utility.$)(this).find('.cs-load-more').data('scrollHandling', {
1344        allow: _utility.$.parseJSON(csco_ajax_settings.infinite_load),
1345        delay: 400
1346      });
1347    }
1348
1349    (0, _utility.$)(this).data('init', true);
1350  });
1351}
1352
1353csco_load_more_init(true);
1354
1355_utility.csco.addAction('canvas.components.serverSideRender.onChange', 'posts-init-loadmore', function (props) {
1356  if ('canvas/posts' === props.block) {
1357    csco_load_more_init(false);
1358  }
1359}); // On Scroll Event.
1360
1361
1362(0, _utility.$)(window).scroll(function () {
1363  (0, _utility.$)('.cs-posts-area .cs-load-more').each(function () {
1364    var loading = (0, _utility.$)(this).data('loading');
1365    var scrollHandling = (0, _utility.$)(this).data('scrollHandling');
1366
1367    if ('undefined' === typeof scrollHandling) {
1368      return;
1369    }
1370
1371    if ((0, _utility.$)(this).length && !loading && scrollHandling.allow) {
1372      scrollHandling.allow = false;
1373      (0, _utility.$)(this).data('scrollHandling', scrollHandling);
1374      var object = this;
1375      setTimeout(function () {
1376        var scrollHandling = (0, _utility.$)(object).data('scrollHandling');
1377
1378        if ('undefined' === typeof scrollHandling) {
1379          return;
1380        }
1381
1382        scrollHandling.allow = true;
1383        (0, _utility.$)(object).data('scrollHandling', scrollHandling);
1384      }, scrollHandling.delay);
1385      var offset = (0, _utility.$)(this).offset().top - (0, _utility.$)(window).scrollTop();
1386
1387      if (4000 > offset) {
1388        csco_ajax_get_posts(this);
1389      }
1390    }
1391  });
1392}); // On Click Event.
1393
1394(0, _utility.$)('body').on('click', '.cs-load-more', function () {
1395  var loading = (0, _utility.$)(this).data('loading');
1396
1397  if (!loading) {
1398    csco_ajax_get_posts(this);
1399  }
1400});
1401
1402/***/ }),
1403/* 8 */
1404/***/ (function(module, exports, __webpack_require__) {
1405
1406"use strict";
1407
1408
1409var _utility = __webpack_require__(0);
1410
1411function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1412
1413/**
1414 * Check if Load Nextpost is defined by the wp_localize_script
1415 */
1416if (typeof csco_ajax_nextpost !== 'undefined') {
1417  var objNextparent = (0, _utility.$)('.cs-site-primary > .cs-site-content'),
1418      objNextsect = '.cs-nextpost-section',
1419      objNextpost = null,
1420      currentNTitle = document.title,
1421      currentNLink = window.location.href,
1422      loadingNextpost = false,
1423      scrollNextpost = {
1424    allow: true,
1425    reallow: function reallow() {
1426      scrollNextpost.allow = true;
1427    },
1428    delay: 400 //(milliseconds) adjust to the highest acceptable value
1429
1430  }; // Init.
1431
1432  if (csco_ajax_nextpost.next_post) {
1433    (0, _utility.$)(objNextparent).after('<div class="cs-nextpost-inner"></div>');
1434    objNextpost = (0, _utility.$)('.cs-nextpost-inner');
1435  }
1436}
1437/**
1438 * Get next post
1439 */
1440
1441
1442function csco_ajax_get_nextpost() {
1443  loadingNextpost = true; // Set class loading.
1444
1445  var data = {
1446    action: 'csco_ajax_load_nextpost',
1447    not_in: csco_ajax_nextpost.not_in,
1448    current_user: csco_ajax_nextpost.current_user,
1449    nonce: csco_ajax_nextpost.nonce,
1450    next_post: csco_ajax_nextpost.next_post
1451  };
1452
1453  if (csco_ajax_nextpost.hasOwnProperty('current_lang') && csco_ajax_nextpost.current_lang) {
1454    data.current_lang = csco_ajax_nextpost.current_lang;
1455  }
1456
1457  if (csco_ajax_nextpost.hasOwnProperty('current_locale') && csco_ajax_nextpost.current_locale) {
1458    data.current_locale = csco_ajax_nextpost.current_locale;
1459  } // Request Url.
1460
1461
1462  var csco_ajax_nextpost_url;
1463
1464  if ('ajax_restapi' === csco_ajax_nextpost.type) {
1465    csco_ajax_nextpost_url = csco_ajax_nextpost.rest_url;
1466  } else {
1467    csco_ajax_nextpost_url = csco_ajax_nextpost.url;
1468  } // Send Request.
1469
1470
1471  _utility.$.post(csco_ajax_nextpost_url, data, function (res) {
1472    csco_ajax_nextpost.next_post = false;
1473
1474    if (res.success) {
1475      // Get the posts.
1476      var data = (0, _utility.$)(res.data.content); // Check if there're any posts.
1477
1478      if (data.length) {
1479        // Set the loading state.
1480        loadingNextpost = false; // Set not_in.
1481
1482        csco_ajax_nextpost.not_in = res.data.not_in; // Set next data.
1483
1484        csco_ajax_nextpost.next_post = res.data.next_post; // Remove loader.
1485
1486        (0, _utility.$)(objNextpost).siblings('.cs-nextpost-loading').remove(); // Append new post.
1487
1488        (0, _utility.$)(objNextpost).append(data); // Reinit facebook.
1489
1490        if ((0, _utility.$)('#fb-root').length && 'object' === (typeof FB === "undefined" ? "undefined" : _typeof(FB))) {
1491          FB.XFBML.parse();
1492        }
1493
1494        (0, _utility.$)(document.body).trigger('post-load');
1495      }
1496    } else {// console.log(res);
1497    }
1498  }).fail(function (xhr, textStatus, e) {// console.log(xhr.responseText);
1499  });
1500}
1501/**
1502 * Check if Load Nextpost is defined by the wp_localize_script
1503 */
1504
1505
1506if (typeof csco_ajax_nextpost !== 'undefined') {
1507  // On Scroll Event.
1508  (0, _utility.$)(window).scroll(function () {
1509    var scrollTop = (0, _utility.$)(window).scrollTop(); // Init nextpost.
1510
1511    if (csco_ajax_nextpost.next_post) {
1512      if (objNextpost.length && !loadingNextpost && scrollNextpost.allow) {
1513        scrollNextpost.allow = false;
1514        setTimeout(scrollNextpost.reallow, scrollNextpost.delay); // Calc current offset.
1515
1516        var offset = objNextpost.offset().top + objNextpost.innerHeight() - scrollTop; // Load nextpost.
1517
1518        if (4000 > offset) {
1519          (0, _utility.$)(objNextpost).after('<div class="cs-nextpost-loading"></div>');
1520          csco_ajax_get_nextpost();
1521        }
1522      }
1523    } // Reset browser data link.
1524
1525
1526    var objFirst = (0, _utility.$)(objNextsect).first();
1527
1528    if (objFirst.length) {
1529      var firstTop = (0, _utility.$)(objFirst).offset().top; // If there has been a change.
1530
1531      if (scrollTop < firstTop && window.location.href !== currentNLink) {
1532        document.title = currentNTitle;
1533        window.history.pushState(null, currentNTitle, currentNLink);
1534      }
1535    } // Set browser data link.
1536
1537
1538    (0, _utility.$)(objNextsect).each(function (index, elem) {
1539      var elemTop = (0, _utility.$)(elem).offset().top;
1540      var elemHeight = (0, _utility.$)(elem).innerHeight();
1541
1542      if (scrollTop > elemTop && scrollTop < elemTop + elemHeight) {
1543        // If there has been a change.
1544        if (window.location.href !== (0, _utility.$)(elem).data('url')) {
1545          // New title.
1546          document.title = (0, _utility.$)(elem).data('title'); // New link.
1547
1548          window.history.pushState(null, (0, _utility.$)(elem).data('title'), (0, _utility.$)(elem).data('url')); // Google Analytics.
1549
1550          if (typeof gtag === 'function' && _typeof(window.gaData) === 'object') {
1551            var trackingId = Object.keys(window.gaData)[0];
1552
1553            if (trackingId) {
1554              gtag('config', trackingId, {
1555                'page_title': (0, _utility.$)(elem).data('title'),
1556                'page_location': (0, _utility.$)(elem).data('url')
1557              });
1558              gtag('event', 'page_view', {
1559                'send_to': trackingId
1560              });
1561            }
1562          }
1563        }
1564      }
1565    });
1566  });
1567}
1568
1569/***/ }),
1570/* 9 */
1571/***/ (function(module, exports, __webpack_require__) {
1572
1573"use strict";
1574
1575
1576var _utility = __webpack_require__(0);
1577
1578/** ----------------------------------------------------------------------------
1579 * Mega Menu */
1580(function () {
1581  /*
1582  * Load Mega Menu Posts
1583  */
1584  function cscoLoadMenuPosts(menuItem) {
1585    var dataTerm = menuItem.children('a').data('term'),
1586        dataPosts = menuItem.children('a').data('posts'),
1587        dataNumberposts = menuItem.children('a').data('numberposts'),
1588        menuContainer,
1589        postsContainer; // Containers.
1590
1591    if (menuItem.hasClass('cs-mega-menu-term')) {
1592      menuContainer = menuItem;
1593      postsContainer = menuContainer.find('.cs-mm__posts');
1594    }
1595
1596    if (menuItem.hasClass('cs-mega-menu-posts')) {
1597      menuContainer = menuItem;
1598      postsContainer = menuContainer.find('.cs-mm__posts');
1599    }
1600
1601    if (menuItem.hasClass('cs-mega-menu-child-term')) {
1602      menuContainer = menuItem.closest('.sub-menu');
1603      postsContainer = menuContainer.find('.cs-mm__posts[data-term="' + dataTerm + '"]');
1604    } // Check Menu Container.
1605
1606
1607    if (!menuContainer || typeof menuContainer === 'undefined') {
1608      return false;
1609    } // Check Container.
1610
1611
1612    if (!postsContainer || typeof postsContainer === 'undefined') {
1613      return false;
1614    } // Set Active.
1615
1616
1617    menuContainer.find('.menu-item, .cs-mm__posts').removeClass('cs-active-item');
1618    menuItem.addClass('cs-active-item');
1619
1620    if (postsContainer) {
1621      postsContainer.addClass('cs-active-item');
1622    } // Check Loading.
1623
1624
1625    if (menuItem.hasClass('cs-mm-loading') || menuItem.hasClass('loaded')) {
1626      return false;
1627    } // Create Data.
1628
1629
1630    var data = {
1631      'term': dataTerm,
1632      'posts': dataPosts,
1633      'per_page': dataNumberposts
1634    };
1635
1636    if ('undefined' === typeof csco_mega_menu) {
1637      return;
1638    }
1639
1640    if (csco_mega_menu.hasOwnProperty('current_lang') && csco_mega_menu.current_lang) {
1641      data.current_lang = csco_mega_menu.current_lang;
1642    }
1643
1644    if (csco_mega_menu.hasOwnProperty('current_locale') && csco_mega_menu.current_locale) {
1645      data.current_locale = csco_mega_menu.current_locale;
1646    } // Get Results.
1647
1648
1649    _utility.$.ajax({
1650      url: csco_mega_menu.rest_url,
1651      type: 'GET',
1652      data: data,
1653      global: false,
1654      async: true,
1655      beforeSend: function beforeSend() {
1656        menuItem.addClass('cs-mm-loading');
1657        postsContainer.addClass('cs-mm-loading');
1658      },
1659      success: function success(res) {
1660        if (res.status && 'success' === res.status) {
1661          // Set the loaded state.
1662          menuItem.addClass('loaded');
1663          postsContainer.addClass('loaded'); // Check if there're any posts.
1664
1665          if (res.content && res.content.length) {
1666            (0, _utility.$)(res.content).imagesLoaded(function () {
1667              // Append Data.
1668              postsContainer.html(res.content);
1669            });
1670          }
1671        }
1672      },
1673      complete: function complete() {
1674        // Set the loading state.
1675        menuItem.removeClass('cs-mm-loading');
1676        postsContainer.removeClass('cs-mm-loading');
1677      }
1678    });
1679  }
1680  /*
1681  * Get First Tab
1682  */
1683
1684
1685  function cscoGetFirstTab(container) {
1686    var firstTab = false;
1687    container.find('.cs-mega-menu-child').each(function (index, el) {
1688      if ((0, _utility.$)(el).hasClass('cs-mega-menu-child')) {
1689        firstTab = (0, _utility.$)(el);
1690        return false;
1691      }
1692    });
1693    return firstTab;
1694  }
1695  /*
1696  * Menu on document ready
1697  */
1698
1699
1700  (0, _utility.$)(document).ready(function () {
1701    /*
1702    * Get Menu Posts on Hover
1703    */
1704    (0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-posts').on('mouseenter', function () {
1705      cscoLoadMenuPosts((0, _utility.$)(this));
1706    });
1707    (0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-term').on('mouseenter', function () {
1708      cscoLoadMenuPosts((0, _utility.$)(this));
1709    });
1710    (0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-child').on('mouseenter', function () {
1711      cscoLoadMenuPosts((0, _utility.$)(this));
1712    });
1713    /*
1714    * Load First Tab on Mega Menu Hover
1715    */
1716
1717    (0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-terms').on('mouseenter', function () {
1718      var tab = cscoGetFirstTab((0, _utility.$)(this));
1719
1720      if (tab) {
1721        cscoLoadMenuPosts(tab);
1722      }
1723    });
1724  });
1725  /*
1726  * Load First Tab on Navbar Ready.
1727  */
1728
1729  (0, _utility.$)(document, '.cs-header__nav').ready(function () {
1730    var tab = false; // Autoload First Tab.
1731
1732    (0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-terms').each(function (index, el) {
1733      tab = cscoGetFirstTab((0, _utility.$)(this));
1734
1735      if (tab) {
1736        cscoLoadMenuPosts(tab);
1737      }
1738    }); // Autoload Posts.
1739
1740    (0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-posts').each(function (index, el) {
1741      cscoLoadMenuPosts((0, _utility.$)(this));
1742    }); // Autoload Term.
1743
1744    (0, _utility.$)('.cs-header__nav .menu-item.cs-mega-menu-term').each(function (index, el) {
1745      cscoLoadMenuPosts((0, _utility.$)(this));
1746    });
1747  });
1748})();
1749
1750/***/ }),
1751/* 10 */
1752/***/ (function(module, exports, __webpack_require__) {
1753
1754"use strict";
1755
1756
1757var _utility = __webpack_require__(0);
1758
1759/** ----------------------------------------------------------------------------
1760 * Navigation */
1761var cscoNavigation = {};
1762
1763(function () {
1764  var $this;
1765  cscoNavigation = {
1766    /** Initialize */
1767    init: function init(e) {
1768      if ((0, _utility.$)('body').hasClass('wp-admin')) {
1769        return;
1770      }
1771
1772      $this = cscoNavigation; // Init events.
1773
1774      $this.events(e);
1775    },
1776
1777    /** Events */
1778    events: function events(e) {
1779      // DOM Load
1780      window.addEventListener('load', function (e) {
1781        $this.smartLevels(e);
1782        $this.adaptTablet(e);
1783        $this.stickyScroll(e);
1784      }); // Resize
1785
1786      window.addEventListener('resize', function (e) {
1787        $this.smartLevels(e);
1788        $this.adaptTablet(e);
1789        $this.stickyScroll(e);
1790      });
1791    },
1792
1793    /** Smart multi-Level menu */
1794    smartLevels: function smartLevels(e) {
1795      var windowWidth = _utility.$window.width(); // Reset Calc.
1796
1797
1798      (0, _utility.$)('.cs-header__nav-inner li').removeClass('cs-sm__level');
1799      (0, _utility.$)('.cs-header__nav-inner li').removeClass('cs-sm-position-left cs-sm-position-right');
1800      (0, _utility.$)('.cs-header__nav-inner li .sub-menu').removeClass('cs-mm__position-init'); // Set Settings.
1801
1802      (0, _utility.$)('.cs-header__nav-inner > li.menu-item').not('.cs-mm').each(function (index, parent) {
1803        var position = 'cs-sm-position-right'; //right
1804
1805        var objPrevWidth = 0;
1806        (0, _utility.$)(parent).find('.sub-menu').each(function (index, el) {
1807          // Reset child levels.
1808          (0, _utility.$)(el).parent().next('li').addClass('cs-sm__level');
1809
1810          if ((0, _utility.$)(el).parent().hasClass('cs-sm__level')) {
1811            (0, _utility.$)(el).parent().removeClass('cs-mm-level');
1812            position = 'cs-sm-position-right'; //right
1813
1814            objPrevWidth = 0;
1815          } // Find out position items.
1816
1817
1818          var offset = (0, _utility.$)(el).offset();
1819          var objOffset = offset.left;
1820
1821          if ('cs-sm-position-right' === position && (0, _utility.$)(el).outerWidth() + objOffset > windowWidth) {
1822            position = 'cs-sm-position-left';
1823          }
1824
1825          if ('cs-sm-position-left' === position && objOffset - ((0, _utility.$)(el).outerWidth() + objPrevWidth) < 0) {
1826            position = 'cs-sm-position-right'; //right
1827          }
1828
1829          objPrevWidth = (0, _utility.$)(el).outerWidth();
1830          (0, _utility.$)(el).addClass('cs-sm-position-init').parent().addClass(position);
1831        });
1832      });
1833    },
1834
1835    /** Adapting nav bar for tablet */
1836    adaptTablet: function adaptTablet(e) {
1837      // Click outside.
1838      (0, _utility.$)(document).on('touchstart', function (e) {
1839        if (!(0, _utility.$)(e.target).closest('.cs-header__nav-inner').length) {
1840          (0, _utility.$)('.cs-header__nav-inner .menu-item-has-children').removeClass('submenu-visible');
1841        } else {
1842          (0, _utility.$)(e.target).parents('.menu-item').siblings().find('.menu-item').removeClass('submenu-visible');
1843          (0, _utility.$)(e.target).parents('.menu-item').siblings().closest('.menu-item').removeClass('submenu-visible');
1844        }
1845      });
1846      (0, _utility.$)('.cs-header__nav-inner .menu-item-has-children').each(function (e) {
1847        // Reset class.
1848        (0, _utility.$)(this).removeClass('submenu-visible'); // Remove expanded.
1849
1850        (0, _utility.$)(this).find('> a > .expanded').remove(); // Add a caret.
1851
1852        if ('ontouchstart' in document.documentElement) {
1853          (0, _utility.$)(this).find('> a').append('<span class="expanded"></span>');
1854        } // Check touch device.
1855
1856
1857        (0, _utility.$)(this).addClass('ontouchstart' in document.documentElement ? 'touch-device' : '');
1858        (0, _utility.$)('> a .expanded', this).on('touchstart', function (e) {
1859          e.preventDefault();
1860          (0, _utility.$)(this).closest('.menu-item-has-children').toggleClass('submenu-visible');
1861        });
1862
1863        if ('#' === (0, _utility.$)('> a', this).attr('href')) {
1864          (0, _utility.$)('> a', this).on('touchstart', function (e) {
1865            e.preventDefault();
1866
1867            if (!(0, _utility.$)(e.target).hasClass('expanded')) {
1868              (0, _utility.$)(this).closest('.menu-item-has-children').toggleClass('submenu-visible');
1869            }
1870          });
1871        }
1872      });
1873    },
1874
1875    /** Make nav bar sticky */
1876    stickyScroll: function stickyScroll(e) {
1877      // Get css variables
1878      var headerLargeHeight = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-initial-height')),
1879          headerCompactHeight = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height')); //Get header elements
1880
1881      var headerStick = (0, _utility.$)('.cs-navbar-sticky-enabled .cs-header'),
1882          headerBefore = (0, _utility.$)('.cs-header-before'),
1883          headerStretch = (0, _utility.$)('.cs-header-stretch'),
1884          headerStretchInaccuracy = headerStretch.length > 0 ? 10 : 0,
1885          headerStickHeight = (0, _utility.$)('.cs-navbar-sticky-enabled .cs-header-stretch'),
1886          wpAdminBar = (0, _utility.$)('#wpadminbar'),
1887          headerSearch = (0, _utility.$)('.cs-search'),
1888          offCanvas = (0, _utility.$)('.cs-offcanvas'); //Comb out the heights
1889
1890      var headerDelta = headerStickHeight.length > 0 ? headerLargeHeight - headerCompactHeight : 0,
1891          wpAdminBarHeight = wpAdminBar.length > 0 ? wpAdminBar.outerHeight() : 0,
1892          smartStart = headerBefore.length > 0 ? headerBefore.offset().top : headerStick.length > 0 ? headerStick.offset().top + wpAdminBarHeight : wpAdminBarHeight; //Set values to hide
1893
1894      var scrollPoint = 200,
1895          scrollPrev = 200,
1896          scrollUpAmount = 0,
1897          windowWidth = _utility.$window.width();
1898
1899      (0, _utility.$)(window).scroll(function () {
1900        var scrolled = (0, _utility.$)(window).scrollTop(),
1901            headerStickPosition = headerStick.length > 0 ? headerStick.offset().top : 0;
1902
1903        if (scrolled > smartStart + headerDelta + scrollPoint + headerStretchInaccuracy && scrolled > scrollPrev) {
1904          headerStick.addClass('cs-scroll-active');
1905          headerSearch.slideUp();
1906          (0, _utility.$)(document).trigger('sticky-nav-hide');
1907        } else {
1908          if (scrollUpAmount >= scrollPoint || scrolled === 0) {
1909            headerStick.removeClass('cs-scroll-active');
1910            (0, _utility.$)(document).trigger('sticky-nav-visible');
1911          }
1912        }
1913
1914        if (headerStickHeight.length > 0) {
1915          if (headerStickPosition <= scrolled + wpAdminBarHeight && scrolled > smartStart + headerDelta) {
1916            headerStick.addClass('cs-scroll-sticky');
1917            (0, _utility.$)(document).trigger('stretch-nav-to-small');
1918          } else {
1919            if (scrolled <= smartStart) {
1920              headerStick.removeClass('cs-scroll-sticky');
1921              (0, _utility.$)(document).trigger('stretch-nav-to-big');
1922            }
1923          }
1924        } else {
1925          if (headerStickPosition <= scrolled + wpAdminBarHeight && scrolled + wpAdminBarHeight > smartStart) {
1926            headerStick.addClass('cs-scroll-sticky');
1927
1928            if (headerStretch.length > 0) {
1929              (0, _utility.$)(document).trigger('stretch-nav-to-small');
1930            }
1931          } else {
1932            headerStick.removeClass('cs-scroll-sticky');
1933
1934            if (headerStretch.length > 0) {
1935              (0, _utility.$)(document).trigger('stretch-nav-to-big');
1936            }
1937          }
1938        }
1939
1940        if (scrolled < scrollPrev) {
1941          scrollUpAmount += scrollPrev - scrolled;
1942        } else {
1943          scrollUpAmount = 0;
1944        }
1945
1946        if (wpAdminBar.length > 0 && _utility.wndW <= 600 && scrolled >= wpAdminBarHeight) {
1947          offCanvas.addClass('cs-offcanvas_scrolled');
1948        } else {
1949          offCanvas.removeClass('cs-offcanvas_scrolled');
1950        }
1951
1952        scrollPrev = scrolled;
1953      });
1954    }
1955  };
1956})(); // Initialize.
1957
1958
1959cscoNavigation.init();
1960
1961/***/ }),
1962/* 11 */
1963/***/ (function(module, exports, __webpack_require__) {
1964
1965"use strict";
1966
1967
1968var _utility = __webpack_require__(0);
1969
1970/** ----------------------------------------------------------------------------
1971 * Offcanvas */
1972(function () {
1973  (0, _utility.$)('.cs-header__offcanvas-toggle, .cs-site-overlay, .cs-offcanvas__toggle').on('click', function (e) {
1974    e.preventDefault(); // Transition.
1975
1976    if (!_utility.$body.hasClass('cs-offcanvas-active')) {
1977      _utility.$body.addClass('cs-offcanvas-transition');
1978    } else {
1979      setTimeout(function () {
1980        _utility.$body.removeClass('cs-offcanvas-transition');
1981      }, 400);
1982    } // Toogle offcanvas.
1983
1984
1985    _utility.$body.toggleClass('cs-offcanvas-active');
1986  });
1987})();
1988
1989/***/ }),
1990/* 12 */
1991/***/ (function(module, exports, __webpack_require__) {
1992
1993"use strict";
1994
1995
1996var _utility = __webpack_require__(0);
1997
1998/** ----------------------------------------------------------------------------
1999 * Responsive Embeds */
2000(function () {
2001  /**
2002   * Add max-width & max-height to <iframe> elements, depending on their width & height props.
2003   */
2004  function initResponsiveEmbeds() {
2005    var proportion, parentWidth; // Loop iframe elements.
2006
2007    (0, _utility.$)('.entry-content').find('iframe').each(function (index, iframe) {
2008      // Don't handle if the parent automatically resizes itself.
2009      if ((0, _utility.$)(iframe).closest('div').is('[data-video-start], [data-video-end]')) {
2010        return;
2011      } // Only continue if the iframe has a width & height defined.
2012
2013
2014      if (iframe.width && iframe.height) {
2015        // Calculate the proportion/ratio based on the width & height.
2016        proportion = parseFloat(iframe.width) / parseFloat(iframe.height); // Get the parent element's width.
2017
2018        parentWidth = parseFloat(window.getComputedStyle(iframe.parentElement, null).width.replace('px', '')); // Set the max-width & height.
2019
2020        iframe.style.maxWidth = '100%';
2021        iframe.style.maxHeight = Math.round(parentWidth / proportion).toString() + 'px';
2022      }
2023    });
2024  } // Document ready.
2025
2026
2027  _utility.$doc.ready(function () {
2028    initResponsiveEmbeds();
2029  }); // Post load.
2030
2031
2032  _utility.$body.on('post-load', function () {
2033    initResponsiveEmbeds();
2034  }); // Document resize.
2035
2036
2037  _utility.$window.on('resize', function () {
2038    initResponsiveEmbeds();
2039  }); // Run on initial load.
2040
2041
2042  initResponsiveEmbeds();
2043})();
2044
2045/***/ }),
2046/* 13 */
2047/***/ (function(module, exports, __webpack_require__) {
2048
2049"use strict";
2050
2051
2052var _utility = __webpack_require__(0);
2053
2054/** ----------------------------------------------------------------------------
2055 * Color Scheme Toogle */
2056var cscoDarkMode = {};
2057
2058(function () {
2059  var $this;
2060  cscoDarkMode = {
2061    /** Initialize */
2062    init: function init(e) {
2063      $this = cscoDarkMode; // Init events.
2064
2065      $this.events(e);
2066    },
2067
2068    /** Events */
2069    events: function events(e) {
2070      if ((0, _utility.$)('body').hasClass('wp-admin')) {
2071        return;
2072      } // DOM Load
2073
2074
2075      window.addEventListener('load', function (e) {
2076        $this.initMode(e);
2077      });
2078      window.matchMedia('(prefers-color-scheme: dark)').addListener(function (e) {
2079        $this.initMode(e);
2080      }); // Switch
2081
2082      (0, _utility.$)(document).on('click', '.cs-site-scheme-toggle', function (e) {
2083        $this.changeMode(e);
2084      });
2085    },
2086
2087    /** Detect Color Scheme */
2088    detectColorScheme: function detectColorScheme(color) {
2089      var level = 190; // Set alpha channel.
2090
2091      var alpha = 1;
2092      var rgba = [255, 255, 255];
2093      var color_rgba = false; // Trim color.
2094
2095      color = color.trim(); // If HEX format.
2096
2097      if ('#' === color[0]) {
2098        // Remove '#' from start.
2099        color = color.replace('#', '').trim();
2100
2101        if (3 === color.length) {
2102          color = color[0] + color[0] + color[1] + color[1] + color[2] + color[2];
2103        }
2104
2105        rgba[0] = parseInt(color.substr(0, 2), 16);
2106        rgba[1] = parseInt(color.substr(2, 2), 16);
2107        rgba[2] = parseInt(color.substr(4, 2), 16);
2108      } else if (color_rgba = color.replace(/\s/g, '').match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i)) {
2109        // Convert RGB or RGBA.
2110        rgba[0] = parseInt(color_rgba[1]);
2111        rgba[1] = parseInt(color_rgba[2]);
2112        rgba[2] = parseInt(color_rgba[3]);
2113
2114        if (color_rgba[4] !== undefined) {
2115          alpha = parseFloat(color_rgba[4]);
2116        }
2117      } // Apply alpha channel.
2118
2119
2120      rgba.forEach(function myFunction(channel, key, stack) {
2121        stack[key] = String(channel + Math.ceil((255 - channel) * (1 - alpha))).padStart(2, '0');
2122      }); // Set default scheme.
2123
2124      var scheme = 'default'; // Get brightness.
2125
2126      var brightness = (rgba[0] * 299 + rgba[1] * 587 + rgba[2] * 114) / 1000; // If color gray.
2127
2128      if (rgba[0] === rgba[1] && rgba[1] === rgba[2]) {
2129        if (brightness < level) {
2130          scheme = 'dark';
2131        }
2132      } else {
2133        if (brightness < level) {
2134          scheme = 'inverse';
2135        }
2136      }
2137
2138      return scheme;
2139    },
2140
2141    /** Set Individual Scheme */
2142    setIndividualScheme: function setIndividualScheme() {
2143      var list = {
2144        'body': '--cs-color-site-background',
2145        '.cs-topbar': '--cs-color-topbar-background',
2146        '.cs-header': '--cs-color-header-background',
2147        '.cs-header__nav-inner .sub-menu': '--cs-color-submenu-background',
2148        '.cs-header__multi-column-container': '--cs-color-submenu-background',
2149        '.cs-header__widgets': '--cs-color-submenu-background',
2150        '.cs-offcanvas__header': '--cs-color-header-background',
2151        '.cs-search': '--cs-color-search-background',
2152        '.cs-footer': '--cs-color-footer-background'
2153      };
2154
2155      for (var key in list) {
2156        if ((0, _utility.$)(key).length <= 0) {
2157          continue;
2158        }
2159        /* jshint ignore:start */
2160
2161
2162        (0, _utility.$)(key).each(function (index, element) {
2163          var color = window.getComputedStyle((0, _utility.$)(element)[0]).getPropertyValue(list[key]);
2164          var scheme = $this.detectColorScheme(color);
2165          (0, _utility.$)(element).attr('data-scheme', scheme);
2166        });
2167        /* jshint ignore:end */
2168      }
2169    },
2170
2171    /** Init Mode */
2172    initMode: function initMode(e) {
2173      // Get system scheme.
2174      var systemSchema = 'default';
2175
2176      if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
2177        systemSchema = 'dark';
2178      }
2179
2180      (0, _utility.csSetCookie)('_color_system_schema', systemSchema, {
2181        expires: 2592000
2182      }); // Set site scheme.
2183
2184      var siteScheme = 'default';
2185
2186      switch (csLocalize.siteSchemeMode) {
2187        case 'dark':
2188          siteScheme = 'dark';
2189          break;
2190
2191        case 'light':
2192          siteScheme = 'default';
2193          break;
2194
2195        case 'system':
2196          siteScheme = systemSchema;
2197          break;
2198      }
2199
2200      if (csLocalize.siteSchemeToogle) {
2201        if ('default' === (0, _utility.csGetCookie)('_color_schema')) {
2202          siteScheme = 'default';
2203        }
2204
2205        if ('dark' === (0, _utility.csGetCookie)('_color_schema')) {
2206          siteScheme = 'dark';
2207        }
2208      } // Change site scheme
2209
2210
2211      if (siteScheme !== _utility.$body.attr('data-site-scheme')) {
2212        $this.changeScheme(siteScheme, false);
2213      }
2214    },
2215
2216    /** Change Mode */
2217    changeMode: function changeMode(e) {
2218      if ('dark' === _utility.$body.attr('data-site-scheme')) {
2219        $this.changeScheme('default', true);
2220      } else {
2221        $this.changeScheme('dark', true);
2222      }
2223    },
2224
2225    /** Change Scheme */
2226    changeScheme: function changeScheme(scheme, cookie) {
2227      _utility.$body.addClass('cs-scheme-toggled');
2228
2229      _utility.$body.attr('data-site-scheme', scheme);
2230
2231      $this.setIndividualScheme();
2232
2233      if (cookie) {
2234        (0, _utility.csSetCookie)('_color_schema', scheme, {
2235          expires: 2592000
2236        });
2237        (0, _utility.csSetCookie)('_color_system_schema', null, {
2238          expires: 2592000
2239        });
2240      }
2241
2242      setTimeout(function () {
2243        _utility.$body.removeClass('cs-scheme-toggled');
2244      }, 100);
2245    }
2246  };
2247})(); // Initialize.
2248
2249
2250cscoDarkMode.init();
2251
2252/***/ }),
2253/* 14 */
2254/***/ (function(module, exports, __webpack_require__) {
2255
2256"use strict";
2257
2258
2259var _utility = __webpack_require__(0);
2260
2261/** ----------------------------------------------------------------------------
2262 * Search Dropdown */
2263(function () {
2264  var focusSearchTimeout;
2265  (0, _utility.$)('.cs-header__search-toggle').click(function (e) {
2266    if (!(0, _utility.$)('.cs-search').is(":visible")) {
2267      focusSearchTimeout = setTimeout(function () {
2268        (0, _utility.$)('.cs-search .cs-search__input').focus();
2269      }, 300);
2270    } else {
2271      clearTimeout(focusSearchTimeout);
2272    }
2273
2274    (0, _utility.$)('.cs-search').stop().slideToggle();
2275    e.preventDefault();
2276  });
2277  (0, _utility.$)('.cs-search__close').click(function (e) {
2278    (0, _utility.$)('.cs-search').slideUp();
2279    e.preventDefault();
2280    clearTimeout(focusSearchTimeout);
2281  });
2282})();
2283
2284/***/ }),
2285/* 15 */
2286/***/ (function(module, exports, __webpack_require__) {
2287
2288"use strict";
2289
2290
2291var _utility = __webpack_require__(0);
2292
2293/** ----------------------------------------------------------------------------
2294 * Sticky Sidebar */
2295(function () {
2296  var stickyElementsSmart = [],
2297      stickyElements = [];
2298  stickyElementsSmart.push('.cs-navbar-smart-enabled .cs-entry__metabar-inner');
2299  stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled.cs-stick-to-top .cs-sidebar__inner');
2300  stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled.cs-stick-last .cs-sidebar__inner .widget:last-child');
2301  stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled .cnvs-block-section-sidebar-sticky-top .cnvs-block-section-sidebar-inner');
2302  stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled .cnvs-block-section-sidebar-sticky-top-last-block .cnvs-block-section-sidebar-inner > :last-child');
2303  stickyElements.push('.cs-navbar-sticky-enabled .cs-entry__metabar-inner');
2304  stickyElements.push('.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled.cs-stick-to-top .cs-sidebar__inner');
2305  stickyElements.push('.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled.cs-stick-last .cs-sidebar__inner .widget:last-child');
2306  stickyElements.push('.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled .cnvs-block-section-sidebar-sticky-top .cnvs-block-section-sidebar-inner');
2307  stickyElements.push('.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled .cnvs-block-section-sidebar-sticky-top-last-block .cnvs-block-section-sidebar-inner > :last-child');
2308
2309  _utility.$doc.ready(function () {
2310    var headerStick = (0, _utility.$)('.cs-header'),
2311        wpAdminBar = (0, _utility.$)('#wpadminbar'),
2312        headerStickHeight = headerStick.outerHeight(),
2313        wpAdminBarHeight = wpAdminBar.outerHeight(),
2314        headerStretch = (0, _utility.$)('.cs-header-stretch'),
2315        headerStretchHeight = headerStretch.outerHeight(),
2316        allHeight = (headerStickHeight || 0) + (wpAdminBarHeight || 0) + 20,
2317        windowWidth = (0, _utility.$)(window).width(); // Sticky sidebar for mozilla.
2318
2319    if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
2320      stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-stick-to-bottom .cs-sidebar__inner');
2321      stickyElements.push('.cs-sticky-sidebar-enabled.cs-stick-to-bottom .cs-sidebar__inner');
2322      stickyElementsSmart.push('.cnvs-block-section-sidebar-sticky-bottom .cnvs-block-section-sidebar-inner');
2323      stickyElements.push('.cnvs-block-section-sidebar-sticky-bottom .cnvs-block-section-sidebar-inner');
2324    } // Join elements.
2325
2326
2327    stickyElementsSmart = stickyElementsSmart.join(',');
2328    stickyElements = stickyElements.join(','); // Sticky nav visible.
2329
2330    _utility.$doc.on('sticky-nav-visible', function () {
2331      headerStickHeight = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height'));
2332
2333      if (headerStretchHeight) {
2334        allHeight = (headerStretchHeight || 0) + (wpAdminBarHeight || 0) + 20;
2335      } else {
2336        allHeight = (headerStickHeight || 0) + (wpAdminBarHeight || 0) + 20;
2337      }
2338
2339      (0, _utility.$)(stickyElementsSmart).css('top', allHeight + 'px');
2340    }); // Sticky nav hide.
2341
2342
2343    _utility.$doc.on('sticky-nav-hide', function () {
2344      headerStickHeight = 0;
2345      allHeight = (headerStickHeight || 0) + (wpAdminBarHeight || 0) + 20;
2346      (0, _utility.$)(stickyElementsSmart).css('top', allHeight + 'px');
2347    });
2348
2349    _utility.$doc.on('stretch-nav-to-small', function () {
2350      headerStretchHeight = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height'));
2351
2352      if (headerStretchHeight) {
2353        allHeight = (headerStretchHeight || 0) + (wpAdminBarHeight || 0) + 20;
2354      } else {
2355        allHeight = (headerStickHeight || 0) + (wpAdminBarHeight || 0) + 20;
2356      }
2357
2358      if (headerStretch.hasClass("cs-scroll-sticky") && !headerStretch.hasClass("cs-scroll-active")) {
2359        (0, _utility.$)(stickyElementsSmart).css('top', allHeight + 'px');
2360      }
2361    });
2362
2363    _utility.$doc.on('stretch-nav-to-big', function () {
2364      headerStretchHeight = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-initial-height'));
2365    }); // Add top style
2366
2367
2368    if (_utility.$body.hasClass('cs-navbar-smart-enabled') && windowWidth >= 1020) {
2369      if (headerStretchHeight) {
2370        allHeight = (headerStretchHeight || 0) + (wpAdminBarHeight || 0) + 20;
2371      } else {
2372        allHeight = (headerStickHeight || 0) + (wpAdminBarHeight || 0) + 20;
2373      }
2374
2375      (0, _utility.$)(stickyElementsSmart).css('top', allHeight + 'px');
2376    } else if (_utility.$body.hasClass('cs-navbar-sticky-enabled') && windowWidth >= 1020) {
2377      if (headerStretchHeight) {
2378        allHeight = (headerStretchHeight || 0) + (wpAdminBarHeight || 0) + 20;
2379      } else {
2380        allHeight = (headerStickHeight || 0) + (wpAdminBarHeight || 0) + 20;
2381      }
2382
2383      (0, _utility.$)(stickyElements).css('top', allHeight + 'px');
2384    } // Remove top style rafter resize
2385
2386
2387    _utility.$window.resize(function () {
2388      var windowWidthResize = _utility.$window.width();
2389
2390      if (windowWidthResize < 1020) {
2391        (0, _utility.$)(stickyElements).removeAttr('style');
2392        (0, _utility.$)(stickyElementsSmart).removeAttr('style');
2393      }
2394    });
2395  });
2396})();
2397
2398/***/ }),
2399/* 16 */
2400/***/ (function(module, exports, __webpack_require__) {
2401
2402"use strict";
2403
2404
2405var _utility = __webpack_require__(0);
2406
2407/** ----------------------------------------------------------------------------
2408 * Video Background */
2409(function () {
2410  var initAPI = false;
2411  var process = false;
2412  var contex = [];
2413  var players = [];
2414  var attrs = []; // Create deferred object
2415
2416  var YTdeferred = _utility.$.Deferred();
2417
2418  window.onYouTubePlayerAPIReady = function () {
2419    // Resolve when youtube callback is called
2420    // passing YT as a parameter.
2421    YTdeferred.resolve(window.YT);
2422  }; // Embedding youtube iframe api.
2423
2424
2425  function embedYoutubeAPI() {
2426    var tag = document.createElement('script');
2427    tag.src = 'https://www.youtube.com/iframe_api';
2428    var firstScriptTag = document.getElementsByTagName('script')[0];
2429    firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
2430  } // Video rescale.
2431
2432
2433  function rescaleVideoBackground() {
2434    (0, _utility.$)('.cs-video-init').each(function () {
2435      var w = (0, _utility.$)(this).parent().width();
2436      var h = (0, _utility.$)(this).parent().height();
2437      var hideControl = 400;
2438      var id = (0, _utility.$)(this).attr('data-uid');
2439
2440      if (w / h > 16 / 9) {
2441        players[id].setSize(w, w / 16 * 9 + hideControl);
2442      } else {
2443        players[id].setSize(h / 9 * 16, h + hideControl);
2444      }
2445    });
2446  } // Init video background.
2447
2448
2449  function initVideoBackground() {
2450    if ((0, _utility.$)('body').hasClass('wp-admin')) {
2451      return;
2452    }
2453
2454    if (process) {
2455      return;
2456    }
2457
2458    process = true; // Smart init API.
2459
2460    if (!initAPI) {
2461      var elements = (0, _utility.$)('.cs-video-wrapper[data-video-id]');
2462
2463      if (elements.length) {
2464        embedYoutubeAPI();
2465        initAPI = true;
2466      }
2467    }
2468
2469    if (!initAPI) {
2470      process = false;
2471      return;
2472    } // Whenever youtube callback was called = deferred resolved
2473    // your custom function will be executed with YT as an argument.
2474
2475
2476    YTdeferred.done(function (YT) {
2477      (0, _utility.$)('.cs-video-inner').each(function () {
2478        // The state.
2479        var isInit = (0, _utility.$)(this).hasClass('cs-video-init');
2480        var id = null; // Generate unique ID.
2481
2482        if (!isInit) {
2483          id = Math.random().toString(36).substr(2, 9);
2484        } else {
2485          id = (0, _utility.$)(this).attr('data-uid');
2486        } // Create contex.
2487
2488
2489        contex[id] = this; // The actived.
2490
2491        var isActive = (0, _utility.$)(contex[id]).hasClass('active'); // The monitor.
2492
2493        var isInView = (0, _utility.$)(contex[id]).isInViewport(); // Initialization.
2494
2495        if (isInView && !isInit) {
2496          // Add init class.
2497          (0, _utility.$)(contex[id]).addClass('cs-video-init'); // Add unique ID.
2498
2499          (0, _utility.$)(contex[id]).attr('data-uid', id); // Get video attrs.
2500
2501          var videoID = (0, _utility.$)(contex[id]).parent().data('video-id');
2502          var videoStart = (0, _utility.$)(contex[id]).parent().data('video-start');
2503          var videoEnd = (0, _utility.$)(contex[id]).parent().data('video-end'); // Check video id.
2504
2505          if (typeof videoID === 'undefined' || !videoID) {
2506            return;
2507          } // Video attrs.
2508
2509
2510          attrs[id] = {
2511            'videoId': videoID,
2512            'startSeconds': videoStart,
2513            'endSeconds': videoEnd,
2514            'suggestedQuality': 'hd720'
2515          }; // Creating a player.
2516
2517          players[id] = new YT.Player(contex[id], {
2518            playerVars: {
2519              autoplay: 0,
2520              autohide: 1,
2521              modestbranding: 1,
2522              rel: 0,
2523              showinfo: 0,
2524              controls: 0,
2525              disablekb: 1,
2526              enablejsapi: 0,
2527              iv_load_policy: 3,
2528              playsinline: 1,
2529              loop: 1
2530            },
2531            events: {
2532              'onReady': function onReady() {
2533                players[id].loadVideoById(attrs[id]);
2534                players[id].mute();
2535              },
2536              'onStateChange': function onStateChange(e) {
2537                if (e.data === 1) {
2538                  (0, _utility.$)(contex[id]).parents('.cs-overlay, .cs-video-wrap').addClass('cs-video-bg-init');
2539                  (0, _utility.$)(contex[id]).addClass('active');
2540                } else if (e.data === 0) {
2541                  players[id].seekTo(attrs[id].startSeconds);
2542                }
2543              }
2544            }
2545          });
2546          rescaleVideoBackground();
2547        } // Pause and play.
2548
2549
2550        var control = (0, _utility.$)(contex[id]).parents('.cs-overlay, .cs-video-wrap').find('.cs-player-state');
2551
2552        if (isActive && isInit && !(0, _utility.$)(control).hasClass('cs-player-upause')) {
2553          if (isInView && (0, _utility.$)(control).hasClass('cs-player-play')) {
2554            // Change icon.
2555            (0, _utility.$)(control).removeClass('cs-player-play').addClass('cs-player-pause'); // Pause video.
2556
2557            players[id].playVideo();
2558          }
2559
2560          if (!isInView && (0, _utility.$)(control).hasClass('cs-player-pause')) {
2561            // Change icon.
2562            (0, _utility.$)(control).removeClass('cs-player-pause').addClass('cs-player-play'); // Pause video.
2563
2564            players[id].pauseVideo();
2565          }
2566        }
2567      });
2568    });
2569    process = false;
2570  } // State Control.
2571
2572
2573  _utility.$doc.on('click', '.cs-player-state', function () {
2574    var container = (0, _utility.$)(this).parents('.cs-overlay, .cs-video-wrap').find('.cs-video-inner');
2575    var id = (0, _utility.$)(container).attr('data-uid');
2576    (0, _utility.$)(this).toggleClass('cs-player-pause cs-player-play');
2577
2578    if ((0, _utility.$)(this).hasClass('cs-player-pause')) {
2579      (0, _utility.$)(this).removeClass('cs-player-upause');
2580      players[id].playVideo();
2581    } else {
2582      (0, _utility.$)(this).addClass('cs-player-upause');
2583      players[id].pauseVideo();
2584    }
2585  }); // Stop Control.
2586
2587
2588  _utility.$doc.on('click', '.cs-player-stop', function () {
2589    var container = (0, _utility.$)(this).parents('.cs-overlay, .cs-video-wrap').find('.cs-video-inner');
2590    var id = (0, _utility.$)(container).attr('data-uid');
2591    (0, _utility.$)(this).siblings('.cs-player-state').removeClass('cs-player-pause').addClass('cs-player-play');
2592    (0, _utility.$)(this).siblings('.cs-player-state').addClass('cs-player-upause');
2593    players[id].pauseVideo();
2594  }); // Volume Control.
2595
2596
2597  _utility.$doc.on('click', '.cs-player-volume', function () {
2598    var container = (0, _utility.$)(this).parents('.cs-overlay, .cs-video-wrap').find('.cs-video-inner');
2599    var id = (0, _utility.$)(container).attr('data-uid');
2600    (0, _utility.$)(this).toggleClass('cs-player-mute cs-player-unmute');
2601
2602    if ((0, _utility.$)(this).hasClass('cs-player-unmute')) {
2603      players[id].unMute();
2604    } else {
2605      players[id].mute();
2606    }
2607  }); // Document scroll.
2608
2609
2610  _utility.$window.on('load scroll resize scrollstop', function () {
2611    initVideoBackground();
2612  }); // Document ready.
2613
2614
2615  _utility.$doc.ready(function () {
2616    initVideoBackground();
2617  }); // Post load.
2618
2619
2620  _utility.$body.on('post-load', function () {
2621    initVideoBackground();
2622  }); // Document resize.
2623
2624
2625  _utility.$window.on('resize', function () {
2626    rescaleVideoBackground();
2627  }); // Init.
2628
2629
2630  initVideoBackground();
2631})();
2632
2633/***/ }),
2634/* 17 */
2635/***/ (function(module, exports, __webpack_require__) {
2636
2637"use strict";
2638
2639
2640var _utility = __webpack_require__(0);
2641
2642/** ----------------------------------------------------------------------------
2643 * Widget Nav Menu */
2644(function () {
2645  _utility.$.fn.responsiveNav = function () {
2646    this.removeClass('menu-item-expanded');
2647
2648    if (this.prev().hasClass('submenu-visible')) {
2649      this.prev().removeClass('submenu-visible').slideUp(350);
2650      this.parent().removeClass('menu-item-expanded');
2651    } else {
2652      this.parent().parent().find('.menu-item .sub-menu').removeClass('submenu-visible').slideUp(350);
2653      this.parent().parent().find('.menu-item-expanded').removeClass('menu-item-expanded');
2654      this.prev().toggleClass('submenu-visible').hide().slideToggle(350);
2655      this.parent().toggleClass('menu-item-expanded');
2656    }
2657  }; //
2658  // Navigation Menu Widget
2659  //
2660
2661
2662  (0, _utility.$)(document).ready(function (e) {
2663    (0, _utility.$)('.widget_nav_menu .menu-item-has-children').each(function (e) {
2664      // Add a caret.
2665      (0, _utility.$)(this).append('<span></span>'); // Fire responsiveNav() when clicking a caret.
2666
2667      (0, _utility.$)('> span', this).on('click', function (e) {
2668        e.preventDefault();
2669        (0, _utility.$)(this).responsiveNav();
2670      }); // Fire responsiveNav() when clicking a parent item with # href attribute.
2671
2672      if ('#' === (0, _utility.$)('> a', this).attr('href')) {
2673        (0, _utility.$)('> a', this).on('click', function (e) {
2674          e.preventDefault();
2675          (0, _utility.$)(this).next().next().responsiveNav();
2676        });
2677      }
2678    });
2679  });
2680})();
2681
2682/***/ })
2683/******/ ]);;

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.