/*! For license information please see gallery.js.LICENSE.txt */
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=1)}({1:function(t,e,n){t.exports=n("5bvr")},"5bvr":function(t,e,n){"use strict";n.r(e);var i=n("SjWa"),o=n.n(i),r=n("lygf"),a=n.n(r),s={init:function(t){this.config=t,this.bindEvents(),this.primarySlider=new o.a(t.mediaPrimaryItems),this.secondarySlider=new o.a(t.mediaSecondaryItems)},bindEvents:function(){var t=this;this.config.closeIcon.addEventListener("click",this.closeMediaModal),this.config.mediaItem.forEach((function(e){e.addEventListener("click",t.openMediaModal)}))},closeMediaModal:function(){var t=s;t.handlePauseVideo(),t.config.mediaModal.classList.add("display-none")},handlePauseVideo:function(){var t=s;t.primarySlider.options.video.mute=!0,t.primarySlider.destroy(),t.secondarySlider.destroy(),this.primarySlider=new o.a(t.config.mediaPrimaryItems),this.secondarySlider=new o.a(t.config.mediaSecondaryItems)},openMediaModal:function(){var t=s,e=this.getAttribute("data-index");t.handleSlider(e),t.config.mediaModal.classList.remove("display-none")},handleSlider:function(t){var e=s;e.primarySlider.options={type:"fade",autoWidth:!0,fixedHeight:"calc(95vh - 24rem)",pagination:!1,arrows:!1,cover:!1,start:t,video:{autoplay:!0,disableOverlayUI:!0,mute:!1},breakpoints:{600:{fixedHeight:"calc(100vh - 24rem)"}}},setTimeout((function(){e.secondarySlider.options={rewind:!0,fixedWidth:"10rem",fixedHeight:"7rem",isNavigation:!0,gap:10,start:t,focus:"center",pagination:!1,cover:!0,video:{autoplay:!1,mute:!0},breakpoints:{600:{fixedWidth:66,fixedHeight:40}}},e.secondarySlider.mount({Video:a.a}),e.primarySlider.sync(e.secondarySlider).mount({Video:a.a})}),200)}};s.init({mediaSecondaryItems:document.querySelector(".js-media-secondary-splide"),mediaPrimaryItems:document.querySelector(".js-media-primary-splide"),closeIcon:document.querySelector(".js-media-modal-close"),mediaModal:document.querySelector(".js-media-modal"),mediaItem:document.querySelectorAll(".js-media-item"),videos:document.querySelectorAll("video")})},SjWa:function(t,e,n){var i;self,i=function(){return(()=>{"use strict";var t={311:(t,e,n)=>{n.r(e),n.d(e,{default:()=>vt});var i={};function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}n.r(i),n.d(i,{CREATED:()=>H,DESTROYED:()=>U,IDLE:()=>B,MOUNTED:()=>D,MOVING:()=>F});var r=Object.keys;function a(t,e){r(t).some((function(n,i){return e(t[n],n,i)}))}function s(t){return r(t).map((function(e){return t[e]}))}function u(t){return"object"==typeof t}function c(t,e){var n=o({},t);return a(e,(function(t,e){u(t)?(u(n[e])||(n[e]={}),n[e]=c(n[e],t)):n[e]=t})),n}function l(t){return Array.isArray(t)?t:[t]}function d(t,e,n){return Math.min(Math.max(t,e>n?n:e),e>n?e:n)}function f(t,e){var n=0;return t.replace(/%s/g,(function(){return l(e)[n++]}))}function h(t){var e=typeof t;return"number"===e&&t>0?parseFloat(t)+"px":"string"===e?t:""}function p(t){return t<10?"0"+t:t}function v(t,e){if("string"==typeof e){var n=w("div",{});P(n,{position:"absolute",width:e}),k(t,n),e=n.clientWidth,E(n)}return+e||0}function m(t,e){return t?t.querySelector(e.split(" ")[0]):null}function y(t,e){return g(t,e)[0]}function g(t,e){return t?s(t.children).filter((function(t){return I(t,e.split(" ")[0])||t.tagName===e})):[]}function w(t,e){var n=document.createElement(t);return a(e,(function(t,e){return M(n,e,t)})),n}function b(t){var e=w("div",{});return e.innerHTML=t,e.firstChild}function E(t){l(t).forEach((function(t){if(t){var e=t.parentElement;e&&e.removeChild(t)}}))}function k(t,e){t&&t.appendChild(e)}function _(t,e){if(t&&e){var n=e.parentElement;n&&n.insertBefore(t,e)}}function P(t,e){t&&a(e,(function(e,n){null!==e&&(t.style[n]=e)}))}function x(t,e,n){t&&l(e).forEach((function(e){e&&t.classList[n?"remove":"add"](e)}))}function T(t,e){x(t,e,!1)}function S(t,e){x(t,e,!0)}function I(t,e){return!!t&&t.classList.contains(e)}function M(t,e,n){t&&t.setAttribute(e,n)}function C(t,e){return t?t.getAttribute(e):""}function O(t,e){l(e).forEach((function(e){l(t).forEach((function(t){return t&&t.removeAttribute(e)}))}))}function j(t){return t.getBoundingClientRect()}var A="loop";const L=function(t,e){var n,i;return{mount:function(){n=e.Elements.list,t.on("transitionend",(function(t){t.target===n&&i&&i()}),n)},start:function(o,r,a,s,u){var c=t.options,l=e.Controller.edgeIndex,d=c.speed;i=u,t.is("slide")&&(0===a&&r>=l||a>=l&&0===r)&&(d=c.rewindSpeed||d),P(n,{transition:"transform "+d+"ms "+c.easing,transform:"translate("+s.x+"px,"+s.y+"px)"})}}},N=function(t,e){function n(n){var i=t.options;P(e.Elements.slides[n],{transition:"opacity "+i.speed+"ms "+i.easing})}return{mount:function(){n(t.index)},start:function(t,i,o,r,a){var s=e.Elements.track;P(s,{height:h(s.clientHeight)}),n(i),setTimeout((function(){a(),P(s,{height:""})}))}}};function R(t){console.error("[SPLIDE] "+t)}function V(t,e){if(!t)throw new Error(e)}var W="splide",z={active:"is-active",visible:"is-visible",loading:"is-loading"},q={type:"slide",rewind:!1,speed:400,rewindSpeed:0,waitForTransition:!0,width:0,height:0,fixedWidth:0,fixedHeight:0,heightRatio:0,autoWidth:!1,autoHeight:!1,perPage:1,perMove:0,clones:0,start:0,focus:!1,gap:0,padding:0,arrows:!0,arrowPath:"",pagination:!0,autoplay:!1,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,lazyLoad:!1,preloadPages:1,easing:"cubic-bezier(.42,.65,.27,.99)",keyboard:"global",drag:!0,dragAngleThreshold:30,swipeDistanceThreshold:150,flickVelocityThreshold:.6,flickPower:600,flickMaxPages:1,direction:"ltr",cover:!1,accessibility:!0,slideFocus:!0,isNavigation:!1,trimSpace:!0,updateOnMove:!1,throttle:100,destroy:!1,breakpoints:!1,classes:{root:W,slider:W+"__slider",track:W+"__track",list:W+"__list",slide:W+"__slide",container:W+"__slide__container",arrows:W+"__arrows",arrow:W+"__arrow",prev:W+"__arrow--prev",next:W+"__arrow--next",pagination:W+"__pagination",page:W+"__pagination__page",clone:W+"__slide--clone",progress:W+"__progress",bar:W+"__progress__bar",autoplay:W+"__autoplay",play:W+"__play",pause:W+"__pause",spinner:W+"__spinner",sr:W+"__sr"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}},H=1,D=2,B=3,F=4,U=5;function Y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var G=function(){function t(t,e,n){var o;void 0===e&&(e={}),void 0===n&&(n={}),this.root=t instanceof Element?t:document.querySelector(t),V(this.root,"An invalid element/selector was given."),this.Components=null,this.Event=function(){var t=[];function e(t){t.elm&&t.elm.removeEventListener(t.event,t.handler,t.options)}return{on:function(e,n,i,o){void 0===i&&(i=null),void 0===o&&(o={}),e.split(" ").forEach((function(e){i&&i.addEventListener(e,n,o),t.push({event:e,handler:n,elm:i,options:o})}))},off:function(n,i){void 0===i&&(i=null),n.split(" ").forEach((function(n){t=t.filter((function(t){return!t||t.event!==n||t.elm!==i||(e(t),!1)}))}))},emit:function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];t.forEach((function(t){t.elm||t.event.split(".")[0]!==e||t.handler.apply(t,i)}))},destroy:function(){t.forEach(e),t=[]}}}(),this.State=(o=H,{set:function(t){o=t},is:function(t){return t===o}}),this.STATES=i,this._o=c(q,e),this._i=0,this._c=n,this._e={},this._t=null}var e,n,o,r=t.prototype;return r.mount=function(t,e){var n=this;void 0===t&&(t=this._e),void 0===e&&(e=this._t),this.State.set(H),this._e=t,this._t=e,this.Components=function(t,e,n){var i={};return a(e,(function(e,n){i[n]=e(t,i,n.toLowerCase())})),n||(n=t.is("fade")?N:L),i.Transition=n(t,i),i}(this,c(this._c,t),e);try{a(this.Components,(function(t,e){var i=t.required;void 0===i||i?t.mount&&t.mount():delete n.Components[e]}))}catch(t){return void R(t.message)}var i=this.State;return i.set(D),a(this.Components,(function(t){t.mounted&&t.mounted()})),this.emit("mounted"),i.set(B),this.emit("ready"),P(this.root,{visibility:"visible"}),this.on("move drag",(function(){return i.set(F)})).on("moved dragged",(function(){return i.set(B)})),this},r.sync=function(t){return this.sibling=t,this},r.on=function(t,e,n,i){return void 0===n&&(n=null),void 0===i&&(i={}),this.Event.on(t,e,n,i),this},r.off=function(t,e){return void 0===e&&(e=null),this.Event.off(t,e),this},r.emit=function(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(e=this.Event).emit.apply(e,[t].concat(i)),this},r.go=function(t,e){return void 0===e&&(e=this.options.waitForTransition),(this.State.is(B)||this.State.is(F)&&!e)&&this.Components.Controller.go(t,!1),this},r.is=function(t){return t===this._o.type},r.add=function(t,e){return void 0===e&&(e=-1),this.Components.Elements.add(t,e,this.refresh.bind(this)),this},r.remove=function(t){return this.Components.Elements.remove(t),this.refresh(),this},r.refresh=function(){return this.emit("refresh:before").emit("refresh").emit("resize"),this},r.destroy=function(t){var e=this;if(void 0===t&&(t=!0),!this.State.is(H))return s(this.Components).reverse().forEach((function(e){e.destroy&&e.destroy(t)})),this.emit("destroy",t),this.Event.destroy(),this.State.set(U),this;this.on("ready",(function(){return e.destroy(t)}))},e=t,(n=[{key:"index",get:function(){return this._i},set:function(t){this._i=parseInt(t)}},{key:"length",get:function(){return this.Components.Elements.length}},{key:"options",get:function(){return this._o},set:function(t){var e=this.State.is(H);e||this.emit("update"),this._o=c(this._o,t),e||this.emit("updated",this._o)}},{key:"classes",get:function(){return this._o.classes}},{key:"i18n",get:function(){return this._o.i18n}}])&&Y(e.prototype,n),o&&Y(e,o),t}();const X=function(t){var e=C(t.root,"data-splide");if(e)try{t.options=JSON.parse(e)}catch(t){R(t.message)}return{mount:function(){t.State.is(H)&&(t.index=t.options.start)}}},$=function(t,e){var n=t.root,i=t.classes,o=[];if(!n.id){window.splide=window.splide||{};var r=window.splide.uid||0;window.splide.uid=++r,n.id="splide"+p(r)}var u={mount:function(){var e=this;this.init(),t.on("refresh",(function(){e.destroy(),e.init()})).on("updated",(function(){S(n,c()),T(n,c())}))},destroy:function(){o.forEach((function(t){t.destroy()})),o=[],S(n,c())},init:function(){var t=this;!function(){u.slider=y(n,i.slider),u.track=m(n,"."+i.track),u.list=y(u.track,i.list),V(u.track&&u.list,"Track or list was not found."),u.slides=g(u.list,i.slide);var t=l(i.arrows);u.arrows={prev:m(t,"."+i.prev),next:m(t,"."+i.next)};var e=l(i.autoplay);u.bar=m(l(i.progress),"."+i.bar),u.play=m(e,"."+i.play),u.pause=m(e,"."+i.pause),u.track.id=u.track.id||n.id+"-track",u.list.id=u.list.id||n.id+"-list"}(),T(n,c()),this.slides.forEach((function(e,n){t.register(e,n,-1)}))},register:function(e,n,i){var r=function(t,e,n,i){var o=t.options.updateOnMove,r="ready.slide updated.slide resized.slide moved.slide"+(o?" move.slide":""),a={slide:i,index:e,realIndex:n,container:y(i,t.classes.container),isClone:n>-1,mount:function(){var a=this;this.isClone||(i.id=t.root.id+"-slide"+p(e+1)),t.on(r,(function(){return a.update()})).on("update.slide",c).on("click",(function(){return t.emit("click",a)}),i),o&&t.on("move.slide",(function(t){t===n&&u(!0,!1)})),P(i,{display:""}),this.styles=C(i,"style")||""},destroy:function(){t.off(r).off("update.slide").off("click",i),S(i,s(z)),c(),O(this.container,"style")},update:function(){u(this.isActive(),!1),u(this.isVisible(),!0)},isActive:function(){return t.index===e},isVisible:function(){var e=this.isActive();if(t.is("fade")||e)return e;var n=Math.ceil,o=j(t.Components.Elements.track),r=j(i);return"ttb"===t.options.direction?o.top<=r.top&&r.bottom<=n(o.bottom):o.left<=r.left&&r.right<=n(o.right)},isWithin:function(n,i){var o=Math.abs(n-e);return t.is("slide")||this.isClone||(o=Math.min(o,t.length-o)),o<i}};function u(e,n){var o=n?"visible":"active",r=z[o];e?(T(i,r),t.emit(""+o,a)):I(i,r)&&(S(i,r),t.emit(n?"hidden":"inactive",a))}function c(){M(i,"style",a.styles)}return a}(t,n,i,e);r.mount(),o.push(r)},getSlide:function(t){return o.filter((function(e){return e.index===t}))[0]},getSlides:function(t){return t?o:o.filter((function(t){return!t.isClone}))},getSlidesByPage:function(n){var i=e.Controller.toIndex(n),r=t.options,a=!1!==r.focus?1:r.perPage;return o.filter((function(t){var e=t.index;return i<=e&&e<i+a}))},add:function(t,e,n){if("string"==typeof t&&(t=b(t)),t instanceof Element){var i=this.slides[e];P(t,{display:"none"}),i?(_(t,i),this.slides.splice(e,0,t)):(k(this.list,t),this.slides.push(t)),function(t,e){var n=t.querySelectorAll("img"),i=n.length;if(i){var o=0;a(n,(function(t){t.onload=t.onerror=function(){++o===i&&e()}}))}else e()}(t,(function(){n&&n(t)}))}},remove:function(t){E(this.slides.splice(t,1)[0])},each:function(t){o.forEach(t)},get length(){return this.slides.length},get total(){return o.length}};function c(){var e=i.root,n=t.options;return[e+"--"+n.type,e+"--"+n.direction,n.drag?e+"--draggable":"",n.isNavigation?e+"--nav":"",z.active]}function l(t){return y(n,t)||y(u.slider,t)}return u};var J=Math.floor;const Q=function(t,e){var n,i,o={mount:function(){n=t.options,i=t.is(A),t.on("move",(function(e){t.index=e})).on("updated refresh",(function(e){n=e||n,t.index=d(t.index,0,o.edgeIndex)}))},go:function(t,n){var i=this.trim(this.parse(t));e.Track.go(i,this.rewind(i),n)},parse:function(e){var i=t.index,r=String(e).match(/([+\-<>]+)(\d+)?/),a=r?r[1]:"",s=r?parseInt(r[2]):0;switch(a){case"+":i+=s||1;break;case"-":i-=s||1;break;case">":case"<":i=function(t,e,i){if(t>-1)return o.toIndex(t);var r=n.perMove,a=i?-1:1;return r?e+r*a:o.toIndex(o.toPage(e)+a)}(s,i,"<"===a);break;default:i=parseInt(e)}return i},toIndex:function(e){if(r())return e;var i=t.length,o=n.perPage,a=e*o;return i-o<=(a-=(this.pageLength*o-i)*J(a/i))&&a<i&&(a=i-o),a},toPage:function(e){if(r())return e;var i=t.length,o=n.perPage;return J(i-o<=e&&e<i?(i-1)/o:e/o)},trim:function(t){return i||(t=n.rewind?this.rewind(t):d(t,0,this.edgeIndex)),t},rewind:function(t){var e=this.edgeIndex;if(i){for(;t>e;)t-=e+1;for(;t<0;)t+=e+1}else t>e?t=0:t<0&&(t=e);return t},isRtl:function(){return"rtl"===n.direction},get pageLength(){var e=t.length;return r()?e:Math.ceil(e/n.perPage)},get edgeIndex(){var e=t.length;return e?r()||n.isNavigation||i?e-1:e-n.perPage:0},get prevIndex(){var e=t.index-1;return(i||n.rewind)&&(e=this.rewind(e)),e>-1?e:-1},get nextIndex(){var e=t.index+1;return(i||n.rewind)&&(e=this.rewind(e)),t.index<e&&e<=this.edgeIndex||0===e?e:-1}};function r(){return!1!==n.focus}return o};var K=Math.abs;const Z=function(t,e){var n,i,o,r="ttb"===t.options.direction,a=t.is("fade"),s="rtl"===t.options.direction,u=!1,c=s?1:-1,l={sign:c,mount:function(){i=e.Elements,n=e.Layout,o=i.list},mounted:function(){var e=this;a||(this.jump(0),t.on("mounted resize updated",(function(){e.jump(t.index)})))},go:function(n,i,o){var r=h(n),s=t.index;t.State.is(F)&&u||(u=n!==i,o||t.emit("move",i,s,n),Math.abs(r-this.position)>=1||a?e.Transition.start(n,i,s,this.toCoord(r),(function(){f(n,i,s,o)})):n!==s&&"move"===t.options.trimSpace?e.Controller.go(n+n-s,o):f(n,i,s,o))},jump:function(t){this.translate(h(t))},translate:function(t){P(o,{transform:"translate"+(r?"Y":"X")+"("+t+"px)"})},cancel:function(){t.is(A)?this.shift():this.translate(this.position),P(o,{transition:""})},shift:function(){var e=K(this.position),n=K(this.toPosition(0)),i=K(this.toPosition(t.length)),o=i-n;e<n?e+=o:e>i&&(e-=o),this.translate(c*e)},trim:function(e){return!t.options.trimSpace||t.is(A)?e:d(e,c*(n.totalSize()-n.size-n.gap),0)},toIndex:function(t){var e=this,n=0,o=1/0;return i.getSlides(!0).forEach((function(i){var r=i.index,a=K(e.toPosition(r)-t);a<o&&(o=a,n=r)})),n},toCoord:function(t){return{x:r?0:t,y:r?t:0}},toPosition:function(t){var e=n.totalSize(t)-n.slideSize(t)-n.gap;return c*(e+this.offset(t))},offset:function(e){var i=t.options.focus,o=n.slideSize(e);return"center"===i?-(n.size-o)/2:-(parseInt(i)||0)*(o+n.gap)},get position(){var t=r?"top":s?"right":"left";return j(o)[t]-(j(i.track)[t]-n.padding[t]*c)}};function f(e,n,i,r){P(o,{transition:""}),u=!1,a||l.jump(n),r||t.emit("moved",n,i,e)}function h(t){return l.trim(l.toPosition(t))}return l},tt=function(t,e){var n=[],i=0,o=e.Elements,r={mount:function(){var e=this;t.is(A)&&(a(),t.on("refresh:before",(function(){e.destroy()})).on("refresh",a).on("resize",(function(){i!==s()&&(e.destroy(),t.refresh())})))},destroy:function(){E(n),n=[]},get clones(){return n},get length(){return n.length}};function a(){r.destroy(),function(t){var e=o.length,i=o.register;if(e){for(var r=o.slides;r.length<t;)r=r.concat(r);r.slice(0,t).forEach((function(t,r){var a=u(t);k(o.list,a),n.push(a),i(a,r+e,r%e)})),r.slice(-t).forEach((function(o,a){var s=u(o);_(s,r[0]),n.push(s),i(s,a-t,(e+a-t%e)%e)}))}}(i=s())}function s(){var e=t.options;if(e.clones)return e.clones;var n=e.autoWidth||e.autoHeight?o.length:e.perPage,i="ttb"===e.direction?"Height":"Width",r=v(t.root,e["fixed"+i]);return r&&(n=Math.ceil(o.track["client"+i]/r)),n*(e.drag?e.flickMaxPages+1:1)}function u(e){var n=e.cloneNode(!0);return T(n,t.classes.clone),O(n,"id"),n}return r};function et(t,e){var n;return function(){n||(n=setTimeout((function(){t(),n=null}),e))}}const nt=function(t,e){var n,i,o=e.Elements,a="ttb"===t.options.direction,s=(n={mount:function(){t.on("resize load",et((function(){t.emit("resize")}),t.options.throttle),window).on("resize",c).on("updated refresh",u),u(),this.totalSize=a?this.totalHeight:this.totalWidth,this.slideSize=a?this.slideHeight:this.slideWidth},destroy:function(){O([o.list,o.track],"style")},get size(){return a?this.height:this.width}},i=a?function(t,e){var n,i,o=e.Elements,r=t.root;return{margin:"marginBottom",init:function(){this.resize()},resize:function(){i=t.options,n=o.track,this.gap=v(r,i.gap);var e=i.padding,a=v(r,e.top||e),s=v(r,e.bottom||e);this.padding={top:a,bottom:s},P(n,{paddingTop:h(a),paddingBottom:h(s)})},totalHeight:function(e){void 0===e&&(e=t.length-1);var n=o.getSlide(e);return n?j(n.slide).bottom-j(o.list).top+this.gap:0},slideWidth:function(){return v(r,i.fixedWidth||this.width)},slideHeight:function(t){if(i.autoHeight){var e=o.getSlide(t);return e?e.slide.offsetHeight:0}var n=i.fixedHeight||(this.height+this.gap)/i.perPage-this.gap;return v(r,n)},get width(){return n.clientWidth},get height(){var t=i.height||this.width*i.heightRatio;return V(t,'"height" or "heightRatio" is missing.'),v(r,t)-this.padding.top-this.padding.bottom}}}(t,e):function(t,e){var n,i=e.Elements,o=t.root,r=t.options;return{margin:"margin"+("rtl"===r.direction?"Left":"Right"),height:0,init:function(){this.resize()},resize:function(){r=t.options,n=i.track,this.gap=v(o,r.gap);var e=r.padding,a=v(o,e.left||e),s=v(o,e.right||e);this.padding={left:a,right:s},P(n,{paddingLeft:h(a),paddingRight:h(s)})},totalWidth:function(e){void 0===e&&(e=t.length-1);var n=i.getSlide(e),o=0;if(n){var a=j(n.slide),s=j(i.list);o="rtl"===r.direction?s.right-a.left:a.right-s.left,o+=this.gap}return o},slideWidth:function(t){if(r.autoWidth){var e=i.getSlide(t);return e?e.slide.offsetWidth:0}var n=r.fixedWidth||(this.width+this.gap)/r.perPage-this.gap;return v(o,n)},slideHeight:function(){var t=r.height||r.fixedHeight||this.width*r.heightRatio;return v(o,t)},get width(){return n.clientWidth-this.padding.left-this.padding.right}}}(t,e),r(i).forEach((function(t){n[t]||Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))})),n);function u(){s.init(),P(t.root,{maxWidth:h(t.options.width)}),o.each((function(t){t.slide.style[s.margin]=h(s.gap)})),c()}function c(){var e=t.options;s.resize(),P(o.track,{height:h(s.height)});var n=e.autoHeight?null:h(s.slideHeight());o.each((function(t){P(t.container,{height:n}),P(t.slide,{width:e.autoWidth?null:h(s.slideWidth(t.index)),height:t.container?null:n})})),t.emit("resized")}return s};var it=Math.abs;const ot=function(t,e){var n,i,o,r,s=e.Track,u=e.Controller,c="ttb"===t.options.direction,l=c?"y":"x",f={disabled:!1,mount:function(){var n=this,i=e.Elements,o=i.track;t.on("touchstart mousedown",h,o).on("touchmove mousemove",v,o,{passive:!1}).on("touchend touchcancel mouseleave mouseup dragend",m,o).on("mounted refresh",(function(){a(i.list.querySelectorAll("img, a"),(function(e){t.off("dragstart",e).on("dragstart",(function(t){t.preventDefault()}),e,{passive:!1})}))})).on("mounted updated",(function(){n.disabled=!t.options.drag}))}};function h(t){f.disabled||r||p(t)}function p(t){n=s.toCoord(s.position),i=y(t,{}),o=i}function v(e){if(i)if(o=y(e,i),r){if(e.cancelable&&e.preventDefault(),!t.is("fade")){var a=n[l]+o.offset[l];s.translate(function(e){if(t.is("slide")){var n=s.sign,i=n*s.trim(s.toPosition(0)),o=n*s.trim(s.toPosition(u.edgeIndex));(e*=n)<i?e=i-7*Math.log(i-e):e>o&&(e=o+7*Math.log(e-o)),e*=n}return e}(a))}}else(function(e){var n=e.offset;if(t.State.is(F)&&t.options.waitForTransition)return!1;var i=180*Math.atan(it(n.y)/it(n.x))/Math.PI;return c&&(i=90-i),i<t.options.dragAngleThreshold})(o)&&(t.emit("drag",i),r=!0,s.cancel(),p(e))}function m(){i=null,r&&(t.emit("dragged",o),function(n){var i=n.velocity[l],o=it(i);if(o>0){var r=t.options,a=t.index,c=i<0?-1:1,f=a;if(!t.is("fade")){var h=s.position;o>r.flickVelocityThreshold&&it(n.offset[l])<r.swipeDistanceThreshold&&(h+=c*Math.min(o*r.flickPower,e.Layout.size*(r.flickMaxPages||1))),f=s.toIndex(h)}f===a&&o>.1&&(f=a+c*s.sign),t.is("slide")&&(f=d(f,0,u.edgeIndex)),u.go(f,r.isNavigation)}}(o),r=!1)}function y(t,e){var n=t.timeStamp,i=t.touches,o=i?i[0]:t,r=o.clientX,a=o.clientY,s=e.to||{},u=s.x,c=void 0===u?r:u,l=s.y,d={x:r-c,y:a-(void 0===l?a:l)},f=n-(e.time||0);return{to:{x:r,y:a},offset:d,time:n,velocity:{x:d.x/f,y:d.y/f}}}return f},rt=function(t,e){var n=!1;function i(t){n&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}return{required:t.options.drag,mount:function(){t.on("click",i,e.Elements.track,{capture:!0}).on("drag",(function(){n=!0})).on("dragged",(function(){setTimeout((function(){n=!1}))}))}}};var at=1,st=2,ut=3;const ct=function(t,e,n){var i,o,r,a=t.classes,s=t.root,u=e.Elements;function c(){var r=e.Controller,a=r.prevIndex,s=r.nextIndex,u=t.length>t.options.perPage||t.is(A);i.disabled=a<0||!u,o.disabled=s<0||!u,t.emit(n+":updated",i,o,a,s)}function l(e){return b('<button class="'+a.arrow+" "+(e?a.prev:a.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg"\tviewBox="0 0 40 40"\twidth="40"\theight="40"><path d="'+(t.options.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}return{required:t.options.arrows,mount:function(){i=u.arrows.prev,o=u.arrows.next,i&&o||!t.options.arrows||(i=l(!0),o=l(!1),r=!0,function(){var e=w("div",{class:a.arrows});k(e,i),k(e,o);var n=u.slider,r="slider"===t.options.arrows&&n?n:s;_(e,r.firstElementChild)}()),i&&o&&t.on("click",(function(){t.go("<")}),i).on("click",(function(){t.go(">")}),o).on("mounted move updated refresh",c),this.arrows={prev:i,next:o}},mounted:function(){t.emit(n+":mounted",i,o)},destroy:function(){O([i,o],"disabled"),r&&E(i.parentElement)}}},lt=function(t,e,n){var i={},o=e.Elements,r={mount:function(){var e=t.options.pagination;if(e){i=function(){var e=t.options,n=t.classes,i=w("ul",{class:n.pagination}),r=o.getSlides(!1).filter((function(t){return!1!==e.focus||t.index%e.perPage==0})).map((function(e,r){var a=w("li",{}),s=w("button",{class:n.page,type:"button"});return k(a,s),k(i,a),t.on("click",(function(){t.go(">"+r)}),s),{li:a,button:s,page:r,Slides:o.getSlidesByPage(r)}}));return{list:i,items:r}}();var n=o.slider;k("slider"===e&&n?n:t.root,i.list),t.on("move.page",a)}t.off("updated.page refresh.page").on("updated.page refresh.page",(function(){r.destroy(),t.options.pagination&&(r.mount(),r.mounted())}))},mounted:function(){if(t.options.pagination){var e=t.index;t.emit(n+":mounted",i,this.getItem(e)),a(e,-1)}},destroy:function(){E(i.list),i.items&&i.items.forEach((function(e){t.off("click",e.button)})),t.off("move.page"),i={}},getItem:function(t){return i.items[e.Controller.toPage(t)]},get data(){return i}};function a(e,o){var a=r.getItem(o),s=r.getItem(e),u=z.active;a&&S(a.button,u),s&&T(s.button,u),t.emit(n+":updated",i,a,s)}return r};var dt={ltr:{ArrowLeft:"<",ArrowRight:">",Left:"<",Right:">"},rtl:{ArrowLeft:">",ArrowRight:"<",Left:">",Right:"<"},ttb:{ArrowUp:"<",ArrowDown:">",Up:"<",Down:">"}};const ft=function(t,e){var n=t.i18n,i=e.Elements,o=["aria-hidden","tabindex","aria-controls","aria-label","aria-current","role"];function r(e,n){M(e,"aria-hidden",!n),t.options.slideFocus&&M(e,"tabindex",n?0:-1)}function a(t,e){var n=i.track.id;M(t,"aria-controls",n),M(e,"aria-controls",n)}function s(e,i,o,r){var a=t.index,s=o>-1&&a<o?n.last:n.prev,u=r>-1&&a>r?n.first:n.next;M(e,"aria-label",s),M(i,"aria-label",u)}function u(e,i){i&&M(i.button,"aria-current",!0),e.items.forEach((function(e){var i=t.options,o=f(!1===i.focus&&i.perPage>1?n.pageX:n.slideX,e.page+1),r=e.button;M(r,"aria-controls",e.Slides.map((function(t){return t.slide.id})).join(" ")),M(r,"aria-label",o)}))}function c(t,e,n){e&&O(e.button,"aria-current"),n&&M(n.button,"aria-current",!0)}function l(t){i.each((function(e){var i=e.slide,o=e.realIndex;h(i)||M(i,"role","button");var r=o>-1?o:e.index,a=f(n.slideX,r+1),s=t.Components.Elements.getSlide(r);M(i,"aria-label",a),s&&M(i,"aria-controls",s.slide.id)}))}function d(t,e){var n=t.slide;e?M(n,"aria-current",!0):O(n,"aria-current")}function h(t){return"BUTTON"===t.tagName}return{required:t.options.accessibility,mount:function(){t.on("visible",(function(t){r(t.slide,!0)})).on("hidden",(function(t){r(t.slide,!1)})).on("arrows:mounted",a).on("arrows:updated",s).on("pagination:mounted",u).on("pagination:updated",c).on("refresh",(function(){O(e.Clones.clones,o)})),t.options.isNavigation&&t.on("navigation:mounted navigation:updated",l).on("active",(function(t){d(t,!0)})).on("inactive",(function(t){d(t,!1)})),["play","pause"].forEach((function(t){var e=i[t];e&&(h(e)||M(e,"role","button"),M(e,"aria-controls",i.track.id),M(e,"aria-label",n[t]))}))},destroy:function(){var t=e.Arrows,n=t?t.arrows:{};O(i.slides.concat([n.prev,n.next,i.play,i.pause]),o)}}};var ht=[" ","Enter","Spacebar"],pt={Options:X,Breakpoints:function(t){var e,n,i=t.options.breakpoints,o=et(a,50),r=[];function a(){var o,a=(o=r.filter((function(t){return t.mql.matches}))[0])?o.point:-1;if(a!==n){n=a;var s=t.State,u=i[a]||e,c=u.destroy;c?(t.options=e,t.destroy("completely"===c)):(s.is(U)&&t.mount(),t.options=u)}}return{required:i&&matchMedia,mount:function(){r=Object.keys(i).sort((function(t,e){return+t-+e})).map((function(t){return{point:t,mql:matchMedia("(max-width:"+t+"px)")}})),this.destroy(!0),addEventListener("resize",o),e=t.options,a()},destroy:function(t){t&&removeEventListener("resize",o)}}},Controller:Q,Elements:$,Track:Z,Clones:tt,Layout:nt,Drag:ot,Click:rt,Autoplay:function(t,e,n){var i,o=[],r=e.Elements,a={required:t.options.autoplay,mount:function(){var e=t.options;r.slides.length>e.perPage&&(i=function(t,e,n){var i,o,r,a=window.requestAnimationFrame,s=!0,u=function u(c){s||(i||(i=c,r&&r<1&&(i-=r*e)),r=(o=c-i)/e,o>=e&&(i=0,r=1,t()),n&&n(r),a(u))};return{pause:function(){s=!0,i=0},play:function(t){i=0,t&&(r=0),s&&(s=!1,a(u))}}}((function(){t.go(">")}),e.interval,(function(e){t.emit(n+":playing",e),r.bar&&P(r.bar,{width:100*e+"%"})})),function(){var e=t.options,n=t.sibling,i=[t.root,n?n.root:null];e.pauseOnHover&&(s(i,"mouseleave",at,!0),s(i,"mouseenter",at,!1)),e.pauseOnFocus&&(s(i,"focusout",st,!0),s(i,"focusin",st,!1)),r.play&&t.on("click",(function(){a.play(st),a.play(ut)}),r.play),r.pause&&s([r.pause],"click",ut,!1),t.on("move refresh",(function(){a.play()})).on("destroy",(function(){a.pause()}))}(),this.play())},play:function(e){void 0===e&&(e=0),(o=o.filter((function(t){return t!==e}))).length||(t.emit(n+":play"),i.play(t.options.resetProgress))},pause:function(e){void 0===e&&(e=0),i.pause(),-1===o.indexOf(e)&&o.push(e),1===o.length&&t.emit(n+":pause")}};function s(e,n,i,o){e.forEach((function(e){t.on(n,(function(){a[o?"play":"pause"](i)}),e)}))}return a},Cover:function(t,e){function n(t){e.Elements.each((function(e){var n=y(e.slide,"IMG")||y(e.container,"IMG");n&&n.src&&i(n,t)}))}function i(t,e){P(t.parentElement,{background:e?"":'center/cover no-repeat url("'+t.src+'")'}),P(t,{display:e?"":"none"})}return{required:t.options.cover,mount:function(){t.on("lazyload:loaded",(function(t){i(t,!1)})),t.on("mounted updated refresh",(function(){return n(!1)}))},destroy:function(){n(!0)}}},Arrows:ct,Pagination:lt,LazyLoad:function(t,e,n){var i,o,r=t.options,s="sequential"===r.lazyLoad;function u(){o=[],i=0}function c(e){e=isNaN(e)?t.index:e,(o=o.filter((function(t){return!t.Slide.isWithin(e,r.perPage*(r.preloadPages+1))||(l(t.img,t.Slide),!1)})))[0]||t.off("moved."+n)}function l(e,n){T(n.slide,z.loading);var i=w("span",{class:t.classes.spinner});k(e.parentElement,i),e.onload=function(){f(e,i,n,!1)},e.onerror=function(){f(e,i,n,!0)},M(e,"srcset",C(e,"data-splide-lazy-srcset")||""),M(e,"src",C(e,"data-splide-lazy")||"")}function d(){if(i<o.length){var t=o[i];l(t.img,t.Slide)}i++}function f(e,i,o,r){S(o.slide,z.loading),r||(E(i),P(e,{display:""}),t.emit(n+":loaded",e).emit("resize")),s&&d()}return{required:r.lazyLoad,mount:function(){t.on("mounted refresh",(function(){u(),e.Elements.each((function(t){a(t.slide.querySelectorAll("[data-splide-lazy], [data-splide-lazy-srcset]"),(function(e){e.src||e.srcset||(o.push({img:e,Slide:t}),P(e,{display:"none"}))}))})),s&&d()})),s||t.on("mounted refresh moved."+n,c)},destroy:u}},Keyboard:function(t){var e;return{mount:function(){t.on("mounted updated",(function(){var n=t.options,i=t.root,o=dt[n.direction],r=n.keyboard;e&&(t.off("keydown",e),O(i,"tabindex")),r&&("focused"===r?(e=i,M(i,"tabindex",0)):e=document,t.on("keydown",(function(e){o[e.key]&&t.go(o[e.key])}),e))}))}}},Sync:function(t){var e=t.sibling,n=e&&e.options.isNavigation;function i(){t.on("move.sync",(function(t,n,i){e.off("move.sync").go(e.is(A)?i:t,!1),o()}))}function o(){e.on("move.sync",(function(e,n,o){t.off("move.sync").go(t.is(A)?o:e,!1),i()}))}function r(){e.Components.Elements.each((function(e){var n=e.slide,i=e.index;t.off("mouseup touchend",n).on("mouseup touchend",(function(t){t.button&&0!==t.button||a(i)}),n),t.off("keyup",n).on("keyup",(function(t){ht.indexOf(t.key)>-1&&(t.preventDefault(),a(i))}),n,{passive:!1})}))}function a(n){t.State.is(B)&&e.go(n)}return{required:!!e,mount:function(){i(),o(),n&&(r(),t.on("refresh",(function(){setTimeout((function(){r(),e.emit("navigation:updated",t)}))})))},mounted:function(){n&&e.emit("navigation:mounted",t)}}},A11y:ft},vt=function(t){var e,n;function i(e,n){return t.call(this,e,n,pt)||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(G)}},e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}return n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(311)})()},t.exports=i()},lygf:function(t,e,n){var i;window,i=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t,n){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var r=void 0!==t&&"[object global]"==={}.toString.call(t);function a(t,e){return 0===t.indexOf(e.toLowerCase())?t:"".concat(e.toLowerCase()).concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))}function s(t){return Boolean(t&&1===t.nodeType&&"nodeName"in t&&t.ownerDocument&&t.ownerDocument.defaultView)}function u(t){return!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t}function c(t){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(t)}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.id,n=t.url,i=e||n;if(!i)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(u(i))return"https://vimeo.com/".concat(i);if(c(i))return i.replace("http:","https:");if(e)throw new TypeError("“".concat(e,"” is not a valid video id."));throw new TypeError("“".concat(i,"” is not a vimeo.com url."))}var d=void 0!==Array.prototype.indexOf,f="undefined"!=typeof window&&void 0!==window.postMessage;if(!(r||d&&f))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var h="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};!function(t){if(!t.WeakMap){var e=Object.prototype.hasOwnProperty,n=function(t,e,n){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,writable:!0,value:n}):t[e]=n};t.WeakMap=function(){function t(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id",r("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function o(t,n){if(!i(t)||!e.call(t,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof t)}function r(t){return t+"_"+a()+"."+a()}function a(){return Math.random().toString().substring(2)}return n(t.prototype,"delete",(function(t){if(o(this,"delete"),!i(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))})),n(t.prototype,"get",(function(t){if(o(this,"get"),i(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),n(t.prototype,"has",(function(t){if(o(this,"has"),!i(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),n(t.prototype,"set",(function(t,e){if(o(this,"set"),!i(t))throw new TypeError("Invalid value used as weak map key");var r=t[this._id];return r&&r[0]===t?(r[1]=e,this):(n(t,this._id,[t,e]),this)})),n(t,"_polyfill",!0),t}()}function i(t){return Object(t)===t}}("undefined"!=typeof self?self:"undefined"!=typeof window?window:h);var p=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){var e,i,o;o=function(){var t,e,i,o=Object.prototype.toString,r=void 0!==n?function(t){return n(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,n,i){return Object.defineProperty(t,e,{value:n,writable:!0,configurable:!1!==i})}}catch(e){t=function(t,e,n){return t[e]=n,t}}function a(t,n){i.add(t,n),e||(e=r(i.drain))}function s(t){var e,n=typeof t;return null==t||"object"!=n&&"function"!=n||(e=t.then),"function"==typeof e&&e}function u(){for(var t=0;t<this.chain.length;t++)c(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function c(t,e,n){var i,o;try{!1===e?n.reject(t.msg):(i=!0===e?t.msg:e.call(void 0,t.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=s(i))?o.call(i,n.resolve,n.reject):n.resolve(i)}catch(t){n.reject(t)}}function l(t){var e,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(e=s(t))?a((function(){var i=new h(n);try{e.call(t,(function(){l.apply(i,arguments)}),(function(){d.apply(i,arguments)}))}catch(t){d.call(i,t)}})):(n.msg=t,n.state=1,n.chain.length>0&&a(u,n))}catch(t){d.call(new h(n),t)}}}function d(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&a(u,e))}function f(t,e,n,i){for(var o=0;o<e.length;o++)!function(o){t.resolve(e[o]).then((function(t){n(o,t)}),i)}(o)}function h(t){this.def=t,this.triggered=!1}function p(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function v(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var e=new p(this);this.then=function(t,n){var i={success:"function"!=typeof t||t,failure:"function"==typeof n&&n};return i.promise=new this.constructor((function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");i.resolve=t,i.reject=e})),e.chain.push(i),0!==e.state&&a(u,e),i.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,(function(t){l.call(e,t)}),(function(t){d.call(e,t)}))}catch(t){d.call(e,t)}}i=function(){var t,n,i;function o(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,r){i=new o(e,r),n?n.next=i:t=i,n=i,i=void 0},drain:function(){var i=t;for(t=n=e=void 0;i;)i.fn.call(i.self),i=i.next}}}();var m=t({},"constructor",v,!1);return v.prototype=m,t(m,"__NPO__",0,!1),t(v,"resolve",(function(t){return t&&"object"==typeof t&&1===t.__NPO__?t:new this((function(e,n){if("function"!=typeof e||"function"!=typeof n)throw TypeError("Not a function");e(t)}))})),t(v,"reject",(function(t){return new this((function(e,n){if("function"!=typeof e||"function"!=typeof n)throw TypeError("Not a function");n(t)}))})),t(v,"all",(function(t){var e=this;return"[object Array]"!=o.call(t)?e.reject(TypeError("Not an array")):0===t.length?e.resolve([]):new e((function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");var o=t.length,r=Array(o),a=0;f(e,t,(function(t,e){r[t]=e,++a===o&&n(r)}),i)}))})),t(v,"race",(function(t){var e=this;return"[object Array]"!=o.call(t)?e.reject(TypeError("Not an array")):new e((function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");f(e,t,(function(t,e){n(e)}),i)}))})),v},(i=h)[e="Promise"]=i[e]||o(),t.exports&&(t.exports=i[e])})),v=new WeakMap;function m(t,e,n){var i=v.get(t.element)||{};e in i||(i[e]=[]),i[e].push(n),v.set(t.element,i)}function y(t,e){return(v.get(t.element)||{})[e]||[]}function g(t,e,n){var i=v.get(t.element)||{};if(!i[e])return!0;if(!n)return i[e]=[],v.set(t.element,i),!0;var o=i[e].indexOf(n);return-1!==o&&i[e].splice(o,1),v.set(t.element,i),i[e]&&0===i[e].length}function w(t,e){var n=v.get(t);v.set(e,n),v.delete(t)}var b=["autopause","autoplay","background","byline","color","controls","dnt","height","id","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b.reduce((function(e,n){var i=t.getAttribute("data-vimeo-".concat(n));return(i||""===i)&&(e[n]=""===i?1:i),e}),e)}function k(t,e){var n=t.html;if(!e)throw new TypeError("An element must be provided");if(null!==e.getAttribute("data-vimeo-initialized"))return e.querySelector("iframe");var i=document.createElement("div");return i.innerHTML=n,e.appendChild(i.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(i,o){if(!c(t))throw new TypeError("“".concat(t,"” is not a vimeo.com url."));var r="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(t));for(var a in e)e.hasOwnProperty(a)&&(r+="&".concat(a,"=").concat(encodeURIComponent(e[a])));var s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",r,!0),s.onload=function(){if(404!==s.status)if(403!==s.status)try{var e=JSON.parse(s.responseText);if(403===e.domain_status_code)return k(e,n),void o(new Error("“".concat(t,"” is not embeddable.")));i(e)}catch(t){o(t)}else o(new Error("“".concat(t,"” is not embeddable.")));else o(new Error("“".concat(t,"” was not found.")))},s.onerror=function(){var t=s.status?" (".concat(s.status,")"):"";o(new Error("There was an error fetching the embed code from Vimeo".concat(t,".")))},s.send()}))}function P(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.warn(t),{}}return t}function x(t,e,n){if(t.element.contentWindow&&t.element.contentWindow.postMessage){var i={method:e};void 0!==n&&(i.value=n);var o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(i=JSON.stringify(i)),t.element.contentWindow.postMessage(i,t.origin)}}function T(t,e){var n,i=[];if((e=P(e)).event)"error"===e.event&&y(t,e.data.method).forEach((function(n){var i=new Error(e.data.message);i.name=e.data.name,n.reject(i),g(t,e.data.method,n)})),i=y(t,"event:".concat(e.event)),n=e.data;else if(e.method){var o=function(t,e){var n=y(t,e);if(n.length<1)return!1;var i=n.shift();return g(t,e,i),i}(t,e.method);o&&(i.push(o),n=e.value)}i.forEach((function(e){try{if("function"==typeof e)return void e.call(t,n);e.resolve(n)}catch(t){}}))}var S=new WeakMap,I=new WeakMap,M=function(){function t(e){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!s(e))throw new TypeError("You must pass either a valid element or a valid id.");var r=e.ownerDocument.defaultView;if("IFRAME"!==e.nodeName){var a=e.querySelector("iframe");a&&(e=a)}if("IFRAME"===e.nodeName&&!c(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(S.has(e))return S.get(e);this.element=e,this.origin="*";var u=new p((function(t,i){var a=function(e){if(c(e.origin)&&n.element.contentWindow===e.source){"*"===n.origin&&(n.origin=e.origin);var o=P(e.data);if(o&&"error"===o.event&&o.data&&"ready"===o.data.method){var r=new Error(o.data.message);return r.name=o.data.name,void i(r)}var a=o&&"ready"===o.event,s=o&&"ping"===o.method;if(a||s)return n.element.setAttribute("data-ready","true"),void t();T(n,o)}};if(r.addEventListener?r.addEventListener("message",a,!1):r.attachEvent&&r.attachEvent("onmessage",a),"IFRAME"!==n.element.nodeName){var s=E(e,o);_(l(s),s,e).then((function(t){var i=k(t,e);return n.element=i,n._originalElement=e,w(e,i),S.set(n.element,n),t})).catch(i)}}));return I.set(this,u),S.set(this.element,this),"IFRAME"===this.element.nodeName&&x(this,"ping"),this}var e,n,r;return e=t,(n=[{key:"callMethod",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new p((function(i,o){return e.ready().then((function(){m(e,t,{resolve:i,reject:o}),x(e,t,n)})).catch(o)}))}},{key:"get",value:function(t){var e=this;return new p((function(n,i){return t=a(t,"get"),e.ready().then((function(){m(e,t,{resolve:n,reject:i}),x(e,t)})).catch(i)}))}},{key:"set",value:function(t,e){var n=this;return new p((function(i,o){if(t=a(t,"set"),null==e)throw new TypeError("There must be a value to set.");return n.ready().then((function(){m(n,t,{resolve:i,reject:o}),x(n,t,e)})).catch(o)}))}},{key:"on",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(!e)throw new TypeError("You must pass a callback function.");if("function"!=typeof e)throw new TypeError("The callback must be a function.");0===y(this,"event:".concat(t)).length&&this.callMethod("addEventListener",t).catch((function(){})),m(this,"event:".concat(t),e)}},{key:"off",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw new TypeError("The callback must be a function.");g(this,"event:".concat(t),e)&&this.callMethod("removeEventListener",t).catch((function(t){}))}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=I.get(this)||new p((function(t,e){e(new Error("Unknown player. Probably unloaded."))}));return p.resolve(t)}},{key:"addCuePoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:e})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new p((function(e){I.delete(t),S.delete(t.element),t._originalElement&&(S.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&"IFRAME"===t.element.nodeName&&t.element.parentNode&&t.element.parentNode.removeChild(t.element),e()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}}])&&o(e.prototype,n),r&&o(e,r),t}();r||(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(t){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(t))};e.forEach((function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var e=E(t);_(l(e),e,t).then((function(e){return k(e,t)})).catch(n)}catch(t){n(t)}}))}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(e){if(c(e.origin)&&e.data&&"spacechange"===e.data.event)for(var n=t.querySelectorAll("iframe"),i=0;i<n.length;i++)if(n[i].contentWindow===e.source){n[i].parentElement.style.paddingBottom="".concat(e.data.data[0].bottom,"px");break}};window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent&&window.attachEvent("onmessage",e)}}()),e.a=M}).call(this,n(0),n(2).setImmediate)},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(3),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,o,r,a,s,u=1,c={},l=!1,d=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){p(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(a+e,"*")}):t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){r.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(o=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):i=function(t){setTimeout(p,0,t)},f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return c[u]=o,i(u),u++},f.clearImmediate=h}function h(t){delete c[t]}function p(t){if(l)setTimeout(p,0,t);else{var e=c[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{h(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(0),n(4))},function(t,e){var n,i,o=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(t){n=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var u,c=[],l=!1,d=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&h())}function h(){if(!l){var t=s(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++d<e;)u&&u[d].run();d=-1,e=c.length}u=null,l=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";function i(t,e){Object.keys(t).some((function(n,i){return e(t[n],n,i)}))}n.r(e);var o=function(){function t(t,e){this.Splide=t,this.Components=e,this.players=[]}var e=t.prototype;return e.createPlayers=function(t,e){var n=this;this.Components.Elements.getSlides(!0).forEach((function(o){n.Components.Grid&&i(o.slide.querySelectorAll("."+n.Components.Grid.colClass),(function(i){n.createPlayer(i,t,e)})),n.createPlayer(o.slide,t,e)}))},e.createPlayer=function(t,e,n){t.getAttribute(n)&&this.players.push(new e(this.Splide,this.Components,t))},e.destroy=function(){this.players.forEach((function(t){t.destroy()}))},t}(),r=function(t,e){function n(t){return document.createElement(t)}function i(t){var e=t.parentElement;e&&e.removeChild(t)}return{init:function(){this.initElements(),this.toggleWrapper(!1),this.togglePlayButton(!1)},initElements:function(){var i=function(e){return n=e,i=t.classes.container.split(" ")[0]||"",Object.keys(n.children).map((function(t){return n.children[t]})).filter((function(t){return t.classList.contains(i)}))[0]||null;var n,i}(e);this.parent=i||e,this.className=t.classes[i?"container":"slide"].split(" ")[0]+"--has-video",this.parent.classList.add(this.className),this.wrapper=n("div"),this.iframe=n("div"),this.playButton=n("button"),this.wrapper.classList.add("splide__video"),this.playButton.classList.add("splide__video__play"),this.wrapper.appendChild(this.iframe),this.parent.appendChild(this.wrapper),this.parent.appendChild(this.playButton)},destroy:function(){this.parent.classList.remove(this.className),i(this.wrapper),i(this.playButton)},togglePlayButton:function(t){this.playButton.style.display=t?"flex":"none"},toggleWrapper:function(t){this.wrapper.style.display=t?"block":"none"},hide:function(){this.togglePlayButton(!1),this.toggleWrapper(!0)},show:function(){this.togglePlayButton(!0),this.toggleWrapper(!1)}}},a=function(t){var e=t;return{set:function(t){e=t},is:function(){for(var t=0;t<arguments.length;t++)if((t<0||arguments.length<=t?void 0:arguments[t])===e)return!0;return!1}}},s=function(){function t(t,e,n){this.Splide=t,this.Components=e,this.slide=n,this.player=null,this.elements=null,this.state=new a(1),this.videoId=this.findVideoId(),this.videoId&&(this.init(),this.bind(),this.handleClick())}var e=t.prototype;return e.init=function(){this.elements=new r(this.Splide,this.slide),this.elements.init(),this.toggleRootClass(!0),this.elements.togglePlayButton(!this.Splide.options.video.disableOverlayUI),this.isAutoplay()&&this.isActive()&&this.play()},e.setup=function(){var t=this;this.state.set(2),this.player=this.createPlayer((function(){var e=t.state.is(3);t.state.set(4),e&&t.play()}))},e.bind=function(){var t=this;this.Splide.on("active",(function(e){t.isAutoplay()&&(e.slide===t.slide?t.play():t.pause())})).on("move",(function(){t.pause()})).on("video:click",(function(e){e.slide!==t.slide&&t.pause()}))},e.handleClick=function(){var t=this;this.slide.addEventListener("mousedown",this.onMouseDown.bind(this)),this.slide.addEventListener("touchstart",this.onMouseDown.bind(this)),this.slide.addEventListener("mouseup",this.onMouseUp.bind(this)),this.slide.addEventListener("touchend",this.onMouseUp.bind(this)),this.Splide.on("drag",(function(){t.shouldHandleClick=!1}))},e.createPlayer=function(t){return void 0===t&&(t=null),null},e.play=function(){var t=this;this.state.is(1)&&this.setup(),this.state.is(7,3)||(setTimeout((function(){t.elements.hide()})),this.state.is(2)?this.state.set(3):(this.state.is(6)||this.playVideo(),this.state.set(5)))},e.pause=function(){this.Splide.options.video.disableOverlayUI||this.elements.show(),this.state.is(3)?this.state.set(2):this.state.is(5)?this.state.set(6):this.state.is(7)&&(this.state.set(4),this.pauseVideo())},e.playVideo=function(){this.player.play()},e.pauseVideo=function(){this.player.pause()},e.isActive=function(){return this.slide.classList.contains("is-active")},e.isAutoplay=function(){return this.Splide.options.video.autoplay},e.findVideoId=function(){return""},e.toggleRootClass=function(t){this.Splide.root.classList[t?"add":"remove"](this.Splide.classes.root.split(" ")[0]+"--has-video")},e.onMouseDown=function(){this.shouldHandleClick=!0},e.onMouseUp=function(){this.shouldHandleClick&&(this.Splide.emit("video:click",this),this.play())},e.onPlay=function(){this.state.is(6)?(this.state.set(7),this.pause()):(this.Splide.emit("video:play",this),this.state.set(7))},e.onPause=function(){this.Splide.emit("video:pause",this),this.state.set(4)},e.onEnded=function(){this.Splide.emit("video:ended",this),this.state.set(4)},e.destroy=function(){this.player&&(this.player.destroy(),this.player=null),this.toggleRootClass(!1),this.elements.destroy(),this.slide.removeEventListener("mousedown",this.onMouseDown.bind(this)),this.slide.removeEventListener("touchstart",this.onMouseDown.bind(this)),this.slide.removeEventListener("mouseup",this.onMouseUp.bind(this)),this.slide.removeEventListener("touchend",this.onMouseUp.bind(this))},t}(),u=["autoplay","autoPictureInPicture","controls","controlslist","crossorigin","currentTime","disablePictureInPicture","disableRemotePlayback","height","intrinsicsize","loop","muted","playsinline","poster","preload","width"],c=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=o.prototype;return r.createPlayer=function(t){void 0===t&&(t=null);var e=this.Splide.options.video,n=e.playerOptions.htmlVideo,o=void 0===n?{}:n,r=document.createElement("video");return r.src=this.videoId,this.elements.iframe.appendChild(r),r.controls=!e.hideControls,r.loop=e.loop,r.volume=Math.max(Math.min(e.volume,1),0),r.muted=e.mute,i(o,(function(t,e){u.indexOf(e)>-1&&(r[e]=t)})),r.addEventListener("play",this.onPlay.bind(this)),r.addEventListener("pause",this.onPause.bind(this)),r.addEventListener("ended",this.onEnded.bind(this)),t&&r.addEventListener("loadeddata",t),r},r.findVideoId=function(){return this.slide.getAttribute("data-splide-html-video")},r.destroy=function(){this.player&&(this.player.pause(),this.player.removeAttribute("src"),this.player.load(),this.elements.iframe.removeChild(this.player),this.player=null),this.elements.destroy()},o}(s),l=function(t){var e,n;function i(e,n){var i;return(i=t.call(this,e,n)||this).createPlayers(c,"data-splide-html-video"),i}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i,i}(o);function d(){return(d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var f=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.createPlayer=function(t){var e=this;void 0===t&&(t=null);var n=this.Splide.options.video,i=n.playerOptions.youtube,o=void 0===i?{}:i;return new YT.Player(this.elements.iframe,{videoId:this.videoId,playerVars:d({controls:n.hideControls?0:1,iv_load_policy:3,loop:n.loop,playlist:n.loop?this.videoId:"",rel:0,autoplay:!1},o),events:{onReady:function(n){e.onPlayerReady(n),t&&t()},onStateChange:this.onPlayerStateChange.bind(this)}})},o.onPlayerReady=function(t){var e=t.target,n=this.Splide.options.video;n.mute&&e.mute(),e.setVolume(Math.max(Math.min(100*n.volume,100),0))},o.onPlayerStateChange=function(t){var e=YT.PlayerState,n=e.PLAYING,i=e.PAUSED,o=e.ENDED;switch(!0){case t.data===n:this.onPlay();break;case t.data===i:this.onPause();break;case t.data===o:this.onEnded()}},o.playVideo=function(){this.player.playVideo()},o.pauseVideo=function(){this.player.pauseVideo()},o.findVideoId=function(){var t=this.slide.getAttribute("data-splide-youtube").match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);return t&&11===t[7].length?t[7]:""},i}(s),h=function(t){var e,n;function i(e,n){var i;return(i=t.call(this,e,n)||this).oldCallback=void 0,i.bindAPICallback(),i.loadAPI(),i}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.loadAPI=function(){var t=window.YT;if(this.shouldLoadAPI()){var e=document.createElement("script"),n=document.getElementsByTagName("script")[0];e.src="https://www.youtube.com/player_api",n.parentNode.insertBefore(e,n)}else t&&t.loaded&&this.onReady()},o.shouldLoadAPI=function(){for(var t=document.getElementsByTagName("script"),e=0;e<t.length;e++)if("https://www.youtube.com/player_api"===t[e].getAttribute("src"))return!1;return!0},o.bindAPICallback=function(){void 0!==window.onYouTubeIframeAPIReady&&(this.oldCallback=window.onYouTubeIframeAPIReady),window.onYouTubeIframeAPIReady=this.onYouTubeIframeAPIReady.bind(this)},o.onYouTubeIframeAPIReady=function(){this.oldCallback&&this.oldCallback(),this.onReady()},o.onReady=function(){this.createPlayers(f,"data-splide-youtube")},i}(o),p=n(1);function v(){return(v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var m=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.createPlayer=function(t){void 0===t&&(t=null);var e=this.Splide.options.video,n=e.playerOptions.vimeo,i=void 0===n?{}:n,o=new p.a(this.elements.iframe,v({id:this.videoId,controls:!e.hideControls,loop:e.loop},i));return o.on("play",this.onPlay.bind(this)),o.on("pause",this.onPause.bind(this)),o.on("ended",this.onEnded.bind(this)),o.setVolume(Math.max(Math.min(e.volume,1),0)),o.setMuted(i.muted||e.mute),t&&o.ready().then(t),o},o.findVideoId=function(){var t=this.slide.getAttribute("data-splide-vimeo").match(/vimeo.com\/(\d+)/);return t&&t[1]?t[1]:""},o.onPlay=function(){this.state.is(6)&&!this.isActive()?(this.player.destroy(),this.elements.show(),this.state.set(1)):(this.Splide.emit("video:play",this),this.state.set(7))},i}(s),y={HtmlVideo:l,YouTube:h,Vimeo:function(t){var e,n;function i(e,n){var i;return(i=t.call(this,e,n)||this).createPlayers(m,"data-splide-vimeo"),i}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i,i}(o)},g={autoplay:!1,disableOverlayUI:!1,hideControls:!1,loop:!1,mute:!1,volume:.2,playerOptions:{}};function w(){return(w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}e.default=function(t,e){var n,o=[];return{mount:function(){var r;"object"!=typeof t.options.video&&(t.options.video={}),t.options.video=w({},g,{},t.options.video),i(y,(function(n){o.push(new n(t,e))})),r=t.root.classList,t.on("video:play",(function(t){n=t.slide,r.add("is-playing")})).on("video:pause video:ended",(function(t){t.slide===n&&(n=null,r.remove("is-playing"))})).on("destroy",(function(){r.remove("is-playing")}))},destroy:function(){o.forEach((function(t){t.destroy()}))}}}}])},t.exports=i()}});