/*! For license information please see cn.js.LICENSE.txt */ (function(){var e={8490:function(e,t,i){var n,a;function r(e){"@babel/helpers - typeof";return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}!function(s,o){"object"==(false?0:r(t))&&"undefined"!="object"?e.exports=o():true?!(n=o,a=typeof n==="function"?n.call(t,i,t,e):n,a!==undefined&&(e.exports=a)):0}(this,(function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i1&&void 0!==arguments[1]?arguments[1]:0;return(0,i["default"])(e)?e:new Promise((function(i){e(),setTimeout(i,t)}))}}(p);var v=o(p),m=["animated","animate__animated"],g=function(){function t(i){e(this,t),this.swiper=i,this.container=function(e){if(e.el)return e.el;if(e.container)return e.container[0];throw new Error("Illegal swiper instance")}(this.swiper),this.animationElements=[].concat(n(d(this.container.querySelectorAll("[data-swiper-animation]"))),n(d(this.container.querySelectorAll("[data-swiper-animation-once]")))),this.activeElements=[],this.animationElements.forEach((function(e){e.animationData={styleCache:e.attributes.style?f+e.style.cssText:f,effect:e.dataset.swiperAnimation||e.dataset.swiperAnimationOnce||"",duration:e.dataset.duration||".5s",delay:e.dataset.delay||".5s",outEffect:e.dataset.swiperOutAnimation||"",outDuration:e.dataset.outDuration||".5s",isRecovery:!0,runOnce:!!e.dataset.swiperAnimationOnce},e.style.cssText=e.animationData.styleCache}))}return i(t,[{key:"animate",value:function e(){var t=this;return Promise.resolve().then((function(){return e=t.activeElements,i=e.map((function(e){return e.animationData.isRecovery?Promise.resolve():e.animationData.outEffect?v((function(){e.style.cssText=e.animationData.styleCache,e.style.visibility="visible",e.style.cssText+=" animation-duration:".concat(e.animationData.outDuration,"; -webkit-animation-duration:").concat(e.animationData.outDuration,";"),e.classList.add(e.animationData.outEffect,"animated")}),500):Promise.resolve()})),Promise.all(i);var e,i})).then((function(){return e=t.activeElements,i=e.map((function(e){return e.animationData.isRecovery||e.animationData.runOnce?Promise.resolve():v((function(){var t;e.style.cssText=e.animationData.styleCache,(t=e.classList).remove.apply(t,n([e.animationData.effect,e.animationData.outEffect].concat(n(m)).filter((function(e){return!!e})))),e.animationData.isRecovery=!0}))})),Promise.all(i);var e,i})).then((function(){return e=t._updateActiveElements(),i=e.map((function(e){return e.animationData?v((function(){var t;e.style.visibility="visible",e.style.cssText+=" animation-duration:".concat(e.animationData.duration,"; -webkit-animation-duration:").concat(e.animationData.duration,"; animation-delay:").concat(e.animationData.delay,"; -webkit-animation-delay:").concat(e.animationData.delay,";"),(t=e.classList).add.apply(t,[e.animationData.effect].concat(n(m))),e.animationData.isRecovery=!1})):Promise.resolve()})),Promise.all(i);var e,i}))}},{key:"_updateActiveElements",value:function e(){return this.activeElements=[].concat(n(d(this.swiper.slides[this.swiper.activeIndex].querySelectorAll("[data-swiper-animation]"))),n(d(this.swiper.slides[this.swiper.activeIndex].querySelectorAll("[data-swiper-animation-once]")))),this.activeElements}}]),t}();return function(){function t(){e(this,t),this.animations=null,s()||function(){if(!r&&!s()){var e=document.createElement("script");e.type="text/javascript",e.src="https://cdn.jsdelivr.net/npm/promise-polyfill@8/dist/polyfill.min.js",document.querySelector("head").appendChild(e),r=!0}}()}return i(t,[{key:"init",value:function e(t){return this.animations||(this.animations=new g(t)),this}},{key:"animate",value:function e(){var t=this;return s()?this.animations.animate():setTimeout((function(){return t.animate()}),500)}}]),t}()}))},4526:function(){(function(e,t,i,n){"use strict";e.console=e.console||{info:function e(t){}};if(!i){return}if(i.fn.fancybox){console.info("fancyBox already initialized");return}var a={closeExisting:false,loop:false,gutter:50,keyboard:true,preventCaptionOverlap:true,arrows:true,infobar:true,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:false,modal:false,image:{preload:false},ajax:{settings:{data:{fancybox:true}}},iframe:{tpl:'',preload:true,css:{},attr:{scrolling:"auto"}},video:{tpl:'",format:"",autoStart:true},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'",spinnerTpl:'
',errorTpl:'

{{ERROR}}

',btnTpl:{download:''+''+"",zoom:'",close:'",arrowLeft:'",arrowRight:'",smallBtn:'"},parentEl:"body",hideScrollbar:true,autoFocus:true,backFocus:true,trapFocus:true,fullScreen:{autoStart:false},touch:{vertical:true,momentum:true},hash:null,media:{},slideShow:{autoStart:false,speed:3e3},thumbs:{autoStart:false,hideOnClose:true,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeClose:i.noop,afterClose:i.noop,onActivate:i.noop,onDeactivate:i.noop,clickContent:function e(t,i){return t.type==="image"?"zoom":false},clickSlide:"close",clickOutside:"close",dblclickContent:false,dblclickSlide:false,dblclickOutside:false,mobile:{preventCaptionOverlap:false,idleTime:false,clickContent:function e(t,i){return t.type==="image"?"toggleControls":false},clickSlide:function e(t,i){return t.type==="image"?"toggleControls":"close"},dblclickContent:function e(t,i){return t.type==="image"?"zoom":false},dblclickSlide:function e(t,i){return t.type==="image"?"zoom":false}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded.
Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden.
Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}};var r=i(e);var s=i(t);var o=0;var l=function e(t){return t&&t.hasOwnProperty&&t instanceof i};var c=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}}();var u=function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)}}();var d=function(){var e=t.createElement("fakeelement"),i;var a={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(i in a){if(e.style[i]!==n){return a[i]}}return"transitionend"}();var f=function e(t){return t&&t.length&&t[0].offsetHeight};var p=function e(t,n){var a=i.extend(true,{},t,n);i.each(n,(function(e,t){if(i.isArray(t)){a[e]=t}}));return a};var h=function e(n){var a,r;if(!n||n.ownerDocument!==t){return false}i(".fancybox-container").css("pointer-events","none");a={x:n.getBoundingClientRect().left+n.offsetWidth/2,y:n.getBoundingClientRect().top+n.offsetHeight/2};r=t.elementFromPoint(a.x,a.y)===n;i(".fancybox-container").css("pointer-events","");return r};var v=function e(t,n,a){var r=this;r.opts=p({index:a},i.fancybox.defaults);if(i.isPlainObject(n)){r.opts=p(r.opts,n)}if(i.fancybox.isMobile){r.opts=p(r.opts,r.opts.mobile)}r.id=r.opts.id||++o;r.currIndex=parseInt(r.opts.index,10)||0;r.prevIndex=null;r.prevPos=null;r.currPos=0;r.firstRun=true;r.group=[];r.slides={};r.addContent(t);if(!r.group.length){return}r.init()};i.extend(v.prototype,{init:function n(){var a=this,r=a.group[a.currIndex],s=r.opts,o,l;if(s.closeExisting){i.fancybox.close(true)}i("body").addClass("fancybox-active");if(!i.fancybox.getInstance()&&s.hideScrollbar!==false&&!i.fancybox.isMobile&&t.body.scrollHeight>e.innerHeight){i("head").append('");i("body").addClass("compensate-for-scrollbar")}l="";i.each(s.buttons,(function(e,t){l+=s.btnTpl[t]||""}));o=i(a.translate(a,s.baseTpl.replace("{{buttons}}",l).replace("{{arrows}}",s.btnTpl.arrowLeft+s.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass(s.baseClass).data("FancyBox",a).appendTo(s.parentEl);a.$refs={container:o};["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach((function(e){a.$refs[e]=o.find(".fancybox-"+e)}));a.trigger("onInit");a.activate();a.jumpTo(a.currIndex)},translate:function e(t,i){var a=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return i.replace(/\{\{(\w+)\}\}/g,(function(e,t){return a[t]===n?e:a[t]}))},addContent:function e(t){var a=this,r=i.makeArray(t),s;i.each(r,(function(e,t){var r={},s={},o,l,c,u,d;if(i.isPlainObject(t)){r=t;s=t.opts||t}else if(i.type(t)==="object"&&i(t).length){o=i(t);s=o.data()||{};s=i.extend(true,{},s,s.options);s.$orig=o;r.src=a.opts.src||s.src||o.attr("href");if(!r.type&&!r.src){r.type="inline";r.src=t}}else{r={type:"html",src:t+""}}r.opts=i.extend(true,{},a.opts,s);if(i.isArray(s.buttons)){r.opts.buttons=s.buttons}if(i.fancybox.isMobile&&r.opts.mobile){r.opts=p(r.opts,r.opts.mobile)}l=r.type||r.opts.type;u=r.src||"";if(!l&&u){if(c=u.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i)){l="video";if(!r.opts.video.format){r.opts.video.format="video/"+(c[1]==="ogv"?"ogg":c[1])}}else if(u.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)){l="image"}else if(u.match(/\.(pdf)((\?|#).*)?$/i)){l="iframe";r=i.extend(true,r,{contentType:"pdf",opts:{iframe:{preload:false}}})}else if(u.charAt(0)==="#"){l="inline"}}if(l){r.type=l}else{a.trigger("objectNeedsType",r)}if(!r.contentType){r.contentType=i.inArray(r.type,["html","inline","ajax"])>-1?"html":r.type}r.index=a.group.length;if(r.opts.smallBtn=="auto"){r.opts.smallBtn=i.inArray(r.type,["html","inline","ajax"])>-1}if(r.opts.toolbar==="auto"){r.opts.toolbar=!r.opts.smallBtn}r.$thumb=r.opts.$thumb||null;if(r.opts.$trigger&&r.index===a.opts.index){r.$thumb=r.opts.$trigger.find("img:first");if(r.$thumb.length){r.opts.$orig=r.opts.$trigger}}if(!(r.$thumb&&r.$thumb.length)&&r.opts.$orig){r.$thumb=r.opts.$orig.find("img:first")}if(r.$thumb&&!r.$thumb.length){r.$thumb=null}r.thumb=r.opts.thumb||(r.$thumb?r.$thumb[0].src:null);if(i.type(r.opts.caption)==="function"){r.opts.caption=r.opts.caption.apply(t,[a,r])}if(i.type(a.opts.caption)==="function"){r.opts.caption=a.opts.caption.apply(t,[a,r])}if(!(r.opts.caption instanceof i)){r.opts.caption=r.opts.caption===n?"":r.opts.caption+""}if(r.type==="ajax"){d=u.split(/\s+/,2);if(d.length>1){r.src=d.shift();r.opts.filter=d.shift()}}if(r.opts.modal){r.opts=i.extend(true,r.opts,{trapFocus:true,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:false,clickSlide:false,clickOutside:false,dblclickContent:false,dblclickSlide:false,dblclickOutside:false})}a.group.push(r)}));if(Object.keys(a.slides).length){a.updateControls();s=a.Thumbs;if(s&&s.isActive){s.create();s.focus()}}},addEvents:function t(){var n=this;n.removeEvents();n.$refs.container.on("click.fb-close","[data-fancybox-close]",(function(e){e.stopPropagation();e.preventDefault();n.close(e)})).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",(function(e){e.stopPropagation();e.preventDefault();n.previous()})).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",(function(e){e.stopPropagation();e.preventDefault();n.next()})).on("click.fb","[data-fancybox-zoom]",(function(e){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}));r.on("orientationchange.fb resize.fb",(function(e){if(e&&e.originalEvent&&e.originalEvent.type==="resize"){if(n.requestId){u(n.requestId)}n.requestId=c((function(){n.update(e)}))}else{if(n.current&&n.current.type==="iframe"){n.$refs.stage.hide()}setTimeout((function(){n.$refs.stage.show();n.update(e)}),i.fancybox.isMobile?600:250)}}));s.on("keydown.fb",(function(e){var t=i.fancybox?i.fancybox.getInstance():null,a=t.current,r=e.keyCode||e.which;if(r==9){if(a.opts.trapFocus){n.focus(e)}return}if(!a.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||i(e.target).is("input,textarea,video,audio,select")){return}if(r===8||r===27){e.preventDefault();n.close(e);return}if(r===37||r===38){e.preventDefault();n.previous();return}if(r===39||r===40){e.preventDefault();n.next();return}n.trigger("afterKeydown",e,r)}));if(n.group[n.currIndex].opts.idleTime){n.idleSecondsCounter=0;s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",(function(e){n.idleSecondsCounter=0;if(n.isIdle){n.showControls()}n.isIdle=false}));n.idleInterval=e.setInterval((function(){n.idleSecondsCounter++;if(n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging){n.isIdle=true;n.idleSecondsCounter=0;n.hideControls()}}),1e3)}},removeEvents:function t(){var i=this;r.off("orientationchange.fb resize.fb");s.off("keydown.fb .fb-idle");this.$refs.container.off(".fb-close .fb-prev .fb-next");if(i.idleInterval){e.clearInterval(i.idleInterval);i.idleInterval=null}},previous:function e(t){return this.jumpTo(this.currPos-1,t)},next:function e(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function e(t,a){var r=this,s=r.group.length,o,l,c,u,d,p,h,v,m;if(r.isDragging||r.isClosing||r.isAnimating&&r.firstRun){return}t=parseInt(t,10);c=r.current?r.current.opts.loop:r.opts.loop;if(!c&&(t<0||t>=s)){return false}o=r.firstRun=!Object.keys(r.slides).length;d=r.current;r.prevIndex=r.currIndex;r.prevPos=r.currPos;u=r.createSlide(t);if(s>1){if(c||u.index0){r.createSlide(t-1)}}r.current=u;r.currIndex=u.index;r.currPos=u.pos;r.trigger("beforeShow",o);r.updateControls();u.forcedDuration=n;if(i.isNumeric(a)){u.forcedDuration=a}else{a=u.opts[o?"animationDuration":"transitionDuration"]}a=parseInt(a,10);l=r.isMoved(u);u.$slide.addClass("fancybox-slide--current");if(o){if(u.opts.animationEffect&&a){r.$refs.container.css("transition-duration",a+"ms")}r.$refs.container.addClass("fancybox-is-open").trigger("focus");r.loadSlide(u);r.preload("image");return}p=i.fancybox.getTranslate(d.$slide);h=i.fancybox.getTranslate(r.$refs.stage);i.each(r.slides,(function(e,t){i.fancybox.stop(t.$slide,true)}));if(d.pos!==u.pos){d.isComplete=false}d.$slide.removeClass("fancybox-slide--complete fancybox-slide--current");if(l){m=p.left-(d.pos*p.width+d.pos*d.opts.gutter);i.each(r.slides,(function(e,t){t.$slide.removeClass("fancybox-animated").removeClass((function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}));var n=t.pos*p.width+t.pos*t.opts.gutter;i.fancybox.setTranslate(t.$slide,{top:0,left:n-h.left+m});if(t.pos!==u.pos){t.$slide.addClass("fancybox-slide--"+(t.pos>u.pos?"next":"previous"))}f(t.$slide);i.fancybox.animate(t.$slide,{top:0,left:(t.pos-u.pos)*p.width+(t.pos-u.pos)*t.opts.gutter},a,(function(){t.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous");if(t.pos===r.currPos){r.complete()}}))}))}else if(a&&u.opts.transitionEffect){v="fancybox-animated fancybox-fx-"+u.opts.transitionEffect;d.$slide.addClass("fancybox-slide--"+(d.pos>u.pos?"next":"previous"));i.fancybox.animate(d.$slide,v,a,(function(){d.$slide.removeClass(v).removeClass("fancybox-slide--next fancybox-slide--previous")}),false)}if(u.isLoaded){r.revealContent(u)}else{r.loadSlide(u)}r.preload("image")},createSlide:function e(t){var n=this,a,r;r=t%n.group.length;r=r<0?n.group.length+r:r;if(!n.slides[t]&&n.group[r]){a=i('
').appendTo(n.$refs.stage);n.slides[t]=i.extend(true,{},n.group[r],{pos:t,$slide:a,isLoaded:false});n.updateSlide(n.slides[t])}return n.slides[t]},scaleToActual:function e(t,a,r){var s=this,o=s.current,l=o.$content,c=i.fancybox.getTranslate(o.$slide).width,u=i.fancybox.getTranslate(o.$slide).height,d=o.width,f=o.height,p,h,v,m,g;if(s.isAnimating||s.isMoved()||!l||!(o.type=="image"&&o.isLoaded&&!o.hasError)){return}s.isAnimating=true;i.fancybox.stop(l);t=t===n?c*.5:t;a=a===n?u*.5:a;p=i.fancybox.getTranslate(l);p.top-=i.fancybox.getTranslate(o.$slide).top;p.left-=i.fancybox.getTranslate(o.$slide).left;m=d/p.width;g=f/p.height;h=c*.5-d*.5;v=u*.5-f*.5;if(d>c){h=p.left*m-(t*m-t);if(h>0){h=0}if(hu){v=p.top*g-(a*g-a);if(v>0){v=0}if(vl-.5){s=l}if(o>c-.5){o=c}if(t.type==="image"){f.top=Math.floor((c-o)*.5)+parseFloat(r.css("paddingTop"));f.left=Math.floor((l-s)*.5)+parseFloat(r.css("paddingLeft"))}else if(t.contentType==="video"){d=t.opts.width&&t.opts.height?s/o:t.opts.ratio||16/9;if(o>s/d){o=s/d}else if(s>o*d){s=o*d}}f.width=s;f.height=o;return f},update:function e(t){var n=this;i.each(n.slides,(function(e,i){n.updateSlide(i,t)}))},updateSlide:function e(t,n){var a=this,r=t&&t.$content,s=t.width||t.opts.width,o=t.height||t.opts.height,l=t.$slide;a.adjustCaption(t);if(r&&(s||o||t.contentType==="video")&&!t.hasError){i.fancybox.stop(r);i.fancybox.setTranslate(r,a.getFitPos(t));if(t.pos===a.currPos){a.isAnimating=false;a.updateCursor()}}a.adjustLayout(t);if(l.length){l.trigger("refresh");if(t.pos===a.currPos){a.$refs.toolbar.add(a.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",l.get(0).scrollHeight>l.get(0).clientHeight)}}a.trigger("onUpdate",t,n)},centerSlide:function e(t){var a=this,r=a.current,s=r.$slide;if(a.isClosing||!r){return}s.siblings().css({transform:"",opacity:""});s.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next");i.fancybox.animate(s,{top:0,left:0,opacity:1},t===n?0:t,(function(){s.css({transform:"",opacity:""});if(!r.isComplete){a.complete()}}),false)},isMoved:function e(t){var n=t||this.current,a,r;if(!n){return false}r=i.fancybox.getTranslate(this.$refs.stage);a=i.fancybox.getTranslate(n.$slide);return!n.$slide.hasClass("fancybox-animated")&&(Math.abs(a.top-r.top)>.5||Math.abs(a.left-r.left)>.5)},updateCursor:function e(t,n){var a=this,r=a.current,s=a.$refs.container,o,l;if(!r||a.isClosing||!a.Guestures){return}s.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan");o=a.canPan(t,n);l=o?true:a.isZoomable();s.toggleClass("fancybox-is-zoomable",l);i("[data-fancybox-zoom]").prop("disabled",!l);if(o){s.addClass("fancybox-can-pan")}else if(l&&(r.opts.clickContent==="zoom"||i.isFunction(r.opts.clickContent)&&r.opts.clickContent(r)=="zoom")){s.addClass("fancybox-can-zoomIn")}else if(r.opts.touch&&(r.opts.touch.vertical||a.group.length>1)&&r.contentType!=="video"){s.addClass("fancybox-can-swipe")}},isZoomable:function e(){var t=this,i=t.current,n;if(i&&!t.isClosing&&i.type==="image"&&!i.hasError){if(!i.isLoaded){return true}n=t.getFitPos(i);if(n&&(i.width>n.width||i.height>n.height)){return true}}return false},isScaledDown:function e(t,a){var r=this,s=false,o=r.current,l=o.$content;if(t!==n&&a!==n){s=t1.5||Math.abs(o.height-l.height)>1.5}}return l},loadSlide:function e(t){var n=this,a,r,s;if(t.isLoading||t.isLoaded){return}t.isLoading=true;if(n.trigger("beforeLoad",t)===false){t.isLoading=false;return false}a=t.type;r=t.$slide;r.off("refresh").trigger("onReset").addClass(t.opts.slideClass);switch(a){case"image":n.setImage(t);break;case"iframe":n.setIframe(t);break;case"html":n.setContent(t,t.src||t.content);break;case"video":n.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":if(i(t.src).length){n.setContent(t,i(t.src))}else{n.setError(t)}break;case"ajax":n.showLoading(t);s=i.ajax(i.extend({},t.opts.ajax.settings,{url:t.src,success:function e(i,a){if(a==="success"){n.setContent(t,i)}},error:function e(i,a){if(i&&a!=="abort"){n.setError(t)}}}));r.one("onReset",(function(){s.abort()}));break;default:n.setError(t);break}return true},setImage:function e(n){var a=this,r;setTimeout((function(){var e=n.$image;if(!a.isClosing&&n.isLoading&&(!e||!e.length||!e[0].complete)&&!n.hasError){a.showLoading(n)}}),50);a.checkSrcset(n);n.$content=i('
').addClass("fancybox-is-hidden").appendTo(n.$slide.addClass("fancybox-slide--image"));if(n.opts.preload!==false&&n.opts.width&&n.opts.height&&n.thumb){n.width=n.opts.width;n.height=n.opts.height;r=t.createElement("img");r.onerror=function(){i(this).remove();n.$ghost=null};r.onload=function(){a.afterLoad(n)};n.$ghost=i(r).addClass("fancybox-image").appendTo(n.$content).attr("src",n.thumb)}a.setBigImage(n)},checkSrcset:function t(i){var n=i.opts.srcset||i.opts.image.srcset,a,r,s,o;if(n){s=e.devicePixelRatio||1;o=e.innerWidth*s;r=n.split(",").map((function(e){var t={};e.trim().split(/\s+/).forEach((function(e,i){var n=parseInt(e.substring(0,e.length-1),10);if(i===0){return t.url=e}if(n){t.value=n;t.postfix=e[e.length-1]}}));return t}));r.sort((function(e,t){return e.value-t.value}));for(var l=0;l=o||c.postfix==="x"&&c.value>=s){a=c;break}}if(!a&&r.length){a=r[r.length-1]}if(a){i.src=a.url;if(i.width&&i.height&&a.postfix=="w"){i.height=i.width/i.height*a.value;i.width=a.value}i.opts.srcset=n}}},setBigImage:function e(n){var a=this,s=t.createElement("img"),o=i(s);n.$image=o.one("error",(function(){a.setError(n)})).one("load",(function(){var e;if(!n.$ghost){a.resolveImageSlideSize(n,this.naturalWidth,this.naturalHeight);a.afterLoad(n)}if(a.isClosing){return}if(n.opts.srcset){e=n.opts.sizes;if(!e||e==="auto"){e=(n.width/n.height>1&&r.width()/r.height()>1?"100":Math.round(n.width/n.height*100))+"vw"}o.attr("sizes",e).attr("srcset",n.opts.srcset)}if(n.$ghost){setTimeout((function(){if(n.$ghost&&!a.isClosing){n.$ghost.hide()}}),Math.min(300,Math.max(1e3,n.height/1600)))}a.hideLoading(n)})).addClass("fancybox-image").attr("src",n.src).appendTo(n.$content);if((s.complete||s.readyState=="complete")&&o.naturalWidth&&o.naturalHeight){o.trigger("load")}else if(s.error){o.trigger("error")}},resolveImageSlideSize:function e(t,i,n){var a=parseInt(t.opts.width,10),r=parseInt(t.opts.height,10);t.width=i;t.height=n;if(a>0){t.width=a;t.height=Math.floor(a*n/i)}if(r>0){t.width=Math.floor(r*i/n);t.height=r}},setIframe:function e(t){var a=this,r=t.opts.iframe,s=t.$slide,o;t.$content=i('
').css(r.css).appendTo(s);s.addClass("fancybox-slide--"+t.contentType);t.$iframe=o=i(r.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(r.attr).appendTo(t.$content);if(r.preload){a.showLoading(t);o.on("load.fb error.fb",(function(e){this.isReady=1;t.$slide.trigger("refresh");a.afterLoad(t)}));s.on("refresh.fb",(function(){var e=t.$content,i=r.css.width,a=r.css.height,l,c;if(o[0].isReady!==1){return}try{l=o.contents();c=l.find("body")}catch(e){}if(c&&c.length&&c.children().length){s.css("overflow","visible");e.css({width:"100%","max-width":"100%",height:"9999px"});if(i===n){i=Math.ceil(Math.max(c[0].clientWidth,c.outerWidth(true)))}e.css("width",i?i:"").css("max-width","");if(a===n){a=Math.ceil(Math.max(c[0].clientHeight,c.outerHeight(true)))}e.css("height",a?a:"");s.css("overflow","auto")}e.removeClass("fancybox-is-hidden")}))}else{a.afterLoad(t)}o.attr("src",t.src);s.one("onReset",(function(){try{i(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(e){}i(this).off("refresh.fb").empty();t.isLoaded=false;t.isRevealed=false}))},setContent:function e(t,n){var a=this;if(a.isClosing){return}a.hideLoading(t);if(t.$content){i.fancybox.stop(t.$content)}t.$slide.empty();if(l(n)&&n.parent().length){if(n.hasClass("fancybox-content")||n.parent().hasClass("fancybox-content")){n.parents(".fancybox-slide").trigger("onReset")}t.$placeholder=i("
").hide().insertAfter(n);n.css("display","inline-block")}else if(!t.hasError){if(i.type(n)==="string"){n=i("
").append(i.trim(n)).contents()}if(t.opts.filter){n=i("
").html(n).find(t.opts.filter)}}t.$slide.one("onReset",(function(){i(this).find("video,audio").trigger("pause");if(t.$placeholder){t.$placeholder.after(n.removeClass("fancybox-content").hide()).remove();t.$placeholder=null}if(t.$smallBtn){t.$smallBtn.remove();t.$smallBtn=null}if(!t.hasError){i(this).empty();t.isLoaded=false;t.isRevealed=false}}));i(n).appendTo(t.$slide);if(i(n).is("video,audio")){i(n).addClass("fancybox-video");i(n).wrap("
");t.contentType="video";t.opts.width=t.opts.width||i(n).attr("width");t.opts.height=t.opts.height||i(n).attr("height")}t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first();t.$content.siblings().hide();if(!t.$content.length){t.$content=t.$slide.wrapInner("
").children().first()}t.$content.addClass("fancybox-content");t.$slide.addClass("fancybox-slide--"+t.contentType);a.afterLoad(t)},setError:function e(t){t.hasError=true;t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error");t.contentType="html";this.setContent(t,this.translate(t,t.opts.errorTpl));if(t.pos===this.currPos){this.isAnimating=false}},showLoading:function e(t){var n=this;t=t||n.current;if(t&&!t.$spinner){t.$spinner=i(n.translate(n,n.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast")}},hideLoading:function e(t){var i=this;t=t||i.current;if(t&&t.$spinner){t.$spinner.stop().remove();delete t.$spinner}},afterLoad:function e(t){var n=this;if(n.isClosing){return}t.isLoading=false;t.isLoaded=true;n.trigger("afterLoad",t);n.hideLoading(t);if(t.opts.smallBtn&&(!t.$smallBtn||!t.$smallBtn.length)){t.$smallBtn=i(n.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)}if(t.opts.protect&&t.$content&&!t.hasError){t.$content.on("contextmenu.fb",(function(e){if(e.button==2){e.preventDefault()}return true}));if(t.type==="image"){i('
').appendTo(t.$content)}}n.adjustCaption(t);n.adjustLayout(t);if(t.pos===n.currPos){n.updateCursor()}n.revealContent(t)},adjustCaption:function e(t){var i=this,n=t||i.current,a=n.opts.caption,r=n.opts.preventCaptionOverlap,s=i.$refs.caption,o,l=false;s.toggleClass("fancybox-caption--separate",r);if(r&&a&&a.length){if(n.pos!==i.currPos){o=s.clone().appendTo(s.parent());o.children().eq(0).empty().html(a);l=o.outerHeight(true);o.empty().remove()}else if(i.$caption){l=i.$caption.outerHeight(true)}n.$slide.css("padding-bottom",l||"")}},adjustLayout:function e(t){var i=this,n=t||i.current,a,r,s,o;if(n.isLoaded&&n.opts.disableLayoutFix!==true){n.$content.css("margin-bottom","");if(n.$content.outerHeight()>n.$slide.height()+.5){s=n.$slide[0].style["padding-bottom"];o=n.$slide.css("padding-bottom");if(parseFloat(o)>0){a=n.$slide[0].scrollHeight;n.$slide.css("padding-bottom",0);if(Math.abs(a-n.$slide[0].scrollHeight)<1){r=o}n.$slide.css("padding-bottom",s)}}n.$content.css("margin-bottom",r)}},revealContent:function e(t){var a=this,r=t.$slide,s=false,o=false,l=a.isMoved(t),c=t.isRevealed,u,d,p,h;t.isRevealed=true;u=t.opts[a.firstRun?"animationEffect":"transitionEffect"];p=t.opts[a.firstRun?"animationDuration":"transitionDuration"];p=parseInt(t.forcedDuration===n?p:t.forcedDuration,10);if(l||t.pos!==a.currPos||!p){u=false}if(u==="zoom"){if(t.pos===a.currPos&&p&&t.type==="image"&&!t.hasError&&(o=a.getThumbPos(t))){s=a.getFitPos(t)}else{u="fade"}}if(u==="zoom"){a.isAnimating=true;s.scaleX=s.width/o.width;s.scaleY=s.height/o.height;h=t.opts.zoomOpacity;if(h=="auto"){h=Math.abs(t.width/t.height-o.width/o.height)>.1}if(h){o.opacity=.1;s.opacity=1}i.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),o);f(t.$content);i.fancybox.animate(t.$content,s,p,(function(){a.isAnimating=false;a.complete()}));return}a.updateSlide(t);if(!u){t.$content.removeClass("fancybox-is-hidden");if(!c&&l&&t.type==="image"&&!t.hasError){t.$content.hide().fadeIn("fast")}if(t.pos===a.currPos){a.complete()}return}i.fancybox.stop(r);d="fancybox-slide--"+(t.pos>=a.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+u;r.addClass(d).removeClass("fancybox-slide--current");t.$content.removeClass("fancybox-is-hidden");f(r);if(t.type!=="image"){t.$content.hide().show(0)}i.fancybox.animate(r,"fancybox-slide--current",p,(function(){r.removeClass(d).css({transform:"",opacity:""});if(t.pos===a.currPos){a.complete()}}),true)},getThumbPos:function e(t){var n=false,a=t.$thumb,r,s,o,l,c;if(!a||!h(a[0])){return false}r=i.fancybox.getTranslate(a);s=parseFloat(a.css("border-top-width")||0);o=parseFloat(a.css("border-right-width")||0);l=parseFloat(a.css("border-bottom-width")||0);c=parseFloat(a.css("border-left-width")||0);n={top:r.top+s,left:r.left+c,width:r.width-o-c,height:r.height-s-l,scaleX:1,scaleY:1};return r.width>0&&r.height>0?n:false},complete:function e(){var t=this,n=t.current,a={},r;if(t.isMoved()||!n.isLoaded){return}if(!n.isComplete){n.isComplete=true;n.$slide.siblings().trigger("onReset");t.preload("inline");f(n.$slide);n.$slide.addClass("fancybox-slide--complete");i.each(t.slides,(function(e,n){if(n.pos>=t.currPos-1&&n.pos<=t.currPos+1){a[n.pos]=n}else if(n){i.fancybox.stop(n.$slide);n.$slide.off().remove()}}));t.slides=a}t.isAnimating=false;t.updateCursor();t.trigger("afterShow");if(!!n.opts.video.autoStart){n.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",(function(){if(Document.exitFullscreen){Document.exitFullscreen()}else if(this.webkitExitFullscreen){this.webkitExitFullscreen()}t.next()}))}if(n.opts.autoFocus&&n.contentType==="html"){r=n.$content.find("input[autofocus]:enabled:visible:first");if(r.length){r.trigger("focus")}else{t.focus(null,true)}}n.$slide.scrollTop(0).scrollLeft(0)},preload:function e(t){var i=this,n,a;if(i.group.length<2){return}a=i.slides[i.currPos+1];n=i.slides[i.currPos-1];if(n&&n.type===t){i.loadSlide(n)}if(a&&a.type===t){i.loadSlide(a)}},focus:function e(n,a){var r=this,s=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(","),o,l;if(r.isClosing){return}if(n||!r.current||!r.current.isComplete){o=r.$refs.container.find("*:visible")}else{o=r.current.$slide.find("*:visible"+(a?":not(.fancybox-close-small)":""))}o=o.filter(s).filter((function(){return i(this).css("visibility")!=="hidden"&&!i(this).hasClass("disabled")}));if(o.length){l=o.index(t.activeElement);if(n&&n.shiftKey){if(l<0||l==0){n.preventDefault();o.eq(o.length-1).trigger("focus")}}else{if(l<0||l==o.length-1){if(n){n.preventDefault()}o.eq(0).trigger("focus")}}}else{r.$refs.container.trigger("focus")}},activate:function e(){var t=this;i(".fancybox-container").each((function(){var e=i(this).data("FancyBox");if(e&&e.id!==t.id&&!e.isClosing){e.trigger("onDeactivate");e.removeEvents();e.isVisible=false}}));t.isVisible=true;if(t.current||t.isIdle){t.update();t.updateControls()}t.trigger("onActivate");t.addEvents()},close:function e(t,n){var a=this,r=a.current,s,o,l,u,d,p,h;var v=function e(){a.cleanUp(t)};if(a.isClosing){return false}a.isClosing=true;if(a.trigger("beforeClose",t)===false){a.isClosing=false;c((function(){a.update()}));return false}a.removeEvents();l=r.$content;s=r.opts.animationEffect;o=i.isNumeric(n)?n:s?r.opts.animationDuration:0;r.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated");if(t!==true){i.fancybox.stop(r.$slide)}else{s=false}r.$slide.siblings().trigger("onReset").remove();if(o){a.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",o+"ms")}a.hideLoading(r);a.hideControls(true);a.updateCursor();if(s==="zoom"&&!(l&&o&&r.type==="image"&&!a.isMoved()&&!r.hasError&&(h=a.getThumbPos(r)))){s="fade"}if(s==="zoom"){i.fancybox.stop(l);u=i.fancybox.getTranslate(l);p={top:u.top,left:u.left,scaleX:u.width/h.width,scaleY:u.height/h.height,width:h.width,height:h.height};d=r.opts.zoomOpacity;if(d=="auto"){d=Math.abs(r.width/r.height-h.width/h.height)>.1}if(d){h.opacity=0}i.fancybox.setTranslate(l,p);f(l);i.fancybox.animate(l,h,o,v);return true}if(s&&o){i.fancybox.animate(r.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+s,o,v)}else{if(t===true){setTimeout(v,o)}else{v()}}return true},cleanUp:function t(n){var a=this,r,s=a.current.opts.$orig,o,l;a.current.$slide.trigger("onReset");a.$refs.container.empty().remove();a.trigger("afterClose",n);if(!!a.current.opts.backFocus){if(!s||!s.length||!s.is(":visible")){s=a.$trigger}if(s&&s.length){o=e.scrollX;l=e.scrollY;s.trigger("focus");i("html, body").scrollTop(l).scrollLeft(o)}}a.current=null;r=i.fancybox.getInstance();if(r){r.activate()}else{i("body").removeClass("fancybox-active compensate-for-scrollbar");i("#fancybox-style-noscroll").remove()}},trigger:function e(t,n){var a=Array.prototype.slice.call(arguments,1),r=this,o=n&&n.opts?n:r.current,l;if(o){a.unshift(o)}else{o=r}a.unshift(r);if(i.isFunction(o.opts[t])){l=o.opts[t].apply(o,a)}if(l===false){return l}if(t==="afterClose"||!r.$refs){s.trigger(t+".fb",a)}else{r.$refs.container.trigger(t+".fb",a)}},updateControls:function e(){var n=this,a=n.current,r=a.index,s=n.$refs.container,o=n.$refs.caption,l=a.opts.caption;a.$slide.trigger("refresh");if(l&&l.length){n.$caption=o;o.children().eq(0).html(l)}else{n.$caption=null}if(!n.hasHiddenControls&&!n.isIdle){n.showControls()}s.find("[data-fancybox-count]").html(n.group.length);s.find("[data-fancybox-index]").html(r+1);s.find("[data-fancybox-prev]").prop("disabled",!a.opts.loop&&r<=0);s.find("[data-fancybox-next]").prop("disabled",!a.opts.loop&&r>=n.group.length-1);if(a.type==="image"){s.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",a.opts.image.src||a.src).show()}else if(a.opts.toolbar){s.find("[data-fancybox-download],[data-fancybox-zoom]").hide()}if(i(t.activeElement).is(":hidden,[disabled]")){n.$refs.container.trigger("focus")}},hideControls:function e(t){var i=this,n=["infobar","toolbar","nav"];if(t||!i.current.opts.preventCaptionOverlap){n.push("caption")}this.$refs.container.removeClass(n.map((function(e){return"fancybox-show-"+e})).join(" "));this.hasHiddenControls=true},showControls:function e(){var t=this,i=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=false;t.idleSecondsCounter=0;n.toggleClass("fancybox-show-toolbar",!!(i.toolbar&&i.buttons)).toggleClass("fancybox-show-infobar",!!(i.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(i.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!i.modal)},toggleControls:function e(){if(this.hasHiddenControls){this.showControls()}else{this.hideControls()}}});i.fancybox={version:"3.5.7",defaults:a,getInstance:function e(t){var n=i('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),a=Array.prototype.slice.call(arguments,1);if(n instanceof v){if(i.type(t)==="string"){n[t].apply(n,a)}else if(i.type(t)==="function"){t.apply(n,a)}return n}return false},open:function e(t,i,n){return new v(t,i,n)},close:function e(t){var i=this.getInstance();if(i){i.close();if(t===true){this.close(t)}}},destroy:function e(){this.close(true);s.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var i=t.createElement("div");return e.getComputedStyle&&e.getComputedStyle(i)&&e.getComputedStyle(i).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function e(t){var i;if(!t||!t.length){return false}i=t[0].getBoundingClientRect();return{top:i.top||0,left:i.left||0,width:i.width,height:i.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function e(t,i){var a="",r={};if(!t||!i){return}if(i.left!==n||i.top!==n){a=(i.left===n?t.position().left:i.left)+"px, "+(i.top===n?t.position().top:i.top)+"px";if(this.use3d){a="translate3d("+a+", 0px)"}else{a="translate("+a+")"}}if(i.scaleX!==n&&i.scaleY!==n){a+=" scale("+i.scaleX+", "+i.scaleY+")"}else if(i.scaleX!==n){a+=" scaleX("+i.scaleX+")"}if(a.length){r.transform=a}if(i.opacity!==n){r.opacity=i.opacity}if(i.width!==n){r.width=i.width}if(i.height!==n){r.height=i.height}return t.css(r)},animate:function e(t,a,r,s,o){var l=this,c;if(i.isFunction(r)){s=r;r=null}l.stop(t);c=l.getTranslate(t);t.on(d,(function(e){if(e&&e.originalEvent&&(!t.is(e.originalEvent.target)||e.originalEvent.propertyName=="z-index")){return}l.stop(t);if(i.isNumeric(r)){t.css("transition-duration","")}if(i.isPlainObject(a)){if(a.scaleX!==n&&a.scaleY!==n){l.setTranslate(t,{top:a.top,left:a.left,width:c.width*a.scaleX,height:c.height*a.scaleY,scaleX:1,scaleY:1})}}else if(o!==true){t.removeClass(a)}if(i.isFunction(s)){s(e)}}));if(i.isNumeric(r)){t.css("transition-duration",r+"ms")}if(i.isPlainObject(a)){if(a.scaleX!==n&&a.scaleY!==n){delete a.width;delete a.height;if(t.parent().hasClass("fancybox-slide--image")){t.parent().addClass("fancybox-is-scaling")}}i.fancybox.setTranslate(t,a)}else{t.addClass(a)}t.data("timer",setTimeout((function(){t.trigger(d)}),r+33))},stop:function e(t,i){if(t&&t.length){clearTimeout(t.data("timer"));if(i){t.trigger(d)}t.off(d).css("transition-duration","");t.parent().removeClass("fancybox-is-scaling")}}};function m(e,t){var n=[],a=0,r,s,o;if(e&&e.isDefaultPrevented()){return}e.preventDefault();t=t||{};if(e&&e.data){t=p(e.data.options,t)}r=t.$target||i(e.currentTarget).trigger("blur");o=i.fancybox.getInstance();if(o&&o.$trigger&&o.$trigger.is(r)){return}if(t.selector){n=i(t.selector)}else{s=r.attr("data-fancybox")||"";if(s){n=e.data?e.data.items:[];n=n.length?n.filter('[data-fancybox="'+s+'"]'):i('[data-fancybox="'+s+'"]')}else{n=[r]}}a=i(n).index(r);if(a<0){a=0}o=i.fancybox.open(n,t,a);o.$trigger=r}i.fn.fancybox=function(e){var t;e=e||{};t=e.selector||false;if(t){i("body").off("click.fb-start",t).on("click.fb-start",t,{options:e},m)}else{this.off("click.fb-start").on("click.fb-start",{items:this,options:e},m)}return this};s.on("click.fb-start","[data-fancybox]",m);s.on("click.fb-start","[data-fancybox-trigger]",(function(e){i('[data-fancybox="'+i(this).attr("data-fancybox-trigger")+'"]').eq(i(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:i(this)})}));(function(){var e=".fancybox-button",t="fancybox-focus",n=null;s.on("mousedown mouseup focus blur",e,(function(a){switch(a.type){case"mousedown":n=i(this);break;case"mouseup":n=null;break;case"focusin":i(e).removeClass(t);if(!i(this).is(n)&&!i(this).is("[disabled]")){i(this).addClass(t)}break;case"focusout":i(e).removeClass(t);break}}))})()})(window,document,jQuery);(function(e){"use strict";var t={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function e(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function e(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};var i=function t(i,n,a){if(!i){return}a=a||"";if(e.type(a)==="object"){a=e.param(a,true)}e.each(n,(function(e,t){i=i.replace("$"+e,t||"")}));if(a.length){i+=(i.indexOf("?")>0?"&":"?")+a}return i};e(document).on("objectNeedsType.fb",(function(n,a,r){var s=r.src||"",o=false,l,c,u,d,f,p,h;l=e.extend(true,{},t,r.opts.media);e.each(l,(function(t,n){u=s.match(n.matcher);if(!u){return}o=n.type;h=t;p={};if(n.paramPlace&&u[n.paramPlace]){f=u[n.paramPlace];if(f[0]=="?"){f=f.substring(1)}f=f.split("&");for(var a=0;a1&&(a.contentSource==="youtube"||a.contentSource==="vimeo")){n.load(a.contentSource)}}})})(jQuery);(function(e,t,i){"use strict";var n=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}}();var a=function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)}}();var r=function t(i){var n=[];i=i.originalEvent||i||e.e;i=i.touches&&i.touches.length?i.touches:i.changedTouches&&i.changedTouches.length?i.changedTouches:[i];for(var a in i){if(i[a].pageX){n.push({x:i[a].pageX,y:i[a].pageY})}else if(i[a].clientX){n.push({x:i[a].clientX,y:i[a].clientY})}}return n};var s=function e(t,i,n){if(!i||!t){return 0}if(n==="x"){return t.x-i.x}else if(n==="y"){return t.y-i.y}return Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2))};var o=function e(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||i.isFunction(t.get(0).onclick)||t.data("selectable")){return true}for(var n=0,a=t[0].attributes,r=a.length;ni.clientHeight,s=(a==="scroll"||a==="auto")&&i.scrollWidth>i.clientWidth;return r||s};var c=function e(t){var i=false;while(true){i=l(t.get(0));if(i){break}t=t.parent();if(!t.length||t.hasClass("fancybox-stage")||t.is("body")){break}}return i};var u=function e(t){var n=this;n.instance=t;n.$bg=t.$refs.bg;n.$stage=t.$refs.stage;n.$container=t.$refs.container;n.destroy();n.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(n,"ontouchstart"))};u.prototype.destroy=function(){var e=this;e.$container.off(".fb.touch");i(t).off(".fb.touch");if(e.requestId){a(e.requestId);e.requestId=null}if(e.tapped){clearTimeout(e.tapped);e.tapped=null}};u.prototype.ontouchstart=function(n){var a=this,l=i(n.target),u=a.instance,d=u.current,f=d.$slide,p=d.$content,h=n.type=="touchstart";if(h){a.$container.off("mousedown.fb.touch")}if(n.originalEvent&&n.originalEvent.button==2){return}if(!f.length||!l.length||o(l)||o(l.parent())){return}if(!l.is("img")&&n.originalEvent.clientX>l[0].clientWidth+l.offset().left){return}if(!d||u.isAnimating||d.$slide.hasClass("fancybox-animated")){n.stopPropagation();n.preventDefault();return}a.realPoints=a.startPoints=r(n);if(!a.startPoints.length){return}if(d.touch){n.stopPropagation()}a.startEvent=n;a.canTap=true;a.$target=l;a.$content=p;a.opts=d.opts.touch;a.isPanning=false;a.isSwiping=false;a.isZooming=false;a.isScrolling=false;a.canPan=u.canPan();a.startTime=(new Date).getTime();a.distanceX=a.distanceY=a.distance=0;a.canvasWidth=Math.round(f[0].clientWidth);a.canvasHeight=Math.round(f[0].clientHeight);a.contentLastPos=null;a.contentStartPos=i.fancybox.getTranslate(a.$content)||{top:0,left:0};a.sliderStartPos=i.fancybox.getTranslate(f);a.stagePos=i.fancybox.getTranslate(u.$refs.stage);a.sliderStartPos.top-=a.stagePos.top;a.sliderStartPos.left-=a.stagePos.left;a.contentStartPos.top-=a.stagePos.top;a.contentStartPos.left-=a.stagePos.left;i(t).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(a,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(a,"ontouchmove"));if(i.fancybox.isMobile){t.addEventListener("scroll",a.onscroll,true)}if(!(a.opts||a.canPan)||!(l.is(a.$stage)||a.$stage.find(l).length)){if(l.is(".fancybox-image")){n.preventDefault()}if(!(i.fancybox.isMobile&&l.parents(".fancybox-caption").length)){return}}a.isScrollable=c(l)||c(l.parent());if(!(i.fancybox.isMobile&&a.isScrollable)){n.preventDefault()}if(a.startPoints.length===1||d.hasError){if(a.canPan){i.fancybox.stop(a.$content);a.isPanning=true}else{a.isSwiping=true}a.$container.addClass("fancybox-is-grabbing")}if(a.startPoints.length===2&&d.type==="image"&&(d.isLoaded||d.$ghost)){a.canTap=false;a.isSwiping=false;a.isPanning=false;a.isZooming=true;i.fancybox.stop(a.$content);a.centerPointStartX=(a.startPoints[0].x+a.startPoints[1].x)*.5-i(e).scrollLeft();a.centerPointStartY=(a.startPoints[0].y+a.startPoints[1].y)*.5-i(e).scrollTop();a.percentageOfImageAtPinchPointX=(a.centerPointStartX-a.contentStartPos.left)/a.contentStartPos.width;a.percentageOfImageAtPinchPointY=(a.centerPointStartY-a.contentStartPos.top)/a.contentStartPos.height;a.startDistanceBetweenFingers=s(a.startPoints[0],a.startPoints[1])}};u.prototype.onscroll=function(e){var i=this;i.isScrolling=true;t.removeEventListener("scroll",i.onscroll,true)};u.prototype.ontouchmove=function(e){var t=this;if(e.originalEvent.buttons!==undefined&&e.originalEvent.buttons===0){t.ontouchend(e);return}if(t.isScrolling){t.canTap=false;return}t.newPoints=r(e);if(!(t.opts||t.canPan)||!t.newPoints.length||!t.newPoints.length){return}if(!(t.isSwiping&&t.isSwiping===true)){e.preventDefault()}t.distanceX=s(t.newPoints[0],t.startPoints[0],"x");t.distanceY=s(t.newPoints[0],t.startPoints[0],"y");t.distance=s(t.newPoints[0],t.startPoints[0]);if(t.distance>0){if(t.isSwiping){t.onSwipe(e)}else if(t.isPanning){t.onPan()}else if(t.isZooming){t.onZoom()}}};u.prototype.onSwipe=function(t){var r=this,s=r.instance,o=r.isSwiping,l=r.sliderStartPos.left||0,c;if(o===true){if(Math.abs(r.distance)>10){r.canTap=false;if(s.group.length<2&&r.opts.vertical){r.isSwiping="y"}else if(s.isDragging||r.opts.vertical===false||r.opts.vertical==="auto"&&i(e).width()>800){r.isSwiping="x"}else{c=Math.abs(Math.atan2(r.distanceY,r.distanceX)*180/Math.PI);r.isSwiping=c>45&&c<135?"y":"x"}if(r.isSwiping==="y"&&i.fancybox.isMobile&&r.isScrollable){r.isScrolling=true;return}s.isDragging=r.isSwiping;r.startPoints=r.newPoints;i.each(s.slides,(function(e,t){var n,a;i.fancybox.stop(t.$slide);n=i.fancybox.getTranslate(t.$slide);a=i.fancybox.getTranslate(s.$refs.stage);t.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass((function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}));if(t.pos===s.current.pos){r.sliderStartPos.top=n.top-a.top;r.sliderStartPos.left=n.left-a.left}i.fancybox.setTranslate(t.$slide,{top:n.top-a.top,left:n.left-a.left})}));if(s.SlideShow&&s.SlideShow.isActive){s.SlideShow.stop()}}return}if(o=="x"){if(r.distanceX>0&&(r.instance.group.length<2||r.instance.current.index===0&&!r.instance.current.opts.loop)){l=l+Math.pow(r.distanceX,.8)}else if(r.distanceX<0&&(r.instance.group.length<2||r.instance.current.index===r.instance.group.length-1&&!r.instance.current.opts.loop)){l=l-Math.pow(-r.distanceX,.8)}else{l=l+r.distanceX}}r.sliderLastPos={top:o=="x"?0:r.sliderStartPos.top+r.distanceY,left:l};if(r.requestId){a(r.requestId);r.requestId=null}r.requestId=n((function(){if(r.sliderLastPos){i.each(r.instance.slides,(function(e,t){var n=t.pos-r.instance.currPos;i.fancybox.setTranslate(t.$slide,{top:r.sliderLastPos.top,left:r.sliderLastPos.left+n*r.canvasWidth+n*t.opts.gutter})}));r.$container.addClass("fancybox-is-sliding")}}))};u.prototype.onPan=function(){var e=this;if(s(e.newPoints[0],e.realPoints[0])<(i.fancybox.isMobile?10:5)){e.startPoints=e.newPoints;return}e.canTap=false;e.contentLastPos=e.limitMovement();if(e.requestId){a(e.requestId)}e.requestId=n((function(){i.fancybox.setTranslate(e.$content,e.contentLastPos)}))};u.prototype.limitMovement=function(){var e=this;var t=e.canvasWidth;var i=e.canvasHeight;var n=e.distanceX;var a=e.distanceY;var r=e.contentStartPos;var s=r.left;var o=r.top;var l=r.width;var c=r.height;var u,d,f,p,h,v;if(l>t){h=s+n}else{h=s}v=o+a;u=Math.max(0,t*.5-l*.5);d=Math.max(0,i*.5-c*.5);f=Math.min(t-l,t*.5-l*.5);p=Math.min(i-c,i*.5-c*.5);if(n>0&&h>u){h=u-1+Math.pow(-u+s+n,.8)||0}if(n<0&&h0&&v>d){v=d-1+Math.pow(-d+o+a,.8)||0}if(a<0&&vr){e=e>0?0:e;e=es){t=t>0?0:t;t=t1&&(n.dMs>130&&s>10||s>50),l=300;n.sliderLastPos=null;if(e=="y"&&!t&&Math.abs(n.distanceY)>50){i.fancybox.animate(n.instance.current.$slide,{top:n.sliderStartPos.top+n.distanceY+n.velocityY*150,opacity:0},200);a=n.instance.close(true,250)}else if(o&&n.distanceX>0){a=n.instance.previous(l)}else if(o&&n.distanceX<0){a=n.instance.next(l)}if(a===false&&(e=="x"||e=="y")){n.instance.centerSlide(200)}n.$container.removeClass("fancybox-is-sliding")};u.prototype.endPanning=function(){var e=this,t,n,a;if(!e.contentLastPos){return}if(e.opts.momentum===false||e.dMs>350){t=e.contentLastPos.left;n=e.contentLastPos.top}else{t=e.contentLastPos.left+e.velocityX*500;n=e.contentLastPos.top+e.velocityY*500}a=e.limitPosition(t,n,e.contentStartPos.width,e.contentStartPos.height);a.width=e.contentStartPos.width;a.height=e.contentStartPos.height;i.fancybox.animate(e.$content,a,366)};u.prototype.endZooming=function(){var e=this;var t=e.instance.current;var n,a,r,s;var o=e.newWidth;var l=e.newHeight;if(!e.contentLastPos){return}n=e.contentLastPos.left;a=e.contentLastPos.top;s={top:a,left:n,width:o,height:l,scaleX:1,scaleY:1};i.fancybox.setTranslate(e.$content,s);if(ot.width||l>t.height){e.instance.scaleToActual(e.centerPointStartX,e.centerPointStartY,150)}else{r=e.limitPosition(n,a,o,l);i.fancybox.animate(e.$content,r,150)}};u.prototype.onTap=function(t){var n=this;var a=i(t.target);var s=n.instance;var o=s.current;var l=t&&r(t)||n.startPoints;var c=l[0]?l[0].x-i(e).scrollLeft()-n.stagePos.left:0;var u=l[0]?l[0].y-i(e).scrollTop()-n.stagePos.top:0;var d;var f=function e(a){var r=o.opts[a];if(i.isFunction(r)){r=r.apply(s,[o,t])}if(!r){return}switch(r){case"close":s.close(n.startEvent);break;case"toggleControls":s.toggleControls();break;case"next":s.next();break;case"nextOrClose":if(s.group.length>1){s.next()}else{s.close(n.startEvent)}break;case"zoom":if(o.type=="image"&&(o.isLoaded||o.$ghost)){if(s.canPan()){s.scaleToFit()}else if(s.isScaledDown()){s.scaleToActual(c,u)}else if(s.group.length<2){s.close(n.startEvent)}}break}};if(t.originalEvent&&t.originalEvent.button==2){return}if(!a.is("img")&&c>a[0].clientWidth+a.offset().left){return}if(a.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container")){d="Outside"}else if(a.is(".fancybox-slide")){d="Slide"}else if(s.current.$content&&s.current.$content.find(a).addBack().filter(a).length){d="Content"}else{return}if(n.tapped){clearTimeout(n.tapped);n.tapped=null;if(Math.abs(c-n.tapX)>50||Math.abs(u-n.tapY)>50){return this}f("dblclick"+d)}else{n.tapX=c;n.tapY=u;if(o.opts["dblclick"+d]&&o.opts["dblclick"+d]!==o.opts["click"+d]){n.tapped=setTimeout((function(){n.tapped=null;if(!s.isAnimating){f("click"+d)}}),500)}else{f("click"+d)}}return this};i(t).on("onActivate.fb",(function(e,t){if(t&&!t.Guestures){t.Guestures=new u(t)}})).on("beforeClose.fb",(function(e,t){if(t&&t.Guestures){t.Guestures.destroy()}}))})(window,document,jQuery);(function(e,t){"use strict";t.extend(true,t.fancybox.defaults,{btnTpl:{slideShow:'"},slideShow:{autoStart:false,speed:3e3,progress:true}});var i=function e(t){this.instance=t;this.init()};t.extend(i.prototype,{timer:null,isActive:false,$button:null,init:function e(){var i=this,n=i.instance,a=n.group[n.currIndex].opts.slideShow;i.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",(function(){i.toggle()}));if(n.group.length<2||!a){i.$button.hide()}else if(a.progress){i.$progress=t('
').appendTo(n.$refs.inner)}},set:function e(i){var n=this,a=n.instance,r=a.current;if(r&&(i===true||r.opts.loop||a.currIndex'+''+''+""},fullScreen:{autoStart:false}});t(e).on(i.fullscreenchange,(function(){var e=n.isFullscreen(),i=t.fancybox.getInstance();if(i){if(i.current&&i.current.type==="image"&&i.isAnimating){i.isAnimating=false;i.update(true,true,0);if(!i.isComplete){i.complete()}}i.trigger("onFullscreenChange",e);i.$refs.container.toggleClass("fancybox-is-fullscreen",e);i.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!e).toggleClass("fancybox-button--fsexit",e)}}))}t(e).on({"onInit.fb":function e(t,a){var r;if(!i){a.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();return}if(a&&a.group[a.currIndex].opts.fullScreen){r=a.$refs.container;r.on("click.fb-fullscreen","[data-fancybox-fullscreen]",(function(e){e.stopPropagation();e.preventDefault();n.toggle()}));if(a.opts.fullScreen&&a.opts.fullScreen.autoStart===true){n.request()}a.FullScreen=n}else if(a){a.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()}},"afterKeydown.fb":function e(t,i,n,a,r){if(i&&i.FullScreen&&r===70){a.preventDefault();i.FullScreen.toggle()}},"beforeClose.fb":function e(t,i){if(i&&i.FullScreen&&i.$refs.container.hasClass("fancybox-is-fullscreen")){n.exit()}}})})(document,jQuery);(function(e,t){"use strict";var i="fancybox-thumbs",n=i+"-active";t.fancybox.defaults=t.extend(true,{btnTpl:{thumbs:'"},thumbs:{autoStart:false,hideOnClose:true,parentEl:".fancybox-container",axis:"y"}},t.fancybox.defaults);var a=function e(t){this.init(t)};t.extend(a.prototype,{$button:null,$grid:null,$list:null,isVisible:false,isActive:false,init:function e(t){var i=this,n=t.group,a=0;i.instance=t;i.opts=n[t.currIndex].opts.thumbs;t.Thumbs=i;i.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var r=0,s=n.length;r1){break}}if(a>1&&!!i.opts){i.$button.removeAttr("style").on("click",(function(){i.toggle()}));i.isActive=true}else{i.$button.hide()}},create:function e(){var n=this,a=n.instance,r=n.opts.parentEl,s=[],o;if(!n.$grid){n.$grid=t('
').appendTo(a.$refs.container.find(r).addBack().filter(r));n.$grid.on("click","a",(function(){a.jumpTo(t(this).attr("data-index"))}))}if(!n.$list){n.$list=t('
').appendTo(n.$grid)}t.each(a.group,(function(e,t){o=t.thumb;if(!o&&t.type==="image"){o=t.src}s.push('")}));n.$list[0].innerHTML=s.join("");if(n.opts.axis==="x"){n.$list.width(parseInt(n.$grid.css("padding-right"),10)+a.group.length*n.$list.children().eq(0).outerWidth(true))}},focus:function e(t){var i=this,a=i.$list,r=i.$grid,s,o;if(!i.instance.current){return}s=a.children().removeClass(n).filter('[data-index="'+i.instance.current.index+'"]').addClass(n);o=s.position();if(i.opts.axis==="y"&&(o.top<0||o.top>a.height()-s.outerHeight())){a.stop().animate({scrollTop:a.scrollTop()+o.top},t)}else if(i.opts.axis==="x"&&(o.leftr.scrollLeft()+(r.width()-s.outerWidth()))){a.parent().stop().animate({scrollLeft:o.left},t)}},update:function e(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible);if(t.isVisible){if(!t.$grid){t.create()}t.instance.trigger("onThumbsShow");t.focus(0)}else if(t.$grid){t.instance.trigger("onThumbsHide")}t.instance.update()},hide:function e(){this.isVisible=false;this.update()},show:function e(){this.isVisible=true;this.update()},toggle:function e(){this.isVisible=!this.isVisible;this.update()}});t(e).on({"onInit.fb":function e(t,i){var n;if(i&&!i.Thumbs){n=new a(i);if(n.isActive&&n.opts.autoStart===true){n.show()}}},"beforeShow.fb":function e(t,i,n,a){var r=i&&i.Thumbs;if(r&&r.isVisible){r.focus(a?0:250)}},"afterKeydown.fb":function e(t,i,n,a,r){var s=i&&i.Thumbs;if(s&&s.isActive&&r===71){a.preventDefault();s.toggle()}},"beforeClose.fb":function e(t,i){var n=i&&i.Thumbs;if(n&&n.isVisible&&n.opts.hideOnClose!==false){n.$grid.hide()}}})})(document,jQuery);(function(e,t){"use strict";t.extend(true,t.fancybox.defaults,{btnTpl:{share:'"},share:{url:function e(t,i){return(!t.currentHash&&!(i.type==="inline"||i.type==="html")?i.origSrc||i.src:false)||window.location},tpl:'"}});function i(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,(function(e){return t[e]}))}t(e).on("click","[data-fancybox-share]",(function(){var e=t.fancybox.getInstance(),n=e.current||null,a,r;if(!n){return}if(t.type(n.opts.share.url)==="function"){a=n.opts.share.url.apply(n,[e,n])}r=n.opts.share.tpl.replace(/\{\{media\}\}/g,n.type==="image"?encodeURIComponent(n.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(a)).replace(/\{\{url_raw\}\}/g,i(a)).replace(/\{\{descr\}\}/g,e.$caption?encodeURIComponent(e.$caption.text()):"");t.fancybox.open({src:e.translate(e,r),type:"html",opts:{touch:false,animationEffect:false,afterLoad:function t(i,n){e.$refs.container.one("beforeClose.fb",(function(){i.close(null,0)}));n.$content.find(".fancybox-share__button").click((function(){window.open(this.href,"Share","width=550, height=450");return false}))},mobile:{autoFocus:false}}})}))})(document,jQuery);(function(e,t,i){"use strict";if(!i.escapeSelector){i.escapeSelector=function(e){var t=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;var i=function e(t,i){if(i){if(t==="\0"){return"�"}return t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" "}return"\\"+t};return(e+"").replace(t,i)}}function n(){var t=e.location.hash.substr(1),i=t.split("-"),n=i.length>1&&/^\+?\d+$/.test(i[i.length-1])?parseInt(i.pop(-1),10)||1:1,a=i.join("-");return{hash:t,index:n<1?1:n,gallery:a}}function a(e){if(e.gallery!==""){i("[data-fancybox='"+i.escapeSelector(e.gallery)+"']").eq(e.index-1).focus().trigger("click.fb-start")}}function r(e){var t,i;if(!e){return false}t=e.current?e.current.opts:e.opts;i=t.hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):"");return i===""?false:i}i((function(){if(i.fancybox.defaults.hash===false){return}i(t).on({"onInit.fb":function e(t,i){var a,s;if(i.group[i.currIndex].opts.hash===false){return}a=n();s=r(i);if(s&&a.gallery&&s==a.gallery){i.currIndex=a.index-1}},"beforeShow.fb":function i(n,a,s,o){var l;if(!s||s.opts.hash===false){return}l=r(a);if(!l){return}a.currentHash=l+(a.group.length>1?"-"+(s.index+1):"");if(e.location.hash==="#"+a.currentHash){return}if(o&&!a.origHash){a.origHash=e.location.hash}if(a.hashTimer){clearTimeout(a.hashTimer)}a.hashTimer=setTimeout((function(){if("replaceState"in e.history){e.history[o?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+a.currentHash);if(o){a.hasCreatedHistory=true}}else{e.location.hash=a.currentHash}a.hashTimer=null}),300)},"beforeClose.fb":function i(n,a,r){if(!r||r.opts.hash===false){return}clearTimeout(a.hashTimer);if(a.currentHash&&a.hasCreatedHistory){e.history.back()}else if(a.currentHash){if("replaceState"in e.history){e.history.replaceState({},t.title,e.location.pathname+e.location.search+(a.origHash||""))}else{e.location.hash=a.origHash}}a.currentHash=null}});i(e).on("hashchange.fb",(function(){var e=n(),t=null;i.each(i(".fancybox-container").get().reverse(),(function(e,n){var a=i(n).data("FancyBox");if(a&&a.currentHash){t=a;return false}}));if(t){if(t.currentHash!==e.gallery+"-"+e.index&&!(e.index===1&&t.currentHash==e.gallery)){t.currentHash=null;t.close()}}else if(e.gallery!==""){a(e)}}));setTimeout((function(){if(!i.fancybox.getInstance()){a(n())}}),50)}))})(window,document,jQuery);(function(e,t){"use strict";var i=(new Date).getTime();t(e).on({"onInit.fb":function e(t,n,a){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",(function(e){var t=n.current,a=(new Date).getTime();if(n.group.length<2||t.opts.wheel===false||t.opts.wheel==="auto"&&t.type!=="image"){return}e.preventDefault();e.stopPropagation();if(t.$slide.hasClass("fancybox-animated")){return}e=e.originalEvent||e;if(a-i<250){return}i=a;n[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?"next":"previous"]()}))}})})(document,jQuery)},2372:function(e,t){(function(i){function n(e,t,i){t||(t=100);var n,a;return function(){var r=i||this;var s=+new Date;var o=arguments;if(n&&s=0){i=i.replace(" "+t+" "," ")}e.className=i.replace(/^\s+|\s+$/g,"")}return e}function o(e,t,i){if(e.removeEventListener){return e.removeEventListener(t,i)}else if(e.detachEvent){return e.detachEvent("on"+t,i)}}function l(e,t,i){if(e.addEventListener){return e.addEventListener(t,i,false)}else if(e.attachEvent){return e.attachEvent("on"+t,i)}}function c(){if(typeof window.pageYOffset!=="undefined"){return window.pageYOffset}else{var e=document.body;var t=document.documentElement;t=t.clientHeight?t:e;return t.scrollTop}}function u(e){var t=c();var i=t+window.innerHeight;var n=e.getBoundingClientRect().top+document.documentElement.scrollTop;var a=n+e.offsetHeight;var r=0;if(n<=i+r&&a>=t){return true}return false}function d(e,t){var i=this;if(!(i instanceof d)){return new d(e,t)}i.el=e;i.callback=t.bind(i);i.destroy=function(){};if(!e){return i}var a=false;var f=function e(t){if(a)return false;var n={windowScrollTop:c(),elementOffsetTop:i.el.offsetTop,inViewHeight:window.innerHeight,elementOffsetTopInViewHeight:window.innerHeight-(c()-(i.el.offsetTop-window.innerHeight))};if(u(i.el)){r(i.el,"inview");i.callback.call(i,true,n)}else{s(i.el,"inview");i.callback.call(i,false,n)}};var p=n(f,100);l(window,"scroll",p);i.destroy=function(){a=true;o(window,"scroll",p)};p();return i}if(true){if(true&&e.exports){t=e.exports=d}t.InView=d}else{}})(window)},2792:function(e,t,i){var n,a;function r(e){"@babel/helpers - typeof";return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}!function(s,o){"object"==(false?0:r(t))&&"undefined"!="object"?e.exports=o():true?!(n=o,a=typeof n==="function"?n.call(t,i,t,e):n,a!==undefined&&(e.exports=a)):0}(this,(function(){"use strict";var e="undefined"!=typeof document&&document.documentMode,t={rootMargin:"0px",threshold:0,load:function t(i){if("picture"===i.nodeName.toLowerCase()){var n=i.querySelector("img"),a=!1;null===n&&(n=document.createElement("img"),a=!0),e&&i.getAttribute("data-iesrc")&&(n.src=i.getAttribute("data-iesrc")),i.getAttribute("data-alt")&&(n.alt=i.getAttribute("data-alt")),a&&i.append(n)}if("video"===i.nodeName.toLowerCase()&&!i.getAttribute("data-src")&&i.children){for(var r=i.children,s=void 0,o=0;o<=r.length-1;o++){(s=r[o].getAttribute("data-src"))&&(r[o].src=s)}i.load()}i.getAttribute("data-poster")&&(i.poster=i.getAttribute("data-poster")),i.getAttribute("data-src")&&(i.src=i.getAttribute("data-src")),i.getAttribute("data-srcset")&&i.setAttribute("srcset",i.getAttribute("data-srcset"));var l=",";if(i.getAttribute("data-background-delimiter")&&(l=i.getAttribute("data-background-delimiter")),i.getAttribute("data-background-image"))i.style.backgroundImage="url('"+i.getAttribute("data-background-image").split(l).join("'),url('")+"')";else if(i.getAttribute("data-background-image-set")){var c=i.getAttribute("data-background-image-set").split(l),u=c[0].substr(0,c[0].indexOf(" "))||c[0];u=-1===u.indexOf("url(")?"url("+u+")":u,1===c.length?i.style.backgroundImage=u:i.setAttribute("style",(i.getAttribute("style")||"")+"background-image: "+u+"; background-image: -webkit-image-set("+c+"); background-image: image-set("+c+")")}i.getAttribute("data-toggle-class")&&i.classList.toggle(i.getAttribute("data-toggle-class"))},loaded:function e(){}};function i(e){e.setAttribute("data-loaded",!0)}var n=function e(t){return"true"===t.getAttribute("data-loaded")},a=function e(t){var i=1=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;i[n]=e[n]}}return i}function o(e,t){if(e==null)return{};var i={};var n=Object.keys(e);var a,r;for(r=0;r=0)continue;i[a]=e[a]}return i}function l(e){return d(e)||u(e)||y(e)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d(e){if(Array.isArray(e))return w(e)}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){for(var i=0;ie.length)t=e.length;for(var i=0,n=new Array(t);it){var i=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(i))}return Math.round(e/t)*t}var I=function(){function e(t,i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),P(t)?this.element=t:T(t)&&(this.element=document.querySelector(t)),P(this.element)&&M(this.element.rangeTouch)&&(this.config=o({},c,{},i),this.init())}return function(e,i,n){i&&t(e.prototype,i),n&&t(e,n)}(e,[{key:"init",value:function t(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function t(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function e(t){var i=this,n=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){i.element[n](e,(function(e){return i.set(e)}),!1)}))}},{key:"get",value:function t(i){if(!e.enabled||!$(i))return null;var n,a=i.target,r=i.changedTouches[0],s=parseFloat(a.getAttribute("min"))||0,o=parseFloat(a.getAttribute("max"))||100,l=parseFloat(a.getAttribute("step"))||1,c=a.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return 0>(n=100/c.width*(r.clientX-c.left))?n=0:100n?n-=(100-2*n)*u:501||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function re(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function se(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n0?t.cloneNode(!0):t,a=e.parentNode,r=e.nextSibling;n.appendChild(e),r?a.insertBefore(n,r):a.appendChild(n)}))}function le(e,t){U(e)&&!te(t)&&Object.entries(t).filter((function(e){var t=g(e,2),i=t[1];return!R(i)})).forEach((function(t){var i=g(t,2),n=i[0],a=i[1];return e.setAttribute(n,a)}))}function ce(e,t,i){var n=document.createElement(e);return B(t)&&le(n,t),q(i)&&(n.innerText=i),n}function ue(e,t,i,n){U(t)&&t.appendChild(ce(e,i,n))}function de(e){G(e)||X(e)?Array.from(e).forEach(de):U(e)&&U(e.parentNode)&&e.parentNode.removeChild(e)}function fe(e){if(!U(e))return;var t=e.childNodes.length;for(;t>0;){e.removeChild(e.lastChild),t-=1}}function pe(e,t){return U(t)&&U(t.parentNode)&&U(e)?(t.parentNode.replaceChild(e,t),e):null}function he(e,t){if(!q(e)||te(e))return{};var i={},n=se({},t);return e.split(",").forEach((function(e){var t=e.trim(),a=t.replace(".",""),r=t.replace(/[[\]]/g,"").split("="),s=g(r,1),o=s[0],l=r.length>1?r[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":q(n["class"])?i["class"]="".concat(n["class"]," ").concat(a):i["class"]=a;break;case"#":i.id=t.replace("#","");break;case"[":i[o]=l}})),se(n,i)}function ve(e,t){if(!U(e))return;var i=t;Y(i)||(i=!e.hidden),e.hidden=i}function me(e,t,i){if(G(e))return Array.from(e).map((function(e){return me(e,t,i)}));if(U(e)){var n="toggle";return void 0!==i&&(n=i?"add":"remove"),e.classList[n](t),e.classList.contains(t)}return!1}function ge(e,t){return U(e)&&e.classList.contains(t)}function be(e,t){var i=Element,n=i.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function ye(e){return this.elements.container.querySelectorAll(e)}function we(e){return this.elements.container.querySelector(e)}function xe(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;U(e)&&(e.focus({preventScroll:!0}),t&&me(e,this.config.classNames.tabFocus))}var Te={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Se={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function e(t,i,n){var a=ae.isIPhone&&n&&Se.playsinline,r=Se[t]||"html5"!==i;return{api:r,ui:r&&Se.rangeInput&&("video"!==t||!ae.isIPhone||a)}},pip:!(ae.isIPhone||!W(ce("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||ce("video").disablePictureInPicture)),airplay:W(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function e(t){if(te(t))return!1;var i=t.split("/"),n=g(i,1),a=n[0];var r=t;if(!this.isHTML5||a!==this.type)return!1;Object.keys(Te).includes(r)&&(r+='; codecs="'.concat(Te[t],'"'));try{return Boolean(r&&this.media.canPlayType(r).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var e=document.createElement("input");return e.type="range","range"===e.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==ie,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ke=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function t(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function Ce(e,t,i){var n=this;var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:!1;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!0;var s=arguments.length>5&&arguments[5]!==undefined?arguments[5]:!1;if(!e||!("addEventListener"in e)||te(t)||!W(i))return;var o=t.split(" ");var l=s;ke&&(l={passive:r,capture:s}),o.forEach((function(t){n&&n.eventListeners&&a&&n.eventListeners.push({element:e,type:t,callback:i,options:l}),e[a?"addEventListener":"removeEventListener"](t,i,l)}))}function Ee(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var i=arguments.length>2?arguments[2]:undefined;var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:!0;var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!1;Ce.call(this,e,t,i,!0,n,a)}function Pe(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var i=arguments.length>2?arguments[2]:undefined;var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:!0;var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!1;Ce.call(this,e,t,i,!1,n,a)}function $e(e){var t=this;var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2?arguments[2]:undefined;var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:!0;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!1;var s=function s(){for(var o=arguments.length,l=new Array(o),c=0;c1&&arguments[1]!==undefined?arguments[1]:"";var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(!U(e)||te(t))return;var a=new CustomEvent(t,{bubbles:i,detail:m(m({},n),{},{plyr:this})});e.dispatchEvent(a)}function Ae(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,i=e.type,n=e.callback,a=e.options;t.removeEventListener(i,n,a)})),this.eventListeners=[])}function Ie(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):Ee.call(e,e.elements.container,"ready",t)})).then((function(){}))}function Oe(e){J(e)&&e.then(null,(function(){}))}function Le(e){return X(e)?e.filter((function(t,i){return e.indexOf(t)===i})):e}function ze(e,t){return X(e)&&e.length?e.reduce((function(e,i){return Math.abs(i-t)2&&arguments[2]!==undefined?arguments[2]:.05;var n=e/t,a=ze(Object.keys(Ne),n);return Math.abs(a-n)<=i?Ne[a]:[e,t]}var Be={getSources:function e(){var t=this;if(!this.isHTML5)return[];return Array.from(this.media.querySelectorAll("source")).filter((function(e){var i=e.getAttribute("type");return!!te(i)||Se.mime.call(t,i)}))},getQualityOptions:function e(){return this.config.quality.forced?this.config.quality.options:Be.getSources.call(this).map((function(e){return Number(e.getAttribute("size"))})).filter(Boolean)},setup:function e(){if(!this.isHTML5)return;var t=this;t.options.speed=t.config.speed.options,te(this.config.ratio)||Fe.call(t),Object.defineProperty(t.media,"quality",{get:function e(){var i=Be.getSources.call(t).find((function(e){return e.getAttribute("src")===t.source}));return i&&Number(i.getAttribute("size"))},set:function e(i){if(t.quality!==i){if(t.config.quality.forced&&W(t.config.quality.onChange))t.config.quality.onChange(i);else{var n=Be.getSources.call(t).find((function(e){return Number(e.getAttribute("size"))===i}));if(!n)return;var a=t.media,r=a.currentTime,s=a.paused,o=a.preload,l=a.readyState,c=a.playbackRate;t.media.src=n.getAttribute("src"),("none"!==o||l)&&(t.once("loadedmetadata",(function(){t.speed=c,t.currentTime=r,s||Oe(t.play())})),t.media.load())}Me.call(t,t.media,"qualitychange",!1,{quality:i})}}})},cancelRequests:function e(){this.isHTML5&&(de(Be.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Ve(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n0&&arguments[0]!==undefined?arguments[0]:"";var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString())},Ye=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return t.toString().replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}))};function We(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var t=e.toString();return t=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var t=e.toString();return t=qe(t,"-"," "),t=qe(t,"_"," "),t=Ye(t),qe(t," ","")}(t),t.charAt(0).toLowerCase()+t.slice(1)}function Xe(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}var Ge={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Ue={get:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(te(t)||te(i))return"";var n=re(i.i18n,t);if(te(n))return Object.keys(Ge).includes(t)?Ge[t]:"";var a={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(a).forEach((function(e){var t=g(e,2),i=t[0],a=t[1];n=qe(n,i,a)})),n}};var Ke=function(){function t(i){var n=this;f(this,t);e(this,"get",(function(e){if(!t.supported||!n.enabled)return null;var i=window.localStorage.getItem(n.key);if(te(i))return null;var a=JSON.parse(i);return q(e)&&e.length?a[e]:a})),e(this,"set",(function(e){if(!t.supported||!n.enabled)return;if(!B(e))return;var i=n.get();te(i)&&(i={}),se(i,e);try{window.localStorage.setItem(n.key,JSON.stringify(i))}catch(e){}})),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}h(t,null,[{key:"supported",get:function e(){try{if(!("localStorage"in window))return!1;var t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(e){return!1}}}]);return t}();function Qe(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"text";return new Promise((function(i,n){try{var a=new XMLHttpRequest;if(!("withCredentials"in a))return;a.addEventListener("load",(function(){if("text"===t)try{i(JSON.parse(a.responseText))}catch(e){i(a.responseText)}else i(a.response)})),a.addEventListener("error",(function(){throw new Error(a.status)})),a.open("GET",e,!0),a.responseType=t,a.send()}catch(e){n(e)}}))}function Ze(e,t){if(!q(e))return;var i=q(t);var n=!1;var a=function e(){return null!==document.getElementById(t)},r=function e(t,n){t.innerHTML=n,i&&a()||document.body.insertAdjacentElement("afterbegin",t)};if(!i||!a()){var s=Ke.supported,o=document.createElement("div");if(o.setAttribute("hidden",""),i&&o.setAttribute("id",t),s){var l=window.localStorage.getItem("cache-".concat(t));if(n=null!==l,n){var c=JSON.parse(l);r(o,c.content)}}Qe(e).then((function(e){if(!te(e)){if(s)try{window.localStorage.setItem("cache-".concat(t),JSON.stringify({content:e}))}catch(e){}r(o,e)}}))["catch"]((function(){}))}}var Je=function e(t){return Math.trunc(t/60/60%60,10)};function et(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;if(!V(e))return et(void 0,t,i);var n=function e(t){return"0".concat(t).slice(-2)};var a=Je(e);var r=(s=e,Math.trunc(s/60%60,10));var s;var o=function(e){return Math.trunc(e%60,10)}(e);return a=t||a>0?"".concat(a,":"):"","".concat(i&&e>0?"-":"").concat(a).concat(n(r),":").concat(n(o))}var tt={getIconUrl:function e(){var t=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,n=t.host!==i||ae.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements:function e(){try{return this.elements.controls=we.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:ye.call(this,this.config.selectors.buttons.play),pause:we.call(this,this.config.selectors.buttons.pause),restart:we.call(this,this.config.selectors.buttons.restart),rewind:we.call(this,this.config.selectors.buttons.rewind),fastForward:we.call(this,this.config.selectors.buttons.fastForward),mute:we.call(this,this.config.selectors.buttons.mute),pip:we.call(this,this.config.selectors.buttons.pip),airplay:we.call(this,this.config.selectors.buttons.airplay),settings:we.call(this,this.config.selectors.buttons.settings),captions:we.call(this,this.config.selectors.buttons.captions),fullscreen:we.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=we.call(this,this.config.selectors.progress),this.elements.inputs={seek:we.call(this,this.config.selectors.inputs.seek),volume:we.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:we.call(this,this.config.selectors.display.buffer),currentTime:we.call(this,this.config.selectors.display.currentTime),duration:we.call(this,this.config.selectors.display.duration)},U(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function e(t,i){var n="http://www.w3.org/2000/svg",a=tt.getIconUrl.call(this),r="".concat(a.cors?"":a.url,"#").concat(this.config.iconPrefix),s=document.createElementNS(n,"svg");le(s,se(i,{"aria-hidden":"true",focusable:"false"}));var o=document.createElementNS(n,"use"),l="".concat(r,"-").concat(t);return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",l),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),s.appendChild(o),s},createLabel:function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=Ue.get(t,this.config);return ce("span",m(m({},i),{},{class:[i["class"],this.config.classNames.hidden].filter(Boolean).join(" ")}),n)},createBadge:function e(t){if(te(t))return null;var i=ce("span",{class:this.config.classNames.menu.value});return i.appendChild(ce("span",{class:this.config.classNames.menu.badge},t)),i},createButton:function e(t,i){var n=this;var a=se({},i);var r=We(t);var s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(e){Object.keys(a).includes(e)&&(s[e]=a[e],delete a[e])})),"button"!==s.element||Object.keys(a).includes("type")||(a.type="button"),Object.keys(a).includes("class")?a["class"].split(" ").some((function(e){return e===n.config.classNames.control}))||se(a,{class:"".concat(a["class"]," ").concat(this.config.classNames.control)}):a["class"]=this.config.classNames.control,t){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":a["class"]+=" ".concat(this.config.classNames.control,"--overlaid"),r="play",s.label="play",s.icon="play";break;default:te(s.label)&&(s.label=r),te(s.icon)&&(s.icon=t)}var o=ce(s.element);return s.toggle?(o.appendChild(tt.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),o.appendChild(tt.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),o.appendChild(tt.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),o.appendChild(tt.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(o.appendChild(tt.createIcon.call(this,s.icon)),o.appendChild(tt.createLabel.call(this,s.label))),se(a,he(this.config.selectors.buttons[r],a)),le(o,a),"play"===r?(X(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(o)):this.elements.buttons[r]=o,o},createRange:function e(t,i){var n=ce("input",se(he(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Ue.get(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[t]=n,tt.updateRangeFill.call(this,n),I.setup(n),n},createProgress:function e(t,i){var n=ce("progress",se(he(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if("volume"!==t){n.appendChild(ce("span",null,"0"));var a={played:"played",buffer:"buffered"}[t],r=a?Ue.get(a,this.config):"";n.innerText="% ".concat(r.toLowerCase())}return this.elements.display[t]=n,n},createTime:function e(t,i){var n=he(this.config.selectors.display[t],i),a=ce("div",se(n,{class:"".concat(n["class"]?n["class"]:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":Ue.get(t,this.config)}),"00:00");return this.elements.display[t]=a,a},bindMenuItemShortcuts:function e(t,i){var n=this;Ee.call(this,t,"keydown keyup",(function(e){if(!["Space","ArrowUp","ArrowDown","ArrowRight"].includes(e.key))return;if(e.preventDefault(),e.stopPropagation(),"keydown"===e.type)return;var a=be(t,'[role="menuitemradio"]');if(!a&&["Space","ArrowRight"].includes(e.key))tt.showMenuPanel.call(n,i,!0);else{var r;"Space"!==e.key&&("ArrowDown"===e.key||a&&"ArrowRight"===e.key?(r=t.nextElementSibling,U(r)||(r=t.parentNode.firstElementChild)):(r=t.previousElementSibling,U(r)||(r=t.parentNode.lastElementChild)),xe.call(n,r,!0))}}),!1),Ee.call(this,t,"keyup",(function(e){"Return"===e.key&&tt.focusFirstMenuItem.call(n,null,!0)}))},createMenuItem:function e(t){var i=this;var n=t.value,a=t.list,r=t.type,s=t.title,o=t.badge,l=o===void 0?null:o,c=t.checked,u=c===void 0?!1:c;var d=he(this.config.selectors.inputs[r]),f=ce("button",se(d,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(d["class"]?d["class"]:"").trim(),"aria-checked":u,value:n})),p=ce("span");p.innerHTML=s,U(l)&&p.appendChild(l),f.appendChild(p),Object.defineProperty(f,"checked",{enumerable:!0,get:function e(){return"true"===f.getAttribute("aria-checked")},set:function e(t){t&&Array.from(f.parentNode.children).filter((function(e){return be(e,'[role="menuitemradio"]')})).forEach((function(e){return e.setAttribute("aria-checked","false")})),f.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(f,"click keyup",(function(e){if(!Q(e)||"Space"===e.key){switch(e.preventDefault(),e.stopPropagation(),f.checked=!0,r){case"language":i.currentTrack=Number(n);break;case"quality":i.quality=n;break;case"speed":i.speed=parseFloat(n)}tt.showMenuPanel.call(i,"home",Q(e))}}),r,!1),tt.bindMenuItemShortcuts.call(this,f,r),a.appendChild(f)},formatTime:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;if(!V(t))return t;return et(t,Je(this.duration)>0,i)},updateTimeDisplay:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;U(t)&&V(i)&&(t.innerText=tt.formatTime(i,n))},updateVolume:function e(){this.supported.ui&&(U(this.elements.inputs.volume)&&tt.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),U(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;U(t)&&(t.value=i,tt.updateRangeFill.call(this,t))},updateProgress:function e(t){var i=this;if(!this.supported.ui||!K(t))return;var n=0;var a=function e(t,n){var e=V(n)?n:0,a=U(t)?t:i.elements.display.buffer;if(U(a)){a.value=e;var r=a.getElementsByTagName("span")[0];U(r)&&(r.childNodes[0].nodeValue=e)}};if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":r=this.currentTime,s=this.duration,n=0===r||0===s||Number.isNaN(r)||Number.isNaN(s)?0:(r/s*100).toFixed(2),"timeupdate"===t.type&&tt.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":a(this.elements.display.buffer,100*this.buffered)}var r,s},updateRangeFill:function e(t){var i=K(t)?t.target:t;if(U(i)&&"range"===i.getAttribute("type")){if(be(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);var n=tt.formatTime(this.currentTime),a=tt.formatTime(this.duration),r=Ue.get("seekLabel",this.config);i.setAttribute("aria-valuetext",r.replace("{currentTime}",n).replace("{duration}",a))}else if(be(i,this.config.selectors.inputs.volume)){var s=100*i.value;i.setAttribute("aria-valuenow",s),i.setAttribute("aria-valuetext","".concat(s.toFixed(1),"%"))}else i.setAttribute("aria-valuenow",i.value);ae.isWebkit&&i.style.setProperty("--value",i.value/i.max*100+"%")}},updateSeekTooltip:function e(t){var i,n;if(!this.config.tooltips.seek||!U(this.elements.inputs.seek)||!U(this.elements.display.seekTooltip)||0===this.duration)return;var a=this.elements.display.seekTooltip,r="".concat(this.config.classNames.tooltip,"--visible"),s=function e(t){return me(a,r,t)};if(this.touch)return void s(!1);var o=0;var l=this.elements.progress.getBoundingClientRect();if(K(t))o=100/l.width*(t.pageX-l.left);else{if(!ge(a,r))return;o=parseFloat(a.style.left,10)}o<0?o=0:o>100&&(o=100);var c=this.duration/100*o;a.innerText=tt.formatTime(c);var u=null===(i=this.config.markers)||void 0===i||null===(n=i.points)||void 0===n?void 0:n.find((function(e){var t=e.time;return t===Math.round(c)}));u&&a.insertAdjacentHTML("afterbegin","".concat(u.label,"
")),a.style.left="".concat(o,"%"),K(t)&&["mouseenter","mouseleave"].includes(t.type)&&s("mouseenter"===t.type)},timeUpdate:function e(t){var i=!U(this.elements.display.duration)&&this.config.invertTime;tt.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),t&&"timeupdate"===t.type&&this.media.seeking||tt.updateProgress.call(this,t)},durationUpdate:function e(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=Math.pow(2,32))return ve(this.elements.display.currentTime,!0),void ve(this.elements.progress,!0);U(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=U(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&tt.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&tt.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&tt.setMarkers.call(this),tt.updateSeekTooltip.call(this)},toggleMenuButton:function e(t,i){ve(this.elements.settings.buttons[t],!i)},updateSetting:function e(t,i,n){var a=this.elements.settings.panels[t];var r=null,s=i;if("captions"===t)r=this.currentTrack;else{if(r=te(n)?this[t]:n,te(r)&&(r=this.config[t]["default"]),!te(this.options[t])&&!this.options[t].includes(r))return void this.debug.warn("Unsupported value of '".concat(r,"' for ").concat(t));if(!this.config[t].options.includes(r))return void this.debug.warn("Disabled value of '".concat(r,"' for ").concat(t))}if(U(s)||(s=a&&a.querySelector('[role="menu"]')),!U(s))return;this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=tt.getLabel.call(this,t,r);var o=s&&s.querySelector('[value="'.concat(r,'"]'));U(o)&&(o.checked=!0)},getLabel:function e(t,i){switch(t){case"speed":return 1===i?Ue.get("normal",this.config):"".concat(i,"×");case"quality":if(V(i)){var n=Ue.get("qualityLabel.".concat(i),this.config);return n.length?n:"".concat(i,"p")}return Ye(i);case"captions":return at.getLabel.call(this);default:return null}},setQualityMenu:function e(t){var i=this;if(!U(this.elements.settings.panels.quality))return;var n="quality",a=this.elements.settings.panels.quality.querySelector('[role="menu"]');X(t)&&(this.options.quality=Le(t).filter((function(e){return i.config.quality.options.includes(e)})));var r=!te(this.options.quality)&&this.options.quality.length>1;if(tt.toggleMenuButton.call(this,n,r),fe(a),tt.checkMenu.call(this),!r)return;var s=function e(t){var n=Ue.get("qualityBadge.".concat(t),i.config);return n.length?tt.createBadge.call(i,n):null};this.options.quality.sort((function(e,t){var n=i.config.quality.options;return n.indexOf(e)>n.indexOf(t)?1:-1})).forEach((function(e){tt.createMenuItem.call(i,{value:e,list:a,type:n,title:tt.getLabel.call(i,"quality",e),badge:s(e)})})),tt.updateSetting.call(this,n,a)},setCaptionsMenu:function e(){var t=this;if(!U(this.elements.settings.panels.captions))return;var i="captions",n=this.elements.settings.panels.captions.querySelector('[role="menu"]'),a=at.getTracks.call(this),r=Boolean(a.length);if(tt.toggleMenuButton.call(this,i,r),fe(n),tt.checkMenu.call(this),!r)return;var s=a.map((function(e,i){return{value:i,checked:t.captions.toggled&&t.currentTrack===i,title:at.getLabel.call(t,e),badge:e.language&&tt.createBadge.call(t,e.language.toUpperCase()),list:n,type:"language"}}));s.unshift({value:-1,checked:!this.captions.toggled,title:Ue.get("disabled",this.config),list:n,type:"language"}),s.forEach(tt.createMenuItem.bind(this)),tt.updateSetting.call(this,i,n)},setSpeedMenu:function e(){var t=this;if(!U(this.elements.settings.panels.speed))return;var i="speed",n=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(e){return e>=t.minimumSpeed&&e<=t.maximumSpeed}));var a=!te(this.options.speed)&&this.options.speed.length>1;tt.toggleMenuButton.call(this,i,a),fe(n),tt.checkMenu.call(this),a&&(this.options.speed.forEach((function(e){tt.createMenuItem.call(t,{value:e,list:n,type:i,title:tt.getLabel.call(t,"speed",e)})})),tt.updateSetting.call(this,i,n))},checkMenu:function e(){var t=this.elements.settings.buttons,i=!te(t)&&Object.values(t).some((function(e){return!e.hidden}));ve(this.elements.settings.menu,!i)},focusFirstMenuItem:function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;if(this.elements.settings.popup.hidden)return;var n=t;U(n)||(n=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var a=n.querySelector('[role^="menuitem"]');xe.call(this,a,i)},toggleMenu:function e(t){var i=this.elements.settings.popup,n=this.elements.buttons.settings;if(!U(i)||!U(n))return;var a=i.hidden;var r=a;if(Y(t))r=t;else if(Q(t)&&"Escape"===t.key)r=!1;else if(K(t)){var s=W(t.composedPath)?t.composedPath()[0]:t.target,o=i.contains(s);if(o||!o&&t.target!==n&&r)return}n.setAttribute("aria-expanded",r),ve(i,!r),me(this.elements.container,this.config.classNames.menu.open,r),r&&Q(t)?tt.focusFirstMenuItem.call(this,null,!0):r||a||xe.call(this,n,Q(t))},getMenuSize:function e(t){var i=t.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),t.parentNode.appendChild(i);var n=i.scrollWidth,a=i.scrollHeight;return de(i),{width:n,height:a}},showMenuPanel:function e(){var t=this;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var a=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(i));if(!U(a))return;var r=a.parentNode,s=Array.from(r.children).find((function(e){return!e.hidden}));if(Se.transitions&&!Se.reducedMotion){r.style.width="".concat(s.scrollWidth,"px"),r.style.height="".concat(s.scrollHeight,"px");var o=tt.getMenuSize.call(this,a),l=function e(i){i.target===r&&["width","height"].includes(i.propertyName)&&(r.style.width="",r.style.height="",Pe.call(t,r,ie,e))};Ee.call(this,r,ie,l),r.style.width="".concat(o.width,"px"),r.style.height="".concat(o.height,"px")}ve(s,!0),ve(a,!1),tt.focusFirstMenuItem.call(this,a,n)},setDownloadUrl:function e(){var t=this.elements.buttons.download;U(t)&&t.setAttribute("href",this.download)},create:function e(t){var i=this;var n=tt.bindMenuItemShortcuts,a=tt.createButton,r=tt.createProgress,s=tt.createRange,o=tt.createTime,l=tt.setQualityMenu,c=tt.setSpeedMenu,u=tt.showMenuPanel;this.elements.controls=null,X(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(a.call(this,"play-large"));var d=ce("div",he(this.config.selectors.controls.wrapper));this.elements.controls=d;var f={class:"plyr__controls__item"};return Le(X(this.config.controls)?this.config.controls:[]).forEach((function(e){if("restart"===e&&d.appendChild(a.call(i,"restart",f)),"rewind"===e&&d.appendChild(a.call(i,"rewind",f)),"play"===e&&d.appendChild(a.call(i,"play",f)),"fast-forward"===e&&d.appendChild(a.call(i,"fast-forward",f)),"progress"===e){var l=ce("div",{class:"".concat(f["class"]," plyr__progress__container")}),c=ce("div",he(i.config.selectors.progress));if(c.appendChild(s.call(i,"seek",{id:"plyr-seek-".concat(t.id)})),c.appendChild(r.call(i,"buffer")),i.config.tooltips.seek){var p=ce("span",{class:i.config.classNames.tooltip},"00:00");c.appendChild(p),i.elements.display.seekTooltip=p}i.elements.progress=c,l.appendChild(i.elements.progress),d.appendChild(l)}if("current-time"===e&&d.appendChild(o.call(i,"currentTime",f)),"duration"===e&&d.appendChild(o.call(i,"duration",f)),"mute"===e||"volume"===e){var h=i.elements.volume;if(U(h)&&d.contains(h)||(h=ce("div",se({},f,{class:"".concat(f["class"]," plyr__volume").trim()})),i.elements.volume=h,d.appendChild(h)),"mute"===e&&h.appendChild(a.call(i,"mute")),"volume"===e&&!ae.isIos){var v={max:1,step:.05,value:i.config.volume};h.appendChild(s.call(i,"volume",se(v,{id:"plyr-volume-".concat(t.id)})))}}if("captions"===e&&d.appendChild(a.call(i,"captions",f)),"settings"===e&&!te(i.config.settings)){var m=ce("div",se({},f,{class:"".concat(f["class"]," plyr__menu").trim(),hidden:""}));m.appendChild(a.call(i,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var g=ce("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),b=ce("div"),y=ce("div",{id:"plyr-settings-".concat(t.id,"-home")}),w=ce("div",{role:"menu"});y.appendChild(w),b.appendChild(y),i.elements.settings.panels.home=y,i.config.settings.forEach((function(e){var a=ce("button",se(he(i.config.selectors.buttons.settings),{type:"button",class:"".concat(i.config.classNames.control," ").concat(i.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));n.call(i,a,e),Ee.call(i,a,"click",(function(){u.call(i,e,!1)}));var r=ce("span",null,Ue.get(e,i.config)),s=ce("span",{class:i.config.classNames.menu.value});s.innerHTML=t[e],r.appendChild(s),a.appendChild(r),w.appendChild(a);var o=ce("div",{id:"plyr-settings-".concat(t.id,"-").concat(e),hidden:""}),l=ce("button",{type:"button",class:"".concat(i.config.classNames.control," ").concat(i.config.classNames.control,"--back")});l.appendChild(ce("span",{"aria-hidden":!0},Ue.get(e,i.config))),l.appendChild(ce("span",{class:i.config.classNames.hidden},Ue.get("menuBack",i.config))),Ee.call(i,o,"keydown",(function(e){"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),u.call(i,"home",!0))}),!1),Ee.call(i,l,"click",(function(){u.call(i,"home",!1)})),o.appendChild(l),o.appendChild(ce("div",{role:"menu"})),b.appendChild(o),i.elements.settings.buttons[e]=a,i.elements.settings.panels[e]=o})),g.appendChild(b),m.appendChild(g),d.appendChild(m),i.elements.settings.popup=g,i.elements.settings.menu=m}if("pip"===e&&Se.pip&&d.appendChild(a.call(i,"pip",f)),"airplay"===e&&Se.airplay&&d.appendChild(a.call(i,"airplay",f)),"download"===e){var x=se({},f,{element:"a",href:i.download,target:"_blank"});i.isHTML5&&(x.download="");var T=i.config.urls.download;!ee(T)&&i.isEmbed&&se(x,{icon:"logo-".concat(i.provider),label:i.provider}),d.appendChild(a.call(i,"download",x))}"fullscreen"===e&&d.appendChild(a.call(i,"fullscreen",f))})),this.isHTML5&&l.call(this,Be.getQualityOptions.call(this)),c.call(this),d},inject:function e(){var t=this;if(this.config.loadSprite){var i=tt.getIconUrl.call(this);i.cors&&Ze(i.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var a={id:this.id,seektime:this.config.seekTime,title:this.config.title};var r=!0;W(this.config.controls)&&(this.config.controls=this.config.controls.call(this,a)),this.config.controls||(this.config.controls=[]),U(this.config.controls)||q(this.config.controls)?n=this.config.controls:(n=tt.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:at.getLabel.call(this)}),r=!1);var s;r&&q(this.config.controls)&&(n=function(e){var t=e;return Object.entries(a).forEach((function(e){var i=g(e,2),n=i[0],a=i[1];t=qe(t,"{".concat(n,"}"),a)})),t}(n)),q(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),U(s)||(s=this.elements.container);if(s[U(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),U(this.elements.controls)||tt.findElements.call(this),!te(this.elements.buttons)){var o=function e(i){var n=t.config.classNames.controlPressed;Object.defineProperty(i,"pressed",{enumerable:!0,get:function e(){return ge(i,n)},set:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;me(i,n,t)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){X(e)||G(e)?Array.from(e).filter(Boolean).forEach(o):o(e)}))}if(ae.isEdge&&ne(s),this.config.tooltips.controls){var l=this.config,c=l.classNames,u=l.selectors,d="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(c.hidden),f=ye.call(this,d);Array.from(f).forEach((function(e){me(e,t.config.classNames.hidden,!1),me(e,t.config.classNames.tooltip,!0)}))}},setMediaMetadata:function e(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch(e){}},setMarkers:function e(){var t=this;var i,n;if(!this.duration||this.elements.markers)return;var a=null===(i=this.config.markers)||void 0===i||null===(n=i.points)||void 0===n?void 0:n.filter((function(e){var i=e.time;return i>0&&i1&&arguments[1]!==undefined?arguments[1]:!0;var i=e;if(t){var n=document.createElement("a");n.href=i,i=n.href}try{return new URL(i)}catch(e){return null}}function nt(e){var t=new URLSearchParams;return B(e)&&Object.entries(e).forEach((function(e){var i=g(e,2),n=i[0],a=i[1];t.set(n,a)})),t}var at={setup:function e(){var t,i,n;if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!Se.textTracks)return void(X(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&tt.setCaptionsMenu.call(this));var a,r;if(U(this.elements.captions)||(this.elements.captions=ce("div",he(this.config.selectors.captions)),a=this.elements.captions,r=this.elements.wrapper,U(a)&&U(r)&&r.parentNode.insertBefore(a,r.nextSibling)),ae.isIE&&window.URL){var s=this.media.querySelectorAll("track");Array.from(s).forEach((function(e){var t=e.getAttribute("src"),i=it(t);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&Qe(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))}))["catch"]((function(){de(e)}))}))}var o=Le((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(e){return e.split("-")[0]})));var l=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===l&&(t=o,i=g(t,1),l=i[0],t);var c=this.storage.get("captions");if(Y(c)||(n=this.config.captions,c=n.active,n),Object.assign(this.captions,{toggled:!1,active:c,language:l,languages:o}),this.isHTML5){var u=this.config.captions.update?"addtrack removetrack":"removetrack";Ee.call(this,this.media.textTracks,u,at.update.bind(this))}setTimeout(at.update.bind(this),0)},update:function e(){var t=this;var i=at.getTracks.call(this,!0),n=this.captions,a=n.active,r=n.language,s=n.meta,o=n.currentTrackNode,l=Boolean(i.find((function(e){return e.language===r})));this.isHTML5&&this.isVideo&&i.filter((function(e){return!s.get(e)})).forEach((function(e){t.debug.log("Track added",e),s.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),Ee.call(t,e,"cuechange",(function(){return at.updateCues.call(t)}))})),(l&&this.language!==r||!i.includes(o))&&(at.setLanguage.call(this,r),at.toggle.call(this,a&&l)),this.elements&&me(this.elements.container,this.config.classNames.captions.enabled,!te(i)),X(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&tt.setCaptionsMenu.call(this)},toggle:function e(t){var i=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;if(!this.supported.ui)return;var a=this.captions.toggled,r=this.config.classNames.captions.active,s=R(t)?!a:t;if(s!==a){if(n||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!n){var o=at.getTracks.call(this),c=at.findTrack.call(this,[this.captions.language].concat(l(this.captions.languages)),!0);return this.captions.language=c.language,void at.set.call(this,o.indexOf(c))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),me(this.elements.container,r,s),this.captions.toggled=s,tt.updateSetting.call(this,"captions"),Me.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout((function(){s&&i.captions.toggled&&(i.captions.currentTrackNode.mode="hidden")}))},set:function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;var n=at.getTracks.call(this);if(-1!==t){if(V(t)){if(t in n){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var a=n[t],r=a||{},s=r.language;this.captions.currentTrackNode=a,tt.updateSetting.call(this,"captions"),i||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s),Me.call(this,this.media,"languagechange")}at.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&at.updateCues.call(this)}else this.debug.warn("Track not found",t)}else this.debug.warn("Invalid caption argument",t)}else at.toggle.call(this,!1,i)},setLanguage:function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;if(!q(t))return void this.debug.warn("Invalid language argument",t);var n=t.toLowerCase();this.captions.language=n;var a=at.getTracks.call(this),r=at.findTrack.call(this,[n]);at.set.call(this,a.indexOf(r),i)},getTracks:function e(){var t=this;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;return Array.from((this.media||{}).textTracks||[]).filter((function(e){return!t.isHTML5||i||t.captions.meta.has(e)})).filter((function(e){return["captions","subtitles"].includes(e.kind)}))},findTrack:function e(t){var i=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var a=at.getTracks.call(this),r=function e(t){return Number((i.captions.meta.get(t)||{})["default"])},s=Array.from(a).sort((function(e,t){return r(t)-r(e)}));var o;return t.every((function(e){return o=s.find((function(t){return t.language===e})),!o})),o||(n?s[0]:void 0)},getCurrentTrack:function e(){return at.getTracks.call(this)[this.currentTrack]},getLabel:function e(t){var i=t;return!Z(i)&&Se.textTracks&&this.captions.toggled&&(i=at.getCurrentTrack.call(this)),Z(i)?te(i.label)?te(i.language)?Ue.get("enabled",this.config):t.language.toUpperCase():i.label:Ue.get("disabled",this.config)},updateCues:function e(t){if(!this.supported.ui)return;if(!U(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!R(t)&&!Array.isArray(t))return void this.debug.warn("updateCues: Invalid input",t);var i=t;if(!i){var n=at.getCurrentTrack.call(this);i=Array.from((n||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(Xe)}var a=i.map((function(e){return e.trim()})).join("\n");if(a!==this.elements.captions.innerHTML){fe(this.elements.captions);var r=ce("span",he(this.config.selectors.caption));r.innerHTML=a,this.elements.captions.appendChild(r),Me.call(this,this.media,"cuechange")}}},rt={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.2/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},st="picture-in-picture",ot="inline",lt={html5:"html5",youtube:"youtube",vimeo:"vimeo"},ct="audio",ut="video";var dt=function e(){};var ft=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;f(this,e);this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}h(e,[{key:"log",get:function e(){return this.enabled?Function.prototype.bind.call(console.log,console):dt}},{key:"warn",get:function e(){return this.enabled?Function.prototype.bind.call(console.warn,console):dt}},{key:"error",get:function e(){return this.enabled?Function.prototype.bind.call(console.error,console):dt}}]);return e}();var pt=function(){function t(i){var n=this;f(this,t);e(this,"onChange",(function(){if(!n.enabled)return;var e=n.player.elements.buttons.fullscreen;U(e)&&(e.pressed=n.active);var t=n.target===n.player.media?n.target:n.player.elements.container;Me.call(n.player,t,n.active?"enterfullscreen":"exitfullscreen",!0)})),e(this,"toggleFallback",(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;if(e?n.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(n.scrollPosition.x,n.scrollPosition.y),document.body.style.overflow=e?"hidden":"",me(n.target,n.player.config.classNames.fullscreen.fallback,e),ae.isIos){var t=document.head.querySelector('meta[name="viewport"]');var i="viewport-fit=cover";t||(t=document.createElement("meta"),t.setAttribute("name","viewport"));var a=q(t.content)&&t.content.includes(i);e?(n.cleanupViewport=!a,a||(t.content+=",".concat(i))):n.cleanupViewport&&(t.content=t.content.split(",").filter((function(e){return e.trim()!==i})).join(","))}n.onChange()})),e(this,"trapFocus",(function(e){if(ae.isIos||!n.active||"Tab"!==e.key)return;var t=document.activeElement,i=ye.call(n.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),a=g(i,1),r=a[0],s=i[i.length-1];t!==s||e.shiftKey?t===r&&e.shiftKey&&(s.focus(),e.preventDefault()):(r.focus(),e.preventDefault())})),e(this,"update",(function(){if(n.enabled){var e;e=n.forceFallback?"Fallback (forced)":t["native"]?"Native":"Fallback",n.player.debug.log("".concat(e," fullscreen enabled"))}else n.player.debug.log("Fullscreen not supported and fallback disabled");me(n.player.elements.container,n.player.config.classNames.fullscreen.enabled,n.enabled)})),e(this,"enter",(function(){n.enabled&&(ae.isIos&&n.player.config.fullscreen.iosNative?n.player.isVimeo?n.player.embed.requestFullscreen():n.target.webkitEnterFullscreen():!t["native"]||n.forceFallback?n.toggleFallback(!0):n.prefix?te(n.prefix)||n.target["".concat(n.prefix,"Request").concat(n.property)]():n.target.requestFullscreen({navigationUI:"hide"}))})),e(this,"exit",(function(){if(n.enabled)if(ae.isIos&&n.player.config.fullscreen.iosNative)n.target.webkitExitFullscreen(),Oe(n.player.play());else if(!t["native"]||n.forceFallback)n.toggleFallback(!1);else if(n.prefix){if(!te(n.prefix)){var e="moz"===n.prefix?"Cancel":"Exit";document["".concat(n.prefix).concat(e).concat(n.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),e(this,"toggle",(function(){n.active?n.exit():n.enter()})),this.player=i,this.prefix=t.prefix,this.property=t.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===i.config.fullscreen.fallback,this.player.elements.fullscreen=i.config.fullscreen.container&&function(e,t){var i=Element,n=i.prototype;return(n.closest||function(){var e=this;do{if(be.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,i.config.fullscreen.container),Ee.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),Ee.call(this.player,this.player.elements.container,"dblclick",(function(e){U(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.player.listeners.proxy(e,n.toggle,"fullscreen")})),Ee.call(this,this.player.elements.container,"keydown",(function(e){return n.trapFocus(e)})),this.update()}h(t,[{key:"usingNative",get:function e(){return t["native"]&&!this.forceFallback}},{key:"enabled",get:function e(){return(t["native"]||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function e(){if(!this.enabled)return!1;if(!t["native"]||this.forceFallback)return ge(this.target,this.player.config.classNames.fullscreen.fallback);var i=this.prefix?this.target.getRootNode()["".concat(this.prefix).concat(this.property,"Element")]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target}},{key:"target",get:function e(){return ae.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function e(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function e(){if(W(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some((function(e){return!(!W(document["".concat(e,"ExitFullscreen")])&&!W(document["".concat(e,"CancelFullScreen")]))&&(t=e,!0)})),t}},{key:"property",get:function e(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]);return t}();function ht(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;return new Promise((function(i,n){var a=new Image,r=function e(){delete a.onload,delete a.onerror,(a.naturalWidth>=t?i:n)(a)};Object.assign(a,{onload:r,onerror:r,src:e})}))}var vt={addStyleHook:function e(){me(this.elements.container,this.config.selectors.container.replace(".",""),!0),me(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;t&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function e(){var t=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void vt.toggleNativeControls.call(this,!0);U(this.elements.controls)||(tt.inject.call(this),this.listeners.controls()),vt.toggleNativeControls.call(this),this.isHTML5&&at.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,tt.updateVolume.call(this),tt.timeUpdate.call(this),tt.durationUpdate.call(this),vt.checkPlaying.call(this),me(this.elements.container,this.config.classNames.pip.supported,Se.pip&&this.isHTML5&&this.isVideo),me(this.elements.container,this.config.classNames.airplay.supported,Se.airplay&&this.isHTML5),me(this.elements.container,this.config.classNames.isIos,ae.isIos),me(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Me.call(t,t.media,"ready")}),0),vt.setTitle.call(this),this.poster&&vt.setPoster.call(this,this.poster,!1)["catch"]((function(){})),this.config.duration&&tt.durationUpdate.call(this),this.config.mediaMetadata&&tt.setMediaMetadata.call(this)},setTitle:function e(){var t=Ue.get("play",this.config);if(q(this.config.title)&&!te(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(e){e.setAttribute("aria-label",t)})),this.isEmbed){var i=we.call(this,"iframe");if(!U(i))return;var n=te(this.config.title)?"video":this.config.title,a=Ue.get("frameTitle",this.config);i.setAttribute("title",a.replace("{title}",n))}},togglePoster:function e(t){me(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function e(t){var i=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;return n&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),Ie.call(this).then((function(){return ht(t)}))["catch"]((function(e){throw t===i.poster&&vt.togglePoster.call(i,!1),e})).then((function(){if(t!==i.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(i.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),vt.togglePoster.call(i,!0),t})))},checkPlaying:function e(t){var i=this;me(this.elements.container,this.config.classNames.playing,this.playing),me(this.elements.container,this.config.classNames.paused,this.paused),me(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(e){Object.assign(e,{pressed:i.playing}),e.setAttribute("aria-label",Ue.get(i.playing?"pause":"play",i.config))})),K(t)&&"timeupdate"===t.type||vt.toggleControls.call(this)},checkLoading:function e(t){var i=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){me(i.elements.container,i.config.classNames.loading,i.loading),vt.toggleControls.call(i)}),this.loading?250:0)},toggleControls:function e(t){var i=this.elements.controls;if(i&&this.config.hideControls){var n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||i.pressed||i.hover||n))}},migrateStyles:function e(){var t=this;Object.values(m({},this.media.style)).filter((function(e){return!te(e)&&q(e)&&e.startsWith("--plyr")})).forEach((function(e){t.elements.container.style.setProperty(e,t.media.style.getPropertyValue(e)),t.media.style.removeProperty(e)})),te(this.media.style)&&this.media.removeAttribute("style")}};var mt=function(){function t(i){var n=this;f(this,t);e(this,"firstTouch",(function(){var e=n.player,t=e.elements;e.touch=!0,me(t.container,e.config.classNames.isTouch,!0)})),e(this,"setTabFocus",(function(e){var t=n.player,i=t.elements,a=e.key,r=e.type,s=e.timeStamp;if(clearTimeout(n.focusTimer),"keydown"===r&&"Tab"!==a)return;"keydown"===r&&(n.lastKeyDown=s);var o=s-n.lastKeyDown<=20;("focus"!==r||o)&&(function(){var e=t.config.classNames.tabFocus;me(ye.call(t,".".concat(e)),e,!1)}(),"focusout"!==r&&(n.focusTimer=setTimeout((function(){var e=document.activeElement;i.container.contains(e)&&me(document.activeElement,t.config.classNames.tabFocus,!0)}),10)))})),e(this,"global",(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!0;var t=n.player;t.config.keyboard.global&&Ce.call(t,window,"keydown keyup",n.handleKey,e,!1),Ce.call(t,document.body,"click",n.toggleMenu,e),$e.call(t,document.body,"touchstart",n.firstTouch),Ce.call(t,document.body,"keydown focus blur focusout",n.setTabFocus,e,!1,!0)})),e(this,"container",(function(){var e=n.player,t=e.config,i=e.elements,a=e.timers;!t.keyboard.global&&t.keyboard.focused&&Ee.call(e,i.container,"keydown keyup",n.handleKey,!1),Ee.call(e,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var n=i.controls;n&&"enterfullscreen"===t.type&&(n.pressed=!1,n.hover=!1);var r=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(vt.toggleControls.call(e,!0),r=e.touch?3e3:2e3),clearTimeout(a.controls),a.controls=setTimeout((function(){return vt.toggleControls.call(e,!1)}),r)}));var r=function t(){if(!e.isVimeo||e.config.vimeo.premium)return;var n=i.wrapper,a=e.fullscreen.active,r=je.call(e),s=g(r,2),t=s[0],o=s[1],l=De("aspect-ratio: ".concat(t," / ").concat(o));if(!a)return void(l?(n.style.width=null,n.style.height=null):(n.style.maxWidth=null,n.style.margin=null));var c=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],u=c[0],d=c[1],f=u/d>t/o;l?(n.style.width=f?"auto":"100%",n.style.height=f?"100%":"auto"):(n.style.maxWidth=f?d/o*t+"px":null,n.style.margin=f?"0 auto":null)},s=function e(){clearTimeout(a.resized),a.resized=setTimeout(r,50)};Ee.call(e,i.container,"enterfullscreen exitfullscreen",(function(t){var n=e.fullscreen.target;if(n!==i.container)return;if(!e.isEmbed&&te(e.config.ratio))return;r();("enterfullscreen"===t.type?Ee:Pe).call(e,window,"resize",s)}))})),e(this,"media",(function(){var e=n.player,t=e.elements;if(Ee.call(e,e.media,"timeupdate seeking seeked",(function(t){return tt.timeUpdate.call(e,t)})),Ee.call(e,e.media,"durationchange loadeddata loadedmetadata",(function(t){return tt.durationUpdate.call(e,t)})),Ee.call(e,e.media,"ended",(function(){e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),Ee.call(e,e.media,"progress playing seeking seeked",(function(t){return tt.updateProgress.call(e,t)})),Ee.call(e,e.media,"volumechange",(function(t){return tt.updateVolume.call(e,t)})),Ee.call(e,e.media,"playing play pause ended emptied timeupdate",(function(t){return vt.checkPlaying.call(e,t)})),Ee.call(e,e.media,"waiting canplay seeked playing",(function(t){return vt.checkLoading.call(e,t)})),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){var i=we.call(e,".".concat(e.config.classNames.video));if(!U(i))return;Ee.call(e,t.container,"click",(function(a){([t.container,i].includes(a.target)||i.contains(a.target))&&(e.touch&&e.config.hideControls||(e.ended?(n.proxy(a,e.restart,"restart"),n.proxy(a,(function(){Oe(e.play())}),"play")):n.proxy(a,(function(){Oe(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&Ee.call(e,t.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),Ee.call(e,e.media,"volumechange",(function(){e.storage.set({volume:e.volume,muted:e.muted})})),Ee.call(e,e.media,"ratechange",(function(){tt.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),Ee.call(e,e.media,"qualitychange",(function(t){tt.updateSetting.call(e,"quality",null,t.detail.quality)})),Ee.call(e,e.media,"ready qualitychange",(function(){tt.setDownloadUrl.call(e)}));var a=e.config.events.concat(["keyup","keydown"]).join(" ");Ee.call(e,e.media,a,(function(i){var n=i.detail,a=n===void 0?{}:n;"error"===i.type&&(a=e.media.error),Me.call(e,t.container,i.type,!0,a)}))})),e(this,"proxy",(function(e,t,i){var a=n.player,r=a.config.listeners[i];var s=!0;W(r)&&(s=r.call(a,e)),!1!==s&&W(t)&&t.call(a,e)})),e(this,"bind",(function(e,t,i,a){var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!0;var s=n.player,o=s.config.listeners[a],l=W(o);Ee.call(s,e,t,(function(e){return n.proxy(e,i,a)}),r&&!l)})),e(this,"controls",(function(){var e=n.player,t=e.elements,i=ae.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((function(t){n.bind(t,"click",(function(){Oe(e.togglePlay())}),"play")})),n.bind(t.buttons.restart,"click",e.restart,"restart"),n.bind(t.buttons.rewind,"click",(function(){e.lastSeekTime=Date.now(),e.rewind()}),"rewind"),n.bind(t.buttons.fastForward,"click",(function(){e.lastSeekTime=Date.now(),e.forward()}),"fastForward"),n.bind(t.buttons.mute,"click",(function(){e.muted=!e.muted}),"mute"),n.bind(t.buttons.captions,"click",(function(){return e.toggleCaptions()})),n.bind(t.buttons.download,"click",(function(){Me.call(e,e.media,"download")}),"download"),n.bind(t.buttons.fullscreen,"click",(function(){e.fullscreen.toggle()}),"fullscreen"),n.bind(t.buttons.pip,"click",(function(){e.pip="toggle"}),"pip"),n.bind(t.buttons.airplay,"click",e.airplay,"airplay"),n.bind(t.buttons.settings,"click",(function(t){t.stopPropagation(),t.preventDefault(),tt.toggleMenu.call(e,t)}),null,!1),n.bind(t.buttons.settings,"keyup",(function(t){["Space","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),tt.toggleMenu.call(e,t)):tt.focusFirstMenuItem.call(e,null,!0))}),null,!1),n.bind(t.settings.menu,"keydown",(function(t){"Escape"===t.key&&tt.toggleMenu.call(e,t)})),n.bind(t.inputs.seek,"mousedown mousemove",(function(e){var i=t.progress.getBoundingClientRect(),n=100/i.width*(e.pageX-i.left);e.currentTarget.setAttribute("seek-value",n)})),n.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(t){var i=t.currentTarget,n="play-on-seeked";if(Q(t)&&!["ArrowLeft","ArrowRight"].includes(t.key))return;e.lastSeekTime=Date.now();var a=i.hasAttribute(n),r=["mouseup","touchend","keyup"].includes(t.type);a&&r?(i.removeAttribute(n),Oe(e.play())):!r&&e.playing&&(i.setAttribute(n,""),e.pause())})),ae.isIos){var a=ye.call(e,'input[type="range"]');Array.from(a).forEach((function(e){return n.bind(e,i,(function(e){return ne(e.target)}))}))}n.bind(t.inputs.seek,i,(function(t){var i=t.currentTarget;var n=i.getAttribute("seek-value");te(n)&&(n=i.value),i.removeAttribute("seek-value"),e.currentTime=n/i.max*e.duration}),"seek"),n.bind(t.progress,"mouseenter mouseleave mousemove",(function(t){return tt.updateSeekTooltip.call(e,t)})),n.bind(t.progress,"mousemove touchmove",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.startMove(t)})),n.bind(t.progress,"mouseleave touchend click",(function(){var t=e.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)})),n.bind(t.progress,"mousedown touchstart",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.startScrubbing(t)})),n.bind(t.progress,"mouseup touchend",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.endScrubbing(t)})),ae.isWebkit&&Array.from(ye.call(e,'input[type="range"]')).forEach((function(t){n.bind(t,"input",(function(t){return tt.updateRangeFill.call(e,t.target)}))})),e.config.toggleInvert&&!U(t.display.duration)&&n.bind(t.display.currentTime,"click",(function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,tt.timeUpdate.call(e))})),n.bind(t.inputs.volume,i,(function(t){e.volume=t.target.value}),"volume"),n.bind(t.controls,"mouseenter mouseleave",(function(i){t.controls.hover=!e.touch&&"mouseenter"===i.type})),t.fullscreen&&Array.from(t.fullscreen.children).filter((function(e){return!e.contains(t.container)})).forEach((function(i){n.bind(i,"mouseenter mouseleave",(function(i){t.controls&&(t.controls.hover=!e.touch&&"mouseenter"===i.type)}))})),n.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){t.controls.pressed=["mousedown","touchstart"].includes(e.type)})),n.bind(t.controls,"focusin",(function(){var i=e.config,a=e.timers;me(t.controls,i.classNames.noTransition,!0),vt.toggleControls.call(e,!0),setTimeout((function(){me(t.controls,i.classNames.noTransition,!1)}),0);var r=n.touch?3e3:4e3;clearTimeout(a.controls),a.controls=setTimeout((function(){return vt.toggleControls.call(e,!1)}),r)})),n.bind(t.inputs.volume,"wheel",(function(t){var i=t.webkitDirectionInvertedFromDevice,n=[t.deltaX,-t.deltaY].map((function(e){return i?-e:e})),a=g(n,2),r=a[0],s=a[1],o=Math.sign(Math.abs(r)>Math.abs(s)?r:s);e.increaseVolume(o/50);var l=e.media.volume;(1===o&&l<1||-1===o&&l>0)&&t.preventDefault()}),"volume",!1)})),this.player=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}h(t,[{key:"handleKey",value:function e(t){var i=this.player,n=i.elements,a=t.key,r=t.type,s=t.altKey,o=t.ctrlKey,l=t.metaKey,c=t.shiftKey,u="keydown"===r,d=u&&a===this.lastKey;if(s||o||l||c)return;if(!a)return;if(u){var f=document.activeElement;if(U(f)){var p=i.config.selectors.editable,h=n.inputs.seek;if(f!==h&&be(f,p))return;if("Space"===t.key&&be(f,'button, [role^="menuitem"]'))return}switch(["Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(a)&&(t.preventDefault(),t.stopPropagation()),a){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d||(v=parseInt(a,10),i.currentTime=i.duration/10*v);break;case"Space":case"k":d||Oe(i.togglePlay());break;case"ArrowUp":i.increaseVolume(.1);break;case"ArrowDown":i.decreaseVolume(.1);break;case"m":d||(i.muted=!i.muted);break;case"ArrowRight":i.forward();break;case"ArrowLeft":i.rewind();break;case"f":i.fullscreen.toggle();break;case"c":d||i.toggleCaptions();break;case"l":i.loop=!i.loop}"Escape"===a&&!i.fullscreen.usingNative&&i.fullscreen.active&&i.fullscreen.toggle(),this.lastKey=a}else this.lastKey=null;var v}},{key:"toggleMenu",value:function e(t){tt.toggleMenu.call(this.player,t)}}]);return t}();"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof i.g?i.g:"undefined"!=typeof self&&self;var gt=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function e(){},t={},i={},n={};function a(e,t){e=e.push?e:[e];var a,r,s,o=[],l=e.length,c=l;for(a=function e(i,n){n.length&&o.push(i),--c||t(o)};l--;){r=e[l],(s=i[r])?a(r,s):(n[r]=n[r]||[]).push(a)}}function r(e,t){if(e){var a=n[e];if(i[e]=t,a)for(;a.length;){a[0](e,t),a.splice(0,1)}}}function s(t,i){t.call&&(t={success:t}),i.length?(t.error||e)(i):(t.success||e)(t)}function o(t,i,n,a){var r,s,l=document,c=n.async,u=(n.numRetries||0)+1,d=n.before||e,f=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img)!/,"");a=a||0,/(^css!|\.css$)/.test(f)?((s=l.createElement("link")).rel="stylesheet",s.href=p,(r="hideFocus"in s)&&s.relList&&(r=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(f)?(s=l.createElement("img")).src=p:((s=l.createElement("script")).src=t,s.async=void 0===c||c),s.onload=s.onerror=s.onbeforeload=function(e){var l=e.type[0];if(r)try{s.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((a+=1)0&&arguments[0]!==undefined?arguments[0]:!1;if(!e)return clearInterval(n.countdownTimer),void n.elements.container.removeAttribute("data-badge-text");n.countdownTimer=setInterval((function(){var e=et(Math.max(n.manager.getRemainingTime(),0)),t="".concat(Ue.get("advertisement",n.player.config)," - ").concat(e);n.elements.container.setAttribute("data-badge-text",t)}),100)})),e(this,"onAdsManagerLoaded",(function(e){if(!n.enabled)return;var t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,n.manager=e.getAdsManager(n.player,t),n.cuePoints=n.manager.getCuePoints(),n.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return n.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){n.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return n.onAdEvent(e)}))})),n.trigger("loaded")})),e(this,"addCuePoints",(function(){te(n.cuePoints)||n.cuePoints.forEach((function(e){if(0!==e&&-1!==e&&e1?t-1:0),a=1;a0&&arguments[0]!==undefined?arguments[0]:0;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:255;return Math.min(Math.max(e,t),i)}var Pt=function e(t){var i=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var t={};e.split(/\r\n|\n|\r/).forEach((function(e){if(V(t.startTime)){if(!te(e.trim())&&te(t.text)){var i,n,a;var r=e.trim().split("#xywh=");i=g(r,1),t.text=i[0],r[1]&&(n=r[1].split(","),a=g(n,4),t.x=a[0],t.y=a[1],t.w=a[2],t.h=a[3],n)}}else{var s=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);s&&(t.startTime=60*Number(s[1]||0)*60+60*Number(s[2])+Number(s[3])+Number("0.".concat(s[4])),t.endTime=60*Number(s[6]||0)*60+60*Number(s[7])+Number(s[8])+Number("0.".concat(s[9])))}})),t.text&&i.push(t)})),i},$t=function e(t,i){var n={};return t>i.width/i.height?(n.width=i.width,n.height=1/t*i.width):(n.height=i.height,n.width=t*i.height),n};var Mt=function(){function t(i){var n=this;f(this,t);e(this,"load",(function(){n.player.elements.display.seekTooltip&&(n.player.elements.display.seekTooltip.hidden=n.enabled),n.enabled&&n.getThumbnails().then((function(){n.enabled&&(n.render(),n.determineContainerAutoSizing(),n.loaded=!0)}))})),e(this,"getThumbnails",(function(){return new Promise((function(e){var t=n.player.config.previewThumbnails.src;if(te(t))throw new Error("Missing previewThumbnails.src config attribute");var i=function t(){n.thumbnails.sort((function(e,t){return e.height-t.height})),n.player.debug.log("Preview thumbnails",n.thumbnails),e()};if(W(t))t((function(e){n.thumbnails=e,i()}));else{var a=(q(t)?[t]:t).map((function(e){return n.getThumbnail(e)}));Promise.all(a).then(i)}}))})),e(this,"getThumbnail",(function(e){return new Promise((function(t){Qe(e).then((function(i){var a={frames:Pt(i),height:null,urlPrefix:""};a.frames[0].text.startsWith("/")||a.frames[0].text.startsWith("http://")||a.frames[0].text.startsWith("https://")||(a.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var r=new Image;r.onload=function(){a.height=r.naturalHeight,a.width=r.naturalWidth,n.thumbnails.push(a),t()},r.src=a.urlPrefix+a.frames[0].text}))}))})),e(this,"startMove",(function(e){if(n.loaded&&K(e)&&["touchmove","mousemove"].includes(e.type)&&n.player.media.duration){if("touchmove"===e.type)n.seekTime=n.player.media.duration*(n.player.elements.inputs.seek.value/100);else{var t,i;var a=n.player.elements.progress.getBoundingClientRect(),r=100/a.width*(e.pageX-a.left);n.seekTime=n.player.media.duration*(r/100),n.seekTime<0&&(n.seekTime=0),n.seekTime>n.player.media.duration-1&&(n.seekTime=n.player.media.duration-1),n.mousePosX=e.pageX,n.elements.thumb.time.innerText=et(n.seekTime);var s=null===(t=n.player.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find((function(e){var t=e.time;return t===Math.round(n.seekTime)}));s&&n.elements.thumb.time.insertAdjacentHTML("afterbegin","".concat(s.label,"
"))}n.showImageAtCurrentTime()}})),e(this,"endMove",(function(){n.toggleThumbContainer(!1,!0)})),e(this,"startScrubbing",(function(e){(R(e.button)||!1===e.button||0===e.button)&&(n.mouseDown=!0,n.player.media.duration&&(n.toggleScrubbingContainer(!0),n.toggleThumbContainer(!1,!0),n.showImageAtCurrentTime()))})),e(this,"endScrubbing",(function(){n.mouseDown=!1,Math.ceil(n.lastTime)===Math.ceil(n.player.media.currentTime)?n.toggleScrubbingContainer(!1):$e.call(n.player,n.player.media,"timeupdate",(function(){n.mouseDown||n.toggleScrubbingContainer(!1)}))})),e(this,"listeners",(function(){n.player.on("play",(function(){n.toggleThumbContainer(!1,!0)})),n.player.on("seeked",(function(){n.toggleThumbContainer(!1)})),n.player.on("timeupdate",(function(){n.lastTime=n.player.media.currentTime}))})),e(this,"render",(function(){n.elements.thumb.container=ce("div",{class:n.player.config.classNames.previewThumbnails.thumbContainer}),n.elements.thumb.imageContainer=ce("div",{class:n.player.config.classNames.previewThumbnails.imageContainer}),n.elements.thumb.container.appendChild(n.elements.thumb.imageContainer);var e=ce("div",{class:n.player.config.classNames.previewThumbnails.timeContainer});n.elements.thumb.time=ce("span",{},"00:00"),e.appendChild(n.elements.thumb.time),n.elements.thumb.imageContainer.appendChild(e),U(n.player.elements.progress)&&n.player.elements.progress.appendChild(n.elements.thumb.container),n.elements.scrubbing.container=ce("div",{class:n.player.config.classNames.previewThumbnails.scrubbingContainer}),n.player.elements.wrapper.appendChild(n.elements.scrubbing.container)})),e(this,"destroy",(function(){n.elements.thumb.container&&n.elements.thumb.container.remove(),n.elements.scrubbing.container&&n.elements.scrubbing.container.remove()})),e(this,"showImageAtCurrentTime",(function(){n.mouseDown?n.setScrubbingContainerSize():n.setThumbContainerSizeAndPos();var e=n.thumbnails[0].frames.findIndex((function(e){return n.seekTime>=e.startTime&&n.seekTime<=e.endTime})),t=e>=0;var i=0;n.mouseDown||n.toggleThumbContainer(t),t&&(n.thumbnails.forEach((function(t,a){n.loadedImages.includes(t.frames[e].text)&&(i=a)})),e!==n.showingThumb&&(n.showingThumb=e,n.loadImage(i)))})),e(this,"loadImage",(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=n.showingThumb,i=n.thumbnails[e],a=i.urlPrefix,r=i.frames[t],s=i.frames[t].text,o=a+s;if(n.currentImageElement&&n.currentImageElement.dataset.filename===s)n.showImage(n.currentImageElement,r,e,t,s,!1),n.currentImageElement.dataset.index=t,n.removeOldImages(n.currentImageElement);else{n.loadingImage&&n.usingSprites&&(n.loadingImage.onload=null);var l=new Image;l.src=o,l.dataset.index=t,l.dataset.filename=s,n.showingThumbFilename=s,n.player.debug.log("Loading image: ".concat(o)),l.onload=function(){return n.showImage(l,r,e,t,s,!0)},n.loadingImage=l,n.removeOldImages(l)}})),e(this,"showImage",(function(e,t,i,a,r){var s=arguments.length>5&&arguments[5]!==undefined?arguments[5]:!0;n.player.debug.log("Showing thumb: ".concat(r,". num: ").concat(a,". qual: ").concat(i,". newimg: ").concat(s)),n.setImageSizeAndOffset(e,t),s&&(n.currentImageContainer.appendChild(e),n.currentImageElement=e,n.loadedImages.includes(r)||n.loadedImages.push(r)),n.preloadNearby(a,!0).then(n.preloadNearby(a,!1)).then(n.getHigherQuality(i,e,t,r))})),e(this,"removeOldImages",(function(e){Array.from(n.currentImageContainer.children).forEach((function(t){if("img"!==t.tagName.toLowerCase())return;var i=n.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;var a=n.currentImageContainer;setTimeout((function(){a.removeChild(t),n.player.debug.log("Removing thumb: ".concat(t.dataset.filename))}),i)}}))})),e(this,"preloadNearby",(function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;return new Promise((function(i){setTimeout((function(){var a=n.thumbnails[0].frames[e].text;if(n.showingThumbFilename===a){var r;r=t?n.thumbnails[0].frames.slice(e):n.thumbnails[0].frames.slice(0,e).reverse();var s=!1;r.forEach((function(e){var t=e.text;if(t!==a&&!n.loadedImages.includes(t)){s=!0,n.player.debug.log("Preloading thumb filename: ".concat(t));var r=n.thumbnails[0].urlPrefix,o=r+t,l=new Image;l.src=o,l.onload=function(){n.player.debug.log("Preloaded thumb filename: ".concat(t)),n.loadedImages.includes(t)||n.loadedImages.push(t),i()}}})),s||i()}}),300)}))})),e(this,"getHigherQuality",(function(e,t,i,a){if(e0&&arguments[0]!==undefined?arguments[0]:!1;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var i=n.player.config.classNames.previewThumbnails.thumbContainerShown;n.elements.thumb.container.classList.toggle(i,e),!e&&t&&(n.showingThumb=null,n.showingThumbFilename=null)})),e(this,"toggleScrubbingContainer",(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;var t=n.player.config.classNames.previewThumbnails.scrubbingContainerShown;n.elements.scrubbing.container.classList.toggle(t,e),e||(n.showingThumb=null,n.showingThumbFilename=null)})),e(this,"determineContainerAutoSizing",(function(){(n.elements.thumb.imageContainer.clientHeight>20||n.elements.thumb.imageContainer.clientWidth>20)&&(n.sizeSpecifiedInCSS=!0)})),e(this,"setThumbContainerSizeAndPos",(function(){var e=n.elements.thumb.imageContainer;if(n.sizeSpecifiedInCSS){if(e.clientHeight>20&&e.clientWidth<20){var t=Math.floor(e.clientHeight*n.thumbAspectRatio);e.style.width="".concat(t,"px")}else if(e.clientHeight<20&&e.clientWidth>20){var i=Math.floor(e.clientWidth/n.thumbAspectRatio);e.style.height="".concat(i,"px")}}else{var a=Math.floor(n.thumbContainerHeight*n.thumbAspectRatio);e.style.height="".concat(n.thumbContainerHeight,"px"),e.style.width="".concat(a,"px")}n.setThumbContainerPos()})),e(this,"setThumbContainerPos",(function(){var e=n.player.elements.progress.getBoundingClientRect(),t=n.player.elements.container.getBoundingClientRect(),i=n.elements.thumb.container,a=t.left-e.left+10,r=t.right-e.left-i.clientWidth-10,s=n.mousePosX-e.left-i.clientWidth/2,o=Et(s,a,r);i.style.left="".concat(o,"px"),i.style.setProperty("--preview-arrow-offset",s-o+"px")})),e(this,"setScrubbingContainerSize",(function(){var e=$t(n.thumbAspectRatio,{width:n.player.media.clientWidth,height:n.player.media.clientHeight}),t=e.width,i=e.height;n.elements.scrubbing.container.style.width="".concat(t,"px"),n.elements.scrubbing.container.style.height="".concat(i,"px")})),e(this,"setImageSizeAndOffset",(function(e,t){if(!n.usingSprites)return;var i=n.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*i+"px",e.style.width=e.naturalWidth*i+"px",e.style.left="-".concat(t.x*i,"px"),e.style.top="-".concat(t.y*i,"px")})),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}h(t,[{key:"enabled",get:function e(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function e(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function e(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function e(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function e(){if(this.mouseDown){var t=$t(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),i=t.height;return i}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function e(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function e(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}]);return t}();var At={insertElements:function e(t,i){var n=this;q(i)?ue(t,this.media,{src:i}):X(i)&&i.forEach((function(e){ue(t,n.media,e)}))},change:function e(t){var i=this;re(t,"sources.length")?(Be.cancelRequests.call(this),this.destroy.call(this,(function(){i.options.quality=[],de(i.media),i.media=null,U(i.elements.container)&&i.elements.container.removeAttribute("class");var e=t.sources,n=t.type,a=g(e,1),r=a[0],s=r.provider,o=s===void 0?lt.html5:s,l=r.src,c="html5"===o?n:"div",u="html5"===o?{}:{src:l};Object.assign(i,{provider:o,type:n,supported:Se.check(n,o,i.config.playsinline),media:ce(c,u)}),i.elements.container.appendChild(i.media),Y(t.autoplay)&&(i.config.autoplay=t.autoplay),i.isHTML5&&(i.config.crossorigin&&i.media.setAttribute("crossorigin",""),i.config.autoplay&&i.media.setAttribute("autoplay",""),te(t.poster)||(i.poster=t.poster),i.config.loop.active&&i.media.setAttribute("loop",""),i.config.muted&&i.media.setAttribute("muted",""),i.config.playsinline&&i.media.setAttribute("playsinline","")),vt.addStyleHook.call(i),i.isHTML5&&At.insertElements.call(i,"source",e),i.config.title=t.title,kt.setup.call(i),i.isHTML5&&Object.keys(t).includes("tracks")&&At.insertElements.call(i,"track",t.tracks),(i.isHTML5||i.isEmbed&&!i.supported.ui)&&vt.build.call(i),i.isHTML5&&i.media.load(),te(t.previewThumbnails)||(Object.assign(i.config.previewThumbnails,t.previewThumbnails),i.previewThumbnails&&i.previewThumbnails.loaded&&(i.previewThumbnails.destroy(),i.previewThumbnails=null),i.config.previewThumbnails.enabled&&(i.previewThumbnails=new Mt(i))),i.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};var It=function(){function t(i,n){var a=this;f(this,t);if(e(this,"play",(function(){return W(a.media.play)?(a.ads&&a.ads.enabled&&a.ads.managerPromise.then((function(){return a.ads.play()}))["catch"]((function(){return Oe(a.media.play())})),a.media.play()):null})),e(this,"pause",(function(){return a.playing&&W(a.media.pause)?a.media.pause():null})),e(this,"togglePlay",(function(e){return(Y(e)?e:!a.playing)?a.play():a.pause()})),e(this,"stop",(function(){a.isHTML5?(a.pause(),a.restart()):W(a.media.stop)&&a.media.stop()})),e(this,"restart",(function(){a.currentTime=0})),e(this,"rewind",(function(e){a.currentTime-=V(e)?e:a.config.seekTime})),e(this,"forward",(function(e){a.currentTime+=V(e)?e:a.config.seekTime})),e(this,"increaseVolume",(function(e){var t=a.media.muted?0:a.volume;a.volume=t+(V(e)?e:0)})),e(this,"decreaseVolume",(function(e){a.increaseVolume(-e)})),e(this,"airplay",(function(){Se.airplay&&a.media.webkitShowPlaybackTargetPicker()})),e(this,"toggleControls",(function(e){if(a.supported.ui&&!a.isAudio){var t=ge(a.elements.container,a.config.classNames.hideControls),i=void 0===e?void 0:!e,n=me(a.elements.container,a.config.classNames.hideControls,i);if(n&&X(a.config.controls)&&a.config.controls.includes("settings")&&!te(a.config.settings)&&tt.toggleMenu.call(a,!1),n!==t){var r=n?"controlshidden":"controlsshown";Me.call(a,a.media,r)}return!n}return!1})),e(this,"on",(function(e,t){Ee.call(a,a.elements.container,e,t)})),e(this,"once",(function(e,t){$e.call(a,a.elements.container,e,t)})),e(this,"off",(function(e,t){Pe(a.elements.container,e,t)})),e(this,"destroy",(function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;if(!a.ready)return;var i=function i(){document.body.style.overflow="",a.embed=null,t?(Object.keys(a.elements).length&&(de(a.elements.buttons.play),de(a.elements.captions),de(a.elements.controls),de(a.elements.wrapper),a.elements.buttons.play=null,a.elements.captions=null,a.elements.controls=null,a.elements.wrapper=null),W(e)&&e()):(Ae.call(a),Be.cancelRequests.call(a),pe(a.elements.original,a.elements.container),Me.call(a,a.elements.original,"destroyed",!0),W(e)&&e.call(a.elements.original),a.ready=!1,setTimeout((function(){a.elements=null,a.media=null}),200))};a.stop(),clearTimeout(a.timers.loading),clearTimeout(a.timers.controls),clearTimeout(a.timers.resized),a.isHTML5?(vt.toggleNativeControls.call(a,!0),i()):a.isYouTube?(clearInterval(a.timers.buffering),clearInterval(a.timers.playing),null!==a.embed&&W(a.embed.destroy)&&a.embed.destroy(),i()):a.isVimeo&&(null!==a.embed&&a.embed.unload().then(i),setTimeout(i,200))})),e(this,"supports",(function(e){return Se.mime.call(a,e)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Se.touch,this.media=i,q(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||G(this.media)||X(this.media))&&(this.media=this.media[0]),this.config=se({},rt,t.defaults,n||{},function(){try{return JSON.parse(a.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new ft(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Se),R(this.media)||!U(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!Se.check().api)return void this.debug.error("Setup failed: no support");var r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;var s=this.media.tagName.toLowerCase();var o=null,l=null;switch(s){case"div":if(o=this.media.querySelector("iframe"),U(o)){if(l=it(o.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?lt.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?lt.vimeo:null}(l.toString()),this.elements.container=this.media,this.media=o,this.elements.container.className="",l.search.length){var c=["1","true"];c.includes(l.searchParams.get("autoplay"))&&(this.config.autoplay=!0),c.includes(l.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=c.includes(l.searchParams.get("playsinline")),this.config.youtube.hl=l.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(te(this.provider)||!Object.values(lt).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=ut;break;case"video":case"audio":this.type=s,this.provider=lt.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=Se.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new mt(this),this.storage=new Ke(this),this.media.plyr=this,U(this.elements.container)||(this.elements.container=ce("div",{tabindex:0}),oe(this.media,this.elements.container)),vt.migrateStyles.call(this),vt.addStyleHook.call(this),kt.setup.call(this),this.config.debug&&Ee.call(this,this.elements.container,this.config.events.join(" "),(function(e){a.debug.log("event: ".concat(e.type))})),this.fullscreen=new pt(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&vt.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ct(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Oe(a.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Mt(this))):this.debug.error("Setup failed: no support")}h(t,[{key:"isHTML5",get:function e(){return this.provider===lt.html5}},{key:"isEmbed",get:function e(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function e(){return this.provider===lt.youtube}},{key:"isVimeo",get:function e(){return this.provider===lt.vimeo}},{key:"isVideo",get:function e(){return this.type===ut}},{key:"isAudio",get:function e(){return this.type===ct}},{key:"playing",get:function e(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function e(){return Boolean(this.media.paused)}},{key:"stopped",get:function e(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function e(){return Boolean(this.media.ended)}},{key:"currentTime",get:function e(){return Number(this.media.currentTime)},set:function e(t){if(!this.duration)return;var i=V(t)&&t>0;this.media.currentTime=i?Math.min(t,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},{key:"buffered",get:function e(){var t=this.media.buffered;return V(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}},{key:"seeking",get:function e(){return Boolean(this.media.seeking)}},{key:"duration",get:function e(){var t=parseFloat(this.config.duration),i=(this.media||{}).duration,n=V(i)&&i!==1/0?i:0;return t||n}},{key:"volume",get:function e(){return Number(this.media.volume)},set:function e(t){var i;var n=t;q(n)&&(n=Number(n)),V(n)||(n=this.storage.get("volume")),V(n)||(i=this.config,n=i.volume,i),n>1&&(n=1),n<0&&(n=0),this.config.volume=n,this.media.volume=n,!te(t)&&this.muted&&n>0&&(this.muted=!1)}},{key:"muted",get:function e(){return Boolean(this.media.muted)},set:function e(t){var i=t;Y(i)||(i=this.storage.get("muted")),Y(i)||(i=this.config.muted),this.config.muted=i,this.media.muted=i}},{key:"hasAudio",get:function e(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",get:function e(){return Number(this.media.playbackRate)},set:function e(t){var i=this;var n=null;V(t)&&(n=t),V(n)||(n=this.storage.get("speed")),V(n)||(n=this.config.speed.selected);var a=this.minimumSpeed,r=this.maximumSpeed;n=Et(n,a,r),this.config.speed.selected=n,setTimeout((function(){i.media&&(i.media.playbackRate=n)}),0)}},{key:"minimumSpeed",get:function e(){return this.isYouTube?Math.min.apply(Math,l(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function e(){return this.isYouTube?Math.max.apply(Math,l(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function e(){return this.media.quality},set:function e(t){var i=this.config.quality,n=this.options.quality;if(!n.length)return;var a=[!te(t)&&Number(t),this.storage.get("quality"),i.selected,i["default"]].find(V),r=!0;if(!n.includes(a)){var s=ze(n,a);this.debug.warn("Unsupported quality option: ".concat(a,", using ").concat(s," instead")),a=s,r=!1}i.selected=a,this.media.quality=a,r&&this.storage.set({quality:a})}},{key:"loop",get:function e(){return Boolean(this.media.loop)},set:function e(t){var i=Y(t)?t:this.config.loop.active;this.config.loop.active=i,this.media.loop=i}},{key:"source",get:function e(){return this.media.currentSrc},set:function e(t){At.change.call(this,t)}},{key:"download",get:function e(){var t=this.config.urls.download;return ee(t)?t:this.source},set:function e(t){ee(t)&&(this.config.urls.download=t,tt.setDownloadUrl.call(this))}},{key:"poster",get:function e(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function e(t){this.isVideo?vt.setPoster.call(this,t,!1)["catch"]((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function e(){if(!this.isVideo)return null;var t=_e(je.call(this));return X(t)?t.join(":"):t},set:function e(t){this.isVideo?q(t)&&He(t)?(this.config.ratio=_e(t),Fe.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(t,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function e(){return Boolean(this.config.autoplay)},set:function e(t){this.config.autoplay=Y(t)?t:this.config.autoplay}},{key:"toggleCaptions",value:function e(t){at.toggle.call(this,t,!1)}},{key:"currentTrack",get:function e(){var t=this.captions,i=t.toggled,n=t.currentTrack;return i?n:-1},set:function e(t){at.set.call(this,t,!1),at.setup.call(this)}},{key:"language",get:function e(){return(at.getCurrentTrack.call(this)||{}).language},set:function e(t){at.setLanguage.call(this,t,!1)}},{key:"pip",get:function e(){return Se.pip?te(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===st:null},set:function e(t){if(!Se.pip)return;var i=Y(t)?t:!this.pip;W(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(i?st:ot),W(this.media.requestPictureInPicture)&&(!this.pip&&i?this.media.requestPictureInPicture():this.pip&&!i&&document.exitPictureInPicture())}},{key:"setPreviewThumbnails",value:function e(t){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,t),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Mt(this))}}],[{key:"supported",value:function e(t,i,n){return Se.check(t,i,n)}},{key:"loadSprite",value:function e(t,i){return Ze(t,i)}},{key:"setup",value:function e(i){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=null;return q(i)?a=Array.from(document.querySelectorAll(i)):G(i)?a=Array.from(i):X(i)&&(a=i.filter(U)),te(a)?null:a.map((function(e){return new t(e,n)}))}}]);return t}();var Ot;return It.defaults=(Ot=rt,JSON.parse(JSON.stringify(Ot))),It}))},385:function(e,t,i){var n,a,r;function s(e){"@babel/helpers - typeof";return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}(function(s){"use strict";if(true){!(a=[i(5311)],n=s,r=typeof n==="function"?n.apply(t,a):n,r!==undefined&&(e.exports=r))}else{}})((function(e){"use strict";var t=window.Slick||{};t=function(){var t=0;function i(i,n){var a=this,r;a.defaults={accessibility:true,adaptiveHeight:false,appendArrows:e(i),appendDots:e(i),arrows:true,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:false,autoplaySpeed:3e3,centerMode:false,centerPadding:"50px",cssEase:"ease",customPaging:function t(i,n){return e('
'));v.append(E)}if(P.length===0){P=T('
'));v.append(P)}if(E.length)E[0].style.opacity=b>0?b:0;if(P.length)P[0].style.opacity=-b>0?-b:0}}if(St.pointerEvents||St.prefixedPointerEvents){var $=r[0].style;$.perspectiveOrigin="".concat(u,"px 50%")}},setTransition:function e(t){var i=this;i.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}};var Cn={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:true}},create:function e(){var t=this;Tt.extend(t,{coverflowEffect:{setTranslate:kn.setTranslate.bind(t),setTransition:kn.setTransition.bind(t)}})},on:{beforeInit:function e(){var t=this;if(t.params.effect!=="coverflow")return;t.classNames.push("".concat(t.params.containerModifierClass,"coverflow"));t.classNames.push("".concat(t.params.containerModifierClass,"3d"));t.params.watchSlidesProgress=true;t.originalParams.watchSlidesProgress=true},setTranslate:function e(){var t=this;if(t.params.effect!=="coverflow")return;t.coverflowEffect.setTranslate()},setTransition:function e(t){var i=this;if(i.params.effect!=="coverflow")return;i.coverflowEffect.setTransition(t)}}};var En={init:function e(){var t=this;var i=t.params.thumbs;var n=t.constructor;if(i.swiper instanceof n){t.thumbs.swiper=i.swiper;Tt.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:true,slideToClickedSlide:false});Tt.extend(t.thumbs.swiper.params,{watchSlidesProgress:true,slideToClickedSlide:false})}else if(Tt.isObject(i.swiper)){t.thumbs.swiper=new n(Tt.extend({},i.swiper,{watchSlidesVisibility:true,watchSlidesProgress:true,slideToClickedSlide:false}));t.thumbs.swiperCreated=true}t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass);t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick:function e(){var t=this;var i=t.thumbs.swiper;if(!i)return;var n=i.clickedIndex;var a=i.clickedSlide;if(a&&T(a).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(typeof n==="undefined"||n===null)return;var r;if(i.params.loop){r=parseInt(T(i.clickedSlide).attr("data-swiper-slide-index"),10)}else{r=n}if(t.params.loop){var s=t.activeIndex;if(t.slides.eq(s).hasClass(t.params.slideDuplicateClass)){t.loopFix();t._clientLeft=t.$wrapperEl[0].clientLeft;s=t.activeIndex}var o=t.slides.eq(s).prevAll('[data-swiper-slide-index="'.concat(r,'"]')).eq(0).index();var l=t.slides.eq(s).nextAll('[data-swiper-slide-index="'.concat(r,'"]')).eq(0).index();if(typeof o==="undefined")r=l;else if(typeof l==="undefined")r=o;else if(l-sr){s=s-Math.floor(a/2)+1}else{s=s+Math.floor(a/2)-1}}else if(s>r){s=s-a+1}n.slideTo(s,t?0:undefined)}}var c=1;var u=i.params.thumbs.slideThumbActiveClass;if(i.params.slidesPerView>1&&!i.params.centeredSlides){c=i.params.slidesPerView}n.slides.removeClass(u);if(n.params.loop||n.params.virtual){for(var d=0;d1180){Fn=true;Rn=false;Bn=false;Vn=false}else if(e>=1024&&e<=1180){Fn=false;Rn=true;Bn=false;Vn=false}else if(e>668&&e<1024){Fn=false;Rn=false;Bn=true;Vn=false}else if(e<=668){Fn=false;Rn=false;Bn=false;Vn=true}d();h();p();v()}));$(window).resize();$(".header_nav").slide({type:"menu",titCell:".m",targetCell:".sub",effect:"slideDown",delayTime:400,triggerTime:0,returnDefault:true,defaultPlay:false});var e=$("body").find(".header_nav").html();$(".side__bar .side__bar-inner").append(e);var t=$(".side__bar").find(".icon_mnav").html();var i=$(".side__bar ul>li").has(".sub");i.append(t);$(".side__bar ul>li i.icon").each((function(){$(this).click((function(e){e.preventDefault();$(this).parent().find(".sub").slideToggle();$(this).toggleClass("on")}))}));$("#wraper .side__bar ul>li .sub li a").on("click",(function(){r()}));var n=$(".mobile-icon .hamburger");n.click((function(){if(n.hasClass("is-closed")){a()}else{r()}}));function a(){qn.addClass("toggled");c();n.removeClass("is-closed");n.addClass("is-open");s()}function r(){u();qn.removeClass("toggled");n.addClass("is-closed");n.removeClass("is-open");o()}function s(){var e=$(document).scrollTop();$(document).on("scroll.unable",(function(t){$(document).scrollTop(e)}))}function o(){$(document).unbind("scroll.unable")}var l=$(".pop__search");$(".header_bar_search").click((function(){l.addClass("on");$(".body-overlay").addClass("morezindex");c()}));$(".pop__search-close").click((function(){l.removeClass("on");$(".body-overlay").removeClass("morezindex");u()}));function c(){Yn.stop().fadeIn(500)}function u(){Yn.stop().fadeOut(500)}Yn.click((function(){u();if(qn.hasClass("toggled")){r()}if(l.hasClass("on")){l.removeClass("on")}}));function d(){var e=$(".index_banner .item .img");var t=$(".index_banner .item .mimg");if(Fn||Rn){e.each((function(){var e=$(this).attr("data-image");$(this).css({"background-image":"url("+e+")"})}))}else{t.each((function(){var e=$(this).attr("data-mimage");$(this).find("img").remove();$(this).append("")}))}}var f=new Mn(".index_banner .swiper-container",{autoplay:{delay:6e3,stopOnLastSlide:false,disableOnInteraction:false},loop:true,effect:"fade",pagination:{el:".index_banner_page",clickable:true},navigation:{nextEl:".index_banner_next",prevEl:".index_banner_prev"},on:{init:function e(){jn.init(this).animate();var t=this.slides.length-2;var i=this.realIndex+1;if(i<10){i="0"+i}else{i=i}$(".index_banner_num .cur").text(i);$(".index_banner_num .total").text("0"+t)},slideChange:function e(){jn.init(this).animate();var t=this.realIndex+1;if(t<10){t="0"+t}else{t=t}$(".index_banner_num .cur").text(t)}}});function p(){if($("#index_fullpage").length==1){if($(window).width()>968){if(!$("#index_fullpage").hasClass("loaded")){$("#index_fullpage").fullpage({anchors:["home","product","intro","app","news","foot"],navigation:true,navigationPosition:"left",afterLoad:function e(t,i){if(t=="intro"){m()}if(t=="home"||t=="app"){$("#fp-nav").removeClass("dark")}if(t=="product"||t=="intro"||t=="news"){$("#fp-nav").addClass("dark")}},onLeave:function e(t,i,n){},afterResize:function e(){}});$("#index_fullpage").addClass("loaded")}}else{if($("#index_fullpage").hasClass("loaded")){$("#index_fullpage").removeClass("loaded");$("#index_fullpage").fullpage.destroy("all")}}}}$(".index_app").slide({titCell:".index_app_list li",targetCell:".index_app_bg",delayTime:500,autoPlay:true,interTime:3e3,mouseOverStop:false});function h(){if($("#index_fullpage").length==1&&Fn==true||Rn==true){$(".backToTop").on("click",(function(e){e.preventDefault();$.fn.fullpage.moveTo("home")}))}else{$(".backToTop").on("click",(function(e){e.preventDefault();$("html, body").animate({scrollTop:0},500)}))}}$(".index_pro_bd").each((function(e,t){var i=$(this).find(".swiper-container");var n=$(this).find(".index_pro_prev");var a=$(this).find(".index_pro_next");var r=$(this).find(".swiper-pagination");var s=new Mn(i,{slidesPerView:4,spaceBetween:0,navigation:{nextEl:a,prevEl:n},pagination:{el:r,type:"progressbar"},breakpoints:{668:{slidesPerView:2},968:{slidesPerView:3}}})}));function v(){if($(".jumpNum").length==1&&$("#index_fullpage").length==0&&Fn==false||Rn==false){var e=document.querySelector(".jumpNum");var t=Ln()(e,(function(e){if(e){m();this.destroy()}}))}}function m(){var e={useEasing:true,useGrouping:true,separator:"",decimal:".",prefix:"",suffix:""};$(".jumpNum>ul>li span.num").each((function(t,i){var n=$(this).attr("id");var a=$(this).attr("data-num");t=t+1;var r="demo"+t;r=new(Dn())(n,0,a,0,5,e);r.start()}))}$(".intro_history_bd").slick({slidesToShow:1,slidesToScroll:1,arrows:true,prevArrow:".intro_history_prev",nextArrow:".intro_history_next",dots:false,fade:true,infinite:false,asNavFor:".intro_history_hd"});$(".intro_history_hd").slick({slidesToShow:5,slidesToScroll:1,asNavFor:".intro_history_bd",dots:false,arrows:false,infinite:false,centerMode:true,focusOnSelect:true,responsive:[{breakpoint:968,settings:{slidesToShow:5}},{breakpoint:668,settings:{slidesToShow:3}}]});var g=new Mn(".intro_jobs_list .swiper-container",{loop:false,slidesPerView:2,slidesPerColumn:2,spaceBetween:40,navigation:{nextEl:".intro_jobs_next",prevEl:".intro_jobs_prev"},breakpoints:{668:{slidesPerView:1,slidesPerColumn:1,spaceBetween:20},968:{slidesPerView:2,slidesPerColumn:2,spaceBetween:20},1440:{spaceBetween:20}}});$(".intro_contact_side").slide({titCell:".intro_contact_hd li",targetCell:".intro_contact_bd"})}));window.addEventListener("load",(function(){var e=r()(".lozad",{rootMargin:"10px 0px",threshold:.1,enableAutoReload:true});e.observe()}));l()()},3623:function(e,t,i){var n,a;function r(e){"@babel/helpers - typeof";return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}!function(r,s){true?!(n=s,a=typeof n==="function"?n.call(t,i,t,e):n,a!==undefined&&(e.exports=a)):0}(this,(function(){var e=function e(t,i,n,a,r,s){for(var o=0,l=["webkit","moz","ms","o"],c=0;cthis.endVal,this.frameVal=this.startVal,this.decimals=Math.max(0,a||0),this.dec=Math.pow(10,this.decimals),this.duration=1e3*Number(r)||2e3;var d=this;this.version=function(){return"1.5.3"},this.printValue=function(e){var t=isNaN(e)?"--":d.formatNumber(e);"INPUT"==d.d.tagName?this.d.value=t:"text"==d.d.tagName?this.d.textContent=t:this.d.innerHTML=t},this.easeOutExpo=function(e,t,i,n){return 1024*i*(-Math.pow(2,-10*e/n)+1)/1023+t},this.count=function(e){d.startTime||(d.startTime=e),d.timestamp=e;var t=e-d.startTime;d.remaining=d.duration-t,d.frameVal=d.options.useEasing?d.countDown?d.startVal-d.easeOutExpo(t,0,d.startVal-d.endVal,d.duration):d.easeOutExpo(t,d.startVal,d.endVal-d.startVal,d.duration):d.countDown?d.startVal-(d.startVal-d.endVal)*(t/d.duration):d.startVal+(d.endVal-d.startVal)*(t/d.duration),d.frameVal=d.countDown?d.frameVald.endVal?d.endVal:d.frameVal,d.frameVal=Math.round(d.frameVal*d.dec)/d.dec,d.printValue(d.frameVal),td.endVal,d.rAF=requestAnimationFrame(d.count)},this.formatNumber=function(e){e=e.toFixed(d.decimals),e+="";var t,i,n,a;if(t=e.split("."),i=t[0],n=t.length>1?d.options.decimal+t[1]:"",a=/(\d+)(\d{3})/,d.options.useGrouping)for(;a.test(i);){i=i.replace(a,"$1"+d.options.separator+"$2")}return d.options.prefix+i+n+d.options.suffix},d.printValue(d.startVal)};return e}))},1725:function(e,t,i){var n,a;function r(e){"@babel/helpers - typeof";return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}(function(r,s){"use strict";if(true){!(n=[i(5311)],a=function(e){return s(e,r,r.document,r.Math)}.apply(t,n),a!==undefined&&(e.exports=a))}else{}})(typeof window!=="undefined"?window:this,(function(e,t,i,n,a){"use strict";var r="fullpage-wrapper";var s="."+r;var o="fp-scrollable";var l="."+o;var c="fp-responsive";var u="fp-notransition";var d="fp-destroyed";var f="fp-enabled";var p="fp-viewing";var h="active";var v="."+h;var m="fp-completely";var g="."+m;var b=".section";var y="fp-section";var w="."+y;var x=w+v;var T=w+":first";var S=w+":last";var k="fp-tableCell";var C="."+k;var E="fp-auto-height";var P=".fp-auto-height";var $="fp-normal-scroll";var M=".fp-normal-scroll";var A="fp-nav";var I="#"+A;var O="fp-tooltip";var L="."+O;var z="fp-show-active";var D=".slide";var N="fp-slide";var H="."+N;var _=H+v;var j="fp-slides";var F="."+j;var R="fp-slidesContainer";var B="."+R;var V="fp-table";var q="fp-slidesNav";var Y="."+q;var W=Y+" a";var X="fp-controlArrow";var G="."+X;var U="fp-prev";var K="."+U;var Q=X+" "+U;var Z=G+K;var J="fp-next";var ee="."+J;var te=X+" "+J;var ie=G+ee;var ne=e(t);var ae=e(i);e.fn.fullpage=function(o){if(e("html").hasClass(f)){Ri();return}var l=e("html, body");var P=e("body");var M=e.fn.fullpage;o=e.extend({menu:false,anchors:[],lockAnchors:false,navigation:false,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:false,slidesNavigation:false,slidesNavPosition:"bottom",scrollBar:false,hybrid:false,css3:true,scrollingSpeed:700,autoScrolling:true,fitToSection:true,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:false,loopTop:false,loopHorizontal:true,continuousVertical:false,continuousHorizontal:false,scrollHorizontally:false,interlockedSlides:false,dragAndMove:false,offsetSections:false,resetSliders:false,fadingEffect:false,normalScrollElements:null,scrollOverflow:false,scrollOverflowReset:false,scrollOverflowHandler:e.fn.fp_scrolloverflow?e.fn.fp_scrolloverflow.iscrollHandler:null,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:true,animateAnchor:true,recordHistory:true,controlArrows:true,controlArrowColor:"#fff",verticalCentered:true,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:false,parallax:false,parallaxOptions:{type:"reveal",percentage:62,property:"translate"},sectionSelector:b,slideSelector:D,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,lazyLoading:true},o);var X=false;var K=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/);var J="ontouchstart"in t||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints;var ee=e(this);var re=ne.height();var se=false;var oe=true;var le;var ce;var ue=true;var de=[];var fe;var pe;var he={};he.m={up:true,down:true,left:true,right:true};he.k=e.extend(true,{},he.m);var ve=Oi();var me={touchmove:"ontouchmove"in t?"touchmove":ve.move,touchstart:"ontouchstart"in t?"touchstart":ve.down};var ge;var be='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]';var ye;var we;var xe;var Te;var Se;var ke;var Ce=e.extend(true,{},o);Ri();e.extend(e.easing,{easeInOutCubic:function e(t,i,n,a,r){if((i/=r/2)<1)return a/2*i*i*i+n;return a/2*((i-=2)*i*i+2)+n}});function Ee(t,i){if(!t){Di(0)}Fi("autoScrolling",t,i);var n=e(x);if(o.autoScrolling&&!o.scrollBar){l.css({overflow:"hidden",height:"100%"});Pe(Ce.recordHistory,"internal");ee.css({"-ms-touch-action":"none","touch-action":"none"});if(n.length){Di(n.position().top)}}else{l.css({overflow:"visible",height:"initial"});Pe(false,"internal");ee.css({"-ms-touch-action":"","touch-action":""});if(n.length){l.scrollTop(n.position().top)}}}function Pe(e,t){Fi("recordHistory",e,t)}function $e(e,t){Fi("scrollingSpeed",e,t)}function Me(e,t){Fi("fitToSection",e,t)}function Ae(e){o.lockAnchors=e}function Ie(e){if(e){Pi();$i()}else{Ei();Mi()}}function Oe(t,i){if(typeof i!=="undefined"){i=i.replace(/ /g,"").split(",");e.each(i,(function(e,i){Hi(t,i,"m")}))}else{Hi(t,"all","m");if(t){Ie(true);Ai()}else{Ie(false);Ii()}}}function Le(t,i){if(typeof i!=="undefined"){i=i.replace(/ /g,"").split(",");e.each(i,(function(e,i){Hi(t,i,"k")}))}else{Hi(t,"all","k");o.keyboardScrolling=t}}function ze(){var t=e(x).prev(w);if(!t.length&&(o.loopTop||o.continuousVertical)){t=e(w).last()}if(t.length){Ct(t,null,true)}}function De(){var t=e(x).next(w);if(!t.length&&(o.loopBottom||o.continuousVertical)){t=e(w).first()}if(t.length){Ct(t,null,false)}}function Ne(e,t){$e(0,"internal");He(e,t);$e(Ce.scrollingSpeed,"internal")}function He(e,t){var i=mi(e);if(typeof t!=="undefined"){bi(e,t)}else if(i.length>0){Ct(i)}}function _e(e){xt("right",e)}function je(e){xt("left",e)}function Fe(t){if(ee.hasClass(d)){return}se=true;re=ne.height();e(w).each((function(){var t=e(this).find(F);var i=e(this).find(H);if(o.verticalCentered){e(this).find(C).css("height",hi(e(this))+"px")}e(this).css("height",re+"px");if(i.length>1){Jt(t,t.find(_))}}));if(o.scrollOverflow){ge.createScrollBarForAll()}var i=e(x);var n=i.index(w);if(n){Ne(n+1)}se=false;e.isFunction(o.afterResize)&&t&&o.afterResize.call(ee);e.isFunction(o.afterReBuild)&&!t&&o.afterReBuild.call(ee)}function Re(t){var i=P.hasClass(c);if(t){if(!i){Ee(false,"internal");Me(false,"internal");e(I).hide();P.addClass(c);e.isFunction(o.afterResponsive)&&o.afterResponsive.call(ee,t)}}else if(i){Ee(Ce.autoScrolling,"internal");Me(Ce.autoScrolling,"internal");e(I).show();P.removeClass(c);e.isFunction(o.afterResponsive)&&o.afterResponsive.call(ee,t)}}if(e(this).length){M.version="2.9.7";M.setAutoScrolling=Ee;M.setRecordHistory=Pe;M.setScrollingSpeed=$e;M.setFitToSection=Me;M.setLockAnchors=Ae;M.setMouseWheelScrolling=Ie;M.setAllowScrolling=Oe;M.setKeyboardScrolling=Le;M.moveSectionUp=ze;M.moveSectionDown=De;M.silentMoveTo=Ne;M.moveTo=He;M.moveSlideRight=_e;M.moveSlideLeft=je;M.fitToSection=st;M.reBuild=Fe;M.setResponsive=Re;M.destroy=_i;M.shared={afterRenderActions:tt};Be();Ve()}function Be(){if(o.css3){o.css3=Ci()}o.scrollBar=o.scrollBar||o.hybrid;qe();Ye();Oe(true);Ee(o.autoScrolling,"internal");ri();ki();if(i.readyState==="complete"){Ht()}ne.on("load",Ht)}function Ve(){ne.on("scroll",rt).on("hashchange",_t).blur(Wt).resize(ai);ae.keydown(Ft).keyup(Bt).on("click touchstart",I+" a",Xt).on("click touchstart",W,Gt).on("click",L,Rt);e(w).on("click touchstart",G,Yt);if(o.normalScrollElements){ae.on("mouseenter touchstart",o.normalScrollElements,(function(){Oe(false)}));ae.on("mouseleave touchend",o.normalScrollElements,(function(){Oe(true)}))}}function qe(){var t=ee.find(o.sectionSelector);if(!o.anchors.length){o.anchors=t.filter("[data-anchor]").map((function(){return e(this).data("anchor").toString()})).get()}if(!o.navigationTooltips.length){o.navigationTooltips=t.filter("[data-tooltip]").map((function(){return e(this).data("tooltip").toString()})).get()}}function Ye(){ee.css({height:"100%",position:"relative"});ee.addClass(r);e("html").addClass(f);re=ne.height();ee.removeClass(d);Ue();e(w).each((function(t){var i=e(this);var n=i.find(H);var a=n.length;i.data("fp-styles",i.attr("style"));Xe(i,t);Ge(i,t);if(a>0){We(i,n,a)}else{if(o.verticalCentered){pi(i)}}}));if(o.fixedElements&&o.css3){e(o.fixedElements).appendTo(P)}if(o.navigation){Qe()}Ze();if(o.scrollOverflow){ge=o.scrollOverflowHandler.init(o)}else{tt()}}function We(t,i,n){var a=n*100;var r=100/n;i.wrapAll('
');i.parent().wrap('
');t.find(B).css("width",a+"%");if(n>1){if(o.controlArrows){Ke(t)}if(o.slidesNavigation){wi(t,n)}}i.each((function(t){e(this).css("width",r+"%");if(o.verticalCentered){pi(e(this))}}));var s=t.find(_);if(s.length&&(e(x).index(w)!==0||e(x).index(w)===0&&s.index()!==0)){zi(s,"internal")}else{i.eq(0).addClass(h)}}function Xe(t,i){if(!i&&e(x).length===0){t.addClass(h)}pe=e(x);t.css("height",re+"px");if(o.paddingTop){t.css("padding-top",o.paddingTop)}if(o.paddingBottom){t.css("padding-bottom",o.paddingBottom)}if(typeof o.sectionsColor[i]!=="undefined"){t.css("background-color",o.sectionsColor[i])}if(typeof o.anchors[i]!=="undefined"){t.attr("data-anchor",o.anchors[i])}}function Ge(t,i){if(typeof o.anchors[i]!=="undefined"){if(t.hasClass(h)){ui(o.anchors[i],i)}}if(o.menu&&o.css3&&e(o.menu).closest(s).length){e(o.menu).appendTo(P)}}function Ue(){ee.find(o.sectionSelector).addClass(y);ee.find(o.slideSelector).addClass(N)}function Ke(e){e.find(F).after('
');if(o.controlArrowColor!="#fff"){e.find(ie).css("border-color","transparent transparent transparent "+o.controlArrowColor);e.find(Z).css("border-color","transparent "+o.controlArrowColor+" transparent transparent")}if(!o.loopHorizontal){e.find(Z).hide()}}function Qe(){P.append('
    ');var t=e(I);t.addClass((function(){return o.showActiveTooltip?z+" "+o.navigationPosition:o.navigationPosition}));for(var i=0;i';var r=o.navigationTooltips[i];if(typeof r!=="undefined"&&r!==""){a+='
    '+r+"
    "}a+="";t.find("ul").append(a)}e(I).css("margin-top","-"+e(I).height()/2+"px");e(I).find("li").eq(e(x).index(w)).find("a").addClass(h)}function Ze(){ee.find('iframe[src*="youtube.com/embed/"]').each((function(){Je(e(this),"enablejsapi=1")}))}function Je(e,t){var i=e.attr("src");e.attr("src",i+et(i)+t)}function et(e){return!/\?/.test(e)?"?":"&"}function tt(){var t=e(x);t.addClass(m);Ot(t);Lt(t);if(o.scrollOverflow){o.scrollOverflowHandler.afterLoad()}if(it()){e.isFunction(o.afterLoad)&&o.afterLoad.call(t,t.data("anchor"),t.index(w)+1)}e.isFunction(o.afterRender)&&o.afterRender.call(ee)}function it(){var e=mi(jt().section);return!e||e.length&&e.index()===pe.index()}var nt=false;var at=0;function rt(){var t;if(!o.autoScrolling||o.scrollBar){var n=ne.scrollTop();var a=lt(n);var r=0;var s=n+ne.height()/2;var l=P.height()-ne.height()===n;var c=i.querySelectorAll(w);if(l){r=c.length-1}else if(!n){r=0}else{for(var u=0;u=ne.scrollTop()+ne.height()}return i<=ne.scrollTop()}function lt(e){var t=e>at?"down":"up";at=e;St=e;return t}function ct(t){if(!he.m[t]){return}var i=t==="down"?De:ze;if(o.scrollOverflow){var n=o.scrollOverflowHandler.scrollable(e(x));var a=t==="down"?"bottom":"top";if(n.length>0){if(o.scrollOverflowHandler.isScrolled(a,n)){i()}else{return true}}else{i()}}else{i()}}function ut(e){var t=e.originalEvent;if(o.autoScrolling&&mt(t)){e.preventDefault()}}var dt=0;var ft=0;var pt=0;var ht=0;function vt(t){var i=t.originalEvent;var a=e(i.target).closest(w);if(mt(i)){if(o.autoScrolling){t.preventDefault()}var r=Li(i);pt=r.y;ht=r.x;if(a.find(F).length&&n.abs(ft-ht)>n.abs(dt-pt)){if(!X&&n.abs(ft-ht)>ne.outerWidth()/100*o.touchSensitivity){if(ft>ht){if(he.m.right){_e(a)}}else{if(he.m.left){je(a)}}}}else if(o.autoScrolling&&ue){if(n.abs(dt-pt)>ne.height()/100*o.touchSensitivity){if(dt>pt){ct("down")}else if(pt>dt){ct("up")}}}}}function mt(e){return typeof e.pointerType==="undefined"||e.pointerType!="mouse"}function gt(e){var t=e.originalEvent;if(o.fitToSection){l.stop()}if(mt(t)){var i=Li(t);dt=i.y;ft=i.x}}function bt(e,t){var i=0;var a=e.slice(n.max(e.length-t,1));for(var r=0;r149){de.shift()}de.push(n.abs(s));if(o.scrollBar){i.preventDefault?i.preventDefault():i.returnValue=false}var f=a-yt;yt=a;if(f>200){de=[]}if(ue){var p=bt(de,10);var h=bt(de,70);var v=p>=h;if(v&&d){if(c<0){ct("down")}else{ct("up")}}}return false}if(o.fitToSection){l.stop()}}function xt(t,i){var n=typeof i==="undefined"?e(x):i;var a=n.find(F);var r=a.find(H).length;if(!a.length||X||r<2){return}var s=a.find(_);var l=null;if(t==="left"){l=s.prev(H)}else{l=s.next(H)}if(!l.length){if(!o.loopHorizontal)return;if(t==="left"){l=s.siblings(":last")}else{l=s.siblings(":first")}}X=true;Jt(a,l,t)}function Tt(){e(_).each((function(){zi(e(this),"internal")}))}var St=0;function kt(e){var t=e.position();var i=t.top;var n=t.top>St;var a=i-re+e.outerHeight();var r=o.bigSectionsDestination;if(e.outerHeight()>re){if(!n&&!r||r==="bottom"){i=a}}else if(n||se&&e.is(":last-child")){i=a}St=i;return i}function Ct(t,i,n){if(typeof t==="undefined"){return}var a=kt(t);var r;var s;var l={element:t,callback:i,isMovementUp:n,dtop:a,yMovement:di(t),anchorLink:t.data("anchor"),sectionIndex:t.index(w),activeSlide:t.find(_),activeSection:e(x),leavingSection:e(x).index(w)+1,localIsResizing:se};if(l.activeSection.is(t)&&!se||o.scrollBar&&ne.scrollTop()===l.dtop&&!t.hasClass(E)){return}if(l.activeSlide.length){r=l.activeSlide.data("anchor");s=l.activeSlide.index()}if(e.isFunction(o.onLeave)&&!l.localIsResizing){var c=l.yMovement;if(typeof n!=="undefined"){c=n?"up":"down"}if(o.onLeave.call(l.activeSection,l.leavingSection,l.sectionIndex+1,c)===false){return}}if(o.autoScrolling&&o.continuousVertical&&typeof l.isMovementUp!=="undefined"&&(!l.isMovementUp&&l.yMovement=="up"||l.isMovementUp&&l.yMovement=="down")){l=$t(l)}if(!l.localIsResizing){Dt(l.activeSection)}if(o.scrollOverflow){o.scrollOverflowHandler.beforeLeave()}t.addClass(h).siblings().removeClass(h);Ot(t);if(o.scrollOverflow){o.scrollOverflowHandler.onLeave()}ue=false;xi(s,r,l.anchorLink,l.sectionIndex);Et(l);le=l.anchorLink;ui(l.anchorLink,l.sectionIndex)}function Et(t){if(o.css3&&o.autoScrolling&&!o.scrollBar){var i="translate3d(0px, -"+n.round(t.dtop)+"px, 0px)";vi(i,true);if(o.scrollingSpeed){clearTimeout(we);we=setTimeout((function(){At(t)}),o.scrollingSpeed)}else{At(t)}}else{var a=Pt(t);e(a.element).animate(a.options,o.scrollingSpeed,o.easing).promise().done((function(){if(o.scrollBar){setTimeout((function(){At(t)}),30)}else{At(t)}}))}}function Pt(e){var t={};if(o.autoScrolling&&!o.scrollBar){t.options={top:-e.dtop};t.element=s}else{t.options={scrollTop:e.dtop};t.element="html, body"}return t}function $t(t){if(!t.isMovementUp){e(x).after(t.activeSection.prevAll(w).get().reverse())}else{e(x).before(t.activeSection.nextAll(w))}Di(e(x).position().top);Tt();t.wrapAroundElements=t.activeSection;t.dtop=t.element.position().top;t.yMovement=di(t.element);t.leavingSection=t.activeSection.index(w)+1;t.sectionIndex=t.element.index(w);return t}function Mt(t){if(!t.wrapAroundElements||!t.wrapAroundElements.length){return}if(t.isMovementUp){e(T).before(t.wrapAroundElements)}else{e(S).after(t.wrapAroundElements)}Di(e(x).position().top);Tt()}function At(t){Mt(t);e.isFunction(o.afterLoad)&&!t.localIsResizing&&o.afterLoad.call(t.element,t.anchorLink,t.sectionIndex+1);if(o.scrollOverflow){o.scrollOverflowHandler.afterLoad()}if(!t.localIsResizing){Lt(t.element)}t.element.addClass(m).siblings().removeClass(m);ue=true;e.isFunction(t.callback)&&t.callback.call(this)}function It(e,t){e.attr(t,e.data(t)).removeAttr("data-"+t)}function Ot(t){if(!o.lazyLoading){return}var i=Nt(t);var n;i.find("img[data-src], img[data-srcset], source[data-src], source[data-srcset], video[data-src], audio[data-src], iframe[data-src]").each((function(){n=e(this);e.each(["src","srcset"],(function(e,t){var i=n.attr("data-"+t);if(typeof i!=="undefined"&&i){It(n,t)}}));if(n.is("source")){var t=n.closest("video").length?"video":"audio";n.closest(t).get(0).load()}}))}function Lt(t){var i=Nt(t);i.find("video, audio").each((function(){var t=e(this).get(0);if(t.hasAttribute("data-autoplay")&&typeof t.play==="function"){t.play()}}));i.find('iframe[src*="youtube.com/embed/"]').each((function(){var t=e(this).get(0);if(t.hasAttribute("data-autoplay")){zt(t)}t.onload=function(){if(t.hasAttribute("data-autoplay")){zt(t)}}}))}function zt(e){e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function Dt(t){var i=Nt(t);i.find("video, audio").each((function(){var t=e(this).get(0);if(!t.hasAttribute("data-keepplaying")&&typeof t.pause==="function"){t.pause()}}));i.find('iframe[src*="youtube.com/embed/"]').each((function(){var t=e(this).get(0);if(/youtube\.com\/embed\//.test(e(this).attr("src"))&&!t.hasAttribute("data-keepplaying")){e(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}}))}function Nt(t){var i=t.find(_);if(i.length){t=e(i)}return t}function Ht(){var e=jt();var t=e.section;var i=e.slide;if(t){if(o.animateAnchor){bi(t,i)}else{Ne(t,i)}}}function _t(){if(!nt&&!o.lockAnchors){var e=jt();var t=e.section;var i=e.slide;var n=typeof le==="undefined";var a=typeof le==="undefined"&&typeof i==="undefined"&&!X;if(t&&t.length){if(t&&t!==le&&!n||a||!X&&ce!=i){bi(t,i)}}}}function jt(){var e;var i;var n=t.location.hash;if(n.length){var a=n.replace("#","").split("/");var r=n.indexOf("#/")>-1;e=r?"/"+a[1]:decodeURIComponent(a[0]);var s=r?a[2]:a[1];if(s&&s.length){i=decodeURIComponent(s)}}return{section:e,slide:i}}function Ft(t){clearTimeout(ke);var i=e(":focus");var n=t.which;if(n===9){Kt(t)}else if(!i.is("textarea")&&!i.is("input")&&!i.is("select")&&i.attr("contentEditable")!=="true"&&i.attr("contentEditable")!==""&&o.keyboardScrolling&&o.autoScrolling){var a=[40,38,32,33,34];if(e.inArray(n,a)>-1){t.preventDefault()}fe=t.ctrlKey;ke=setTimeout((function(){Ut(t)}),150)}}function Rt(){e(this).prev().trigger("click")}function Bt(e){if(oe){fe=e.ctrlKey}}function Vt(e){if(e.which==2){Qt=e.pageY;ee.on("mousemove",Zt)}}function qt(e){if(e.which==2){ee.off("mousemove")}}function Yt(){var t=e(this).closest(w);if(e(this).hasClass(U)){if(he.m.left){je(t)}}else{if(he.m.right){_e(t)}}}function Wt(){oe=false;fe=false}function Xt(t){t.preventDefault();var i=e(this).parent().index();Ct(e(w).eq(i))}function Gt(t){t.preventDefault();var i=e(this).closest(w).find(F);var n=i.find(H).eq(e(this).closest("li").index());Jt(i,n)}function Ut(t){var i=t.shiftKey;if(!ue&&[37,39].indexOf(t.which)<0){return}switch(t.which){case 38:case 33:if(he.k.up){ze()}break;case 32:if(i&&he.k.up){ze();break}case 40:case 34:if(he.k.down){De()}break;case 36:if(he.k.up){He(1)}break;case 35:if(he.k.down){He(e(w).length)}break;case 37:if(he.k.left){je()}break;case 39:if(he.k.right){_e()}break;default:return}}function Kt(t){var i=t.shiftKey;var n=e(":focus");var a=e(x);var r=a.find(_);var s=r.length?r:a;var o=s.find(be).not('[tabindex="-1"]');function l(e){e.preventDefault();return o.first().focus()}if(n.length){if(!n.closest(x,_).length){n=l(t)}}else{l(t)}if(!i&&n.is(o.last())||i&&n.is(o.first())){t.preventDefault()}}var Qt=0;function Zt(e){if(ue){if(e.pageYQt&&he.m.down){De()}}Qt=e.pageY}function Jt(t,i,n){var a=t.closest(w);var r={slides:t,destiny:i,direction:n,destinyPos:i.position(),slideIndex:i.index(),section:a,sectionIndex:a.index(w),anchorLink:a.data("anchor"),slidesNav:a.find(Y),slideAnchor:Si(i),prevSlide:a.find(_),prevSlideIndex:a.find(_).index(),localIsResizing:se};r.xMovement=fi(r.prevSlideIndex,r.slideIndex);if(!r.localIsResizing){ue=false}if(o.onSlideLeave){if(!r.localIsResizing&&r.xMovement!=="none"){if(e.isFunction(o.onSlideLeave)){if(o.onSlideLeave.call(r.prevSlide,r.anchorLink,r.sectionIndex+1,r.prevSlideIndex,r.direction,r.slideIndex)===false){X=false;return}}}}i.addClass(h).siblings().removeClass(h);if(!r.localIsResizing){Dt(r.prevSlide);Ot(i)}if(!o.loopHorizontal&&o.controlArrows){a.find(Z).toggle(r.slideIndex!==0);a.find(ie).toggle(!i.is(":last-child"))}if(a.hasClass(h)&&!r.localIsResizing){xi(r.slideIndex,r.slideAnchor,r.anchorLink,r.sectionIndex)}ti(t,r,true)}function ei(t){ii(t.slidesNav,t.slideIndex);if(!t.localIsResizing){e.isFunction(o.afterSlideLoad)&&o.afterSlideLoad.call(t.destiny,t.anchorLink,t.sectionIndex+1,t.slideAnchor,t.slideIndex);ue=true;Lt(t.destiny)}X=false}function ti(e,t,i){var a=t.destinyPos;if(o.css3){var r="translate3d(-"+n.round(a.left)+"px, 0px, 0px)";si(e.find(B)).css(Ni(r));xe=setTimeout((function(){i&&ei(t)}),o.scrollingSpeed,o.easing)}else{e.animate({scrollLeft:n.round(a.left)},o.scrollingSpeed,o.easing,(function(){i&&ei(t)}))}}function ii(e,t){e.find(v).removeClass(h);e.find("li").eq(t).find("a").addClass(h)}var ni=re;function ai(){ri();if(K){var t=e(i.activeElement);if(!t.is("textarea")&&!t.is("input")&&!t.is("select")){var a=ne.height();if(n.abs(a-ni)>20*n.max(ni,a)/100){Fe(true);ni=a}}}else{clearTimeout(ye);ye=setTimeout((function(){Fe(true)}),350)}}function ri(){var e=o.responsive||o.responsiveWidth;var t=o.responsiveHeight;var i=e&&ne.outerWidth()n){return"up"}return"down"}function fi(e,t){if(e==t){return"none"}if(e>t){return"left"}return"right"}function pi(t){if(!t.hasClass(V)){var i=e('
    ').height(hi(t));t.addClass(V).wrapInner(i)}}function hi(e){var t=re;if(o.paddingTop||o.paddingBottom){var i=e;if(!i.hasClass(y)){i=e.closest(w)}var n=parseInt(i.css("padding-top"))+parseInt(i.css("padding-bottom"));t=re-n}return t}function vi(e,t){if(t){si(ee)}else{oi(ee)}ee.css(Ni(e));setTimeout((function(){ee.removeClass(u)}),10)}function mi(t){var i=ee.find(w+'[data-anchor="'+t+'"]');if(!i.length){var n=typeof t!=="undefined"?t-1:0;i=e(w).eq(n)}return i}function gi(e,t){var i=t.find(H+'[data-anchor="'+e+'"]');if(!i.length){e=typeof e!=="undefined"?e:0;i=t.find(H).eq(e)}return i}function bi(e,t){var i=mi(e);if(!i.length)return;var n=gi(t,i);if(e!==le&&!i.hasClass(h)){Ct(i,(function(){yi(n)}))}else{yi(n)}}function yi(e){if(e.length){Jt(e.closest(F),e)}}function wi(e,t){e.append('
      ');var i=e.find(Y);i.addClass(o.slidesNavPosition);for(var n=0;n')}i.css("margin-left","-"+i.width()/2+"px");i.find("li").first().find("a").addClass(h)}function xi(e,t,i,n){var a="";if(o.anchors.length&&!o.lockAnchors){if(e){if(typeof i!=="undefined"){a=i}if(typeof t==="undefined"){t=e}ce=t;Ti(a+"/"+t)}else if(typeof e!=="undefined"){ce=t;Ti(i)}else{Ti(i)}}ki()}function Ti(e){if(o.recordHistory){location.hash=e}else{if(K||J){t.history.replaceState(a,a,"#"+e)}else{var i=t.location.href.split("#")[0];t.location.replace(i+"#"+e)}}}function Si(e){var t=e.data("anchor");var i=e.index();if(typeof t==="undefined"){t=i}return t}function ki(){var t=e(x);var i=t.find(_);var n=Si(t);var a=Si(i);var r=String(n);if(i.length){r=r+"-"+a}r=r.replace("/","-").replace("#","");var s=new RegExp("\\b\\s?"+p+"-[^\\s]+\\b","g");P[0].className=P[0].className.replace(s,"");P.addClass(p+"-"+r)}function Ci(){var e=i.createElement("p"),n,r={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};i.body.insertBefore(e,null);for(var s in r){if(e.style[s]!==a){e.style[s]="translate3d(1px,1px,1px)";n=t.getComputedStyle(e).getPropertyValue(r[s])}}i.body.removeChild(e);return n!==a&&n.length>0&&n!=="none"}function Ei(){if(i.addEventListener){i.removeEventListener("mousewheel",wt,false);i.removeEventListener("wheel",wt,false);i.removeEventListener("MozMousePixelScroll",wt,false)}else{i.detachEvent("onmousewheel",wt)}}function Pi(){var e="";var n;if(t.addEventListener){n="addEventListener"}else{n="attachEvent";e="on"}var r="onwheel"in i.createElement("div")?"wheel":i.onmousewheel!==a?"mousewheel":"DOMMouseScroll";if(r=="DOMMouseScroll"){i[n](e+"MozMousePixelScroll",wt,false)}else{i[n](e+r,wt,false)}}function $i(){ee.on("mousedown",Vt).on("mouseup",qt)}function Mi(){ee.off("mousedown",Vt).off("mouseup",qt)}function Ai(){if(K||J){if(o.autoScrolling){P.off(me.touchmove).on(me.touchmove,ut)}e(s).off(me.touchstart).on(me.touchstart,gt).off(me.touchmove).on(me.touchmove,vt)}}function Ii(){if(K||J){if(o.autoScrolling){P.off(me.touchmove)}e(s).off(me.touchstart).off(me.touchmove)}}function Oi(){var e;if(t.PointerEvent){e={down:"pointerdown",move:"pointermove"}}else{e={down:"MSPointerDown",move:"MSPointerMove"}}return e}function Li(e){var t=[];t.y=typeof e.pageY!=="undefined"&&(e.pageY||e.pageX)?e.pageY:e.touches[0].pageY;t.x=typeof e.pageX!=="undefined"&&(e.pageY||e.pageX)?e.pageX:e.touches[0].pageX;if(J&&mt(e)&&(o.scrollBar||!o.autoScrolling)){t.y=e.touches[0].pageY;t.x=e.touches[0].pageX}return t}function zi(e,t){$e(0,"internal");if(typeof t!=="undefined"){se=true}Jt(e.closest(F),e);if(typeof t!=="undefined"){se=false}$e(Ce.scrollingSpeed,"internal")}function Di(e){var t=n.round(e);if(o.css3&&o.autoScrolling&&!o.scrollBar){var i="translate3d(0px, -"+t+"px, 0px)";vi(i,false)}else if(o.autoScrolling&&!o.scrollBar){ee.css("top",-t)}else{l.scrollTop(t)}}function Ni(e){return{"-webkit-transform":e,"-moz-transform":e,"-ms-transform":e,transform:e}}function Hi(t,i,n){if(i!=="all"){he[n][i]=t}else{e.each(Object.keys(he[n]),(function(e,i){he[n][i]=t}))}}function _i(t){Ee(false,"internal");Oe(false);Le(false);ee.addClass(d);clearTimeout(xe);clearTimeout(we);clearTimeout(ye);clearTimeout(Te);clearTimeout(Se);ne.off("scroll",rt).off("hashchange",_t).off("resize",ai);ae.off("keydown",Ft).off("keyup",Bt).off("click touchstart",I+" a").off("mouseenter",I+" li").off("mouseleave",I+" li").off("click touchstart",W).off("mouseover",o.normalScrollElements).off("mouseout",o.normalScrollElements);e(w).off("click touchstart",G);clearTimeout(xe);clearTimeout(we);if(t){ji()}}function ji(){Di(0);ee.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each((function(){It(e(this),"src")}));ee.find("img[data-srcset]").each((function(){It(e(this),"srcset")}));e(I+", "+Y+", "+G).remove();e(w).css({height:"","background-color":"",padding:""});e(H).css({width:""});ee.css({height:"",position:"","-ms-touch-action":"","touch-action":""});l.css({overflow:"",height:""});e("html").removeClass(f);P.removeClass(c);e.each(P.get(0).className.split(/\s+/),(function(e,t){if(t.indexOf(p)===0){P.removeClass(t)}}));e(w+", "+H).each((function(){if(o.scrollOverflowHandler){o.scrollOverflowHandler.remove(e(this))}e(this).removeClass(V+" "+h);e(this).attr("style",e(this).data("fp-styles"))}));oi(ee);ee.find(C+", "+B+", "+F).each((function(){e(this).replaceWith(this.childNodes)}));ee.css({"-webkit-transition":"none",transition:"none"});l.scrollTop(0);var t=[y,N,R];e.each(t,(function(t,i){e("."+i).removeClass(i)}))}function Fi(e,t,i){o[e]=t;if(i!=="internal"){Ce[e]=t}}function Ri(){var t=["fadingEffect","continuousHorizontal","scrollHorizontally","interlockedSlides","resetSliders","responsiveSlides","offsetSections","dragAndMove","scrollOverflowReset","parallax"];if(e("html").hasClass(f)){Bi("error","Fullpage.js can only be initialized once and you are doing it multiple times!");return}if(o.continuousVertical&&(o.loopTop||o.loopBottom)){o.continuousVertical=false;Bi("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")}if(o.scrollBar&&o.scrollOverflow){Bi("warn","Option `scrollBar` is mutually exclusive with `scrollOverflow`. Sections with scrollOverflow might not work well in Firefox")}if(o.continuousVertical&&(o.scrollBar||!o.autoScrolling)){o.continuousVertical=false;Bi("warn","Scroll bars (`scrollBar:true` or `autoScrolling:false`) are mutually exclusive with `continuousVertical`; `continuousVertical` disabled")}if(o.scrollOverflow&&!o.scrollOverflowHandler){o.scrollOverflow=false;Bi("error","The option `scrollOverflow:true` requires the file `scrolloverflow.min.js`. Please include it before fullPage.js.")}e.each(t,(function(e,t){if(o[t]){Bi("warn","fullpage.js extensions require jquery.fullpage.extensions.min.js file instead of the usual jquery.fullpage.js. Requested: "+t)}}));e.each(o.anchors,(function(t,i){var n=ae.find("[name]").filter((function(){return e(this).attr("name")&&e(this).attr("name").toLowerCase()==i.toLowerCase()}));var a=ae.find("[id]").filter((function(){return e(this).attr("id")&&e(this).attr("id").toLowerCase()==i.toLowerCase()}));if(a.length||n.length){Bi("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE).");a.length&&Bi("error",'"'+i+'" is is being used by another element `id` property');n.length&&Bi("error",'"'+i+'" is is being used by another element `name` property')}}))}function Bi(e,t){console&&console[e]&&console[e]("fullPage: "+t)}}}))},1695:function(e,t,i){function n(e){"@babel/helpers - typeof";return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}(function(e,t){function i(e,t){var i=arguments.length>2?arguments[2]:[];if(!1===o(e))throw new TypeError(Object.prototype.toString.call(e)+"is not a function.");return e.apply(t,i)}function a(e,t,i){var n={value:i,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(e,t,n)}function r(e,t){return e[t]}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){return"function"==typeof e}function l(e,t){return e===t}function c(e){if(null===e||e===t)throw TypeError();return Object(e)}function u(e,t){return c(e)[t]}function d(e,i){var n=u(e,i);if(null===n||n===t)return t;if(!1===o(n))throw new TypeError("Method not callable: "+i);return n}function f(t){switch(n(t)){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===t?"null":"Symbol"in e&&(t instanceof e.Symbol||t.constructor===e.Symbol)?"symbol":"object"}}function p(e,t){if("string"===t)var n=["toString","valueOf"];else n=["valueOf","toString"];for(var a=0;a1?arguments[1]:t;if("object"===f(a)){if(arguments.length<2)var s="default";else r===String?s="string":r===Number&&(s="number");var o="function"==typeof e.Symbol&&"symbol"==n(e.Symbol.toPrimitive)?d(a,e.Symbol.toPrimitive):t;if(o!==t){var l=i(o,a,[s]);if("object"!==f(l))return l;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===s&&(s="number"),p(a,s)}return a}function b(e){switch(f(e)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return b(g(e,String));default:return String(e)}}function y(e){var t=g(e,String);return"symbol"===f(t)?t:b(t)}if(!("includes"in Array.prototype)){a(Array.prototype,"includes",(function e(t){"use strict";var i=c(this),n=m(r(i,"length"));if(0===n)return!1;var a=v(arguments[1]);if(a>=0)var s=a;else(s=n+a)<0&&(s=0);for(;s=0&&o>=0&&{top:i,bottom:n,left:a,right:r,width:s,height:o}}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):u()}function u(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e,t){for(var i=t;i;){if(i==e)return!0;i=f(i)}return!1}function f(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}var p=[];n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},n.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,i){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==i[t-1]}))},n.prototype._parseRootMargin=function(e){var t=e||"0px",i=t.split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return i[1]=i[1]||i[0],i[2]=i[2]||i[0],i[3]=i[3]||i[1],i},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(s(e,"resize",this._checkForIntersections,!0),s(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in e&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,o(e,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():u();this._observationTargets.forEach((function(n){var r=n.element,s=c(r),o=this._rootContainsTarget(r),l=n.entry,u=e&&o&&this._computeTargetAndRootIntersection(r,t),d=n.entry=new i({time:a(),target:r,boundingClientRect:s,rootBounds:t,intersectionRect:u});l?e&&o?this._hasCrossedThreshold(l,d)&&this._queuedEntries.push(d):l&&l.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(i,n){if("none"!=e.getComputedStyle(i).display){for(var a=c(i),r=a,s=f(i),o=!1;!o;){var u=null,d=1==s.nodeType?e.getComputedStyle(s):{};if("none"==d.display)return;if(s==this.root||s==t?(o=!0,u=n):s!=t.body&&s!=t.documentElement&&"visible"!=d.overflow&&(u=c(s)),u&&!(r=l(u,r)))break;s=f(s)}return r}},n.prototype._getRootRect=function(){var e;if(this.root)e=c(this.root);else{var i=t.documentElement,n=t.body;e={top:0,left:0,right:i.clientWidth||n.clientWidth,width:i.clientWidth||n.clientWidth,bottom:i.clientHeight||n.clientHeight,height:i.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(e)},n.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,i){return"px"==t.unit?t.value:t.value*(i%2?e.width:e.height)/100})),i={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return i.width=i.right-i.left,i.height=i.bottom-i.top,i},n.prototype._hasCrossedThreshold=function(e,t){var i=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(i!==n)for(var a=0;a=0&&"[object Function]"===r.call(e.callee)),i}var a=Object.prototype.hasOwnProperty,r=Object.prototype.toString,s=Object.prototype.propertyIsEnumerable,o=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function e(t){var i=t.constructor;return i&&i.prototype===t},d={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window){try{if(!d["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==n(window[e]))try{u(window[e])}catch(e){return!0}}catch(e){return!0}}return!1}(),p=function e(t){if("undefined"==typeof window||!f)return u(t);try{return u(t)}catch(e){return!1}};return function n(s){var u="[object Function]"===r.call(s),d=i(s),f="[object String]"===r.call(s),n=[];if(s===t||null===s)throw new TypeError("Cannot convert undefined or null to object");var h=l&&u;if(f&&s.length>0&&!a.call(s,0))for(var v=0;v0)for(var m=0;m=u?0!=oe%i?oe%i:i:0,P="leftMarquee"==J||"topMarquee"==J?!0:!1,$=function t(){e.isFunction(Q.startFun)&&Q.startFun(ue,re,Z,e(Q.titCell,Z),se,ce,ee,te)},M=function t(){e.isFunction(Q.endFun)&&Q.endFun(ue,re,Z,e(Q.titCell,Z),se,ce,ee,te)},A=function e(){ae.removeClass(w),l&&ae.eq(S).addClass(w)},"menu"==Q.type)return l&&ae.removeClass(w).eq(ue).addClass(w),ae.hover((function(){E=e(this).find(Q.targetCell);var t=ae.index(e(this));b=setTimeout((function(){switch(ue=t,ae.removeClass(w).eq(ue).addClass(w),$(),J){case"fade":E.stop(!0,!0).animate({opacity:"show"},de,m,M);break;case"slideDown":E.stop(!0,!0).animate({height:"show"},de,m,M)}}),Q.triggerTime)}),(function(){switch(clearTimeout(b),J){case"fade":E.animate({opacity:"hide"},de,m);break;case"slideDown":E.animate({height:"hide"},de,m)}})),c&&Z.hover((function(){clearTimeout(y)}),(function(){y=setTimeout(A,de)})),void 0;if(0==re&&(re=oe),P&&(re=2),r){if(oe>=u?"leftLoop"==J||"topLoop"==J?re=0!=oe%i?(0^oe/i)+1:oe/i:(I=oe-u,re=1+parseInt(0!=I%i?I/i+1:I/i),0>=re&&(re=1)):re=1,ae.html(""),O="",1==Q.autoPage||"true"==Q.autoPage)for(L=0;re>L;L++){O+="
    • "+(L+1)+"
    • "}else for(L=0;re>L;L++){O+=Q.autoPage.replace("$",L+1)}ae.html(O),ae=ae.children()}if(oe>=u)switch(se.children().each((function(){e(this).width()>h&&(h=e(this).width(),p=e(this).outerWidth(!0)),e(this).height()>v&&(v=e(this).height(),f=e(this).outerHeight(!0))})),z=se.children(),D=function e(){var t;for(t=0;u>t;t++){z.eq(t).clone().addClass("clone").appendTo(se)}for(t=0;C>t;t++){z.eq(oe-t-1).clone().addClass("clone").prependTo(se)}},J){case"fold":se.css({position:"relative",width:p,height:f}).children().css({position:"absolute",width:h,left:0,top:0,display:"none"});break;case"top":se.wrap('
      ').css({top:-(ue*i)*f,position:"relative",padding:"0",margin:"0"}).children().css({height:v});break;case"left":se.wrap('
      ').css({width:oe*p,left:-(ue*i)*p,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({float:"left",width:h});break;case"leftLoop":case"leftMarquee":D(),se.wrap('
      ').css({width:(oe+u+C)*p,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(C+ue*i)*p}).children().css({float:"left",width:h});break;case"topLoop":case"topMarquee":D(),se.wrap('
      ').css({height:(oe+u+C)*f,position:"relative",padding:"0",margin:"0",top:-(C+ue*i)*f}).children().css({height:v})}N=function e(t){var n=t*i;return t==re?n=oe:-1==t&&0!=oe%i&&(n=-oe%i),n},H=function t(n){var a,r,s,o,l=function t(i){for(var a=i;u+i>a;a++){n.eq(a).find("img["+le+"]").each((function(){var t,i,n=e(this);if(n.attr("src",n.attr(le)).removeAttr(le),se.find(".clone")[0])for(t=se.children(),i=0;i=1?ue=1:0>=ue&&(ue=0):(k=ue,ue>=re?ue=0:0>ue&&(ue=re-1)),$(),null!=le&&H(se.children()),ce[0]&&(E=ce.eq(ue),null!=le&&H(ce),"slideDown"==J?(ce.not(E).stop(!0,!0).slideUp(de),E.slideDown(de,m,(function(){se[0]||M()}))):(ce.not(E).stop(!0,!0).hide(),E.animate({opacity:"show"},de,(function(){se[0]||M()})))),oe>=u)switch(J){case"fade":se.children().stop(!0,!0).eq(ue).animate({opacity:"show"},de,m,(function(){M()})).siblings().hide();break;case"fold":se.children().stop(!0,!0).eq(ue).animate({opacity:"show"},de,m,(function(){M()})).siblings().animate({opacity:"hide"},de,m);break;case"top":se.stop(!0,!1).animate({top:-ue*i*f},de,m,(function(){M()}));break;case"left":se.stop(!0,!1).animate({left:-ue*i*p},de,m,(function(){M()}));break;case"leftLoop":n=k,se.stop(!0,!0).animate({left:-(N(k)+C)*p},de,m,(function(){-1>=n?se.css("left",-(C+(re-1)*i)*p):n>=re&&se.css("left",-C*p),M()}));break;case"topLoop":n=k,se.stop(!0,!0).animate({top:-(N(k)+C)*f},de,m,(function(){-1>=n?se.css("top",-(C+(re-1)*i)*f):n>=re&&se.css("top",-C*f),M()}));break;case"leftMarquee":a=se.css("left").replace("px",""),0==ue?se.animate({left:++a},0,(function(){se.css("left").replace("px","")>=0&&se.css("left",-oe*p)})):se.animate({left:--a},0,(function(){se.css("left").replace("px","")<=-(oe+C)*p&&se.css("left",-C*p)}));break;case"topMarquee":r=se.css("top").replace("px",""),0==ue?se.animate({top:++r},0,(function(){se.css("top").replace("px","")>=0&&se.css("top",-oe*f)})):se.animate({top:--r},0,(function(){se.css("top").replace("px","")<=-(oe+C)*f&&se.css("top",-C*f)}))}ae.removeClass(w).eq(ue).addClass(w),T=ue,s||(te.removeClass("nextStop"),ee.removeClass("prevStop"),0==ue&&ee.addClass("prevStop"),ue==re-1&&te.addClass("nextStop")),ie.html(""+(ue+1)+"/"+re)}},l&&_(!0),c&&Z.hover((function(){clearTimeout(y)}),(function(){y=setTimeout((function(){ue=S,l?_():"slideDown"==J?E.slideUp(de,A):E.animate({opacity:"hide"},de,A),T=ue}),300)})),j=function e(t){g=setInterval((function(){a?ue--:ue++,_()}),t?t:fe)},F=function e(t){g=setInterval(_,t?t:fe)},R=function e(){o||!n||ne.hasClass("pauseState")||(clearInterval(g),j())},B=function e(){(s||ue!=re-1)&&(ue++,_(),P||R())},V=function e(){(s||0!=ue)&&(ue--,_(),P||R())},q=function e(){clearInterval(g),P?F():j(),ne.removeClass("pauseState")},Y=function e(){clearInterval(g),ne.addClass("pauseState")},n?P?(a?ue--:ue++,F(),o&&se.hover(Y,q)):(j(),o&&Z.hover(Y,q)):(P&&(a?ue--:ue++),ne.addClass("pauseState")),ne.click((function(){ne.hasClass("pauseState")?q():Y()})),"mouseover"==Q.trigger?ae.hover((function(){var e=ae.index(this);b=setTimeout((function(){ue=e,_(),R()}),Q.triggerTime)}),(function(){clearTimeout(b)})):ae.click((function(){ue=ae.index(this),_(),R()})),P?(te.mousedown(B),ee.mousedown(V),s&&(X=function e(){W=setTimeout((function(){clearInterval(g),F(0^fe/10)}),150)},G=function e(){clearTimeout(W),clearInterval(g),F()},te.mousedown(X),te.mouseup(G),ee.mousedown(X),ee.mouseup(G)),"mouseover"==Q.trigger&&(te.hover(B,(function(){})),ee.hover(V,(function(){})))):(te.click(B),ee.click(V)),"auto"!=Q.vis||1!=i||"left"!=J&&"leftLoop"!=J||(K=function e(){d&&(se.width("auto"),se.children().width("auto")),se.parent().width("auto"),p=se.parent().width(),d&&se.parent().width(p),se.children().width(p),"left"==J?(se.width(p*oe),se.stop(!0,!1).animate({left:-ue*p},0)):(se.width(p*(oe+2)),se.stop(!0,!1).animate({left:-(ue+1)*p},0)),d||p==se.parent().width()||K()},e(window).resize((function(){clearTimeout(U),U=setTimeout(K,100)})),K())}))}}(jQuery),jQuery.easing["jswing"]=jQuery.easing["swing"],jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function e(t,i,n,a,r){return jQuery.easing[jQuery.easing.def](t,i,n,a,r)},easeInQuad:function e(t,i,n,a,r){return a*(i/=r)*i+n},easeOutQuad:function e(t,i,n,a,r){return-a*(i/=r)*(i-2)+n},easeInOutQuad:function e(t,i,n,a,r){return(i/=r/2)<1?a/2*i*i+n:-a/2*(--i*(i-2)-1)+n},easeInCubic:function e(t,i,n,a,r){return a*(i/=r)*i*i+n},easeOutCubic:function e(t,i,n,a,r){return a*((i=i/r-1)*i*i+1)+n},easeInOutCubic:function e(t,i,n,a,r){return(i/=r/2)<1?a/2*i*i*i+n:a/2*((i-=2)*i*i+2)+n},easeInQuart:function e(t,i,n,a,r){return a*(i/=r)*i*i*i+n},easeOutQuart:function e(t,i,n,a,r){return-a*((i=i/r-1)*i*i*i-1)+n},easeInOutQuart:function e(t,i,n,a,r){return(i/=r/2)<1?a/2*i*i*i*i+n:-a/2*((i-=2)*i*i*i-2)+n},easeInQuint:function e(t,i,n,a,r){return a*(i/=r)*i*i*i*i+n},easeOutQuint:function e(t,i,n,a,r){return a*((i=i/r-1)*i*i*i*i+1)+n},easeInOutQuint:function e(t,i,n,a,r){return(i/=r/2)<1?a/2*i*i*i*i*i+n:a/2*((i-=2)*i*i*i*i+2)+n},easeInSine:function e(t,i,n,a,r){return-a*Math.cos(i/r*(Math.PI/2))+a+n},easeOutSine:function e(t,i,n,a,r){return a*Math.sin(i/r*(Math.PI/2))+n},easeInOutSine:function e(t,i,n,a,r){return-a/2*(Math.cos(Math.PI*i/r)-1)+n},easeInExpo:function e(t,i,n,a,r){return 0==i?n:a*Math.pow(2,10*(i/r-1))+n},easeOutExpo:function e(t,i,n,a,r){return i==r?n+a:a*(-Math.pow(2,-10*i/r)+1)+n},easeInOutExpo:function e(t,i,n,a,r){return 0==i?n:i==r?n+a:(i/=r/2)<1?a/2*Math.pow(2,10*(i-1))+n:a/2*(-Math.pow(2,-10*--i)+2)+n},easeInCirc:function e(t,i,n,a,r){return-a*(Math.sqrt(1-(i/=r)*i)-1)+n},easeOutCirc:function e(t,i,n,a,r){return a*Math.sqrt(1-(i=i/r-1)*i)+n},easeInOutCirc:function e(t,i,n,a,r){return(i/=r/2)<1?-a/2*(Math.sqrt(1-i*i)-1)+n:a/2*(Math.sqrt(1-(i-=2)*i)+1)+n},easeInElastic:function e(t,i,n,a,r){var s=1.70158,o=0,l=a;return 0==i?n:1==(i/=r)?n+a:(o||(o=.3*r),li?-.5*l*Math.pow(2,10*(i-=1))*Math.sin((i*r-s)*2*Math.PI/o)+n:.5*l*Math.pow(2,-10*(i-=1))*Math.sin((i*r-s)*2*Math.PI/o)+a+n)},easeInBack:function e(t,i,n,a,r,s){return void 0==s&&(s=1.70158),a*(i/=r)*i*((s+1)*i-s)+n},easeOutBack:function e(t,i,n,a,r,s){return void 0==s&&(s=1.70158),a*((i=i/r-1)*i*((s+1)*i+s)+1)+n},easeInOutBack:function e(t,i,n,a,r,s){return void 0==s&&(s=1.70158),(i/=r/2)<1?a/2*i*i*(((s*=1.525)+1)*i-s)+n:a/2*((i-=2)*i*(((s*=1.525)+1)*i+s)+2)+n},easeInBounce:function e(t,i,n,a,r){return a-jQuery.easing.easeOutBounce(t,r-i,0,a,r)+n},easeOutBounce:function e(t,i,n,a,r){return(i/=r)<1/2.75?a*7.5625*i*i+n:2/2.75>i?a*(7.5625*(i-=1.5/2.75)*i+.75)+n:2.5/2.75>i?a*(7.5625*(i-=2.25/2.75)*i+.9375)+n:a*(7.5625*(i-=2.625/2.75)*i+.984375)+n},easeInOutBounce:function e(t,i,n,a,r){return r/2>i?.5*jQuery.easing.easeInBounce(t,2*i,0,a,r)+n:.5*jQuery.easing.easeOutBounce(t,2*i-r,0,a,r)+.5*a+n}})},4518:function(){"use strict"},4418:function(){"use strict"},5311:function(e){"use strict";e.exports=jQuery}};var t={};function i(n){var a=t[n];if(a!==undefined){return a.exports}var r=t[n]={exports:{}};e[n].call(r.exports,r,r.exports,i);return r.exports}i.m=e;!function(){var e=[];i.O=function(t,n,a,r){if(n){r=r||0;for(var s=e.length;s>0&&e[s-1][2]>r;s--)e[s]=e[s-1];e[s]=[n,a,r];return}var o=Infinity;for(var s=0;s=r)&&Object.keys(i.O).every((function(e){return i.O[e](n[c])}))){n.splice(c--,1)}else{l=false;if(r