var initSelectPlugin;!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};t=function(){function t(t,r){var f,u=this;u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(t),appendDots:n(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous<\/button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return n('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3};u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1};n.extend(u,u.initials);u.activeBreakpoint=null;u.animType=null;u.animProp=null;u.breakpoints=[];u.breakpointSettings=[];u.cssTransitions=!1;u.focussed=!1;u.interrupted=!1;u.hidden="hidden";u.paused=!0;u.positionProp=null;u.respondTo=null;u.rowCount=1;u.shouldClick=!0;u.$slider=n(t);u.$slidesCache=null;u.transformType=null;u.transitionType=null;u.visibilityChange="visibilitychange";u.windowWidth=0;u.windowTimer=null;f=n(t).data("slick")||{};u.options=n.extend({},u.defaults,r,f);u.currentSlide=u.options.initialSlide;u.originalSettings=u.options;"undefined"!=typeof document.mozHidden?(u.hidden="mozHidden",u.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(u.hidden="webkitHidden",u.visibilityChange="webkitvisibilitychange");u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.changeSlide=n.proxy(u.changeSlide,u);u.clickHandler=n.proxy(u.clickHandler,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.instanceUid=i++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.registerBreakpoints();u.init(!0)}var i=0;return t}();t.prototype.activateADA=function(){var n=this;n.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})};t.prototype.addSlide=t.prototype.slickAdd=function(t,i,r){var u=this;if("boolean"==typeof i)r=i,i=null;else if(0>i||i>=u.slideCount)return!1;u.unload();"number"==typeof i?0===i&&0===u.$slides.length?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):r===!0?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("data-slick-index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateHeight=function(){var n=this,t;1===n.options.slidesToShow&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.animate({height:t},n.options.speed))};t.prototype.animateSlide=function(t,i){var u={},r=this;r.animateHeight();r.options.rtl===!0&&r.options.vertical===!1&&(t=-t);r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):r.cssTransitions===!1?(r.options.rtl===!0&&(r.currentLeft=-r.currentLeft),n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){n=Math.ceil(n);r.options.vertical===!1?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}})):(r.applyTransition(),t=Math.ceil(t),u[r.animType]=r.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.getNavTarget=function(){var i=this,t=i.options.asNavFor;return t&&null!==t&&(t=n(t).not(i.$slider)),t};t.prototype.asNavFor=function(t){var r=this,i=r.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=n(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=t.options.fade===!1?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayClear();n.slideCount>n.options.slidesToShow&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this,t=n.currentSlide+n.options.slidesToScroll;n.paused||n.interrupted||n.focussed||(n.options.infinite===!1&&(1===n.direction&&n.currentSlide+1===n.slideCount-1?n.direction=0:0===n.direction&&(t=n.currentSlide-n.options.slidesToScroll,n.currentSlide-1==0&&(n.direction=1))),n.slideHandler(t))};t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=n(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=n(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))};t.prototype.buildDots=function(){var i,r,t=this;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(t.$slider.addClass("slick-dotted"),r=n("<ul />").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)r.append(n("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=r.appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("data-slick-index",t).data("originalStyling",n(i).attr("style")||"")});t.$slider.addClass("slick-slider");t.$slideTrack=0===t.slideCount?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1);n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);t.options.draggable===!0&&t.$list.addClass("draggable")};t.prototype.buildRows=function(){var t,i,r,f,c,u,e,n=this,o,s,h;if(f=document.createDocumentFragment(),u=n.$slider.children(),n.options.rows>1){for(e=n.options.slidesPerRow*n.options.rows,c=Math.ceil(u.length/e),t=0;c>t;t++){for(o=document.createElement("div"),i=0;i<n.options.rows;i++){for(s=document.createElement("div"),r=0;r<n.options.slidesPerRow;r++)h=t*e+(i*n.options.slidesPerRow+r),u.get(h)&&s.appendChild(u.get(h));o.appendChild(s)}f.appendChild(o)}n.$slider.empty().append(f);n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}};t.prototype.checkResponsive=function(t,i){var f,u,e,r=this,o=!1,s=r.$slider.width(),h=window.innerWidth||n(window).width();if("window"===r.respondTo?e=h:"slider"===r.respondTo?e=s:"min"===r.respondTo&&(e=Math.min(h,s)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){u=null;for(f in r.breakpoints)r.breakpoints.hasOwnProperty(f)&&(r.originalSettings.mobileFirst===!1?e<r.breakpoints[f]&&(u=r.breakpoints[f]):e>r.breakpoints[f]&&(u=r.breakpoints[f]));null!==u?null!==r.activeBreakpoint?(u!==r.activeBreakpoint||i)&&(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t),o=u);t||o===!1||r.$slider.trigger("breakpoint",[r,o])}};t.prototype.changeSlide=function(t,i){var f,e,o,r=this,u=n(t.currentTarget),s;switch(u.is("a")&&t.preventDefault(),u.is("li")||(u=u.closest("li")),o=r.slideCount%r.options.slidesToScroll!=0,f=o?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":e=0===f?r.options.slidesToScroll:r.options.slidesToShow-f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-e,!1,i);break;case"next":e=0===f?r.options.slidesToScroll:f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+e,!1,i);break;case"index":s=0===t.data.index?0:t.data.index||u.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(s),!1,i);u.children().trigger("focus");break;default:return}};t.prototype.checkNavigable=function(n){var t,i,u=this,r;if(t=u.getNavigableIndexes(),i=0,n>t[t.length-1])n=t[t.length-1];else for(r in t){if(n<t[r]){n=i;break}i=t[r]}return n};t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&n("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",n.proxy(t.interrupt,t,!0)).off("mouseleave.slick",n.proxy(t.interrupt,t,!1));t.$slider.off("focus.slick blur.slick");t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide));t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler);t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler);t.$list.off("touchend.slick mouseup.slick",t.swipeHandler);t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler);t.$list.off("click.slick",t.clickHandler);n(document).off(t.visibilityChange,t.visibility);t.cleanUpSlideEvents();t.options.accessibility===!0&&t.$list.off("keydown.slick",t.keyHandler);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().off("click.slick",t.selectHandler);n(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange);n(window).off("resize.slick.slick-"+t.instanceUid,t.resize);n("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault);n(window).off("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",n.proxy(t.interrupt,t,!0));t.$list.off("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.cleanUpRows=function(){var n,t=this;t.options.rows>1&&(n=t.$slides.children().children(),n.removeAttr("style"),t.$slider.empty().append(n))};t.prototype.clickHandler=function(n){var t=this;t.shouldClick===!1&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())};t.prototype.destroy=function(t){var i=this;i.autoPlayClear();i.touchObject={};i.cleanUpEvents();n(".slick-cloned",i.$slider).detach();i.$dots&&i.$dots.remove();i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove());i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove());i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){n(this).attr("style",n(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides));i.cleanUpRows();i.$slider.removeClass("slick-slider");i.$slider.removeClass("slick-initialized");i.$slider.removeClass("slick-dotted");i.unslicked=!0;t||i.$slider.trigger("destroy",[i])};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t){var i=this;i.cssTransitions===!1?(i.$slides.eq(n).css({zIndex:i.options.zIndex}),i.$slides.eq(n).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(n),i.$slides.eq(n).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(n);t.call()},i.options.speed))};t.prototype.fadeSlideOut=function(n){var t=this;t.cssTransitions===!1?t.$slides.eq(n).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(n),t.$slides.eq(n).css({opacity:0,zIndex:t.options.zIndex-2}))};t.prototype.filterSlides=t.prototype.slickFilter=function(n){var t=this;null!==n&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var r=n(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=r.is(":focus"),t.autoPlay())},0)})};t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){var n=this;return n.currentSlide};t.prototype.getDotCount=function(){var n=this,i=0,r=0,t=0;if(n.options.infinite===!0)for(;i<n.slideCount;)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else if(n.options.centerMode===!0)t=n.slideCount;else if(n.options.asNavFor)for(;i<n.slideCount;)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else t=1+Math.ceil((n.slideCount-n.options.slidesToShow)/n.options.slidesToScroll);return t-1};t.prototype.getLeft=function(n){var f,r,i,t=this,u=0;return t.slideOffset=0,r=t.$slides.first().outerHeight(!0),t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,u=r*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!=0&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(n>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(n-t.slideCount))*t.slideWidth*-1,u=(t.options.slidesToShow-(n-t.slideCount))*r*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,u=t.slideCount%t.options.slidesToScroll*r*-1))):n+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(n+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(n+t.options.slidesToShow-t.slideCount)*r),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),t.options.centerMode===!0&&t.options.infinite===!0?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:t.options.centerMode===!0&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),f=t.options.vertical===!1?n*t.slideWidth*-1+t.slideOffset:n*r*-1+u,t.options.variableWidth===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow),f=t.options.rtl===!0?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t.options.centerMode===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow+1),f=t.options.rtl===!0?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,f+=(t.$list.width()-i.outerWidth())/2)),f};t.prototype.getOption=t.prototype.slickGetOption=function(n){var t=this;return t.options[n]};t.prototype.getNavigableIndexes=function(){var i,n=this,t=0,r=0,u=[];for(n.options.infinite===!1?i=n.slideCount:(t=-1*n.options.slidesToScroll,r=-1*n.options.slidesToScroll,i=2*n.slideCount);i>t;)u.push(t),t=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return u};t.prototype.getSlick=function(){return this};t.prototype.getSlideCount=function(){var u,i,r,t=this;return r=t.options.centerMode===!0?t.slideWidth*Math.floor(t.options.slidesToShow/2):0,t.options.swipeToSlide===!0?(t.$slideTrack.find(".slick-slide").each(function(u,f){if(f.offsetLeft-r+n(f).outerWidth()/2>-1*t.swipeLeft)return(i=f,!1)}),u=Math.abs(n(i).attr("data-slick-index")-t.currentSlide)||1):t.options.slidesToScroll};t.prototype.goTo=t.prototype.slickGoTo=function(n,t){var i=this;i.changeSlide({data:{message:"index",index:parseInt(n)}},t)};t.prototype.init=function(t){var i=this;n(i.$slider).hasClass("slick-initialized")||(n(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler());t&&i.$slider.trigger("init",[i]);i.options.accessibility===!0&&i.initADA();i.options.autoplay&&(i.paused=!1,i.autoPlay())};t.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"});t.$slideTrack.attr("role","listbox");t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){n(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+i})});null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each(function(i){n(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+i,id:"slick-slide"+t.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar");t.activateADA()};t.prototype.initArrowEvents=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},n.changeSlide),n.$nextArrow.off("click.slick").on("click.slick",{message:"next"},n.changeSlide))};t.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide);t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&n("li",t.$dots).on("mouseenter.slick",n.proxy(t.interrupt,t,!0)).on("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",n.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",n.proxy(t.interrupt,t,!1)))};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.initSlideEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);t.$list.on("click.slick",t.clickHandler);n(document).on(t.visibilityChange,n.proxy(t.visibility,t));t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,n.proxy(t.orientationChange,t));n(window).on("resize.slick.slick-"+t.instanceUid,n.proxy(t.resize,t));n("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault);n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.initUI=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.show()};t.prototype.keyHandler=function(n){var t=this;n.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===n.keyCode&&t.options.accessibility===!0?t.changeSlide({data:{message:t.options.rtl===!0?"next":"previous"}}):39===n.keyCode&&t.options.accessibility===!0&&t.changeSlide({data:{message:t.options.rtl===!0?"previous":"next"}}))};t.prototype.lazyLoad=function(){function f(i){n("img[data-lazy]",i).each(function(){var i=n(this),r=n(this).attr("data-lazy"),u=document.createElement("img");u.onload=function(){i.animate({opacity:0},100,function(){i.attr("src",r).animate({opacity:1},200,function(){i.removeAttr("data-lazy").removeClass("slick-loading")});t.$slider.trigger("lazyLoaded",[t,i,r])})};u.onerror=function(){i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");t.$slider.trigger("lazyLoadError",[t,i,r])};u.src=r})}var e,r,i,u,t=this;t.options.centerMode===!0?t.options.infinite===!0?(i=t.currentSlide+(t.options.slidesToShow/2+1),u=i+t.options.slidesToShow+2):(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),u=2+(t.options.slidesToShow/2+1)+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,u=Math.ceil(i+t.options.slidesToShow),t.options.fade===!0&&(i>0&&i--,u<=t.slideCount&&u++));e=t.$slider.find(".slick-slide").slice(i,u);f(e);t.slideCount<=t.options.slidesToShow?(r=t.$slider.find(".slick-slide"),f(r)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(r=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),f(r)):0===t.currentSlide&&(r=t.$slider.find(".slick-cloned").slice(-1*t.options.slidesToShow),f(r))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();"progressive"===n.options.lazyLoad&&n.progressiveLazyLoad()};t.prototype.next=t.prototype.slickNext=function(){var n=this;n.changeSlide({data:{message:"next"}})};t.prototype.orientationChange=function(){var n=this;n.checkResponsive();n.setPosition()};t.prototype.pause=t.prototype.slickPause=function(){var n=this;n.autoPlayClear();n.paused=!0};t.prototype.play=t.prototype.slickPlay=function(){var n=this;n.autoPlay();n.options.autoplay=!0;n.paused=!1;n.focussed=!1;n.interrupted=!1};t.prototype.postSlide=function(n){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,n]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&t.initADA())};t.prototype.prev=t.prototype.slickPrev=function(){var n=this;n.changeSlide({data:{message:"previous"}})};t.prototype.preventDefault=function(n){n.preventDefault()};t.prototype.progressiveLazyLoad=function(t){t=t||1;var r,u,f,i=this,e=n("img[data-lazy]",i.$slider);e.length?(r=e.first(),u=r.attr("data-lazy"),f=document.createElement("img"),f.onload=function(){r.attr("src",u).removeAttr("data-lazy").removeClass("slick-loading");i.options.adaptiveHeight===!0&&i.setPosition();i.$slider.trigger("lazyLoaded",[i,r,u]);i.progressiveLazyLoad()},f.onerror=function(){3>t?setTimeout(function(){i.progressiveLazyLoad(t+1)},500):(r.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,r,u]),i.progressiveLazyLoad())},f.src=u):i.$slider.trigger("allImagesLoaded",[i])};t.prototype.refresh=function(t){var r,u,i=this;u=i.slideCount-i.options.slidesToShow;!i.options.infinite&&i.currentSlide>u&&(i.currentSlide=u);i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0);r=i.currentSlide;i.destroy(!0);n.extend(i,i.initials,{currentSlide:r});i.init();t||i.changeSlide({data:{message:"index",index:r}},!1)};t.prototype.registerBreakpoints=function(){var u,f,i,t=this,r=t.options.responsive||null;if("array"===n.type(r)&&r.length){t.respondTo=t.options.respondTo||"window";for(u in r)if(i=t.breakpoints.length-1,f=r[u].breakpoint,r.hasOwnProperty(u)){for(;i>=0;)t.breakpoints[i]&&t.breakpoints[i]===f&&t.breakpoints.splice(i,1),i--;t.breakpoints.push(f);t.breakpointSettings[f]=r[u].settings}t.breakpoints.sort(function(n,i){return t.options.mobileFirst?n-i:i-n})}};t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide");t.slideCount=t.$slides.length;t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll);t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0);t.registerBreakpoints();t.setProps();t.setupInfinite();t.buildArrows();t.updateArrows();t.initArrowEvents();t.buildDots();t.updateDots();t.initDotEvents();t.cleanUpSlideEvents();t.initSlideEvents();t.checkResponsive(!1,!0);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);t.setPosition();t.focusHandler();t.paused=!t.options.autoplay;t.autoPlay();t.$slider.trigger("reInit",[t])};t.prototype.resize=function(){var t=this;n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.unslicked||t.setPosition()},50))};t.prototype.removeSlide=t.prototype.slickRemove=function(n,t,i){var r=this;return"boolean"==typeof n?(t=n,n=t===!0?0:r.slideCount-1):n=t===!0?--n:n,r.slideCount<1||0>n||n>r.slideCount-1?!1:(r.unload(),i===!0?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(n).remove(),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slidesCache=r.$slides,void r.reinit())};t.prototype.setCSS=function(n){var r,u,t=this,i={};t.options.rtl===!0&&(n=-n);r="left"==t.positionProp?Math.ceil(n)+"px":"0px";u="top"==t.positionProp?Math.ceil(n)+"px":"0px";i[t.positionProp]=n;t.transformsEnabled===!1?t.$slideTrack.css(i):(i={},t.cssTransitions===!1?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var n=this,t;n.options.vertical===!1?n.options.centerMode===!0&&n.$list.css({padding:" "+n.options.centerPadding}):(n.$list.height(n.$slides.first().outerHeight(!0)*n.options.slidesToShow),n.options.centerMode===!0&&n.$list.css({padding:n.options.centerPadding+" 0px"}));n.listWidth=n.$list.width();n.listHeight=n.$list.height();n.options.vertical===!1&&n.options.variableWidth===!1?(n.slideWidth=Math.ceil(n.listWidth/n.options.slidesToShow),n.$slideTrack.width(Math.ceil(n.slideWidth*n.$slideTrack.children(".slick-slide").length))):n.options.variableWidth===!0?n.$slideTrack.width(5e3*n.slideCount):(n.slideWidth=Math.ceil(n.listWidth),n.$slideTrack.height(Math.ceil(n.$slides.first().outerHeight(!0)*n.$slideTrack.children(".slick-slide").length)));t=n.$slides.first().outerWidth(!0)-n.$slides.first().width();n.options.variableWidth===!1&&n.$slideTrack.children(".slick-slide").width(n.slideWidth-t)};t.prototype.setFade=function(){var i,t=this;t.$slides.each(function(r,u){i=t.slideWidth*r*-1;t.options.rtl===!0?n(u).css({position:"relative",right:i,top:0,zIndex:t.options.zIndex-2,opacity:0}):n(u).css({position:"relative",left:i,top:0,zIndex:t.options.zIndex-2,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})};t.prototype.setHeight=function(){var n=this,t;1===n.options.slidesToShow&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.css("height",t))};t.prototype.setOption=t.prototype.slickSetOption=function(){var u,f,e,i,r,t=this,o=!1;if("object"===n.type(arguments[0])?(e=arguments[0],o=arguments[1],r="multiple"):"string"===n.type(arguments[0])&&(e=arguments[0],i=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===n.type(arguments[1])?r="responsive":"undefined"!=typeof arguments[1]&&(r="single")),"single"===r)t.options[e]=i;else if("multiple"===r)n.each(e,function(n,i){t.options[n]=i});else if("responsive"===r)for(f in i)if("array"!==n.type(t.options.responsive))t.options.responsive=[i[f]];else{for(u=t.options.responsive.length-1;u>=0;)t.options.responsive[u].breakpoint===i[f].breakpoint&&t.options.responsive.splice(u,1),u--;t.options.responsive.push(i[f])}o&&(t.unload(),t.reinit())};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.setHeight();n.options.fade===!1?n.setCSS(n.getLeft(n.currentSlide)):n.setFade();n.$slider.trigger("setPosition",[n])};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=n.options.vertical===!0?"top":"left";"top"===n.positionProp?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");(void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.msTransition)&&n.options.useCSS===!0&&(n.cssTransitions=!0);n.options.fade&&("number"==typeof n.options.zIndex?n.options.zIndex<3&&(n.options.zIndex=3):n.options.zIndex=n.defaults.zIndex);void 0!==t.OTransform&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.MozTransform&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(n.animType=!1));void 0!==t.webkitTransform&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.msTransform&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",void 0===t.msTransform&&(n.animType=!1));void 0!==t.transform&&n.animType!==!1&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=n.options.useTransform&&null!==n.animType&&n.animType!==!1};t.prototype.setSlideClasses=function(n){var u,i,r,f,t=this;i=t.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");t.$slides.eq(n).addClass("slick-current");t.options.centerMode===!0?(u=Math.floor(t.options.slidesToShow/2),t.options.infinite===!0&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u,n+u+1).addClass("slick-active").attr("aria-hidden","false"):(r=t.options.slidesToShow+n,i.slice(r-u+1,r+u+2).addClass("slick-active").attr("aria-hidden","false")),0===n?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=t.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(f=t.slideCount%t.options.slidesToShow,r=t.options.infinite===!0?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active").attr("aria-hidden","false"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"===t.options.lazyLoad&&t.lazyLoad()};t.prototype.setupInfinite=function(){var i,r,u,t=this;if(t.options.fade===!0&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=t.options.centerMode===!0?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;u>i;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.interrupt=function(n){var t=this;n||t.autoPlay();t.interrupted=n};t.prototype.selectHandler=function(t){var i=this,u=n(t.target).is(".slick-slide")?n(t.target):n(t.target).parents(".slick-slide"),r=parseInt(u.attr("data-slick-index"));return r||(r=0),i.slideCount<=i.options.slidesToShow?(i.setSlideClasses(r),void i.asNavFor(r)):void i.slideHandler(r)};t.prototype.slideHandler=function(n,t,i){var u,f,s,o,e,h=null,r=this;return t=t||!1,r.animating===!0&&r.options.waitForAnimate===!0||r.options.fade===!0&&r.currentSlide===n||r.slideCount<=r.options.slidesToShow?void 0:(t===!1&&r.asNavFor(n),u=n,h=r.getLeft(u),o=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?o:r.swipeLeft,r.options.infinite===!1&&r.options.centerMode===!1&&(0>n||n>r.getDotCount()*r.options.slidesToScroll)?void(r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(o,function(){r.postSlide(u)}):r.postSlide(u))):r.options.infinite===!1&&r.options.centerMode===!0&&(0>n||n>r.slideCount-r.options.slidesToScroll)?void(r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(o,function(){r.postSlide(u)}):r.postSlide(u))):(r.options.autoplay&&clearInterval(r.autoPlayTimer),f=0>u?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+u:u>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:u-r.slideCount:u,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,f]),s=r.currentSlide,r.currentSlide=f,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(e=r.getNavTarget(),e=e.slick("getSlick"),e.slideCount<=e.options.slidesToShow&&e.setSlideClasses(r.currentSlide)),r.updateDots(),r.updateArrows(),r.options.fade===!0?(i!==!0?(r.fadeSlideOut(s),r.fadeSlide(f,function(){r.postSlide(f)})):r.postSlide(f),void r.animateHeight()):void(i!==!0?r.animateSlide(h,function(){r.postSlide(f)}):r.postSlide(f))))};t.prototype.startLoad=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),n=Math.round(180*u/Math.PI),0>n&&(n=360-Math.abs(n)),45>=n&&n>=0?t.options.rtl===!1?"left":"right":360>=n&&n>=315?t.options.rtl===!1?"left":"right":n>=135&&225>=n?t.options.rtl===!1?"right":"left":t.options.verticalSwiping===!0?n>=35&&135>=n?"down":"up":"vertical"};t.prototype.swipeEnd=function(){var t,i,n=this;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=n.touchObject.swipeLength>10?!1:!0,void 0===n.touchObject.curX)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount();n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount();n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(!(t.options.swipe===!1||"ontouchend"in document&&t.options.swipe===!1||t.options.draggable===!1&&-1!==n.type.indexOf("mouse")))switch(t.touchObject.fingerCount=n.originalEvent&&void 0!==n.originalEvent.touches?n.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,t.options.verticalSwiping===!0&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}};t.prototype.swipeMove=function(n){var f,e,r,u,i,t=this;return i=void 0!==n.originalEvent?n.originalEvent.touches:null,!t.dragging||i&&1!==i.length?!1:(f=t.getLeft(t.currentSlide),t.touchObject.curX=void 0!==i?i[0].pageX:n.clientX,t.touchObject.curY=void 0!==i?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),t.options.verticalSwiping===!0&&(t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curY-t.touchObject.startY,2)))),e=t.swipeDirection(),"vertical"!==e?(void 0!==n.originalEvent&&t.touchObject.swipeLength>4&&n.preventDefault(),u=(t.options.rtl===!1?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),t.options.verticalSwiping===!0&&(u=t.touchObject.curY>t.touchObject.startY?1:-1),r=t.touchObject.swipeLength,t.touchObject.edgeHit=!1,t.options.infinite===!1&&(0===t.currentSlide&&"right"===e||t.currentSlide>=t.getDotCount()&&"left"===e)&&(r=t.touchObject.swipeLength*t.options.edgeFriction,t.touchObject.edgeHit=!0),t.swipeLeft=t.options.vertical===!1?f+r*u:f+r*(t.$list.height()/t.listWidth)*u,t.options.verticalSwiping===!0&&(t.swipeLeft=f+r*u),t.options.fade===!0||t.options.touchMove===!1?!1:t.animating===!0?(t.swipeLeft=null,!1):void t.setCSS(t.swipeLeft)):void 0)};t.prototype.swipeStart=function(n){var i,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==n.originalEvent&&void 0!==n.originalEvent.touches&&(i=n.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==i?i.pageX:n.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==i?i.pageY:n.clientY,void(t.dragging=!0))};t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var n=this;null!==n.$slidesCache&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove();t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove();t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};t.prototype.unslick=function(n){var t=this;t.$slider.trigger("unslick",[t,n]);t.destroy()};t.prototype.updateArrows=function(){var t,n=this;t=Math.floor(n.options.slidesToShow/2);n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&!n.options.infinite&&(n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===n.currentSlide?(n.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&n.options.centerMode===!1?(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-1&&n.options.centerMode===!0&&(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))};t.prototype.updateDots=function(){var n=this;null!==n.$dots&&(n.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))};t.prototype.visibility=function(){var n=this;n.options.autoplay&&(n.interrupted=document[n.hidden]?!0:!1)};n.fn.slick=function(){for(var u,i=this,r=arguments[0],f=Array.prototype.slice.call(arguments,1),e=i.length,n=0;e>n;n++)if("object"==typeof r||"undefined"==typeof r?i[n].slick=new t(i[n],r):u=i[n].slick[r].apply(i[n].slick,f),"undefined"!=typeof u)return u;return i}});!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.videojs=n()}}(function(){var n;return function t(n,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!n[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};n[f][0].call(s.exports,function(t){var i=n[f][1][t];return u(i?i:t)},s,s.exports,t,n,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(2),h=u(s),c=n(5),l=u(c),r=function(n){function t(){return f(this,t),e(this,n.apply(this,arguments))}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(){this.player_.play()},t}(h["default"]);r.prototype.controlText_="Play Video";l["default"].registerComponent("BigPlayButton",r);i["default"]=r},{2:2,5:5}],2:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var l=n(3),a=r(l),v=n(5),f=r(v),y=n(86),e=r(y),p=n(138),u=r(p),o=function(n){function t(){return s(this,t),h(this,n.apply(this,arguments))}return c(t,n),t.prototype.createEl=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r;return n=u["default"]({className:this.buildCSSClass()},n),"button"!==i&&(e["default"].warn("Creating a Button with an HTML element of "+i+" is deprecated; use ClickableComponent instead."),n=u["default"]({tabIndex:0},n),t=u["default"]({role:"button"},t)),t=u["default"]({type:"button","aria-live":"polite"},t),r=f["default"].prototype.createEl.call(this,i,n,t),this.createControlTextEl(r),r},t.prototype.addChild=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.constructor.name;return e["default"].warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),f["default"].prototype.addChild.call(this,n,t)},t.prototype.enable=function(){n.prototype.enable.call(this);this.el_.removeAttribute("disabled")},t.prototype.disable=function(){n.prototype.disable.call(this);this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&n.prototype.handleKeyPress.call(this,t)},t}(a["default"]);f["default"].registerComponent("Button",o);i["default"]=o},{138:138,3:3,5:5,86:86}],3:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function v(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var y=n(5),f=r(y),p=n(81),w=u(p),b=n(82),e=u(b),k=n(83),o=u(k),d=n(86),g=r(d),nt=n(94),s=r(nt),tt=n(138),h=r(tt),c=function(n){function t(i,r){l(this,t);var u=a(this,n.call(this,i,r));return u.emitTapEvents(),u.enable(),u}return v(t,n),t.prototype.createEl=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u;return t=h["default"]({className:this.buildCSSClass(),tabIndex:0},t),"button"===i&&g["default"].error("Creating a ClickableComponent with an HTML element of "+i+" is not supported; use a Button instead."),r=h["default"]({role:"button","aria-live":"polite"},r),this.tabIndex_=t.tabIndex,u=n.prototype.createEl.call(this,i,t,r),this.createControlTextEl(u),u},t.prototype.createControlTextEl=function(n){return this.controlTextEl_=w.createEl("span",{className:"vjs-control-text"}),n&&n.appendChild(this.controlTextEl_),this.controlText(this.controlText_,n),this.controlTextEl_},t.prototype.controlText=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el(),t;return n?(t=this.localize(n),this.controlText_=n,this.controlTextEl_.innerHTML=t,i.setAttribute("title",t),this):this.controlText_||"Need Text"},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+n.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!=typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},t.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!=typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("tap",this.handleClick),this.off("click",this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},t.prototype.handleClick=function(){},t.prototype.handleFocus=function(){e.on(s["default"],"keydown",o.bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleClick(t)):n.prototype.handleKeyPress&&n.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(){e.off(s["default"],"keydown",o.bind(this,this.handleKeyPress))},t}(f["default"]);f["default"].registerComponent("ClickableComponent",c);i["default"]=c},{138:138,5:5,81:81,82:82,83:83,86:86,94:94}],4:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(2),h=r(s),c=n(5),l=r(c),u=function(n){function t(i,r){f(this,t);var u=e(this,n.call(this,i,r));return u.controlText(r&&r.controlText||u.localize("Close")),u}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-close-button "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},t}(h["default"]);l["default"].registerComponent("CloseButton",u);i["default"]=u},{2:2,5:5}],5:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function h(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}i.__esModule=!0;var y=n(95),u=h(y),p=n(81),r=s(p),w=n(83),f=s(w),b=n(85),k=s(b),d=n(82),e=s(d),g=n(86),c=h(g),nt=n(91),o=h(nt),tt=n(87),l=h(tt),a=function(){function n(t,i,r){if(v(this,n),this.player_=!t&&this.play?t=this:t,this.options_=l["default"]({},this.options_),i=this.options_=l["default"](this.options_,i),this.id_=i.id||i.el&&i.el.id,!this.id_){var u=t&&t.id&&t.id()||"no_player";this.id_=u+"_component_"+k.newGUID()}this.name_=i.name||null;i.el?this.el_=i.el:i.createEl!==!1&&(this.el_=this.createEl());this.children_=[];this.childIndex_={};this.childNameIndex_={};i.initChildren!==!1&&this.initChildren();this.ready(r);i.reportTouchActivity!==!1&&this.enableTouchActivity()}return n.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var n=this.children_.length-1;n>=0;n--)this.children_[n].dispose&&this.children_[n].dispose();this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.off();this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_);r.removeElData(this.el_);this.el_=null},n.prototype.player=function(){return this.player_},n.prototype.options=function(n){return c["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),n?(this.options_=l["default"](this.options_,n),this.options_):this.options_},n.prototype.el=function(){return this.el_},n.prototype.createEl=function(n,t,i){return r.createEl(n,t,i)},n.prototype.localize=function(n){var r=this.player_.language&&this.player_.language(),u=this.player_.languages&&this.player_.languages(),t,f,i;return!r||!u?n:(t=u[r],t&&t[n])?t[n]:(f=r.split("-")[0],i=u[f],i&&i[n]?i[n]:n)},n.prototype.contentEl=function(){return this.contentEl_||this.el_},n.prototype.id=function(){return this.id_},n.prototype.name=function(){return this.name_},n.prototype.children=function(){return this.children_},n.prototype.getChildById=function(n){return this.childIndex_[n]},n.prototype.getChild=function(n){if(n)return n=o["default"](n),this.childNameIndex_[n]},n.prototype.addChild=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,i=void 0,u=void 0,e,f,h,l;if("string"==typeof t){if(u=o["default"](t),r||(r={}),r===!0&&(c["default"].warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),r={}),e=r.componentClass||u,r.name=u,f=n.getComponent(e),!f)throw new Error("Component "+e+" does not exist");if("function"!=typeof f)return null;i=new f(this.player_||this,r)}else i=t;return(this.children_.splice(s,0,i),"function"==typeof i.id&&(this.childIndex_[i.id()]=i),u=u||i.name&&i.name(),u&&(this.childNameIndex_[u]=i),"function"==typeof i.el&&i.el())&&(h=this.contentEl().children,l=h[s]||null,this.contentEl().insertBefore(i.el(),l)),i},n.prototype.removeChild=function(n){var i,t,r;if("string"==typeof n&&(n=this.getChild(n)),n&&this.children_){for(i=!1,t=this.children_.length-1;t>=0;t--)if(this.children_[t]===n){i=!0;this.children_.splice(t,1);break}i&&(this.childIndex_[n.id()]=null,this.childNameIndex_[n.name()]=null,r=n.el(),r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(n.el()))}},n.prototype.initChildren=function(){var t=this,i=this.options_.children;i&&!function(){var u=t.options_,f=function(n){var r=n.name,i=n.opts,f;(void 0!==u[r]&&(i=u[r]),i!==!1)&&(i===!0&&(i={}),i.playerOptions=t.options_.playerOptions,f=t.addChild(r,i),f&&(t[r]=f))},r=void 0,e=n.getComponent("Tech");r=Array.isArray(i)?i:Object.keys(i);r.concat(Object.keys(t.options_).filter(function(n){return!r.some(function(t){return"string"==typeof t?n===t:n===t.name})})).map(function(n){var r=void 0,u=void 0;return"string"==typeof n?(r=n,u=i[r]||t.options_[r]||{}):(r=n.name,u=n),{name:r,opts:u}}).filter(function(t){var i=n.getComponent(t.opts.componentClass||o["default"](t.name));return i&&!e.isTech(i)}).forEach(f)}()},n.prototype.buildCSSClass=function(){return""},n.prototype.on=function(n,t,i){var r=this;return"string"==typeof n||Array.isArray(n)?e.on(this.el_,n,f.bind(this,t)):!function(){var u=n,h=t,o=f.bind(r,i),c=function(){return r.off(u,h,o)},s;c.guid=o.guid;r.on("dispose",c);s=function(){return r.off("dispose",c)};s.guid=o.guid;n.nodeName?(e.on(u,h,o),e.on(u,"dispose",s)):"function"==typeof n.on&&(u.on(h,o),u.on("dispose",s))}(),this},n.prototype.off=function(n,t,i){if(!n||"string"==typeof n||Array.isArray(n))e.off(this.el_,n,t);else{var u=n,o=t,r=f.bind(this,i);this.off("dispose",r);n.nodeName?(e.off(u,o,r),e.off(u,"dispose",r)):(u.off(o,r),u.off("dispose",r))}return this},n.prototype.one=function(n,t,i){var r=this,u=arguments;return"string"==typeof n||Array.isArray(n)?e.one(this.el_,n,f.bind(this,t)):!function(){var e=n,o=t,s=f.bind(r,i),h=function c(){r.off(e,o,c);s.apply(null,u)};h.guid=s.guid;r.on(e,o,h)}(),this},n.prototype.trigger=function(n,t){return e.trigger(this.el_,n,t),this},n.prototype.ready=function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&(this.isReady_?t?n.call(this):this.setTimeout(n,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(n))),this},n.prototype.triggerReady=function(){this.isReady_=!0;this.setTimeout(function(){var n=this.readyQueue_;this.readyQueue_=[];n&&n.length>0&&n.forEach(function(n){n.call(this)},this);this.trigger("ready")},1)},n.prototype.$=function(n,t){return r.$(n,t||this.contentEl())},n.prototype.$$=function(n,t){return r.$$(n,t||this.contentEl())},n.prototype.hasClass=function(n){return r.hasElClass(this.el_,n)},n.prototype.addClass=function(n){return r.addElClass(this.el_,n),this},n.prototype.removeClass=function(n){return r.removeElClass(this.el_,n),this},n.prototype.toggleClass=function(n,t){return r.toggleElClass(this.el_,n,t),this},n.prototype.show=function(){return this.removeClass("vjs-hidden"),this},n.prototype.hide=function(){return this.addClass("vjs-hidden"),this},n.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},n.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},n.prototype.getAttribute=function(n){return r.getAttribute(this.el_,n)},n.prototype.setAttribute=function(n,t){return r.setAttribute(this.el_,n,t),this},n.prototype.removeAttribute=function(n){return r.removeAttribute(this.el_,n),this},n.prototype.width=function(n,t){return this.dimension("width",n,t)},n.prototype.height=function(n,t){return this.dimension("height",n,t)},n.prototype.dimensions=function(n,t){return this.width(n,!0).height(t)},n.prototype.dimension=function(n,t,i){if(void 0!==t)return null!==t&&t===t||(t=0),this.el_.style[n]=(""+t).indexOf("%")!==-1||(""+t).indexOf("px")!==-1?t:"auto"===t?"":t+"px",i||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[n],u=r.indexOf("px");return u!==-1?parseInt(r.slice(0,u),10):parseInt(this.el_["offset"+o["default"](n)],10)},n.prototype.currentDimension=function(n){var t=0,i,r;if("width"!==n&&"height"!==n)throw new Error("currentDimension only accepts width or height value");return"function"==typeof u["default"].getComputedStyle&&(i=u["default"].getComputedStyle(this.el_),t=i.getPropertyValue(n)||i[n]),(t=parseFloat(t),0===t)&&(r="offset"+o["default"](n),t=this.el_[r]),t},n.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},n.prototype.currentWidth=function(){return this.currentDimension("width")},n.prototype.currentHeight=function(){return this.currentDimension("height")},n.prototype.emitTapEvents=function(){var r=0,n=null,u=10,f=200,t=void 0,i;this.on("touchstart",function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},r=(new Date).getTime(),t=!0)});this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(n){var r=i.touches[0].pageX-n.pageX,f=i.touches[0].pageY-n.pageY,e=Math.sqrt(r*r+f*f);e>u&&(t=!1)}});i=function(){t=!1};this.on("touchleave",i);this.on("touchcancel",i);this.on("touchend",function(i){if(n=null,t===!0){var u=(new Date).getTime()-r;u<f&&(i.preventDefault(),this.trigger("tap"))}})},n.prototype.enableTouchActivity=function(){var n,t,i;if(this.player()&&this.player().reportUserActivity){n=f.bind(this.player(),this.player().reportUserActivity);t=void 0;this.on("touchstart",function(){n();this.clearInterval(t);t=this.setInterval(n,250)});i=function(){n();this.clearInterval(t)};this.on("touchmove",n);this.on("touchend",i);this.on("touchcancel",i)}},n.prototype.setTimeout=function(n,t){n=f.bind(this,n);var i=u["default"].setTimeout(n,t),r=function(){this.clearTimeout(i)};return r.guid="vjs-timeout-"+i,this.on("dispose",r),i},n.prototype.clearTimeout=function(n){u["default"].clearTimeout(n);var t=function(){};return t.guid="vjs-timeout-"+n,this.off("dispose",t),n},n.prototype.setInterval=function(n,t){n=f.bind(this,n);var i=u["default"].setInterval(n,t),r=function(){this.clearInterval(i)};return r.guid="vjs-interval-"+i,this.on("dispose",r),i},n.prototype.clearInterval=function(n){u["default"].clearInterval(n);var t=function(){};return t.guid="vjs-interval-"+n,this.off("dispose",t),n},n.registerComponent=function(t,i){if(t)return t=o["default"](t),n.components_||(n.components_={}),n.components_[t]=i,i},n.getComponent=function(t){if(t)return t=o["default"](t),n.components_&&n.components_[t]?n.components_[t]:u["default"]&&u["default"].videojs&&u["default"].videojs[t]?(c["default"].warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),u["default"].videojs[t]):void 0},n.extend=function(t){var u,i,r;t=t||{};c["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");u=t.init||t.init||this.prototype.init||this.prototype.init||function(){};i=function(){u.apply(this,arguments)};i.prototype=Object.create(this.prototype);i.prototype.constructor=i;i.extend=n.extend;for(r in t)t.hasOwnProperty(r)&&(i.prototype[r]=t[r]);return i},n}();a.registerComponent("Component",a);i["default"]=a},{81:81,82:82,83:83,85:85,86:86,87:87,91:91,95:95}],6:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(36),h=r(s),c=n(5),l=r(c),a=n(7),v=r(a),u=function(n){function t(i){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r;return f(this,t),u.tracks=i.audioTracks&&i.audioTracks(),r=e(this,n.call(this,i,u)),r.el_.setAttribute("aria-label","Audio Menu"),r}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+n.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=this.player_.audioTracks&&this.player_.audioTracks(),n,r;if(!i)return t;for(n=0;n<i.length;n++)r=i[n],t.push(new v["default"](this.player_,{track:r,selectable:!0}));return t},t}(h["default"]);u.prototype.controlText_="Audio Track";l["default"].registerComponent("AudioTrackButton",u);i["default"]=u},{36:36,5:5,7:7}],7:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(48),c=r(h),l=n(5),a=r(l),v=n(83),y=f(v),u=function(n){function t(i,r){var f,s,u;return e(this,t),f=r.track,s=i.audioTracks(),r.label=f.label||f.language||"Unknown",r.selected=f.enabled,u=o(this,n.call(this,i,r)),u.track=f,s&&!function(){var n=y.bind(u,u.handleTracksChange);s.addEventListener("change",n);u.on("dispose",function(){s.removeEventListener("change",n)})}(),u}return s(t,n),t.prototype.handleClick=function(t){var r=this.player_.audioTracks(),i,u;if(n.prototype.handleClick.call(this,t),r)for(i=0;i<r.length;i++)u=r[i],u.enabled=u===this.track},t.prototype.handleTracksChange=function(){this.selected(this.track.enabled)},t}(c["default"]);a["default"].registerComponent("AudioTrackMenuItem",u);i["default"]=u},{48:48,5:5,83:83}],8:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,u,r;i.__esModule=!0;f=n(5);u=e(f);n(12);n(32);n(33);n(35);n(34);n(10);n(18);n(9);n(38);n(40);n(11);n(25);n(27);n(29);n(24);n(6);n(13);n(21);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(u["default"]);r.prototype.options_={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]};u["default"].registerComponent("ControlBar",r);i["default"]=r},{10:10,11:11,12:12,13:13,18:18,21:21,24:24,25:25,27:27,29:29,32:32,33:33,34:34,35:35,38:38,40:40,5:5,6:6,9:9}],9:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(2),h=u(s),c=n(5),l=u(c),r=function(n){function t(i,r){f(this,t);var u=e(this,n.call(this,i,r));return u.on(i,"fullscreenchange",u.handleFullscreenChange),u}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(h["default"]);r.prototype.controlText_="Fullscreen";l["default"].registerComponent("FullscreenToggle",r);i["default"]=r},{2:2,5:5}],10:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(5),r=e(c),l=n(81),a=f(l),u=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.updateShowing(),u.on(u.player(),"durationchange",u.updateShowing),u}return h(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=a.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"<\/span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},t}(r["default"]);r["default"].registerComponent("LiveDisplay",u);i["default"]=u},{5:5,81:81}],11:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(2),l=u(c),a=n(5),v=u(a),y=n(81),f=e(y),r=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.on(i,"volumechange",u.update),i.tech_&&i.tech_.featuresVolumeControl===!1&&u.addClass("vjs-hidden"),u.on(i,"loadstart",function(){this.update();i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),u}return h(t,n),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},t.prototype.update=function(){var i=this.player_.volume(),n=3,r,t;for(0===i||this.player_.muted()?n=0:i<.33?n=1:i<.67&&(n=2),r=this.player_.muted()?"Unmute":"Mute",this.controlText()!==r&&this.controlText(r),t=0;t<4;t++)f.removeElClass(this.el_,"vjs-vol-"+t);f.addElClass(this.el_,"vjs-vol-"+n)},t}(l["default"]);r.prototype.controlText_="Mute";v["default"].registerComponent("MuteToggle",r);i["default"]=r},{2:2,5:5,81:81}],12:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(2),h=u(s),c=n(5),l=u(c),r=function(n){function t(i,r){f(this,t);var u=e(this,n.call(this,i,r));return u.on(i,"play",u.handlePlay),u.on(i,"pause",u.handlePause),u}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handlePlay=function(){this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")},t.prototype.handlePause=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")},t}(h["default"]);r.prototype.controlText_="Play";l["default"].registerComponent("PlayToggle",r);i["default"]=r},{2:2,5:5}],13:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(47),c=r(h),l=n(49),a=r(l),v=n(14),y=r(v),p=n(5),w=r(p),b=n(81),k=f(b),u=function(n){function t(i,r){e(this,t);var u=o(this,n.call(this,i,r));return u.updateVisibility(),u.updateLabel(),u.on(i,"loadstart",u.updateVisibility),u.on(i,"ratechange",u.updateLabel),u}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this);return this.labelEl_=k.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.labelEl_),t},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.prototype.createMenu=function(){var i=new a["default"](this.player()),t=this.playbackRates(),n;if(t)for(n=t.length-1;n>=0;n--)i.addChild(new y["default"](this.player(),{rate:t[n]+"x"}));return i},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(){for(var r=this.player().playbackRate(),n=this.playbackRates(),i=n[0],t=0;t<n.length;t++)if(n[t]>r){i=n[t];break}this.player().playbackRate(i)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(c["default"]);u.prototype.controlText_="Playback Rate";w["default"].registerComponent("PlaybackRateMenuButton",u);i["default"]=u},{14:14,47:47,49:49,5:5,81:81}],14:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(48),h=u(s),c=n(5),l=u(c),r=function(n){function t(i,r){var o,s,u;return f(this,t),o=r.rate,s=parseFloat(o,10),r.label=o,r.selected=1===s,u=e(this,n.call(this,i,r)),u.label=o,u.rate=s,u.on(i,"ratechange",u.update),u}return o(t,n),t.prototype.handleClick=function(){n.prototype.handleClick.call(this);this.player().playbackRate(this.rate)},t.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},t}(h["default"]);r.prototype.contentElType="button";l["default"].registerComponent("PlaybackRateMenuItem",r);i["default"]=r},{48:48,5:5}],15:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(5),r=e(c),l=n(81),a=f(l),u=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.partEls_=[],u.on(i,"progress",u.update),u}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"<\/span>: 0%<\/span>"})},t.prototype.update=function(){var t=this.player_.buffered(),s=this.player_.duration(),f=this.player_.bufferedEnd(),i=this.partEls_,e=function(n,t){var i=n/t||0;return 100*(i>=1?1:i)+"%"},n,u;for(this.el_.style.width=e(f,s),n=0;n<t.length;n++){var o=t.start(n),h=t.end(n),r=i[n];r||(r=this.el_.appendChild(a.createEl()),i[n]=r);r.style.left=e(o,f);r.style.width=e(h-o,f)}for(u=i.length;u>t.length;u--)this.el_.removeChild(i[u-1]);i.length=t.length},t}(r["default"]);r["default"].registerComponent("LoadProgressBar",u);i["default"]=u},{5:5,81:81}],16:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var a=n(5),o=r(a),v=n(81),u=e(v),y=n(83),p=e(y),w=n(84),b=r(w),k=n(100),d=r(k),g=n(80),f=r(g),s=function(n){function t(i,r){h(this,t);var f=c(this,n.call(this,i,r));return r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(f.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),f.keepTooltipsInside&&(f.tooltip=u.createEl("div",{className:"vjs-time-tooltip"}),f.el().appendChild(f.tooltip),f.addClass("vjs-keep-tooltips-inside")),f.update(0,0),i.on("ready",function(){f.on(i.controlBar.progressControl.el(),"mousemove",d["default"](p.bind(f,f.handleMouseMove),25))}),f}return l(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.handleMouseMove=function(n){var t=this.player_.duration(),i=this.calculateDistance(n)*t,r=n.pageX-u.findElPosition(this.el().parentNode).left;this.update(i,r)},t.prototype.update=function(n,t){var i=b["default"](n,this.player_.duration());if(this.el().style.left=t+"px",this.el().setAttribute("data-current-time",i),this.keepTooltipsInside){var r=this.clampPosition_(t),u=t-r+1,e=parseFloat(f["default"](this.tooltip,"width")),o=e/2;this.tooltip.innerHTML=i;this.tooltip.style.right="-"+(o-u)+"px"}},t.prototype.calculateDistance=function(n){return u.getPointerPosition(this.el().parentNode,n).x},t.prototype.clampPosition_=function(n){if(!this.keepTooltipsInside)return n;var r=parseFloat(f["default"](this.player().el(),"width")),u=parseFloat(f["default"](this.tooltip,"width")),t=u/2,i=n;return n<t?i=Math.ceil(t):n>r-t&&(i=Math.floor(r-t)),i},t}(o["default"]);o["default"].registerComponent("MouseTimeDisplay",s);i["default"]=s},{100:100,5:5,80:80,81:81,83:83,84:84}],17:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(5),u=r(c),l=n(83),a=e(l),v=n(84),y=r(v),f=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.updateDataAttr(),u.on(i,"timeupdate",u.updateDataAttr),i.ready(a.bind(u,u.updateDataAttr)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(u.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),u.keepTooltipsInside&&u.addClass("vjs-keep-tooltips-inside"),u}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"<\/span>: 0%<\/span>"})},t.prototype.updateDataAttr=function(){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",y["default"](n,this.player_.duration()))},t}(u["default"]);u["default"].registerComponent("PlayProgressBar",f);i["default"]=f},{5:5,83:83,84:84}],18:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,u,r;i.__esModule=!0;f=n(5);u=e(f);n(19);n(16);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t}(u["default"]);r.prototype.options_={children:["seekBar"]};u["default"].registerComponent("ProgressControl",r);i["default"]=r},{16:16,19:19,5:5}],19:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var c=n(57),l=u(c),a=n(5),v=u(a),y=n(83),p=e(y),w=n(84),b=u(w),k=n(80),f=u(k);n(15);n(17);n(20);r=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.on(i,"timeupdate",u.updateProgress),u.on(i,"ended",u.updateProgress),i.ready(p.bind(u,u.updateProgress)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(u.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),u.keepTooltipsInside&&(u.tooltipProgressBar=u.addChild("TooltipProgressBar")),u}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},t.prototype.updateProgress=function(){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_);this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var i=parseFloat(f["default"](this.player().el(),"width")),n=parseFloat(f["default"](this.tooltipProgressBar.tooltip,"width")),t=this.tooltipProgressBar.el().style;t.maxWidth=Math.floor(i-n/2)+"px";t.minWidth=Math.ceil(n/2)+"px";t.right="-"+n/2+"px"}},t.prototype.updateAriaAttributes=function(n){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2));n.setAttribute("aria-valuetext",b["default"](t,this.player_.duration()))},t.prototype.getPercent=function(){var n=this.player_.currentTime()/this.player_.duration();return n>=1?1:n},t.prototype.handleMouseDown=function(t){n.prototype.handleMouseDown.call(this,t);this.player_.scrubbing(!0);this.videoWasPlaying=!this.player_.paused();this.player_.pause()},t.prototype.handleMouseMove=function(n){var t=this.calculateDistance(n)*this.player_.duration();t===this.player_.duration()&&(t-=.1);this.player_.currentTime(t)},t.prototype.handleMouseUp=function(t){n.prototype.handleMouseUp.call(this,t);this.player_.scrubbing(!1);this.videoWasPlaying&&this.player_.play()},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t}(l["default"]);r.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"};r.prototype.playerEvent="timeupdate";v["default"].registerComponent("SeekBar",r);i["default"]=r},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(5),u=r(c),l=n(83),a=e(l),v=n(84),y=r(v),f=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.updateDataAttr(),u.on(i,"timeupdate",u.updateDataAttr),i.ready(a.bind(u,u.updateDataAttr)),u}return h(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"><\/div>\n        <span class="vjs-control-text"><span>'+this.localize("Progress")+"<\/span>: 0%<\/span>"});return this.tooltip=t.querySelector(".vjs-time-tooltip"),t},t.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=y["default"](t,this.player_.duration());this.el_.setAttribute("data-current-time",n);this.tooltip.innerHTML=n},t}(u["default"]);u["default"].registerComponent("TooltipProgressBar",f);i["default"]=f},{5:5,83:83,84:84}],21:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(22),h=r(s),c=n(5),l=r(c),u=function(n){function t(){return f(this,t),e(this,n.apply(this,arguments))}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="&nbsp;",t},t}(h["default"]);l["default"].registerComponent("CustomControlSpacer",u);i["default"]=u},{22:22,5:5}],22:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(5),r=f(h),u=function(n){function t(){return e(this,t),o(this,n.apply(this,arguments))}return s(t,n),t.prototype.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(r["default"]);r["default"].registerComponent("Spacer",u);i["default"]=u},{5:5}],23:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(31),h=r(s),c=n(5),l=r(c),u=function(n){function t(i,r){f(this,t);r.track={player:i,kind:r.kind,label:r.kind+" settings",selectable:!1,"default":!1,mode:"disabled"};r.selectable=!1;var u=e(this,n.call(this,i,r));return u.addClass("vjs-texttrack-settings"),u.controlText(", opens "+r.kind+" settings dialog"),u}return o(t,n),t.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show();this.player().getChild("textTrackSettings").el_.focus()},t}(h["default"]);l["default"].registerComponent("CaptionSettingsMenuItem",u);i["default"]=u},{31:31,5:5}],24:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(30),h=u(s),c=n(5),l=u(c),a=n(23),v=u(a),r=function(n){function t(i,r,u){f(this,t);var o=e(this,n.call(this,i,r,u));return o.el_.setAttribute("aria-label","Captions Menu"),o}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.prototype.update=function(){var t=2;n.prototype.update.call(this);this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(t=1);this.items&&this.items.length>t?this.show():this.hide()},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||t.push(new v["default"](this.player_,{kind:this.kind_})),n.prototype.createItems.call(this,t)},t}(h["default"]);r.prototype.kind_="captions";r.prototype.controlText_="Captions";l["default"].registerComponent("CaptionsButton",r);i["default"]=r},{23:23,30:30,5:5}],25:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(30),l=r(c),a=n(5),v=r(a),y=n(31),p=r(y),w=n(26),b=r(w),k=n(49),d=r(k),g=n(81),f=e(g),nt=n(91),tt=r(nt),u=function(n){function t(i,r,u){o(this,t);var f=s(this,n.call(this,i,r,u));return f.el_.setAttribute("aria-label","Chapters Menu"),f}return h(t,n),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var t=[],i=this.player_.textTracks(),n,r;if(!i)return t;for(n=0;n<i.length;n++)r=i[n],r.kind===this.kind_&&t.push(new p["default"](this.player_,{track:r}));return t},t.prototype.createMenu=function(){for(var u,t,e,o,a,h,v=this,c=this.player_.textTracks()||[],n=void 0,i=this.items||[],r=c.length-1;r>=0;r--)if(u=c[r],u.kind===this.kind_){n=u;break}if(t=this.menu,void 0===t?(t=new d["default"](this.player_),e=f.createEl("li",{className:"vjs-menu-title",innerHTML:tt["default"](this.kind_),tabIndex:-1}),t.children_.unshift(e),f.insertElFirst(e,t.contentEl())):(i.forEach(function(n){return t.removeChild(n)}),i=[]),n&&(null===n.cues||void 0===n.cues)&&(n.mode="hidden",o=this.player_.remoteTextTrackEls().getTrackElementByTrack_(n),o&&o.addEventListener("load",function(){return v.update()})),n&&n.cues&&n.cues.length>0)for(var l=n.cues,s=0,y=l.length;s<y;s++)a=l[s],h=new b["default"](this.player_,{cue:a,track:n}),i.push(h),t.addChild(h);return i.length>0&&this.show(),this.items=i,t},t}(l["default"]);u.prototype.kind_="chapters";u.prototype.controlText_="Chapters";v["default"].registerComponent("ChaptersButton",u);i["default"]=u},{26:26,30:30,31:31,49:49,5:5,81:81,91:91}],26:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(48),c=r(h),l=n(5),a=r(l),v=n(83),y=f(v),u=function(n){function t(i,r){var u;e(this,t);var s=r.track,f=r.cue,h=i.currentTime();return r.label=f.text,r.selected=f.startTime<=h&&h<f.endTime,u=o(this,n.call(this,i,r)),u.track=s,u.cue=f,s.addEventListener("cuechange",y.bind(u,u.update)),u}return s(t,n),t.prototype.handleClick=function(){n.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)},t.prototype.update=function(){var n=this.cue,t=this.player_.currentTime();this.selected(n.startTime<=t&&t<n.endTime)},t}(c["default"]);a["default"].registerComponent("ChaptersTrackMenuItem",u);i["default"]=u},{48:48,5:5,83:83}],27:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(30),c=u(h),l=n(5),a=u(l),v=n(83),y=f(v),r=function(n){function t(i,r,u){var f,s;return e(this,t),f=o(this,n.call(this,i,r,u)),f.el_.setAttribute("aria-label","Descriptions Menu"),s=i.textTracks(),s&&!function(){var n=y.bind(f,f.handleTracksChange);s.addEventListener("change",n);f.on("dispose",function(){s.removeEventListener("change",n)})}(),f}return s(t,n),t.prototype.handleTracksChange=function(){for(var t,i=this.player().textTracks(),r=!1,n=0,u=i.length;n<u;n++)if(t=i[n],t.kind!==this.kind_&&"showing"===t.mode){r=!0;break}r?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+n.prototype.buildCSSClass.call(this)},t}(c["default"]);r.prototype.kind_="descriptions";r.prototype.controlText_="Descriptions";a["default"].registerComponent("DescriptionsButton",r);i["default"]=r},{30:30,5:5,83:83}],28:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(31),h=r(s),c=n(5),l=r(c),u=function(n){function t(i,r){f(this,t);r.track={player:i,kind:r.kind,label:r.kind+" off","default":!1,mode:"disabled"};r.selectable=!0;var u=e(this,n.call(this,i,r));return u.selected(!0),u}return o(t,n),t.prototype.handleTracksChange=function(){for(var t,i=this.player().textTracks(),r=!0,n=0,u=i.length;n<u;n++)if(t=i[n],t.kind===this.track.kind&&"showing"===t.mode){r=!1;break}this.selected(r)},t}(h["default"]);l["default"].registerComponent("OffTextTrackMenuItem",u);i["default"]=u},{31:31,5:5}],29:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(30),h=u(s),c=n(5),l=u(c),r=function(n){function t(i,r,u){f(this,t);var o=e(this,n.call(this,i,r,u));return o.el_.setAttribute("aria-label","Subtitles Menu"),o}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t}(h["default"]);r.prototype.kind_="subtitles";r.prototype.controlText_="Subtitles";l["default"].registerComponent("SubtitlesButton",r);i["default"]=r},{30:30,5:5}],30:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(36),h=r(s),c=n(5),l=r(c),a=n(31),v=r(a),y=n(28),p=r(y),u=function(n){function t(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(this,t),r.tracks=i.textTracks(),e(this,n.call(this,i,r))}return o(t,n),t.prototype.createItems=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t,i,r;if(n.push(new p["default"](this.player_,{kind:this.kind_})),t=this.player_.textTracks(),!t)return n;for(i=0;i<t.length;i++)r=t[i],r.kind===this.kind_&&n.push(new v["default"](this.player_,{track:r,selectable:!0}));return n},t}(h["default"]);l["default"].registerComponent("TextTrackButton",u);i["default"]=u},{28:28,31:31,36:36,5:5}],31:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},l=n(48),a=r(l),v=n(5),y=r(v),p=n(83),w=e(p),b=n(95),u=r(b),k=n(94),d=r(k),f=function(n){function t(i,r){var h,f,e;return o(this,t),h=r.track,f=i.textTracks(),r.label=h.label||h.language||"Unknown",r.selected=h["default"]||"showing"===h.mode,e=s(this,n.call(this,i,r)),e.track=h,f&&!function(){var n=w.bind(e,e.handleTracksChange);f.addEventListener("change",n);e.on("dispose",function(){f.removeEventListener("change",n)})}(),f&&void 0===f.onchange&&!function(){var n=void 0;e.on(["tap","click"],function(){if("object"!==c(u["default"].Event))try{n=new u["default"].Event("change")}catch(t){}n||(n=d["default"].createEvent("Event"),n.initEvent("change",!0,!0));f.dispatchEvent(n)})}(),e}return h(t,n),t.prototype.handleClick=function(t){var f=this.track.kind,u=this.player_.textTracks(),i,r;if(n.prototype.handleClick.call(this,t),u)for(i=0;i<u.length;i++)r=u[i],r.kind===f&&(r.mode=r===this.track?"showing":"disabled")},t.prototype.handleTracksChange=function(){this.selected("showing"===this.track.mode)},t}(a["default"]);y["default"].registerComponent("TextTrackMenuItem",f);i["default"]=f},{48:48,5:5,83:83,94:94,95:95}],32:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(5),u=r(c),l=n(81),a=e(l),v=n(84),y=r(v),f=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.on(i,"timeupdate",u.updateContent),u}return h(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=a.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time <\/span>0:00'},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),i=this.localize("Current Time"),n=y["default"](t,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+i+"<\/span> "+n)},t}(u["default"]);u["default"].registerComponent("CurrentTimeDisplay",f);i["default"]=f},{5:5,81:81,84:84}],33:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(5),u=r(c),l=n(81),a=e(l),v=n(84),y=r(v),f=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.on(i,"durationchange",u.updateContent),u.on(i,"timeupdate",u.updateContent),u.on(i,"loadedmetadata",u.updateContent),u}return h(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=a.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"<\/span> 0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var n=this.player_.duration(),t,i;n&&this.duration_!==n&&(this.duration_=n,t=this.localize("Duration Time"),i=y["default"](n),this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"<\/span> "+i)},t}(u["default"]);u["default"].registerComponent("DurationDisplay",f);i["default"]=f},{5:5,81:81,84:84}],34:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(5),u=r(c),l=n(81),a=e(l),v=n(84),y=r(v),f=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.on(i,"timeupdate",u.updateContent),u.on(i,"durationchange",u.updateContent),u}return h(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=a.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"<\/span> -0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),n=y["default"](this.player_.remainingTime());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"<\/span> -"+n)}},t}(u["default"]);u["default"].registerComponent("RemainingTimeDisplay",f);i["default"]=f},{5:5,81:81,84:84}],35:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(5),r=f(h),u=function(n){function t(){return e(this,t),o(this,n.apply(this,arguments))}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/<\/span><\/div>"})},t}(r["default"]);r["default"].registerComponent("TimeDivider",u);i["default"]=u},{5:5}],36:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(47),c=r(h),l=n(5),a=r(l),v=n(83),y=e(v),f=function(n){function t(i,r){var e,f,s;return(o(this,t),e=r.tracks,f=u(this,n.call(this,i,r)),f.items.length<=1&&f.hide(),!e)?u(f):(s=y.bind(f,f.update),e.addEventListener("removetrack",s),e.addEventListener("addtrack",s),f.player_.on("dispose",function(){e.removeEventListener("removetrack",s);e.removeEventListener("addtrack",s)}),f)}return s(t,n),t}(c["default"]);a["default"].registerComponent("TrackButton",f);i["default"]=f},{47:47,5:5,83:83}],37:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var h=n(57),c=u(h),l=n(5),a=u(l),v=n(83),y=f(v);n(39);r=function(n){function t(i,r){e(this,t);var u=o(this,n.call(this,i,r));return u.on(i,"volumechange",u.updateARIAAttributes),i.ready(y.bind(u,u.updateARIAAttributes)),u}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},t.prototype.handleMouseMove=function(n){this.checkMuted();this.player_.volume(this.calculateDistance(n))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(){var n=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",n);this.el_.setAttribute("aria-valuetext",n+"%")},t}(c["default"]);r.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};r.prototype.playerEvent="volumechange";a["default"].registerComponent("VolumeBar",r);i["default"]=r},{39:39,5:5,57:57,83:83}],38:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,u,r;i.__esModule=!0;f=n(5);u=e(f);n(37);r=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return i.tech_&&i.tech_.featuresVolumeControl===!1&&u.addClass("vjs-hidden"),u.on(i,"loadstart",function(){i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),u}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},t}(u["default"]);r.prototype.options_={children:["volumeBar"]};u["default"].registerComponent("VolumeControl",r);i["default"]=r},{37:37,5:5}],39:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(5),r=f(h),u=function(n){function t(){return e(this,t),o(this,n.apply(this,arguments))}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"><\/span>'})},t}(r["default"]);r["default"].registerComponent("VolumeLevel",u);i["default"]=u},{5:5}],40:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var l=n(83),f=o(l),a=n(5),v=r(a),y=n(54),p=r(y),w=n(53),b=r(w),k=n(11),e=r(k),d=n(37),g=r(d),u=function(n){function t(i){function f(){i.tech_&&i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r;return s(this,t),void 0===u.inline&&(u.inline=!0),void 0===u.vertical&&(u.vertical=u.inline?!1:!0),u.volumeBar=u.volumeBar||{},u.volumeBar.vertical=!!u.vertical,r=h(this,n.call(this,i,u)),r.on(i,"volumechange",r.volumeUpdate),r.on(i,"loadstart",r.volumeUpdate),f.call(r),r.on(i,"loadstart",f),r.on(r.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),r.on(r.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),r.on(r.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),r.on(r.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),r}return c(t,n),t.prototype.buildCSSClass=function(){var t="";return t=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+n.prototype.buildCSSClass.call(this)+" "+t},t.prototype.createPopup=function(){var n=new p["default"](this.player_,{contentElType:"div"}),t=new g["default"](this.player_,this.options_.volumeBar);return n.addChild(t),this.menuContent=n,this.volumeBar=t,this.attachVolumeBarEvents(),n},t.prototype.handleClick=function(){e["default"].prototype.handleClick.call(this);n.prototype.handleClick.call(this)},t.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],f.bind(this,this.handleMouseDown))},t.prototype.handleMouseDown=function(){this.on(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove));this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},t.prototype.handleMouseUp=function(){this.off(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove))},t}(b["default"]);u.prototype.volumeUpdate=e["default"].prototype.update;u.prototype.controlText_="Mute";v["default"].registerComponent("VolumeMenuButton",u);i["default"]=u},{11:11,37:37,5:5,53:53,54:54,83:83}],41:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(5),c=r(h),l=n(50),f=r(l),a=n(87),v=r(a),u=function(n){function t(i,r){e(this,t);var u=o(this,n.call(this,i,r));return u.on(i,"error",u.open),u}return s(t,n),t.prototype.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var n=this.player().error();return n?this.localize(n.message):""},t}(f["default"]);u.prototype.options_=v["default"](f["default"].prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0});c["default"].registerComponent("ErrorDisplay",u);i["default"]=u},{5:5,50:50,87:87}],42:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}i.__esModule=!0;var e=n(82),u=f(e),r=function(){};r.prototype.allowedEvents_={};r.prototype.on=function(n,t){var i=this.addEventListener;this.addEventListener=function(){};u.on(this,n,t);this.addEventListener=i};r.prototype.addEventListener=r.prototype.on;r.prototype.off=function(n,t){u.off(this,n,t)};r.prototype.removeEventListener=r.prototype.off;r.prototype.one=function(n,t){var i=this.addEventListener;this.addEventListener=function(){};u.one(this,n,t);this.addEventListener=i};r.prototype.trigger=function(n){var t=n.type||n;"string"==typeof n&&(n={type:t});n=u.fixEvent(n);this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](n);u.trigger(this,n)};r.prototype.dispatchEvent=r.prototype.trigger;i["default"]=r},{82:82}],43:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f=n(86),e=u(f),o=function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":r(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(n.super_=t)},s=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(){n.apply(this,arguments)},u={},f;"object"===("undefined"==typeof t?"undefined":r(t))?("function"==typeof t.init&&(e["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."),t.constructor=t.init),t.constructor!==Object.prototype.constructor&&(i=t.constructor),u=t):"function"==typeof t&&(i=t);o(i,n);for(f in u)u.hasOwnProperty(f)&&(i.prototype[f]=u[f]);return i};i["default"]=s},{86:86}],44:[function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}var r;i.__esModule=!0;for(var h=n(94),c=s(h),o={},u=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=u[0],f=void 0,e=0;e<u.length;e++)if(u[e][1]in c["default"]){f=u[e];break}if(f)for(r=0;r<f.length;r++)o[l[r]]=f[r];i["default"]=o},{94:94}],45:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(5),r=f(h),u=function(n){function t(){return e(this,t),o(this,n.apply(this,arguments))}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(r["default"]);r["default"].registerComponent("LoadingSpinner",u);i["default"]=u},{5:5}],46:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function r(n){return n instanceof r?n:("number"==typeof n?this.code=n:"string"==typeof n?this.message=n:"object"===("undefined"==typeof n?"undefined":e(n))&&("number"==typeof n.code&&(this.code=n.code),s["default"](this,n)),void(this.message||(this.message=r.defaultMessages[this.code]||"")))}var u;i.__esModule=!0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},o=n(138),s=f(o);for(r.prototype.code=0,r.prototype.message="",r.prototype.status=null,r.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],r.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},u=0;u<r.errorTypes.length;u++)r[r.errorTypes[u]]=u,r.prototype[r.errorTypes[u]]=u;i["default"]=r},{138:138}],47:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(3),l=r(c),a=n(5),v=r(a),y=n(49),p=r(y),w=n(81),f=u(w),b=n(83),k=u(b),d=n(91),g=r(d),e=function(n){function t(i){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r;return o(this,t),r=s(this,n.call(this,i,u)),r.update(),r.enabled_=!0,r.el_.setAttribute("aria-haspopup","true"),r.el_.setAttribute("role","menuitem"),r.on("keydown",r.handleSubmenuKeyPress),r}return h(t,n),t.prototype.update=function(){var n=this.createMenu();this.menu&&this.removeChild(this.menu);this.menu=n;this.addChild(n);this.buttonPressed_=!1;this.el_.setAttribute("aria-expanded","false");this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createMenu=function(){var n=new p["default"](this.player_),i,t;if(this.options_.title&&(i=f.createEl("li",{className:"vjs-menu-title",innerHTML:g["default"](this.options_.title),tabIndex:-1}),n.children_.unshift(i),f.insertElFirst(i,n.contentEl())),this.items=this.createItems(),this.items)for(t=0;t<this.items.length;t++)n.addItem(this.items[t]);return n},t.prototype.createItems=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.one(this.menu.contentEl(),"mouseleave",k.bind(this,function(){this.unpressButton();this.el_.blur()}));this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault()):38===t.which||40===t.which?this.buttonPressed_||(this.pressButton(),t.preventDefault()):n.prototype.handleKeyPress.call(this,t)},t.prototype.handleSubmenuKeyPress=function(n){27!==n.which&&9!==n.which||(this.buttonPressed_&&this.unpressButton(),9!==n.which&&n.preventDefault())},t.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.el_.focus())},t.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,n.prototype.disable.call(this)},t.prototype.enable=function(){return this.enabled_=!0,n.prototype.enable.call(this)},t}(l["default"]);v["default"].registerComponent("MenuButton",e);i["default"]=e},{3:3,49:49,5:5,81:81,83:83,91:91}],48:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(3),h=r(s),c=n(5),l=r(c),a=n(138),v=r(a),u=function(n){function t(i,r){f(this,t);var u=e(this,n.call(this,i,r));return u.selectable=r.selectable,u.selected(r.selected),u.selectable?u.el_.setAttribute("role","menuitemcheckbox"):u.el_.setAttribute("role","menuitem"),u}return o(t,n),t.prototype.createEl=function(t,i,r){return n.prototype.createEl.call(this,"li",v["default"]({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},i),r)},t.prototype.handleClick=function(){this.selected(!0)},t.prototype.selected=function(n){this.selectable&&(n?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(" ")))},t}(h["default"]);l["default"].registerComponent("MenuItem",u);i["default"]=u},{138:138,3:3,5:5}],49:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(5),u=e(c),l=n(81),a=r(l),v=n(83),y=r(v),p=n(82),w=r(p),f=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.focusedChild_=-1,u.on("keydown",u.handleKeyPress),u}return h(t,n),t.prototype.addItem=function(n){this.addChild(n);n.on("click",y.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var i=this.options_.contentElType||"ul",t;return this.contentEl_=a.createEl(i,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu"),t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"}),t.setAttribute("role","presentation"),t.appendChild(this.contentEl_),w.on(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()}),t},t.prototype.handleKeyPress=function(n){37===n.which||40===n.which?(n.preventDefault(),this.stepForward()):38!==n.which&&39!==n.which||(n.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var n=0;void 0!==this.focusedChild_&&(n=this.focusedChild_+1);this.focus(n)},t.prototype.stepBack=function(){var n=0;void 0!==this.focusedChild_&&(n=this.focusedChild_-1);this.focus(n)},t.prototype.focus=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.children().slice(),i=n.length&&n[0].className&&/vjs-menu-title/.test(n[0].className);i&&n.shift();n.length>0&&(t<0?t=0:t>=n.length&&(t=n.length-1),this.focusedChild_=t,n[t].el_.focus())},t}(u["default"]);u["default"].registerComponent("Menu",f);i["default"]=f},{5:5,81:81,82:82,83:83}],50:[function(n,t,i){"use strict";function h(n){return n&&n.__esModule?n:{"default":n}}function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function a(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var v=n(81),r=e(v),y=n(83),o=e(y),p=n(5),s=h(p),u="vjs-modal-dialog",w=27,f=function(n){function t(i,f){c(this,t);var e=l(this,n.call(this,i,f));return e.opened_=e.hasBeenOpened_=e.hasBeenFilled_=!1,e.closeable(!e.options_.uncloseable),e.content(e.options_.content),e.contentEl_=r.createEl("div",{className:u+"-content"},{role:"document"}),e.descEl_=r.createEl("p",{className:u+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),r.textContent(e.descEl_,e.description()),e.el_.appendChild(e.descEl_),e.el_.appendChild(e.contentEl_),e}return a(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.buildCSSClass=function(){return u+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(n){n.which===w&&this.closeable()&&this.close()},t.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},t.prototype.description=function(){var n=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(n+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),n},t.prototype.open=function(){if(!this.opened_){var n=this.player();this.trigger("beforemodalopen");this.opened_=!0;(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill();this.wasPlaying_=!n.paused();this.wasPlaying_&&n.pause();this.closeable()&&this.on(this.el_.ownerDocument,"keydown",o.bind(this,this.handleKeyPress));n.controls(!1);this.show();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=!0}return this},t.prototype.opened=function(n){return"boolean"==typeof n&&this[n?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var n=this.player();this.trigger("beforemodalclose");this.opened_=!1;this.wasPlaying_&&n.play();this.closeable()&&this.off(this.el_.ownerDocument,"keydown",o.bind(this,this.handleKeyPress));n.controls(!0);this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");this.options_.temporary&&this.dispose()}return this},t.prototype.closeable=function(n){var i,t,r;return"boolean"==typeof n&&(i=this.closeable_=!!n,t=this.getChild("closeButton"),i&&!t&&(r=this.contentEl_,this.contentEl_=this.el_,t=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(t,"close",this.close)),!i&&t&&(this.off(t,"close",this.close),this.removeChild(t),t.dispose())),this.closeable_},t.prototype.fill=function(){return this.fillWith(this.content())},t.prototype.fillWith=function(n){var t=this.contentEl(),i=t.parentNode,u=t.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),r.insertContent(t,n),this.trigger("modalfill"),u?i.insertBefore(t,u):i.appendChild(t),this},t.prototype.empty=function(){return this.trigger("beforemodalempty"),r.emptyEl(this.contentEl()),this.trigger("modalempty"),this},t.prototype.content=function(n){return"undefined"!=typeof n&&(this.content_=n),this.content_},t}(s["default"]);f.prototype.options_={temporary:!0};s["default"].registerComponent("ModalDialog",f);i["default"]=f},{5:5,81:81,83:83}],51:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function it(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function rt(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function ut(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var k,o,c;i.__esModule=!0;var ft=n(5),h=r(ft),et=n(94),f=r(et),ot=n(95),v=r(ot),st=n(82),y=s(st),ht=n(81),u=s(ht),ct=n(83),p=s(ct),lt=n(85),at=s(lt),vt=n(78),yt=s(vt),pt=n(86),e=r(pt),wt=n(91),l=r(wt),bt=n(90),kt=n(79),dt=n(89),d=s(dt),gt=n(44),g=r(gt),ni=n(46),nt=r(ni),ti=n(147),ii=r(ti),ri=n(138),w=r(ri),ui=n(87),b=r(ui),fi=n(69),tt=r(fi),ei=n(50),oi=r(ei),si=n(62),a=r(si),hi=n(63),ci=r(hi),li=n(76),ai=r(li);n(61);n(59);n(55);n(68);n(45);n(1);n(4);n(8);n(41);n(71);n(60);k=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"];o=function(n){function t(i,r,f){var h,s,o,c;if(it(this,t),i.id=i.id||"vjs_video_"+at.newGUID(),r=w["default"](t.getTagSettings(i),r),r.initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof i.closest)h=i.closest("[lang]"),h&&(r.language=h.getAttribute("lang"));else for(s=i;s&&1===s.nodeType;){if(u.getElAttributes(s).hasOwnProperty("lang")){r.language=s.getAttribute("lang");break}s=s.parentNode}if(o=rt(this,n.call(this,null,r,f)),!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");return o.tag=i,o.tagAttributes=i&&u.getElAttributes(i),o.language(o.options_.language),r.languages?!function(){var n={};Object.getOwnPropertyNames(r.languages).forEach(function(t){n[t.toLowerCase()]=r.languages[t]});o.languages_=n}():o.languages_=t.prototype.options_.languages,o.cache_={},o.poster_=r.poster||"",o.controls_=!!r.controls,i.controls=!1,o.scrubbing_=!1,o.el_=o.createEl(),c=b["default"](o.options_),r.plugins&&!function(){var n=r.plugins;Object.getOwnPropertyNames(n).forEach(function(t){"function"==typeof this[t]?this[t](n[t]):e["default"].error("Unable to find plugin:",t)},o)}(),o.options_.playerOptions=c,o.initChildren(),o.isAudio("audio"===i.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label","audio player"):o.el_.setAttribute("aria-label","video player"),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),yt.IS_IOS||o.addClass("vjs-workinghover"),t.players[o.id_]=o,o.userActive(!0),o.reportUserActivity(),o.listenForUserActivity_(),o.on("fullscreenchange",o.handleFullscreenChange_),o.on("stageclick",o.handleStageClick_),o}return ut(t,n),t.prototype.dispose=function(){this.trigger("dispose");this.off("dispose");this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_);t.players[this.id_]=null;this.tag&&this.tag.player&&(this.tag.player=null);this.el_&&this.el_.player&&(this.el_.player=null);this.tech_&&this.tech_.dispose();n.prototype.dispose.call(this)},t.prototype.createEl=function(){var i=this.el_=n.prototype.createEl.call(this,"div"),t=this.tag,r,e,o,s,f,h;for(t.removeAttribute("width"),t.removeAttribute("height"),r=u.getElAttributes(t),(Object.getOwnPropertyNames(r).forEach(function(n){"class"===n?i.className=r[n]:i.setAttribute(n,r[n])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=i.player=this,this.addClass("vjs-paused"),v["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0)&&(this.styleEl_=d.createStyleElement("vjs-styles-dimensions"),e=u.$(".vjs-styles-defaults"),o=u.$("head"),o.insertBefore(this.styleEl_,e?e.nextSibling:o.firstChild)),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),s=t.getElementsByTagName("a"),f=0;f<s.length;f++)h=s.item(f),u.addElClass(h,"vjs-hidden"),h.setAttribute("hidden","hidden");return t.initNetworkState_=t.networkState,t.parentNode&&t.parentNode.insertBefore(i,t),u.insertElFirst(t,i),this.children_.unshift(t),this.el_=i,i},t.prototype.width=function(n){return this.dimension("width",n)},t.prototype.height=function(n){return this.dimension("height",n)},t.prototype.dimension=function(n,t){var i=n+"_",r;if(void 0===t)return this[i]||0;if(""===t)this[i]=void 0;else{if(r=parseFloat(t),isNaN(r))return e["default"].error('Improper value "'+t+'" supplied for for '+n),this;this[i]=r}return this.updateStyleEl_(),this},t.prototype.fluid=function(n){return void 0===n?!!this.fluid_:(this.fluid_=!!n,n?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),void this.updateStyleEl_())},t.prototype.aspectRatio=function(n){if(void 0===n)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(n))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=n;this.fluid(!0);this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){var u,t;if(v["default"].VIDEOJS_NO_DYNAMIC_STYLE===!0){var f="number"==typeof this.width_?this.width_:this.options_.width,e="number"==typeof this.height_?this.height_:this.options_.height,i=this.tech_&&this.tech_.el();return void(i&&(f>=0&&(i.width=f),e>=0&&(i.height=e)))}var r=void 0,o=void 0,s=void 0,n=void 0;s=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";u=s.split(":");t=u[1]/u[0];r=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/t:this.videoWidth()||300;o=void 0!==this.height_?this.height_:r*t;n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions";this.addClass(n);d.setTextContent(this.styleEl_,"\n      ."+n+" {\n        width: "+r+"px;\n        height: "+o+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*t+"%;\n      }\n    ")},t.prototype.loadTech_=function(n,t){var f=this,i,r;this.tech_&&this.unloadTech_();"Html5"!==n&&this.tag&&(a["default"].getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null);this.techName_=n;this.isReady_=!1;i=w["default"]({source:t,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+n+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[n.toLowerCase()]);this.tag&&(i.tag=this.tag);t&&(this.currentType_=t.type,t.src===this.cache_.src&&this.cache_.currentTime>0&&(i.startTime=this.cache_.currentTime),this.cache_.sources=null,this.cache_.source=t,this.cache_.src=t.src);r=a["default"].getTech(n);r||(r=h["default"].getComponent(n));this.tech_=new r(i);this.tech_.ready(p.bind(this,this.handleTechReady_),!0);tt["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_);k.forEach(function(n){f.on(f.tech_,n,f["handleTech"+l["default"](n)+"_"])});this.on(this.tech_,"loadstart",this.handleTechLoadStart_);this.on(this.tech_,"waiting",this.handleTechWaiting_);this.on(this.tech_,"canplay",this.handleTechCanPlay_);this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_);this.on(this.tech_,"playing",this.handleTechPlaying_);this.on(this.tech_,"ended",this.handleTechEnded_);this.on(this.tech_,"seeking",this.handleTechSeeking_);this.on(this.tech_,"seeked",this.handleTechSeeked_);this.on(this.tech_,"play",this.handleTechPlay_);this.on(this.tech_,"firstplay",this.handleTechFirstPlay_);this.on(this.tech_,"pause",this.handleTechPause_);this.on(this.tech_,"durationchange",this.handleTechDurationChange_);this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_);this.on(this.tech_,"error",this.handleTechError_);this.on(this.tech_,"loadedmetadata",this.updateStyleEl_);this.on(this.tech_,"posterchange",this.handleTechPosterChange_);this.on(this.tech_,"textdata",this.handleTechTextData_);this.usingNativeControls(this.techGet_("controls"));this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_();this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||u.insertElFirst(this.tech_.el(),this.el());this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks();this.textTracks_=this.textTracks();this.audioTracks_=this.audioTracks();this.textTracksJson_=tt["default"].textTracksToJson(this.tech_);this.isReady_=!1;this.tech_.dispose();this.tech_=!1},t.prototype.tech=function(n){if(n&&n.IWillNotUseThisInPlugins)return this.tech_;var t="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";throw v["default"].alert(t),new Error(t);},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_();this.on(this.tech_,"mousedown",this.handleTechClick_);this.on(this.tech_,"touchstart",this.handleTechTouchStart_);this.on(this.tech_,"touchmove",this.handleTechTouchMove_);this.on(this.tech_,"touchend",this.handleTechTouchEnd_);this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_);this.off(this.tech_,"touchstart",this.handleTechTouchStart_);this.off(this.tech_,"touchmove",this.handleTechTouchMove_);this.off(this.tech_,"touchend",this.handleTechTouchEnd_);this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(n){e["default"]("deleting tag.poster throws in some browsers",n)}this.play()}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended");this.error(null);this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(n){return void 0!==n?(this.hasStarted_!==n&&(this.hasStarted_=n,n?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(!0);this.trigger("play")},t.prototype.handleTechWaiting_=function(){var n=this;this.addClass("vjs-waiting");this.trigger("waiting");this.one("timeupdate",function(){return n.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting");this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting");this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking");this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking");this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime);this.addClass("vjs-has-started");this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended");this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause();this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(n){0===n.button&&this.controls()&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(n){n.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(n,t){t&&this.isFullscreen(t.isFullscreen);this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var n=this.tech_.error();this.error(n)},t.prototype.handleTechTextData_=function(){var n=null;arguments.length>1&&(n=arguments[1]);this.trigger("textdata",n)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(n,t){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[n](t)},!0);else try{this.tech_&&this.tech_[n](t)}catch(i){throw e["default"](i),i;}},t.prototype.techGet_=function(n){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[n]()}catch(t){throw void 0===this.tech_[n]?e["default"]("Video.js: "+n+" method not defined for "+this.techName_+" playback technology.",t):"TypeError"===t.name?(e["default"]("Video.js: "+n+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1):e["default"](t),t;}},t.prototype.play=function(){return this.src()||this.currentSrc()?this.techCall_("play"):this.tech_.one("loadstart",function(){this.play()}),this},t.prototype.pause=function(){return this.techCall_("pause"),this},t.prototype.paused=function(){return this.techGet_("paused")!==!1},t.prototype.scrubbing=function(n){return void 0!==n?(this.scrubbing_=!!n,n?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},t.prototype.currentTime=function(n){return void 0!==n?(this.techCall_("setCurrentTime",n),this):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(n){return void 0===n?this.cache_.duration||0:(n=parseFloat(n)||0,n<0&&(n=1/0),n!==this.cache_.duration&&(this.cache_.duration=n,n===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.buffered=function(){var n=this.techGet_("buffered");return n&&n.length||(n=bt.createTimeRange(0,0)),n},t.prototype.bufferedPercent=function(){return kt.bufferedPercent(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),n=t.end(t.length-1);return n>i&&(n=i),n},t.prototype.volume=function(n){var t=void 0;return void 0!==n?(t=Math.max(0,Math.min(1,parseFloat(n))),this.cache_.volume=t,this.techCall_("setVolume",t),this):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(n){return void 0!==n?(this.techCall_("setMuted",n),this):this.techGet_("muted")||!1},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(n){return void 0!==n?(this.isFullscreen_=!!n,this):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var n=g["default"];return this.isFullscreen(!0),n.requestFullscreen?(y.on(f["default"],n.fullscreenchange,p.bind(this,function t(){this.isFullscreen(f["default"][n.fullscreenElement]);this.isFullscreen()===!1&&y.off(f["default"],n.fullscreenchange,t);this.trigger("fullscreenchange")})),this.el_[n.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.exitFullscreen=function(){var n=g["default"];return this.isFullscreen(!1),n.requestFullscreen?f["default"][n.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.enterFullWindow=function(){this.isFullWindow=!0;this.docOrigOverflow=f["default"].documentElement.style.overflow;y.on(f["default"],"keydown",p.bind(this,this.fullWindowOnEscKey));f["default"].documentElement.style.overflow="hidden";u.addElClass(f["default"].body,"vjs-full-window");this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(n){27===n.keyCode&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1;y.off(f["default"],"keydown",this.fullWindowOnEscKey);f["default"].documentElement.style.overflow=this.docOrigOverflow;u.removeElClass(f["default"].body,"vjs-full-window");this.trigger("exitFullWindow")},t.prototype.canPlayType=function(n){for(var i,t,u=void 0,r=0,f=this.options_.techOrder;r<f.length;r++)if(i=l["default"](f[r]),t=a["default"].getTech(i),t||(t=h["default"].getComponent(i)),t){if(t.isSupported()&&(u=t.canPlayType(n)))return u}else e["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.');return""},t.prototype.selectSource=function(n){var f=this,t=this.options_.techOrder.map(l["default"]).map(function(n){return[n,a["default"].getTech(n)||h["default"].getComponent(n)]}).filter(function(n){var i=n[0],t=n[1];return t?t.isSupported():(e["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(n,t,i){var r=void 0;return n.some(function(n){return t.some(function(t){if(r=i(n,t))return!0})}),r},r=void 0,o=function(n){return function(t,i){return n(i,t)}},u=function(n,t){var i=n[0],r=n[1];if(r.canPlaySource(t,f.options_[i.toLowerCase()]))return{source:t,tech:i}};return r=this.options_.sourceOrder?i(n,t,o(u)):i(t,n,u),r||!1},t.prototype.src=function(n){if(void 0===n)return this.techGet_("src");var t=a["default"].getTech(this.techName_);return t||(t=h["default"].getComponent(this.techName_)),Array.isArray(n)?this.sourceList_(n):"string"==typeof n?this.src({src:n}):n instanceof Object&&(n.type&&!t.canPlaySource(n,this.options_[this.techName_.toLowerCase()])?this.sourceList_([n]):(this.cache_.sources=null,this.cache_.source=n,this.cache_.src=n.src,this.currentType_=n.type||"",this.ready(function(){t.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",n):this.techCall_("src",n.src);"auto"===this.options_.preload&&this.load();this.options_.autoplay&&this.play()},!0))),this},t.prototype.sourceList_=function(n){var t=this.selectSource(n);t?(t.tech===this.techName_?this.src(t.source):this.loadTech_(t.tech,t.source),this.cache_.sources=n):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},t.prototype.load=function(){return this.techCall_("load"),this},t.prototype.reset=function(){return this.loadTech_(l["default"](this.options_.techOrder[0]),null),this.techCall_("reset"),this},t.prototype.currentSources=function(){var n=this.currentSource(),t=[];return 0!==Object.keys(n).length&&t.push(n),this.cache_.sources||t},t.prototype.currentSource=function(){var n={},t=this.currentSrc();return t&&(n.src=t),this.cache_.source||n},t.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},t.prototype.currentType=function(){return this.currentType_||""},t.prototype.preload=function(n){return void 0!==n?(this.techCall_("setPreload",n),this.options_.preload=n,this):this.techGet_("preload")},t.prototype.autoplay=function(n){return void 0!==n?(this.techCall_("setAutoplay",n),this.options_.autoplay=n,this):this.techGet_("autoplay",n)},t.prototype.loop=function(n){return void 0!==n?(this.techCall_("setLoop",n),this.options_.loop=n,this):this.techGet_("loop")},t.prototype.poster=function(n){return void 0===n?this.poster_:(n||(n=""),this.poster_=n,this.techCall_("setPoster",n),this.trigger("posterchange"),this)},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(n){return void 0!==n?(n=!!n,this.controls_!==n&&(this.controls_=n,this.usingNativeControls()&&this.techCall_("setControls",n),n?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},t.prototype.usingNativeControls=function(n){return void 0!==n?(n=!!n,this.usingNativeControls_!==n&&(this.usingNativeControls_=n,n?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},t.prototype.error=function(n){return void 0===n?this.error_||null:null===n?(this.error_=n,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close(),this):(this.error_=new nt["default"](n),this.addClass("vjs-error"),e["default"].error("(CODE:"+this.error_.code+" "+nt["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},t.prototype.reportUserActivity=function(){this.userActivity_=!0},t.prototype.userActive=function(n){return void 0!==n?(n=!!n,n!==this.userActive_&&(this.userActive_=n,n?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(n){n.stopPropagation();n.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},t.prototype.listenForUserActivity_=function(){var t=void 0,r=void 0,u=void 0,n=p.bind(this,this.reportUserActivity),f=function(t){t.screenX===r&&t.screenY===u||(r=t.screenX,u=t.screenY,n())},e=function(){n();this.clearInterval(t);t=this.setInterval(n,250)},o=function(){n();this.clearInterval(t)},i;this.on("mousedown",e);this.on("mousemove",f);this.on("mouseup",o);this.on("keydown",n);this.on("keyup",n);i=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1;this.userActive(!0);this.clearTimeout(i);var n=this.options_.inactivityTimeout;n>0&&(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},n))}},250)},t.prototype.playbackRate=function(n){return void 0!==n?(this.techCall_("setPlaybackRate",n),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.isAudio=function(n){return void 0!==n?(this.isAudio_=!!n,this):!!this.isAudio_},t.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new ai["default"],this.videoTracks_)},t.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new ci["default"],this.audioTracks_)},t.prototype.textTracks=function(){if(this.tech_)return this.tech_.textTracks()},t.prototype.remoteTextTracks=function(){if(this.tech_)return this.tech_.remoteTextTracks()},t.prototype.remoteTextTrackEls=function(){if(this.tech_)return this.tech_.remoteTextTrackEls()},t.prototype.addTextTrack=function(n,t,i){if(this.tech_)return this.tech_.addTextTrack(n,t,i)},t.prototype.addRemoteTextTrack=function(n,t){if(this.tech_)return this.tech_.addRemoteTextTrack(n,t)},t.prototype.removeRemoteTextTrack=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.track,i=void 0===n?arguments[0]:n;if(this.tech_)return this.tech_.removeRemoteTextTrack(i)},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(n){return void 0===n?this.language_:(this.language_=String(n).toLowerCase(),this)},t.prototype.languages=function(){return b["default"](t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var i=b["default"](this.options_),r=i.tracks,n,t;for(i.tracks=[],n=0;n<r.length;n++)t=r[n],t=b["default"](t),t.player=void 0,i.tracks[n]=t;return i},t.prototype.createModal=function(n,t){var r=this,i;return t=t||{},t.content=n||"",i=new oi["default"](this,t),this.addChild(i),i.on("dispose",function(){r.removeChild(i)}),i.open()},t.getTagSettings=function(n){var t={sources:[],tracks:[]},i=u.getElAttributes(n),s=i["data-setup"],r,o;if(u.hasElClass(n,"vjs-fluid")&&(i.fluid=!0),null!==s){var h=ii["default"](s||"{}"),c=h[0],a=h[1];c&&e["default"].error(c);w["default"](i,a)}if(w["default"](t,i),n.hasChildNodes())for(var l=n.childNodes,f=0,v=l.length;f<v;f++)r=l[f],o=r.nodeName.toLowerCase(),"source"===o?t.sources.push(u.getElAttributes(r)):"track"===o&&t.tracks.push(u.getElAttributes(r));return t},t.prototype.flexNotSupported_=function(){var n=f["default"].createElement("i");return!("flexBasis"in n.style||"webkitFlexBasis"in n.style||"mozFlexBasis"in n.style||"msFlexBasis"in n.style||"msFlexOrder"in n.style)},t}(h["default"]);o.players={};c=v["default"].navigator;o.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:c&&(c.languages&&c.languages[0]||c.userLanguage||c.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."};["ended","seeking","seekable","networkState","readyState"].forEach(function(n){o.prototype[n]=function(){return this.techGet_(n)}});k.forEach(function(n){o.prototype["handleTech"+l["default"](n)+"_"]=function(){return this.trigger(n)}});h["default"].registerComponent("Player",o);i["default"]=o},{1:1,138:138,147:147,4:4,41:41,44:44,45:45,46:46,5:5,50:50,55:55,59:59,60:60,61:61,62:62,63:63,68:68,69:69,71:71,76:76,78:78,79:79,8:8,81:81,82:82,83:83,85:85,86:86,87:87,89:89,90:90,91:91,94:94,95:95}],52:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var u=n(51),f=r(u),e=function(n,t){f["default"].prototype[n]=t};i["default"]=e},{51:51}],53:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(3),h=r(s),c=n(5),l=r(c),u=function(n){function t(i){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r;return f(this,t),r=e(this,n.call(this,i,u)),r.update(),r}return o(t,n),t.prototype.update=function(){var n=this.createPopup();this.popup&&this.removeChild(this.popup);this.popup=n;this.addChild(n);this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createPopup=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},t}(h["default"]);l["default"].registerComponent("PopupButton",u);i["default"]=u},{3:3,5:5}],54:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(5),u=e(c),l=n(81),a=r(l),v=n(83),y=r(v),p=n(82),w=r(p),f=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.addItem=function(n){this.addChild(n);n.on("click",y.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var i=this.options_.contentElType||"ul",t;return this.contentEl_=a.createEl(i,{className:"vjs-menu-content"}),t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"}),t.appendChild(this.contentEl_),w.on(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()}),t},t}(u["default"]);u["default"].registerComponent("Popup",f);i["default"]=f},{5:5,81:81,82:82,83:83}],55:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(3),l=u(c),a=n(5),v=u(a),y=n(83),p=r(y),w=n(81),f=r(w),b=n(78),k=r(b),e=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));return u.update(),i.on("posterchange",p.bind(u,u.update)),u}return h(t,n),t.prototype.dispose=function(){this.player().off("posterchange",this.update);n.prototype.dispose.call(this)},t.prototype.createEl=function(){var n=f.createEl("div",{className:"vjs-poster",tabIndex:-1});return k.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=f.createEl("img"),n.appendChild(this.fallbackImg_)),n},t.prototype.update=function(){var n=this.player().poster();this.setSrc(n);n?this.show():this.hide()},t.prototype.setSrc=function(n){if(this.fallbackImg_)this.fallbackImg_.src=n;else{var t="";n&&(t='url("'+n+'")');this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t}(l["default"]);v["default"].registerComponent("PosterImage",e);i["default"]=e},{3:3,5:5,78:78,81:81,83:83}],56:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function c(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n,t){t&&(o=t);setTimeout(s,n)}var h;i.__esModule=!0;i.hasLoaded=i.autoSetupTimeout=i.autoSetup=void 0;var l=n(82),a=c(l),v=n(94),f=e(v),y=n(95),p=e(y),r=!1,o=void 0,s=function(){var i=f["default"].getElementsByTagName("video"),e=f["default"].getElementsByTagName("audio"),n=[],s,l,h,a,c,v,t,y;if(i&&i.length>0)for(s=0,l=i.length;s<l;s++)n.push(i[s]);if(e&&e.length>0)for(h=0,a=e.length;h<a;h++)n.push(e[h]);if(n&&n.length>0)for(c=0,v=n.length;c<v;c++){if(t=n[c],!t||!t.getAttribute){u(1);break}void 0===t.player&&(y=t.getAttribute("data-setup"),null!==y&&o(t))}else r||u(1)};"complete"===f["default"].readyState?r=!0:a.one(p["default"],"load",function(){r=!0});h=function(){return r};i.autoSetup=s;i.autoSetupTimeout=u;i.hasLoaded=h},{82:82,94:94,95:95}],57:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var a=n(5),f=u(a),v=n(81),r=s(v),y=n(138),e=u(y),o=function(n){function t(i,r){h(this,t);var u=c(this,n.call(this,i,r));return u.bar=u.getChild(u.options_.barName),u.vertical(!!u.options_.vertical),u.on("mousedown",u.handleMouseDown),u.on("touchstart",u.handleMouseDown),u.on("focus",u.handleFocus),u.on("blur",u.handleBlur),u.on("click",u.handleClick),u.on(i,"controlsvisible",u.update),u.on(i,u.playerEvent,u.update),u}return l(t,n),t.prototype.createEl=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.className=i.className+" vjs-slider",i=e["default"]({tabIndex:0},i),r=e["default"]({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),n.prototype.createEl.call(this,t,i,r)},t.prototype.handleMouseDown=function(n){var t=this.bar.el_.ownerDocument;n.preventDefault();r.blockTextSelection();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(t,"mousemove",this.handleMouseMove);this.on(t,"mouseup",this.handleMouseUp);this.on(t,"touchmove",this.handleMouseMove);this.on(t,"touchend",this.handleMouseUp);this.handleMouseMove(n)},t.prototype.handleMouseMove=function(){},t.prototype.handleMouseUp=function(){var n=this.bar.el_.ownerDocument;r.unblockTextSelection();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(n,"mousemove",this.handleMouseMove);this.off(n,"mouseup",this.handleMouseUp);this.off(n,"touchmove",this.handleMouseMove);this.off(n,"touchend",this.handleMouseUp);this.update()},t.prototype.update=function(){var n,t,i;this.el_&&(n=this.getPercent(),t=this.bar,t&&(("number"!=typeof n||n!==n||n<0||n===1/0)&&(n=0),i=(100*n).toFixed(2)+"%",this.vertical()?t.el().style.height=i:t.el().style.width=i))},t.prototype.calculateDistance=function(n){var t=r.getPointerPosition(this.el_,n);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(n){37===n.which||40===n.which?(n.preventDefault(),this.stepBack()):38!==n.which&&39!==n.which||(n.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(n){n.stopImmediatePropagation();n.preventDefault()},t.prototype.vertical=function(n){return void 0===n?this.vertical_||!1:(this.vertical_=!!n,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},t}(f["default"]);f["default"].registerComponent("Slider",o);i["default"]=o},{138:138,5:5,81:81}],58:[function(n,t,i){"use strict";function r(n){return n.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},n.streamFromParts=function(n,t){return n+"&"+t},n.streamToParts=function(n){var r={connection:"",stream:""},t,i;return n?(t=n.search(/&(?!\w+=)/),i=void 0,t!==-1?i=t+1:(t=i=n.lastIndexOf("/")+1,0===t&&(t=i=n.length)),r.connection=n.substring(0,t),r.stream=n.substring(i,n.length),r):r},n.isStreamingType=function(t){return t in n.streamingFormats},n.RTMP_RE=/^rtmp[set]?:\/\//i,n.isStreamingSrc=function(t){return n.RTMP_RE.test(t)},n.rtmpSourceHandler={},n.rtmpSourceHandler.canPlayType=function(t){return n.isStreamingType(t)?"maybe":""},n.rtmpSourceHandler.canHandleSource=function(t){var i=n.rtmpSourceHandler.canPlayType(t.type);return i?i:n.isStreamingSrc(t.src)?"maybe":""},n.rtmpSourceHandler.handleSource=function(t,i){var r=n.streamToParts(t.src);i.setRtmpConnection(r.connection);i.setRtmpStream(r.stream)},n.registerSourceHandler(n.rtmpSourceHandler),n}i.__esModule=!0;i["default"]=r},{}],59:[function(n,t,i){"use strict";function y(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function d(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function g(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function nt(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function tt(n){var t=n.charAt(0).toUpperCase()+n.slice(1);b["set"+t]=function(t){return this.el_.vjs_setProperty(n,t)}}function p(n){b[n]=function(){return this.el_.vjs_getProperty(n)}}var c;i.__esModule=!0;for(var it=n(62),l=f(it),rt=n(81),o=y(rt),ut=n(92),w=y(ut),s=n(90),ft=n(58),et=f(ft),ot=n(5),st=f(ot),ht=n(95),u=f(ht),ct=n(138),e=f(ct),a=u["default"].navigator,r=function(n){function t(i,r){d(this,t);var f=g(this,n.call(this,i,r));return i.source&&f.ready(function(){this.setSource(i.source)},!0),i.startTime&&f.ready(function(){this.load();this.play();this.currentTime(i.startTime)},!0),u["default"].videojs=u["default"].videojs||{},u["default"].videojs.Flash=u["default"].videojs.Flash||{},u["default"].videojs.Flash.onReady=t.onReady,u["default"].videojs.Flash.onEvent=t.onEvent,u["default"].videojs.Flash.onError=t.onError,f.on("seeked",function(){this.lastSeekTarget_=void 0}),f}return nt(t,n),t.prototype.createEl=function(){var n=this.options_,i;n.swf||(i="5.1.0",n.swf="//vjs.zencdn.net/swf/"+i+"/video-js.swf");var r=n.techId,u=e["default"]({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:n.autoplay,preload:n.preload,loop:n.loop,muted:n.muted},n.flashVars),f=e["default"]({wmode:"opaque",bgcolor:"#000000"},n.params),o=e["default"]({id:r,name:r,"class":"vjs-tech"},n.attributes);return this.el_=t.embed(n.swf,u,f,o),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0);this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(n){return void 0===n?this.currentSrc():this.setSrc(n)},t.prototype.setSrc=function(n){var t=this;n=w.getAbsoluteURL(n);this.el_.vjs_src(n);this.autoplay()&&this.setTimeout(function(){return t.play()},0)},t.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},t.prototype.setCurrentTime=function(t){var i=this.seekable();i.length&&(t=t>i.start(0)?t:i.start(0),t=t<i.end(i.length-1)?t:i.end(i.length-1),this.lastSeekTarget_=t,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",t),n.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.duration=function(){if(0===this.readyState())return NaN;var n=this.el_.vjs_getProperty("duration");return n>=0?n:1/0},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var n=this.duration();return 0===n?s.createTimeRange():s.createTimeRange(0,n)},t.prototype.buffered=function(){var n=this.el_.vjs_getProperty("buffered");return 0===n.length?s.createTimeRange():s.createTimeRange(n[0][0],n[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t}(l["default"]),b=r.prototype,v="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),k="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","),h=0;h<v.length;h++)p(v[h]),tt(v[h]);for(c=0;c<k.length;c++)p(k[c]);r.isSupported=function(){return r.version()[0]>=10};l["default"].withSourceHandlers(r);r.nativeSourceHandler={};r.nativeSourceHandler.canPlayType=function(n){return n in r.formats?"maybe":""};r.nativeSourceHandler.canHandleSource=function(n){function i(n){var t=w.getFileExtension(n);return t?"video/"+t:""}var t=void 0;return t=n.type?n.type.replace(/;.*/,"").toLowerCase():i(n.src),r.nativeSourceHandler.canPlayType(t)};r.nativeSourceHandler.handleSource=function(n,t){t.setSrc(n.src)};r.nativeSourceHandler.dispose=function(){};r.registerSourceHandler(r.nativeSourceHandler);r.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};r.onReady=function(n){var i=o.getEl(n),t=i&&i.tech;t&&t.el()&&r.checkReady(t)};r.checkReady=function(n){n.el()&&(n.el().vjs_getProperty?n.triggerReady():this.setTimeout(function(){r.checkReady(n)},50))};r.onEvent=function(n,t){var i=o.getEl(n).tech,r=Array.prototype.slice.call(arguments,2);i.setTimeout(function(){i.trigger(t,r)},1)};r.onError=function(n,t){var i=o.getEl(n).tech;return"srcnotfound"===t?i.error(4):void i.error("FLASH: "+t)};r.version=function(){var n="0,0,0";try{n=new u["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{a.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(n=(a.plugins["Shockwave Flash 2.0"]||a.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(i){}}return n.split(",")};r.embed=function(n,t,i,u){var f=r.getEmbedCode(n,t,i,u);return o.createEl("div",{innerHTML:f}).childNodes[0]};r.getEmbedCode=function(n,t,i,r){var u="",f="",o="";return t&&Object.getOwnPropertyNames(t).forEach(function(n){u+=n+"="+t[n]+"&amp;"}),i=e["default"]({movie:n,flashvars:u,allowScriptAccess:"always",allowNetworking:"all"},i),Object.getOwnPropertyNames(i).forEach(function(n){f+='<param name="'+n+'" value="'+i[n]+'" />'}),r=e["default"]({data:n,width:"100%",height:"100%"},r),Object.getOwnPropertyNames(r).forEach(function(n){o+=n+'="'+r[n]+'" '}),'<object type="application/x-shockwave-flash" '+o+">"+f+"<\/object>"};et["default"](r);st["default"].registerComponent("Flash",r);l["default"].registerTech("Flash",r);i["default"]=r},{138:138,5:5,58:58,62:62,81:81,90:90,92:92,95:95}],60:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function k(n,t){return n.raw=t,n}function d(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function g(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function nt(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o;i.__esModule=!0;var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tt=k(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]),it=n(62),c=f(it),rt=n(5),ut=f(rt),ft=n(81),l=s(ft),et=n(92),p=s(et),ot=n(83),a=s(ot),st=n(86),w=f(st),ht=n(148),ct=f(ht),lt=n(78),u=s(lt),at=n(94),h=f(at),vt=n(95),b=f(vt),yt=n(138),pt=f(yt),wt=n(87),bt=f(wt),kt=n(91),v=f(kt),r=function(n){function t(i,r){var e,b,o,k;d(this,t);var f=g(this,n.call(this,i,r)),s=i.source,h=!1;if(s&&(f.el_.currentSrc!==s.src||i.tag&&3===i.tag.initNetworkState_)?f.setSource(s):f.handleLateInit_(f.el_),f.el_.hasChildNodes()){for(var l=f.el_.childNodes,y=l.length,c=[];y--;)e=l[y],b=e.nodeName.toLowerCase(),"track"===b&&(f.featuresNativeTextTracks?(f.remoteTextTrackEls().addTrackElement_(e),f.remoteTextTracks().addTrack_(e.track),h||f.el_.hasAttribute("crossorigin")||!p.isCrossOrigin(e.src)||(h=!0)):c.push(e));for(o=0;o<c.length;o++)f.el_.removeChild(c[o])}return k=["audio","video"],k.forEach(function(n){var r=f.el()[n+"Tracks"],i=f[n+"Tracks"](),t=v["default"](n);f["featuresNative"+t+"Tracks"]&&r&&r.addEventListener&&(f["handle"+t+"TrackChange_"]=function(){i.trigger({type:"change",target:i,currentTarget:i,srcElement:i})},f["handle"+t+"TrackAdd_"]=function(n){return i.addTrack(n.track)},f["handle"+t+"TrackRemove_"]=function(n){return i.removeTrack(n.track)},r.addEventListener("change",f["handle"+t+"TrackChange_"]),r.addEventListener("addtrack",f["handle"+t+"TrackAdd_"]),r.addEventListener("removetrack",f["handle"+t+"TrackRemove_"]),f["removeOld"+t+"Tracks_"]=function(){return f.removeOldTracks_(i,r)},f.on("loadstart",f["removeOld"+t+"Tracks_"]))}),f.featuresNativeTextTracks&&(h&&w["default"].warn(ct["default"](tt)),f.handleTextTrackChange_=a.bind(f,f.handleTextTrackChange),f.handleTextTrackAdd_=a.bind(f,f.handleTextTrackAdd),f.handleTextTrackRemove_=a.bind(f,f.handleTextTrackRemove),f.proxyNativeTextTracks_()),(u.TOUCH_ENABLED||u.IS_IPHONE||u.IS_NATIVE_ANDROID)&&i.nativeControlsForTouch===!0&&f.setControls(!0),f.proxyWebkitFullscreen_(),f.triggerReady(),f}return nt(t,n),t.prototype.dispose=function(){var i=this;["audio","video","text"].forEach(function(n){var r=v["default"](n),t=i.el_[n+"Tracks"];t&&t.removeEventListener&&(t.removeEventListener("change",i["handle"+r+"TrackChange_"]),t.removeEventListener("addtrack",i["handle"+r+"TrackAdd_"]),t.removeEventListener("removetrack",i["handle"+r+"TrackRemove_"]));t&&i.off("loadstart",i["removeOld"+r+"Tracks_"])});t.disposeMediaElement(this.el_);n.prototype.dispose.call(this)},t.prototype.createEl=function(){var n=this.options_.tag,f,c,e,o,i,r,s;for(n&&this.movingMediaElementInDOM!==!1||(n?(f=n.cloneNode(!0),n.parentNode.insertBefore(f,n),t.disposeMediaElement(n),n=f):(n=h["default"].createElement("video"),c=this.options_.tag&&l.getElAttributes(this.options_.tag),e=bt["default"]({},c),u.TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete e.controls,l.setElAttributes(n,pt["default"](e,{id:this.options_.techId,"class":"vjs-tech"}))),n.playerId=this.options_.playerId),o=["autoplay","preload","loop","muted"],i=o.length-1;i>=0;i--)r=o[i],s={},"undefined"!=typeof this.options_[r]&&(s[r]=this.options_[r]),l.setElAttributes(n,s);return n},t.prototype.handleLateInit_=function(n){var r=this,i,t;if(0!==n.networkState&&3!==n.networkState){if(0===n.readyState&&(i=function(){var n=!1,i=function(){n=!0},t;r.on("loadstart",i);return t=function(){n||this.trigger("loadstart")},r.on("loadedmetadata",t),r.ready(function(){this.off("loadstart",i);this.off("loadedmetadata",t);n||this.trigger("loadstart")}),{v:void 0}}(),"object"===("undefined"==typeof i?"undefined":y(i))))return i.v;t=["loadstart"];t.push("loadedmetadata");n.readyState>=2&&t.push("loadeddata");n.readyState>=3&&t.push("canplay");n.readyState>=4&&t.push("canplaythrough");this.ready(function(){t.forEach(function(n){this.trigger(n)},this)})}},t.prototype.proxyNativeTextTracks_=function(){var n=this.el().textTracks,t;if(n){for(t=0;t<n.length;t++)this.textTracks().addTrack_(n[t]);n.addEventListener&&(n.addEventListener("change",this.handleTextTrackChange_),n.addEventListener("addtrack",this.handleTextTrackAdd_),n.addEventListener("removetrack",this.handleTextTrackRemove_));this.on("loadstart",this.removeOldTextTracks_)}},t.prototype.handleTextTrackChange=function(){var n=this.textTracks();this.textTracks().trigger({type:"change",target:n,currentTarget:n,srcElement:n})},t.prototype.handleTextTrackAdd=function(n){this.textTracks().addTrack_(n.track)},t.prototype.handleTextTrackRemove=function(n){this.textTracks().removeTrack_(n.track)},t.prototype.removeOldTracks_=function(n,t){var u=[],i,r,s;if(t){for(i=0;i<n.length;i++){for(var e=n[i],o=!1,f=0;f<t.length;f++)if(t[f]===e){o=!0;break}o||u.push(e)}for(r=0;r<u.length;r++)s=u[r],n.removeTrack_(s)}},t.prototype.removeOldTextTracks_=function(){var n=this.textTracks(),t=this.el().textTracks;this.removeOldTracks_(n,t)},t.prototype.play=function(){var n=this.el_.play();void 0!==n&&"function"==typeof n.then&&n.then(null,function(){})},t.prototype.setCurrentTime=function(n){try{this.el_.currentTime=n}catch(t){w["default"](t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var n=this,t;return this.el_.duration===1/0&&u.IS_ANDROID&&u.IS_CHROME&&0===this.el_.currentTime&&(t=function(){var t=function i(){n.el_.currentTime>0&&(n.el_.duration===1/0&&n.trigger("durationchange"),n.off(n.player_,"timeupdate",i))};return n.on(n.player_,"timeupdate",t),{v:NaN}}(),"object"===("undefined"==typeof t?"undefined":y(t)))?t.v:this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var i=this,n,t;"webkitDisplayingFullscreen"in this.el_&&(n=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},t=function(){this.one("webkitendfullscreen",n);this.trigger("fullscreenchange",{isFullscreen:!0})},this.on("webkitbeginfullscreen",t),this.on("dispose",function(){i.off("webkitbeginfullscreen",t);i.off("webkitendfullscreen",n)}))},t.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var n=b["default"].navigator&&b["default"].navigator.userAgent||"";if(/Android/.test(n)||!/Chrome|Mac OS X 10.5/.test(n))return!0}return!1},t.prototype.enterFullScreen=function(){var n=this.el_;n.paused&&n.networkState<=n.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){n.pause();n.webkitEnterFullScreen()},0)):n.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(n){return void 0===n?this.el_.src:void this.setSrc(n)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(n){this.el_.controls=!!n},t.prototype.addTextTrack=function(t,i,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,r):n.prototype.addTextTrack.call(this,t,i,r)},t.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return n.prototype.createRemoteTextTrack.call(this,t);var i=h["default"].createElement("track");return t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t["default"]&&(i["default"]=t["default"]),t.id&&(i.id=t.id),t.src&&(i.src=t.src),i},t.prototype.addRemoteTextTrack=function(t,i){var r=n.prototype.addRemoteTextTrack.call(this,t,i);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},t.prototype.removeRemoteTextTrack=function(t){if(n.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var i=this.$$("track"),r=i.length;r--;)t!==i[r]&&t!==i[r].track||this.el().removeChild(i[r])},t}(c["default"]);r.TEST_VID=h["default"].createElement("video");o=h["default"].createElement("track");o.kind="captions";o.srclang="en";o.label="English";r.TEST_VID.appendChild(o);r.isSupported=function(){try{r.TEST_VID.volume=.5}catch(n){return!1}return!!r.TEST_VID.canPlayType};r.canControlVolume=function(){try{var n=r.TEST_VID.volume;return r.TEST_VID.volume=n/2+.1,n!==r.TEST_VID.volume}catch(t){return!1}};r.canControlPlaybackRate=function(){if(u.IS_ANDROID&&u.IS_CHROME)return!1;try{var n=r.TEST_VID.playbackRate;return r.TEST_VID.playbackRate=n/2+.1,n!==r.TEST_VID.playbackRate}catch(t){return!1}};r.supportsNativeTextTracks=function(){var n=void 0;return n=!!r.TEST_VID.textTracks,n&&r.TEST_VID.textTracks.length>0&&(n="number"!=typeof r.TEST_VID.textTracks[0].mode),n&&u.IS_FIREFOX&&(n=!1),!n||"onremovetrack"in r.TEST_VID.textTracks||(n=!1),n};r.supportsNativeVideoTracks=function(){return!!r.TEST_VID.videoTracks};r.supportsNativeAudioTracks=function(){return!!r.TEST_VID.audioTracks};r.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"];r.prototype.featuresVolumeControl=r.canControlVolume();r.prototype.featuresPlaybackRate=r.canControlPlaybackRate();r.prototype.movingMediaElementInDOM=!u.IS_IOS;r.prototype.featuresFullscreenResize=!0;r.prototype.featuresProgressEvents=!0;r.prototype.featuresTimeupdateEvents=!0;r.prototype.featuresNativeTextTracks=r.supportsNativeTextTracks();r.prototype.featuresNativeVideoTracks=r.supportsNativeVideoTracks();r.prototype.featuresNativeAudioTracks=r.supportsNativeAudioTracks();var e=void 0,dt=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,gt=/^video\/mp4/i;r.patchCanPlayType=function(){u.ANDROID_VERSION>=4&&!u.IS_FIREFOX&&(e||(e=r.TEST_VID.constructor.prototype.canPlayType),r.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&dt.test(n)?"maybe":e.call(this,n)});u.IS_OLD_ANDROID&&(e||(e=r.TEST_VID.constructor.prototype.canPlayType),r.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&gt.test(n)?"maybe":e.call(this,n)})};r.unpatchCanPlayType=function(){var n=r.TEST_VID.constructor.prototype.canPlayType;return r.TEST_VID.constructor.prototype.canPlayType=e,e=null,n};r.patchCanPlayType();r.disposeMediaElement=function(n){if(n){for(n.parentNode&&n.parentNode.removeChild(n);n.hasChildNodes();)n.removeChild(n.firstChild);n.removeAttribute("src");"function"==typeof n.load&&!function(){try{n.load()}catch(t){}}()}};r.resetMediaElement=function(n){if(n){for(var t=n.querySelectorAll("source"),i=t.length;i--;)n.removeChild(t[i]);n.removeAttribute("src");"function"==typeof n.load&&!function(){try{n.load()}catch(t){}}()}};["paused","currentTime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultMuted","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(n){r.prototype[n]=function(){return this.el_[n]}});["volume","muted","src","poster","preload","autoplay","loop","playbackRate"].forEach(function(n){r.prototype["set"+v["default"](n)]=function(t){this.el_[n]=t}});["pause","load"].forEach(function(n){r.prototype[n]=function(){return this.el_[n]()}});c["default"].withSourceHandlers(r);r.nativeSourceHandler={};r.nativeSourceHandler.canPlayType=function(n){try{return r.TEST_VID.canPlayType(n)}catch(t){return""}};r.nativeSourceHandler.canHandleSource=function(n){if(n.type)return r.nativeSourceHandler.canPlayType(n.type);if(n.src){var t=p.getFileExtension(n.src);return r.nativeSourceHandler.canPlayType("video/"+t)}return""};r.nativeSourceHandler.handleSource=function(n,t){t.setSrc(n.src)};r.nativeSourceHandler.dispose=function(){};r.registerSourceHandler(r.nativeSourceHandler);ut["default"].registerComponent("Html5",r);c["default"].registerTech("Html5",r);i["default"]=r},{138:138,148:148,5:5,62:62,78:78,81:81,83:83,86:86,87:87,91:91,92:92,94:94,95:95}],61:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(5),u=r(h),c=n(62),l=r(c),a=n(91),v=r(a),f=function(n){function t(i,r,f){var y,h,a,s,c;if(e(this,t),y=o(this,n.call(this,i,r,f)),r.playerOptions.sources&&0!==r.playerOptions.sources.length)i.src(r.playerOptions.sources);else for(h=0,a=r.playerOptions.techOrder;h<a.length;h++)if(s=v["default"](a[h]),c=l["default"].getTech(s),s||(c=u["default"].getComponent(s)),c&&c.isSupported()){i.loadTech_(s);break}return y}return s(t,n),t}(u["default"]);u["default"].registerComponent("MediaLoader",f);i["default"]=f},{5:5,62:62,91:91}],62:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function y(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function p(n,t,i,r){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},e=n.textTracks(),f;return u.kind=t,i&&(u.label=i),r&&(u.language=r),u.tech=n,f=new rt["default"](u),e.addTrack_(f),f}i.__esModule=!0;var w=n(5),e=u(w),b=n(66),k=u(b),d=n(65),g=u(d),nt=n(87),tt=u(nt),it=n(72),rt=u(it),ut=n(70),o=u(ut),ft=n(76),et=u(ft),ot=n(63),st=u(ot),ht=n(83),s=l(ht),ct=n(86),h=u(ct),c=n(90),lt=n(79),at=n(46),vt=u(at),yt=n(95),f=u(yt),pt=n(94),wt=u(pt),r=function(n){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},i;return a(this,t),r.reportTouchActivity=!1,i=v(this,n.call(this,null,r,u)),i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),i.textTracks_=r.textTracks,i.videoTracks_=r.videoTracks,i.audioTracks_=r.audioTracks,i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),r.nativeCaptions!==!1&&r.nativeTextTracks!==!1||(i.featuresNativeTextTracks=!1),i.featuresNativeTextTracks||i.emulateTextTracks(),i.autoRemoteTextTracks_=new o["default"],i.initTextTrackListeners(),i.initTrackListeners(),i.emitTapEvents(),i}return y(t,n),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange);this.manualProgress=!0;this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(){this.stopTrackingProgress();this.progressInterval=this.setInterval(s.bind(this,function(){var n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress");this.bufferedPercent_=n;1===n&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(){this.duration_=this.duration()},t.prototype.buffered=function(){return c.createTimeRange(0,0)},t.prototype.bufferedPercent=function(){return lt.bufferedPercent(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime();this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(["audio","video","text"]);this.manualProgress&&this.manualProgressOff();this.manualTimeUpdates&&this.manualTimeUpdatesOff();n.prototype.dispose.call(this)},t.prototype.clearTracks=function(n){var t=this;n=[].concat(n);n.forEach(function(n){for(var u,i=t[n+"Tracks"]()||[],r=i.length;r--;)u=i[r],"text"===n&&t.removeRemoteTextTrack(u),i.removeTrack_(u)})},t.prototype.cleanupAutoTextTracks=function(){for(var i,n=this.autoRemoteTextTracks_||[],t=n.length;t--;)i=n[t],this.removeRemoteTextTrack(i)},t.prototype.reset=function(){},t.prototype.error=function(n){return void 0!==n&&(this.error_=new vt["default"](n),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?c.createTimeRange(0,0):c.createTimeRange()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTextTrackListeners=function(){var t=s.bind(this,function(){this.trigger("texttrackchange")}),n=this.textTracks();n&&(n.addEventListener("removetrack",t),n.addEventListener("addtrack",t),this.on("dispose",s.bind(this,function(){n.removeEventListener("removetrack",t);n.removeEventListener("addtrack",t)})))},t.prototype.initTrackListeners=function(){var n=this;["video","audio"].forEach(function(t){var i=function(){n.trigger(t+"trackchange")},r=n[t+"Tracks"]();r.addEventListener("removetrack",i);r.addEventListener("addtrack",i);n.on("dispose",function(){r.removeEventListener("removetrack",i);r.removeEventListener("addtrack",i)})})},t.prototype.addWebVttScript_=function(){var n=this;f["default"].WebVTT||null===this.el().parentNode||void 0===this.el().parentNode||!function(){var t=wt["default"].createElement("script");t.src=n.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js";t.onload=function(){n.trigger("vttjsloaded")};t.onerror=function(){n.trigger("vttjserror")};n.on("dispose",function(){t.onload=null;t.onerror=null});f["default"].WebVTT=!0;n.el().parentNode.appendChild(t)}()},t.prototype.emulateTextTracks=function(){var r=this,n=this.textTracks(),t,i;n&&(this.remoteTextTracks().on("addtrack",function(n){r.textTracks().addTrack_(n.track)}),this.remoteTextTracks().on("removetrack",function(n){r.textTracks().removeTrack_(n.track)}),this.on("ready",this.addWebVttScript_),t=function(){return r.trigger("texttrackchange")},i=function(){var i,r;for(t(),i=0;i<n.length;i++)r=n[i],r.removeEventListener("cuechange",t),"showing"===r.mode&&r.addEventListener("cuechange",t)},i(),n.addEventListener("change",i),this.on("dispose",function(){n.removeEventListener("change",i)}))},t.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new et["default"],this.videoTracks_},t.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new st["default"],this.audioTracks_},t.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new o["default"],this.textTracks_},t.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new o["default"],this.remoteTextTracks_},t.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new g["default"],this.remoteTextTrackEls_},t.prototype.addTextTrack=function(n,t,i){if(!n)throw new Error("TextTrack kind is required but was not provided");return p(this,n,t,i)},t.prototype.createRemoteTextTrack=function(n){var t=tt["default"](n,{tech:this});return new k["default"](t)},t.prototype.addRemoteTextTrack=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],t=this.createRemoteTextTrack(i);return n!==!0&&n!==!1&&(h["default"].warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(t),this.remoteTextTracks().addTrack_(t.track),n!==!0&&this.autoRemoteTextTracks_.addTrack_(t.track),t},t.prototype.removeRemoteTextTrack=function(n){var t=this.remoteTextTrackEls().getTrackElementByTrack_(n);this.remoteTextTrackEls().removeTrackElement_(t);this.remoteTextTracks().removeTrack_(n);this.autoRemoteTextTracks_.removeTrack_(n)},t.prototype.setPoster=function(){},t.prototype.canPlayType=function(){return""},t.isTech=function(n){return n.prototype instanceof t||n instanceof t||n===t},t.registerTech=function(n,i){if(t.techs_||(t.techs_={}),!t.isTech(i))throw new Error("Tech "+n+" must be a Tech");return t.techs_[n]=i,i},t.getTech=function(n){return t.techs_&&t.techs_[n]?t.techs_[n]:f["default"]&&f["default"].videojs&&f["default"].videojs[n]?(h["default"].warn("The "+n+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),f["default"].videojs[n]):void 0},t}(e["default"]);r.prototype.textTracks_;r.prototype.audioTracks_;r.prototype.videoTracks_;r.prototype.featuresVolumeControl=!0;r.prototype.featuresFullscreenResize=!1;r.prototype.featuresPlaybackRate=!1;r.prototype.featuresProgressEvents=!1;r.prototype.featuresTimeupdateEvents=!1;r.prototype.featuresNativeTextTracks=!1;r.withSourceHandlers=function(n){n.registerSourceHandler=function(t,i){var r=n.sourceHandlers;r||(r=n.sourceHandlers=[]);void 0===i&&(i=r.length);r.splice(i,0,t)};n.canPlayType=function(t){for(var r=n.sourceHandlers||[],u=void 0,i=0;i<r.length;i++)if(u=r[i].canPlayType(t))return u;return""};n.selectSourceHandler=function(t,i){for(var u=n.sourceHandlers||[],f=void 0,r=0;r<u.length;r++)if(f=u[r].canHandleSource(t,i))return u[r];return null};n.canPlaySource=function(t,i){var r=n.selectSourceHandler(t,i);return r?r.canHandleSource(t,i):""};["seekable","duration"].forEach(function(n){var t=this[n];"function"==typeof t&&(this[n]=function(){return this.sourceHandler_&&this.sourceHandler_[n]?this.sourceHandler_[n].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},n.prototype);n.prototype.setSource=function(t){var i=n.selectSourceHandler(t,this.options_);return i||(n.nativeSourceHandler?i=n.nativeSourceHandler:h["default"].error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),i!==n.nativeSourceHandler&&(this.currentSource_=t,this.off(this.el_,"loadstart",n.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",n.prototype.successiveLoadStartListener_),this.one(this.el_,"loadstart",n.prototype.firstLoadStartListener_)),this.sourceHandler_=i.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler),this};n.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",n.prototype.successiveLoadStartListener_)};n.prototype.successiveLoadStartListener_=function(){this.disposeSourceHandler();this.one(this.el_,"loadstart",n.prototype.successiveLoadStartListener_)};n.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null);this.cleanupAutoTextTracks();this.sourceHandler_&&(this.off(this.el_,"loadstart",n.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",n.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}};e["default"].registerComponent("Tech",r);e["default"].registerComponent("MediaTechController",r);r.registerTech("Tech",r);i["default"]=r},{46:46,5:5,63:63,65:65,66:66,70:70,72:72,76:76,79:79,83:83,86:86,87:87,90:90,94:94,95:95}],63:[function(n,t,i){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(74),r=f(c),l=n(78),a=o(l),v=n(94),y=f(v),u=function(n,t){for(var i=0;i<n.length;i++)t.id!==n[i].id&&(n[i].enabled=!1)},p=function(n){function t(){var l,v,f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i,o,h,c;for(s(this,t),i=void 0,o=f.length-1;o>=0;o--)if(f[o].enabled){u(f,f[o]);break}if(a.IS_IE8){i=y["default"].createElement("custom");for(h in r["default"].prototype)"constructor"!==h&&(i[h]=r["default"].prototype[h]);for(c in t.prototype)"constructor"!==c&&(i[c]=t.prototype[c])}return i=l=e(this,n.call(this,f,i)),i.changing_=!1,v=i,e(l,v)}return h(t,n),t.prototype.addTrack_=function(t){var i=this;t.enabled&&u(this,t);n.prototype.addTrack_.call(this,t);t.addEventListener&&t.addEventListener("enabledchange",function(){i.changing_||(i.changing_=!0,u(i,t),i.changing_=!1,i.trigger("change"))})},t.prototype.addTrack=function(n){this.addTrack_(n)},t.prototype.removeTrack=function(t){n.prototype.removeTrack_.call(this,t)},t}(r["default"]);i["default"]=p},{74:74,78:78,94:94}],64:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(73),h=n(75),c=r(h),l=n(87),a=r(l),v=n(78),y=f(v),p=function(n){function t(){var h,c,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r;e(this,t);var f=a["default"](l,{kind:s.AudioTrackKind[l.kind]||""}),i=h=u(this,n.call(this,f)),o=!1;if(y.IS_IE8)for(r in t.prototype)"constructor"!==r&&(i[r]=t.prototype[r]);return Object.defineProperty(i,"enabled",{get:function(){return o},set:function(n){"boolean"==typeof n&&n!==o&&(o=n,this.trigger("enabledchange"))}}),f.enabled&&(i.enabled=f.enabled),i.loaded_=!0,c=i,u(h,c)}return o(t,n),t}(c["default"]);i["default"]=p},{73:73,75:75,78:78,87:87}],65:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}i.__esModule=!0;var o=n(78),r=f(o),s=n(94),h=u(s),c=function(){function n(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t,i,u,o;if(e(this,n),t=this,r.IS_IE8){t=h["default"].createElement("custom");for(i in n.prototype)"constructor"!==i&&(t[i]=n.prototype[i])}for(t.trackElements_=[],Object.defineProperty(t,"length",{get:function(){return this.trackElements_.length}}),u=0,o=f.length;u<o;u++)t.addTrackElement_(f[u]);if(r.IS_IE8)return t}return n.prototype.addTrackElement_=function(n){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}});this.trackElements_.indexOf(n)===-1&&this.trackElements_.push(n)},n.prototype.getTrackElementByTrack_=function(n){for(var i=void 0,t=0,r=this.trackElements_.length;t<r;t++)if(n===this.trackElements_[t].track){i=this.trackElements_[t];break}return i},n.prototype.removeTrackElement_=function(n){for(var t=0,i=this.trackElements_.length;t<i;t++)if(n===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},n}();i["default"]=c},{78:78,94:94}],66:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var a=n(78),e=h(a),v=n(94),y=u(v),p=n(42),w=u(p),b=n(72),k=u(b),o=0,s=2,r=function(n){function t(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u,r,a;c(this,t);var h=f(this,n.call(this)),l=void 0,i=h;if(e.IS_IE8){i=y["default"].createElement("custom");for(u in t.prototype)"constructor"!==u&&(i[u]=t.prototype[u])}return(r=new k["default"](v),i.kind=r.kind,i.src=r.src,i.srclang=r.language,i.label=r.label,i["default"]=r["default"],Object.defineProperty(i,"readyState",{get:function(){return l}}),Object.defineProperty(i,"track",{get:function(){return r}}),l=o,r.addEventListener("loadeddata",function(){l=s;i.trigger({type:"load",target:i})}),e.IS_IE8)?(a=i,f(h,a)):h}return l(t,n),t}(w["default"]);r.prototype.allowedEvents_={load:"load"};r.NONE=o;r.LOADING=1;r.LOADED=s;r.ERROR=3;i["default"]=r},{42:42,72:72,78:78,94:94}],67:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}i.__esModule=!0;var o=n(78),r=f(o),s=n(94),h=u(s),c=function(){function n(t){var i,u;if(e(this,n),i=this,r.IS_IE8){i=h["default"].createElement("custom");for(u in n.prototype)"constructor"!==u&&(i[u]=n.prototype[u])}if(n.prototype.setCues_.call(i,t),Object.defineProperty(i,"length",{get:function(){return this.length_}}),r.IS_IE8)return i}return n.prototype.setCues_=function(n){var i=this.length||0,t=0,r=n.length,u;if(this.cues_=n,this.length_=n.length,u=function(n){""+n in this||Object.defineProperty(this,""+n,{get:function(){return this.cues_[n]}})},i<r)for(t=i;t<r;t++)u.call(this,t)},n.prototype.getCueById=function(n){for(var i,r=null,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r},n}();i["default"]=c},{78:78,94:94}],68:[function(n,t,i){"use strict";function a(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function s(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function p(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function e(n,t){return"rgba("+parseInt(n[1]+n[1],16)+","+parseInt(n[2]+n[2],16)+","+parseInt(n[3]+n[3],16)+","+t+")"}function o(n,t,i){try{n.style[t]=i}catch(r){return}}i.__esModule=!0;var w=n(5),h=s(w),b=n(83),f=a(b),k=n(95),u=s(k),r="#222",c="#ccc",d={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},l=function(n){function t(i,r,u){v(this,t);var e=y(this,n.call(this,i,r,u));return i.on("loadstart",f.bind(e,e.toggleDisplay)),i.on("texttrackchange",f.bind(e,e.updateDisplay)),i.ready(f.bind(e,function(){var o,t,e,n;if(i.tech_&&i.tech_.featuresNativeTextTracks)return void this.hide();i.on("fullscreenchange",f.bind(this,this.updateDisplay));for(o=this.options_.playerOptions.tracks||[],t=0;t<o.length;t++)this.player_.addRemoteTextTrack(o[t]);var h={captions:1,subtitles:1},s=this.player_.textTracks(),r=void 0,u=void 0;if(s){for(e=0;e<s.length;e++)n=s[e],n["default"]&&("descriptions"!==n.kind||r?n.kind in h&&!u&&(u=n):r=n);u?u.mode="showing":r&&(r.mode="showing")}})),e}return p(t,n),t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"==typeof u["default"].WebVTT&&u["default"].WebVTT.processCues(u["default"],[],this.el_)},t.prototype.updateDisplay=function(){var t=this.player_.textTracks(),n;if(this.clearDisplay(),t){for(var i=null,r=null,u=t.length;u--;)n=t[u],"showing"===n.mode&&("descriptions"===n.kind?i=n:r=n);r?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(r)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}},t.prototype.updateForTrack=function(n){var h,l,i,a;if("function"==typeof u["default"].WebVTT&&n.activeCues){for(var t=this.player_.textTrackSettings.getValues(),f=[],s=0;s<n.activeCues.length;s++)f.push(n.activeCues[s]);for(u["default"].WebVTT.processCues(u["default"],f,this.el_),h=f.length;h--;)l=f[h],l&&(i=l.displayState,(t.color&&(i.firstChild.style.color=t.color),t.textOpacity&&o(i.firstChild,"color",e(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(i.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&o(i.firstChild,"backgroundColor",e(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?o(i,"backgroundColor",e(t.windowColor,t.windowOpacity)):i.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?i.firstChild.style.textShadow="2px 2px 3px "+r+", 2px 2px 4px "+r+", 2px 2px 5px "+r:"raised"===t.edgeStyle?i.firstChild.style.textShadow="1px 1px "+r+", 2px 2px "+r+", 3px 3px "+r:"depressed"===t.edgeStyle?i.firstChild.style.textShadow="1px 1px "+c+", 0 1px "+c+", -1px -1px "+r+", 0 -1px "+r:"uniform"===t.edgeStyle&&(i.firstChild.style.textShadow="0 0 4px "+r+", 0 0 4px "+r+", 0 0 4px "+r+", 0 0 4px "+r)),t.fontPercent&&1!==t.fontPercent)&&(a=u["default"].parseFloat(i.style.fontSize),i.style.fontSize=a*t.fontPercent+"px",i.style.height="auto",i.style.top="auto",i.style.bottom="2px"),t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?i.firstChild.style.fontVariant="small-caps":i.firstChild.style.fontFamily=d[t.fontFamily]))}},t}(h["default"]);h["default"].registerComponent("TextTrackDisplay",l);i["default"]=l},{5:5,83:83,95:95}],69:[function(n,t,i){"use strict";i.__esModule=!0;var r=function(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i){return n[i]&&(t[i]=n[i]),t},{cues:n.cues&&Array.prototype.map.call(n.cues,function(n){return{startTime:n.startTime,endTime:n.endTime,text:n.text,id:n.id}})})},u=function(n){var t=n.$$("track"),i=Array.prototype.map.call(t,function(n){return n.track}),u=Array.prototype.map.call(t,function(n){var t=r(n.track);return n.src&&(t.src=n.src),t});return u.concat(Array.prototype.filter.call(n.textTracks(),function(n){return i.indexOf(n)===-1}).map(r))},f=function(n,t){return n.forEach(function(n){var i=t.addRemoteTextTrack(n).track;!n.src&&n.cues&&n.cues.forEach(function(n){return i.addCue(n)})}),t.textTracks()};i["default"]={textTracksToJson:u,jsonToTextTracks:f,trackToJson_:r}},{}],70:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(74),r=f(h),c=n(83),l=u(c),a=n(78),v=u(a),y=n(94),p=f(y),w=function(n){function t(){var s,h,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i,u,f;if(o(this,t),i=void 0,v.IS_IE8){i=p["default"].createElement("custom");for(u in r["default"].prototype)"constructor"!==u&&(i[u]=r["default"].prototype[u]);for(f in t.prototype)"constructor"!==f&&(i[f]=t.prototype[f])}return i=s=e(this,n.call(this,c,i)),h=i,e(s,h)}return s(t,n),t.prototype.addTrack_=function(t){n.prototype.addTrack_.call(this,t);t.addEventListener("modechange",l.bind(this,function(){this.trigger("change")}))},t.prototype.removeTrack_=function(n){for(var t=void 0,i=0,r=this.length;i<r;i++)if(this[i]===n){t=this[i];t.off&&t.off();this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(n){for(var i,r=null,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r},t}(r["default"]);i["default"]=w},{74:74,78:78,83:83,94:94}],71:[function(n,t,i){"use strict";function a(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function ut(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ft(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function et(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function v(n,t){if(t&&(n=t(n)),n&&"none"!==n)return n}function ot(n,t){var i=n.options[n.options.selectedIndex].value;return v(i,t)}function st(n,t,i){if(t)for(var r=0;r<n.options.length;r++)if(v(n.options[r].value,i)===t){n.selectedIndex=r;break}}var l;i.__esModule=!0;var ht=n(95),o=e(ht),ct=n(5),y=e(ct),r=n(81),lt=n(83),at=a(lt),vt=n(88),f=a(vt),yt=n(86),p=e(yt),s="vjs-text-track-settings",w=["#000","Black"],b=["#00F","Blue"],k=["#0FF","Cyan"],d=["#0F0","Green"],g=["#F0F","Magenta"],nt=["#F00","Red"],tt=["#FFF","White"],it=["#FF0","Yellow"],h=["1","Opaque"],c=["0.5","Semi-Transparent"],rt=["0","Transparent"],u={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[w,tt,nt,d,b,it,g,k]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[h,c,rt]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[tt,w,nt,d,b,it,g,k]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],"default":2,parser:function(n){return"1.00"===n?null:Number(n)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[h,c]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[rt,c,h]}};u.windowColor.options=u.backgroundColor.options;l=function(n){function t(i,r){ut(this,t);var e=ft(this,n.call(this,i,r));return e.setDefaults(),e.hide(),e.updateDisplay=at.bind(e,e.updateDisplay),void 0===r.persistTextTrackSettings&&(e.options_.persistTextTrackSettings=e.options_.playerOptions.persistTextTrackSettings),e.on(e.$(".vjs-done-button"),"click",function(){e.saveSettings();e.hide()}),e.on(e.$(".vjs-default-button"),"click",function(){e.setDefaults();e.updateDisplay()}),f.each(u,function(n){e.on(e.$(n.selector),"change",e.updateDisplay)}),e.options_.persistTextTrackSettings&&e.restoreSettings(),e}return et(t,n),t.prototype.createElSelect_=function(n){var f=this,t=u[n],i=t.id.replace("%s",this.id_);return[r.createEl("label",{className:"vjs-label",textContent:t.label},{"for":i}),r.createEl("select",{id:i},void 0,t.options.map(function(n){return r.createEl("option",{textContent:f.localize(n[1]),value:n[0]})}))]},t.prototype.createElFgColor_=function(){var n=r.createEl("legend",{textContent:this.localize("Text")}),t=this.createElSelect_("color"),i=r.createEl("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.createElSelect_("textOpacity"));return r.createEl("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[n].concat(t,i))},t.prototype.createElBgColor_=function(){var n=r.createEl("legend",{textContent:this.localize("Background")}),t=this.createElSelect_("backgroundColor"),i=r.createEl("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.createElSelect_("backgroundOpacity"));return r.createEl("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[n].concat(t,i))},t.prototype.createElWinColor_=function(){var n=r.createEl("legend",{textContent:this.localize("Window")}),t=this.createElSelect_("windowColor"),i=r.createEl("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.createElSelect_("windowOpacity"));return r.createEl("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[n].concat(t,i))},t.prototype.createElColors_=function(){return r.createEl("div",{className:"vjs-tracksettings-colors"},void 0,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])},t.prototype.createElFont_=function(){var n=r.createEl("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.createElSelect_("fontPercent")),t=r.createEl("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.createElSelect_("edgeStyle")),i=r.createEl("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.createElSelect_("fontFamily"));return r.createEl("div",{className:"vjs-tracksettings-font"},void 0,[n,t,i])},t.prototype.createElControls_=function(){var n=r.createEl("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),t=r.createEl("button",{className:"vjs-done-button",textContent:"Done"});return r.createEl("div",{className:"vjs-tracksettings-controls"},void 0,[n,t])},t.prototype.createEl=function(){var i=r.createEl("div",{className:"vjs-tracksettings"},void 0,[this.createElColors_(),this.createElFont_(),this.createElControls_()]),n=r.createEl("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),t=r.createEl("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),u=r.createEl("div",void 0,{role:"document"},[n,t,i]);return r.createEl("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":n.id,"aria-describedby":t.id},u)},t.prototype.getValues=function(){var n=this;return f.reduce(u,function(t,i,r){var u=ot(n.$(i.selector),i.parser);return void 0!==u&&(t[r]=u),t},{})},t.prototype.setValues=function(n){var t=this;f.each(u,function(i,r){st(t.$(i.selector),n[r],i.parser)})},t.prototype.setDefaults=function(){var n=this;f.each(u,function(t){var i=t.hasOwnProperty("default")?t["default"]:0;n.$(t.selector).selectedIndex=i})},t.prototype.restoreSettings=function(){var n=void 0;try{n=JSON.parse(o["default"].localStorage.getItem(s))}catch(t){p["default"].warn(t)}n&&this.setValues(n)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var n=this.getValues();try{Object.keys(n).length?o["default"].localStorage.setItem(s,JSON.stringify(n)):o["default"].localStorage.removeItem(s)}catch(t){p["default"].warn(t)}}},t.prototype.updateDisplay=function(){var n=this.player_.getChild("textTrackDisplay");n&&n.updateDisplay()},t}(y["default"]);y["default"].registerComponent("TextTrackSettings",l);i["default"]=l},{5:5,81:81,83:83,86:86,88:88,95:95}],72:[function(n,t,i){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function y(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var p=n(67),h=u(p),w=n(83),c=o(w),f=n(73),b=n(86),e=u(b),k=n(95),r=u(k),d=n(75),g=u(d),nt=n(92),tt=n(149),it=u(tt),rt=n(87),ut=u(rt),ft=n(78),et=o(ft),l=function(n,t){var i=new r["default"].WebVTT.Parser(r["default"],r["default"].vttjs,r["default"].WebVTT.StringDecoder()),u=[];i.oncue=function(n){t.addCue(n)};i.onparsingerror=function(n){u.push(n)};i.onflush=function(){t.trigger({type:"loadeddata",target:t})};i.parse(n);u.length>0&&(r["default"].console&&r["default"].console.groupCollapsed&&r["default"].console.groupCollapsed("Text Track parsing errors for "+t.src),u.forEach(function(n){return e["default"].error(n)}),r["default"].console&&r["default"].console.groupEnd&&r["default"].console.groupEnd());i.flush()},ot=function(n,t){var i={uri:n},u=nt.isCrossOrigin(n);u&&(i.cors=u);it["default"](i,c.bind(this,function(n,i,u){return n?e["default"].error(n,i):(t.loaded_=!0,void("function"!=typeof r["default"].WebVTT?t.tech_&&!function(){var n=function(){return l(u,t)};t.tech_.on("vttjsloaded",n);t.tech_.on("vttjserror",function(){e["default"].error("vttjs failed to load, stopping trying to process "+t.src);t.tech_.off("vttjsloaded",n)})}():l(u,t)))}))},a=function(n){function t(){var y,p,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i,l;if(v(this,t),!u.tech)throw new Error("A tech was not provided.");var r=ut["default"](u,{kind:f.TextTrackKind[u.kind]||"subtitles",language:u.language||u.srclang||""}),e=f.TextTrackMode[r.mode]||"disabled",b=r["default"];if("metadata"!==r.kind&&"chapters"!==r.kind||(e="hidden"),i=y=s(this,n.call(this,r)),i.tech_=r.tech,et.IS_IE8)for(l in t.prototype)"constructor"!==l&&(i[l]=t.prototype[l]);i.cues_=[];i.activeCues_=[];var k=new h["default"](i.cues_),a=new h["default"](i.activeCues_),o=!1,w=c.bind(i,function(){this.activeCues;o&&(this.trigger("cuechange"),o=!1)});return"disabled"!==e&&i.tech_.on("timeupdate",w),Object.defineProperty(i,"default",{get:function(){return b},set:function(){}}),Object.defineProperty(i,"mode",{get:function(){return e},set:function(n){f.TextTrackMode[n]&&(e=n,"showing"===e&&this.tech_.on("timeupdate",w),this.trigger("modechange"))}}),Object.defineProperty(i,"cues",{get:function(){return this.loaded_?k:null},set:function(){}}),Object.defineProperty(i,"activeCues",{get:function(){var n,r;if(!this.loaded_)return null;if(0===this.cues.length)return a;for(var i=this.tech_.currentTime(),t=[],u=0,f=this.cues.length;u<f;u++)n=this.cues[u],n.startTime<=i&&n.endTime>=i?t.push(n):n.startTime===n.endTime&&n.startTime<=i&&n.startTime+.5>=i&&t.push(n);if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(r=0;r<t.length;r++)this.activeCues_.indexOf(t[r])===-1&&(o=!0);return this.activeCues_=t,a.setCues_(this.activeCues_),a},set:function(){}}),r.src?(i.src=r.src,ot(r.src,i)):i.loaded_=!0,p=i,s(y,p)}return y(t,n),t.prototype.addCue=function(n){var i=this.tech_.textTracks(),t;if(i)for(t=0;t<i.length;t++)i[t]!==this&&i[t].removeCue(n);this.cues_.push(n);this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(n){for(var r,i=!1,t=0,u=this.cues_.length;t<u;t++)r=this.cues_[t],r===n&&(this.cues_.splice(t,1),i=!0);i&&this.cues.setCues_(this.cues_)},t}(g["default"]);a.prototype.allowedEvents_={cuechange:"cuechange"};i["default"]=a},{149:149,67:67,73:73,75:75,78:78,83:83,86:86,87:87,92:92,95:95}],73:[function(n,t,i){"use strict";i.__esModule=!0;i.VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"};i.AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"};i.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};i.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"}},{}],74:[function(n,t,i){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e;i.__esModule=!0;var c=n(42),l=u(c),a=n(78),v=o(a),y=n(94),p=u(y),r=function(n){function t(){var o,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e,r,u;if(s(this,t),e=f(this,n.call(this)),!i&&(i=e,v.IS_IE8)){i=p["default"].createElement("custom");for(r in t.prototype)"constructor"!==r&&(i[r]=t.prototype[r])}for(i.tracks_=[],Object.defineProperty(i,"length",{get:function(){return this.tracks_.length}}),u=0;u<h.length;u++)i.addTrack_(h[u]);return o=i,f(e,o)}return h(t,n),t.prototype.addTrack_=function(n){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}});this.tracks_.indexOf(n)===-1&&(this.tracks_.push(n),this.trigger({track:n,type:"addtrack"}))},t.prototype.removeTrack_=function(n){for(var t=void 0,i=0,r=this.length;i<r;i++)if(this[i]===n){t=this[i];t.off&&t.off();this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(n){for(var i,r=null,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r},t}(l["default"]);r.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(e in r.prototype.allowedEvents_)r.prototype["on"+e]=null;i["default"]=r},{42:42,78:78,94:94}],75:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(78),h=u(s),c=n(94),l=r(c),a=n(85),v=u(a),y=n(42),p=r(y),w=function(n){function t(){var c,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o,i,u,s,a,y;if(e(this,t),o=f(this,n.call(this)),i=o,h.IS_IE8){i=l["default"].createElement("custom");for(u in t.prototype)"constructor"!==u&&(i[u]=t.prototype[u])}s={id:r.id||"vjs_track_"+v.newGUID(),kind:r.kind||"",label:r.label||"",language:r.language||""};a=function(n){Object.defineProperty(i,n,{get:function(){return s[n]},set:function(){}})};for(y in s)a(y);return c=i,f(o,c)}return o(t,n),t}(p["default"]);i["default"]=w},{42:42,78:78,85:85,94:94}],76:[function(n,t,i){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n(74),r=f(c),l=n(78),a=o(l),v=n(94),y=f(v),u=function(n,t){for(var i=0;i<n.length;i++)t.id!==n[i].id&&(n[i].selected=!1)},p=function(n){function t(){var l,v,f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i,o,h,c;for(s(this,t),i=void 0,o=f.length-1;o>=0;o--)if(f[o].selected){u(f,f[o]);break}if(a.IS_IE8){i=y["default"].createElement("custom");for(h in r["default"].prototype)"constructor"!==h&&(i[h]=r["default"].prototype[h]);for(c in t.prototype)"constructor"!==c&&(i[c]=t.prototype[c])}return i=l=e(this,n.call(this,f,i)),i.changing_=!1,Object.defineProperty(i,"selectedIndex",{get:function(){for(var n=0;n<this.length;n++)if(this[n].selected)return n;return-1},set:function(){}}),v=i,e(l,v)}return h(t,n),t.prototype.addTrack_=function(t){var i=this;t.selected&&u(this,t);n.prototype.addTrack_.call(this,t);t.addEventListener&&t.addEventListener("selectedchange",function(){i.changing_||(i.changing_=!0,u(i,t),i.changing_=!1,i.trigger("change"))})},t.prototype.addTrack=function(n){this.addTrack_(n)},t.prototype.removeTrack=function(t){n.prototype.removeTrack_.call(this,t)},t}(r["default"]);i["default"]=p},{74:74,78:78,94:94}],77:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n(73),h=n(75),c=r(h),l=n(87),a=r(l),v=n(78),y=f(v),p=function(n){function t(){var h,c,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r;e(this,t);var f=a["default"](l,{kind:s.VideoTrackKind[l.kind]||""}),i=h=u(this,n.call(this,f)),o=!1;if(y.IS_IE8)for(r in t.prototype)"constructor"!==r&&(i[r]=t.prototype[r]);return Object.defineProperty(i,"selected",{get:function(){return o},set:function(n){"boolean"==typeof n&&n!==o&&(o=n,this.trigger("selectedchange"))}}),f.selected&&(i.selected=f.selected),c=i,u(h,c)}return o(t,n),t}(c["default"]);i["default"]=p},{73:73,75:75,78:78,87:87}],78:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;i.BACKGROUND_SIZE_SUPPORTED=i.TOUCH_ENABLED=i.IE_VERSION=i.IS_IE8=i.IS_CHROME=i.IS_EDGE=i.IS_FIREFOX=i.IS_NATIVE_ANDROID=i.IS_OLD_ANDROID=i.ANDROID_VERSION=i.IS_ANDROID=i.IOS_VERSION=i.IS_IOS=i.IS_IPOD=i.IS_IPHONE=i.IS_IPAD=void 0;var l=n(94),e=f(l),a=n(95),u=f(a),r=u["default"].navigator&&u["default"].navigator.userAgent||"",o=/AppleWebKit\/([\d.]+)/i.exec(r),v=o?parseFloat(o.pop()):null,s=i.IS_IPAD=/iPad/i.test(r),y=i.IS_IPHONE=/iPhone/i.test(r)&&!s,p=i.IS_IPOD=/iPod/i.test(r),h=(i.IS_IOS=y||s||p,i.IOS_VERSION=function(){var n=r.match(/OS (\d+)_/i);return n&&n[1]?n[1]:null}(),i.IS_ANDROID=/Android/i.test(r)),c=i.ANDROID_VERSION=function(){var n=r.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),t,i;return n?(t=n[1]&&parseFloat(n[1]),i=n[2]&&parseFloat(n[2]),t&&i?parseFloat(n[1]+"."+n[2]):t?t:null):null}(),w=(i.IS_OLD_ANDROID=h&&/webkit/i.test(r)&&c<2.3,i.IS_NATIVE_ANDROID=h&&c<5&&v<537,i.IS_FIREFOX=/Firefox/i.test(r),i.IS_EDGE=/Edge/i.test(r));i.IS_CHROME=!w&&/Chrome/i.test(r);i.IS_IE8=/MSIE\s8\.0/.test(r);i.IE_VERSION=function(n){return n&&parseFloat(n[1])}(/MSIE\s(\d+)\.\d/.exec(r));i.TOUCH_ENABLED=!!("ontouchstart"in u["default"]||u["default"].DocumentTouch&&e["default"]instanceof u["default"].DocumentTouch);i.BACKGROUND_SIZE_SUPPORTED="backgroundSize"in e["default"].createElement("video").style},{94:94,95:95}],79:[function(n,t,i){"use strict";function r(n,t){var f=0,e=void 0,r=void 0,i;if(!t)return 0;for(n&&n.length||(n=u.createTimeRange(0,0)),i=0;i<n.length;i++)e=n.start(i),r=n.end(i),r>t&&(r=t),f+=r-e;return f/t}i.__esModule=!0;i.bufferedPercent=r;var u=n(90)},{90:90}],80:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!n||!t)return"";if("function"==typeof r["default"].getComputedStyle){var i=r["default"].getComputedStyle(n);return i?i[t]:""}return n.currentStyle[t]||""}i.__esModule=!0;i["default"]=f;var e=n(95),r=u(e)},{95:95}],81:[function(n,t,i){"use strict";function it(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function rt(n,t){return n.raw=t,n}function l(n){return"string"==typeof n&&/\S/.test(n)}function a(n){if(/\s/.test(n))throw new Error("class has illegal whitespace characters");}function ut(n){return new RegExp("(^|\\s)"+n+"($|\\s)")}function o(n){return!!n&&"object"===("undefined"==typeof n?"undefined":c(n))&&1===n.nodeType}function v(n){return function(t,i){if(!l(t))return r["default"][n](null);l(i)&&(i=r["default"].querySelector(i));var u=o(i)?i:r["default"];return u[n]&&u[n](t)}}function ft(n){return 0===n.indexOf("#")&&(n=n.slice(1)),r["default"].getElementById(n)}function et(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments[3],n=r["default"].createElement(f);return Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];i.indexOf("aria-")!==-1||"role"===i||"type"===i?(fi["default"].warn(oi["default"](nt,i,r)),n.setAttribute(i,r)):"textContent"===i?y(n,r):n[i]=r}),Object.getOwnPropertyNames(i).forEach(function(t){n.setAttribute(t,i[t])}),u&&h(n,u),n}function y(n,t){return"undefined"==typeof n.textContent?n.innerText=t:n.textContent=t,n}function ot(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}function st(n){var t=n[u];return t||(t=n[u]=ri.newGUID()),f[t]||(f[t]={}),f[t]}function ht(n){var t=n[u];return!!t&&!!Object.getOwnPropertyNames(f[t]).length}function ct(n){var t=n[u];if(t){delete f[t];try{delete n[u]}catch(i){n.removeAttribute?n.removeAttribute(u):n[u]=null}}}function s(n,t){return a(t),n.classList?n.classList.contains(t):ut(t).test(n.className)}function p(n,t){return n.classList?n.classList.add(t):s(n,t)||(n.className=(n.className+" "+t).trim()),n}function w(n,t){return n.classList?n.classList.remove(t):(a(t),n.className=n.className.split(/\s+/).filter(function(n){return n!==t}).join(" ")),n}function lt(n,t,i){var r=s(n,t);if("function"==typeof i&&(i=i(n,t)),"boolean"!=typeof i&&(i=!r),i!==r)return i?p(n,t):w(n,t),n}function at(n,t){Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];null===r||"undefined"==typeof r||r===!1?n.removeAttribute(i):n.setAttribute(i,r===!0?"":r)})}function vt(n){var f={},i,t,r,u;if(n&&n.attributes&&n.attributes.length>0)for(i=n.attributes,t=i.length-1;t>=0;t--)r=i[t].name,u=i[t].value,"boolean"!=typeof n[r]&&",autoplay,controls,loop,muted,default,".indexOf(","+r+",")===-1||(u=null!==u),f[r]=u;return f}function yt(n,t){return n.getAttribute(t)}function pt(n,t,i){n.setAttribute(t,i)}function wt(n,t){n.removeAttribute(t)}function bt(){r["default"].body.focus();r["default"].onselectstart=function(){return!1}}function kt(){r["default"].onselectstart=function(){return!0}}function b(n){var t=void 0;if(n.getBoundingClientRect&&n.parentNode&&(t=n.getBoundingClientRect()),!t)return{left:0,top:0};var u=r["default"].documentElement,i=r["default"].body,f=u.clientLeft||i.clientLeft||0,e=tt["default"].pageXOffset||i.scrollLeft,o=t.left+e-f,s=u.clientTop||i.clientTop||0,h=tt["default"].pageYOffset||i.scrollTop,c=t.top+h-s;return{left:Math.round(o),top:Math.round(c)}}function dt(n,t){var i={},r=b(n),o=n.offsetWidth,u=n.offsetHeight,s=r.top,h=r.left,f=t.pageY,e=t.pageX;return t.changedTouches&&(e=t.changedTouches[0].pageX,f=t.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(s-f+u)/u)),i.x=Math.max(0,Math.min(1,(e-h)/o)),i}function k(n){return!!n&&"object"===("undefined"==typeof n?"undefined":c(n))&&3===n.nodeType}function d(n){for(;n.firstChild;)n.removeChild(n.firstChild);return n}function g(n){return"function"==typeof n&&(n=n()),(Array.isArray(n)?n:[n]).map(function(n){return"function"==typeof n&&(n=n()),o(n)||k(n)?n:"string"==typeof n&&/\S/.test(n)?r["default"].createTextNode(n):void 0}).filter(function(n){return n})}function h(n,t){return g(t).forEach(function(t){return n.appendChild(t)}),n}function gt(n,t){return h(d(n),t)}var c,nt;i.__esModule=!0;i.$$=i.$=void 0;c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};nt=rt(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]);i.isEl=o;i.getEl=ft;i.createEl=et;i.textContent=y;i.insertElFirst=ot;i.getElData=st;i.hasElData=ht;i.removeElData=ct;i.hasElClass=s;i.addElClass=p;i.removeElClass=w;i.toggleElClass=lt;i.setElAttributes=at;i.getElAttributes=vt;i.getAttribute=yt;i.setAttribute=pt;i.removeAttribute=wt;i.blockTextSelection=bt;i.unblockTextSelection=kt;i.findElPosition=b;i.getPointerPosition=dt;i.isTextNode=k;i.emptyEl=d;i.normalizeContent=g;i.appendContent=h;i.insertContent=gt;var ni=n(94),r=e(ni),ti=n(95),tt=e(ti),ii=n(85),ri=it(ii),ui=n(86),fi=e(ui),ei=n(148),oi=e(ei),f={},u="vdata"+(new Date).getTime();i.$=v("querySelector");i.$$=v("querySelectorAll")},{148:148,85:85,86:86,94:94,95:95}],82:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function c(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function l(n,t){var i=r.getElData(n);0===i.handlers[t].length&&(delete i.handlers[t],n.removeEventListener?n.removeEventListener(t,i.dispatcher,!1):n.detachEvent&&n.detachEvent("on"+t,i.dispatcher));Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled);0===Object.getOwnPropertyNames(i).length&&r.removeElData(n)}function f(n,t,i,r){i.forEach(function(i){n(t,i,r)})}function e(n){function t(){return!0}function i(){return!1}return n&&n.isPropagationStopped||!function(){var r=n||g["default"].event,u,f,e;n={};for(u in r)"layerX"!==u&&"layerY"!==u&&"keyLocation"!==u&&"webkitMovementX"!==u&&"webkitMovementY"!==u&&("returnValue"===u&&r.preventDefault||(n[u]=r[u]));(n.target||(n.target=n.srcElement||h["default"]),n.relatedTarget||(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),n.preventDefault=function(){r.preventDefault&&r.preventDefault();n.returnValue=!1;r.returnValue=!1;n.defaultPrevented=!0},n.defaultPrevented=!1,n.stopPropagation=function(){r.stopPropagation&&r.stopPropagation();n.cancelBubble=!0;r.cancelBubble=!0;n.isPropagationStopped=t},n.isPropagationStopped=i,n.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation();n.isImmediatePropagationStopped=t;n.stopPropagation()},n.isImmediatePropagationStopped=i,null!==n.clientX&&void 0!==n.clientX)&&(f=h["default"].documentElement,e=h["default"].body,n.pageX=n.clientX+(f&&f.scrollLeft||e&&e.scrollLeft||0)-(f&&f.clientLeft||e&&e.clientLeft||0),n.pageY=n.clientY+(f&&f.scrollTop||e&&e.scrollTop||0)-(f&&f.clientTop||e&&e.clientTop||0));n.which=n.charCode||n.keyCode;null!==n.button&&void 0!==n.button&&(n.button=1&n.button?0:4&n.button?1:2&n.button?2:0)}(),n}function o(n,t,i){if(Array.isArray(t))return f(o,n,t,i);var u=r.getElData(n);u.handlers||(u.handlers={});u.handlers[t]||(u.handlers[t]=[]);i.guid||(i.guid=y.newGUID());u.handlers[t].push(i);u.dispatcher||(u.disabled=!1,u.dispatcher=function(t,i){var r;if(!u.disabled&&(t=e(t),r=u.handlers[t.type],r))for(var o=r.slice(0),f=0,s=o.length;f<s&&!t.isImmediatePropagationStopped();f++)try{o[f].call(n,t,i)}catch(h){k["default"].error(h)}});1===u.handlers[t].length&&(n.addEventListener?n.addEventListener(t,u.dispatcher,!1):n.attachEvent&&n.attachEvent("on"+t,u.dispatcher))}function s(n,t,i){var u,h,e,o,c;if(r.hasElData(n)&&(u=r.getElData(n),u.handlers)){if(Array.isArray(t))return f(s,n,t,i);if(h=function(t){u.handlers[t]=[];l(n,t)},t){if(e=u.handlers[t],e){if(!i)return void h(t);if(i.guid)for(o=0;o<e.length;o++)e[o].guid===i.guid&&e.splice(o--,1);l(n,t)}}else for(c in u.handlers)h(c)}}function a(n,t,i){var o=r.hasElData(n)?r.getElData(n):{},u=n.parentNode||n.ownerDocument,f;return("string"==typeof t&&(t={type:t,target:n}),t=e(t),o.dispatcher&&o.dispatcher.call(n,t,i),u&&!t.isPropagationStopped()&&t.bubbles===!0)?a.call(null,u,t,i):u||t.defaultPrevented||(f=r.getElData(t.target),t.target[t.type]&&(f.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),f.disabled=!1)),!t.defaultPrevented}function v(n,t,i){if(Array.isArray(t))return f(v,n,t,i);var r=function u(){s(n,t,u);i.apply(this,arguments)};r.guid=i.guid=i.guid||y.newGUID();o(n,t,r)}i.__esModule=!0;i.fixEvent=e;i.on=o;i.off=s;i.trigger=a;i.one=v;var p=n(81),r=c(p),w=n(85),y=c(w),b=n(86),k=u(b),d=n(95),g=u(d),nt=n(94),h=u(nt)},{81:81,85:85,86:86,94:94,95:95}],83:[function(n,t,i){"use strict";i.__esModule=!0;i.bind=void 0;var r=n(85);i.bind=function(n,t,i){t.guid||(t.guid=r.newGUID());var u=function(){return t.apply(n,arguments)};return u.guid=i?i+"_"+t.guid:t.guid,u}},{85:85}],84:[function(n,t,i){"use strict";function r(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;n=n<0?0:n;var t=Math.floor(n%60),i=Math.floor(n/60%60),r=Math.floor(n/3600),f=Math.floor(u/60%60),e=Math.floor(u/3600);return(isNaN(n)||n===1/0)&&(r=i=t="-"),r=r>0||e>0?r+":":"",i=((r||f>=10)&&i<10?"0"+i:i)+":",t=t<10?"0"+t:t,r+i+t}i.__esModule=!0;i["default"]=r},{}],85:[function(n,t,i){"use strict";function r(){return u++}i.__esModule=!0;i.newGUID=r;var u=1},{}],86:[function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;i.logByType=void 0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},h=n(95),u=o(h),e=n(78),r=void 0,f=i.logByType=function(n,t){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!e.IE_VERSION&&e.IE_VERSION<11,i;"log"!==n&&t.unshift(n.toUpperCase()+":");r.history.push(t);t.unshift("VIDEOJS:");i=u["default"].console&&u["default"].console[n];i&&(f&&(t=t.map(function(n){if(n&&"object"===("undefined"==typeof n?"undefined":s(n))||Array.isArray(n))try{return JSON.stringify(n)}catch(t){return String(n)}return String(n)}).join(" ")),i.apply?i[Array.isArray(t)?"apply":"call"](u["default"].console,t):i(t))};r=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];f("log",i)};r.history=[];r.error=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return f("error",i)};r.warn=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return f("warn",i)};i["default"]=r},{78:78,95:95}],87:[function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}function r(n){return!!n&&"object"===("undefined"==typeof n?"undefined":f(n))&&"[object Object]"===n.toString()&&n.constructor===Object}function h(n,t){return r(t)?r(n)?void 0:u(t):t}function u(){for(var i=arguments.length,n=Array(i),t=0;t<i;t++)n[t]=arguments[t];return n.unshift({}),n.push(h),o["default"].apply(null,n),n[0]}var f,e,o;i.__esModule=!0;f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};i["default"]=u;e=n(133);o=s(e)},{133:133}],88:[function(n,t,i){"use strict";function r(n,t){Object.keys(n).forEach(function(i){return t(n[i],i)})}function u(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Object.keys(n).reduce(function(i,r){return t(i,n[r],r)},i)}i.__esModule=!0;i.each=r;i.reduce=u},{}],89:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;i.setTextContent=i.createStyleElement=void 0;var u=n(94),f=r(u);i.createStyleElement=function(n){var t=f["default"].createElement("style");return t.className=n,t};i.setTextContent=function(n,t){n.styleSheet?n.styleSheet.cssText=t:n.textContent=t}},{94:94}],90:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t,i){if(t<0||t>i)throw new Error("Failed to execute '"+n+"' on 'TimeRanges': The index provided ("+t+") is greater than or equal to the maximum bound ("+i+").");}function u(n,t,i,r){return void 0===r&&(h["default"].warn("DEPRECATED: Function '"+n+"' on 'TimeRanges' called without an index argument."),r=0),o(n,r,i.length-1),i[r][t]}function r(n){return void 0===n||0===n.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty");},end:function(){throw new Error("This TimeRanges object is empty");}}:{length:n.length,start:u.bind(null,"start",0,n),end:u.bind(null,"end",1,n)}}function f(n,t){return Array.isArray(n)?r(n):void 0===n||void 0===t?r():r([[n,t]])}i.__esModule=!0;i.createTimeRange=void 0;i.createTimeRanges=f;var s=n(86),h=e(s);i.createTimeRange=f},{86:86}],91:[function(n,t,i){"use strict";function r(n){return"string"!=typeof n?n:n.charAt(0).toUpperCase()+n.slice(1)}i.__esModule=!0;i["default"]=r},{}],92:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;i.isCrossOrigin=i.getFileExtension=i.getAbsoluteURL=i.parseUrl=void 0;var f=n(94),r=u(f),e=n(95),o=u(e),s=i.parseUrl=function(n){var e=["protocol","hostname","port","pathname","search","hash","host"],u=r["default"].createElement("a"),o,i,t,f;for(u.href=n,o=""===u.host&&"file:"!==u.protocol,i=void 0,o&&(i=r["default"].createElement("div"),i.innerHTML='<a href="'+n+'"><\/a>',u=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),r["default"].body.appendChild(i)),t={},f=0;f<e.length;f++)t[e[f]]=u[e[f]];return"http:"===t.protocol&&(t.host=t.host.replace(/:80$/,"")),"https:"===t.protocol&&(t.host=t.host.replace(/:443$/,"")),o&&r["default"].body.removeChild(i),t};i.getAbsoluteURL=function(n){if(!n.match(/^https?:\/\//)){var t=r["default"].createElement("div");t.innerHTML='<a href="'+n+'">x<\/a>';n=t.firstChild.href}return n};i.getFileExtension=function(n){if("string"==typeof n){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(n);if(t)return t.pop().toLowerCase()}return""};i.isCrossOrigin=function(n){var t=o["default"].location,i=s(n),r=":"===i.protocol?t.protocol:i.protocol;return r+i.host!==t.protocol+t.host}},{94:94,95:95}],93:[function(t,i,r){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function u(n,t,i){var r=void 0,f;if(t=t||{},"string"==typeof n){if(0===n.indexOf("#")&&(n=n.slice(1)),u.getPlayers()[n])return t&&b["default"].warn('Player "'+n+'" is already initialised. Options will not be applied.'),i&&u.getPlayers()[n].ready(i),u.getPlayers()[n];r=e.getEl(n)}else r=n;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return r.player||s["default"].players[r.playerId]?r.player||s["default"].players[r.playerId]:(u.hooks("beforesetup").forEach(function(n){var i=n(r,w["default"](t));return!i||"object"!==("undefined"==typeof i?"undefined":a(i))||Array.isArray(i)?void u.log.error("please return an object in beforesetup hooks"):void(t=w["default"](t,i))}),f=new s["default"](r,t,i),u.hooks("setup").forEach(function(n){return n(f)}),f)}var h,l;r.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tt=t(95),v=f(tt),it=t(94),y=f(it),rt=t(56),ut=o(rt),ft=t(89),d=o(ft),et=t(5),p=f(et),ot=t(42),st=f(ot),ht=t(82),c=o(ht),ct=t(51),s=f(ct),lt=t(52),at=f(lt),vt=t(87),w=f(vt),yt=t(83),pt=o(yt),wt=t(72),bt=f(wt),kt=t(64),dt=f(kt),gt=t(77),ni=f(gt),ti=t(90),ii=t(84),ri=f(ii),ui=t(86),b=f(ui),fi=t(81),e=o(fi),ei=t(78),g=o(ei),oi=t(92),nt=o(oi),si=t(80),hi=f(si),ci=t(43),li=f(ci),ai=t(133),vi=f(ai),yi=t(149),pi=f(yi),wi=t(62),k=f(wi);("undefined"==typeof HTMLVideoElement&&v["default"].document&&v["default"].document.createElement&&(y["default"].createElement("video"),y["default"].createElement("audio"),y["default"].createElement("track")),u.hooks_={},u.hooks=function(n,t){return u.hooks_[n]=u.hooks_[n]||[],t&&(u.hooks_[n]=u.hooks_[n].concat(t)),u.hooks_[n]},u.hook=function(n,t){u.hooks(n,t)},u.removeHook=function(n,t){var i=u.hooks(n).indexOf(t);return!(i<=-1)&&(u.hooks_[n]=u.hooks_[n].slice(),u.hooks_[n].splice(i,1),!0)},v["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0)&&(h=e.$(".vjs-styles-defaults"),h||(h=d.createStyleElement("vjs-styles-defaults"),l=e.$("head"),l&&l.insertBefore(h,l.firstChild),d.setTextContent(h,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")));ut.autoSetupTimeout(1,u);u.VERSION="5.13.2";u.options=s["default"].prototype.options_;u.getPlayers=function(){return s["default"].players};u.players=s["default"].players;u.getComponent=p["default"].getComponent;u.registerComponent=function(n,t){k["default"].isTech(t)&&b["default"].warn("The "+n+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)");p["default"].registerComponent.call(p["default"],n,t)};u.getTech=k["default"].getTech;u.registerTech=k["default"].registerTech;u.browser=g;u.TOUCH_ENABLED=g.TOUCH_ENABLED;u.extend=li["default"];u.mergeOptions=w["default"];u.bind=pt.bind;u.plugin=at["default"];u.addLanguage=function(n,t){var i;return n=(""+n).toLowerCase(),vi["default"](u.options.languages,(i={},i[n]=t,i))[n]};u.log=b["default"];u.createTimeRange=u.createTimeRanges=ti.createTimeRanges;u.formatTime=ri["default"];u.parseUrl=nt.parseUrl;u.isCrossOrigin=nt.isCrossOrigin;u.EventTarget=st["default"];u.on=c.on;u.one=c.one;u.off=c.off;u.trigger=c.trigger;u.xhr=pi["default"];u.TextTrack=bt["default"];u.AudioTrack=dt["default"];u.VideoTrack=ni["default"];u.isEl=e.isEl;u.isTextNode=e.isTextNode;u.createEl=e.createEl;u.hasClass=e.hasElClass;u.addClass=e.addElClass;u.removeClass=e.removeElClass;u.toggleClass=e.toggleElClass;u.setAttributes=e.setElAttributes;u.getAttributes=e.getElAttributes;u.emptyEl=e.emptyEl;u.appendContent=e.appendContent;u.insertContent=e.insertContent;u.computedStyle=hi["default"];"function"==typeof n&&n.amd?n("videojs",[],function(){return u}):"object"===("undefined"==typeof r?"undefined":a(r))&&"object"===("undefined"==typeof i?"undefined":a(i))&&(i.exports=u);r["default"]=u},{133:133,149:149,42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,86:86,87:87,89:89,90:90,92:92,94:94,95:95}],94:[function(n,t){(function(i){var u="undefined"!=typeof i?i:"undefined"!=typeof window?window:{},f=n(96),r;"undefined"!=typeof document?t.exports=document:(r=u["__GLOBAL_DOCUMENT_CACHE@4"],r||(r=u["__GLOBAL_DOCUMENT_CACHE@4"]=f),t.exports=r)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{96:96}],95:[function(n,t){(function(n){t.exports="undefined"!=typeof window?window:"undefined"!=typeof n?n:"undefined"!=typeof self?self:{}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],96:[function(){},{}],97:[function(n,t){var i=n(113),r=i(Date,"now"),u=r||function(){return(new Date).getTime()};t.exports=u},{113:113}],98:[function(n,t){function r(n,t,r){function nt(){o&&clearTimeout(o);s&&clearTimeout(s);a=0;s=o=b=void 0}function k(t,r){r&&clearTimeout(r);s=o=b=void 0;t&&(a=i(),w=n.apply(c,h),o||s||(h=c=void 0))}function d(){var n=t-(i()-l);n<=0||n>t?k(b,s):o=setTimeout(d,n)}function tt(){k(y,o)}function g(){var f,u,r;return(h=arguments,l=i(),c=this,b=y&&(o||!p),v===!1)?f=p&&!o:(s||p||(a=l),u=v-(l-a),r=u<=0||u>v,r?(s&&(s=clearTimeout(s)),a=l,w=n.apply(c,h)):s||(s=setTimeout(tt,u))),r&&o?o=clearTimeout(o):o||t===v||(o=setTimeout(d,t)),f&&(r=!0,w=n.apply(c,h)),!r||o||s||(h=c=void 0),w}var h,s,w,l,c,o,b,a=0,v=!1,y=!0,p;if("function"!=typeof n)throw new TypeError(f);return(t=t<0?0:+t||0,r===!0)?(p=!0,y=!1):u(r)&&(p=!!r.leading,v="maxWait"in r&&e(+r.maxWait||0,t),y="trailing"in r?!!r.trailing:y),g.cancel=nt,g}var u=n(126),i=n(97),f="Expected a function",e=Math.max;t.exports=r},{126:126,97:97}],99:[function(n,t){function r(n,t){if("function"!=typeof n)throw new TypeError(u);return t=i(void 0===t?n.length-1:+t||0,0),function(){for(var e,u=arguments,r=-1,o=i(u.length-t,0),f=Array(o);++r<o;)f[r]=u[t+r];switch(t){case 0:return n.call(this,f);case 1:return n.call(this,u[0],f);case 2:return n.call(this,u[0],u[1],f)}for(e=Array(t+1),r=-1;++r<t;)e[r]=u[r];return e[t]=f,n.apply(this,e)}}var u="Expected a function",i=Math.max;t.exports=r},{}],100:[function(n,t){function i(n,t,i){var e=!0,o=!0;if("function"!=typeof n)throw new TypeError(f);return i===!1?e=!1:u(i)&&(e="leading"in i?!!i.leading:e,o="trailing"in i?!!i.trailing:o),r(n,t,{leading:e,maxWait:+t,trailing:o})}var r=n(98),u=n(126),f="Expected a function";t.exports=i},{126:126,98:98}],101:[function(n,t){function i(n,t){var i=-1,r=n.length;for(t||(t=Array(r));++i<r;)t[i]=n[i];return t}t.exports=i},{}],102:[function(n,t){function i(n,t){for(var i=-1,r=n.length;++i<r&&t(n[i],i,n)!==!1;);return n}t.exports=i},{}],103:[function(n,t){function i(n,t,i){var r,f,u;for(i||(i={}),r=-1,f=t.length;++r<f;)u=t[r],i[u]=n[u];return i}t.exports=i},{}],104:[function(n,t){var i=n(111),r=i();t.exports=r},{111:111}],105:[function(n,t){function i(n,t){return r(n,t,u)}var r=n(104),u=n(132);t.exports=i},{104:104,132:132}],106:[function(n,t){function i(n,t,l,a,v){if(!o(n))return n;var y=e(t)&&(f(t)||h(t)),p=y?void 0:c(t);return r(p||t,function(r,f){if(p&&(f=r,r=t[f]),s(r))a||(a=[]),v||(v=[]),u(n,t,f,i,l,a,v);else{var o=n[f],e=l?l(o,r,f,n,t):void 0,h=void 0===e;h&&(e=r);void 0===e&&(!y||f in n)||!h&&(e===e?e===o:o!==o)||(n[f]=e)}}),n}var r=n(102),u=n(107),f=n(123),e=n(114),o=n(126),s=n(119),h=n(129),c=n(131);t.exports=i},{102:102,107:107,114:114,119:119,123:123,126:126,129:129,131:131}],107:[function(n,t){function e(n,t,e,c,l,a,v){for(var b=a.length,p=t[e];b--;)if(a[b]==p)return void(n[e]=v[b]);var y=n[e],w=l?l(y,p,e,n,t):void 0,k=void 0===w;k&&(w=p,u(p)&&(r(p)||s(p))?w=r(y)?y:u(y)?o(y):[]:f(p)||i(p)?w=i(y)?h(y):f(y)?y:{}:k=!1);a.push(p);v.push(w);k?n[e]=c(w,p,l,a,v):(w===w?w!==y:y===y)&&(n[e]=w)}var o=n(101),i=n(122),r=n(123),u=n(114),f=n(127),s=n(129),h=n(130);t.exports=e},{101:101,114:114,122:122,123:123,127:127,129:129,130:130}],108:[function(n,t){function i(n){return function(t){if(null!=t)return r(t)[n]}}var r=n(121);t.exports=i},{121:121}],109:[function(n,t){function i(n,t,i){if("function"!=typeof n)return r;if(void 0===t)return n;switch(i){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)};case 5:return function(i,r,u,f,e){return n.call(t,i,r,u,f,e)}}return function(){return n.apply(t,arguments)}}var r=n(135);t.exports=i},{135:135}],110:[function(n,t){function i(n){return f(function(t,i){var h=-1,f=null==t?0:i.length,e=f>2?i[f-2]:void 0,c=f>2?i[2]:void 0,o=f>1?i[f-1]:void 0,s;for("function"==typeof e?(e=r(e,o,5),f-=2):(e="function"==typeof o?o:void 0,f-=e?1:0),c&&u(i[0],i[1],c)&&(e=f<3?void 0:e,f=1);++h<f;)s=i[h],s&&n(t,s,e);return t})}var r=n(109),u=n(117),f=n(99);t.exports=i},{109:109,117:117,99:99}],111:[function(n,t){function i(n){return function(t,i,u){for(var e,o=r(t),s=u(t),h=s.length,f=n?h:-1;n?f--:++f<h;)if(e=s[f],i(o[e],e,o)===!1)break;return t}}var r=n(121);t.exports=i},{121:121}],112:[function(n,t){var i=n(108),r=i("length");t.exports=r},{108:108}],113:[function(n,t){function i(n,t){var i=null==n?void 0:n[t];if(r(i))return i}var r=n(125);t.exports=i},{125:125}],114:[function(n,t){function i(n){return null!=n&&u(r(n))}var r=n(112),u=n(118);t.exports=i},{112:112,118:118}],115:[function(n,t){var i=function(){try{Object({toString:0}+"")}catch(n){return function(){return!1}}return function(n){return"function"!=typeof n.toString&&"string"==typeof(n+"")}}();t.exports=i},{}],116:[function(n,t){function i(n,t){return n="number"==typeof n||r.test(n)?+n:-1,t=null==t?u:t,n>-1&&n%1==0&&n<t}var r=/^\d+$/,u=9007199254740991;t.exports=i},{}],117:[function(n,t){function i(n,t,i){var o,e;return f(i)?(o=typeof t,"number"==o?r(i)&&u(t,i.length):"string"==o&&t in i)?(e=i[t],n===n?n===e:e!==e):!1:!1}var r=n(114),u=n(116),f=n(126);t.exports=i},{114:114,116:116,126:126}],118:[function(n,t){function i(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=r}var r=9007199254740991;t.exports=i},{}],119:[function(n,t){function i(n){return!!n&&"object"==typeof n}t.exports=i},{}],120:[function(n,t){function i(n){for(var t,h=s(n),l=h.length,i=l&&n.length,y=!!i&&e(i)&&(u(n)||r(n)||o(n)),a=-1,v=[];++a<l;)t=h[a],(y&&f(t,i)||c.call(n,t))&&v.push(t);return v}var r=n(122),u=n(123),f=n(116),e=n(118),o=n(128),s=n(132),h=Object.prototype,c=h.hasOwnProperty;t.exports=i},{116:116,118:118,122:122,123:123,128:128,132:132}],121:[function(n,t){function i(n){if(f.unindexedChars&&u(n)){for(var t=-1,e=n.length,i=Object(n);++t<e;)i[t]=n.charAt(t);return i}return r(n)?n:Object(n)}var r=n(126),u=n(128),f=n(134);t.exports=i},{126:126,128:128,134:134}],122:[function(n,t){function r(n){return f(n)&&u(n)&&e.call(n,"callee")&&!o.call(n,"callee")}var u=n(114),f=n(119),i=Object.prototype,e=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=r},{114:114,119:119}],123:[function(n,t){var i=n(113),r=n(118),u=n(119),f="[object Array]",e=Object.prototype,o=e.toString,s=i(Array,"isArray"),h=s||function(n){return u(n)&&r(n.length)&&o.call(n)==f};t.exports=h},{113:113,118:118,119:119}],124:[function(n,t){function i(n){return r(n)&&e.call(n)==u}var r=n(126),u="[object Function]",f=Object.prototype,e=f.toString;t.exports=i},{126:126}],125:[function(n,t){function u(n){return null!=n&&(f(n)?r.test(i.call(n)):o(n)&&(e(n)?r:s).test(n))}var f=n(124),e=n(115),o=n(119),s=/^\[object .+?Constructor\]$/,h=Object.prototype,i=Function.prototype.toString,c=h.hasOwnProperty,r=RegExp("^"+i.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=u},{115:115,119:119,124:124}],126:[function(n,t){function i(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}t.exports=i},{}],127:[function(n,t){function f(n){var u,t;return!s(n)||l.call(n)!=c||o(n)||e(n)||!i.call(n,"constructor")&&(u=n.constructor,"function"==typeof u&&!(u instanceof u))?!1:h.ownLast?(r(n,function(n,r,u){return t=i.call(u,r),!1}),t!==!1):(r(n,function(n,i){t=i}),void 0===t||i.call(n,t))}var r=n(105),e=n(122),o=n(115),s=n(119),h=n(134),c="[object Object]",u=Object.prototype,i=u.hasOwnProperty,l=u.toString;t.exports=f},{105:105,115:115,119:119,122:122,134:134}],128:[function(n,t){function i(n){return"string"==typeof n||r(n)&&e.call(n)==u}var r=n(119),u="[object String]",f=Object.prototype,e=f.toString;t.exports=i},{119:119}],129:[function(n,t){function f(n){return o(n)&&e(n.length)&&!!i[u.call(n)]}var e=n(118),o=n(119),i={},r,u;i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0;i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;r=Object.prototype;u=r.toString;t.exports=f},{118:118,119:119}],130:[function(n,t){function i(n){return r(n,u(n))}var r=n(103),u=n(132);t.exports=i},{103:103,132:132}],131:[function(n,t){var u=n(113),f=n(114),e=n(126),i=n(120),o=n(134),r=u(Object,"keys"),s=r?function(n){var t=null==n?void 0:n.constructor;return"function"==typeof t&&t.prototype===n||("function"==typeof n?o.enumPrototypes:f(n))?i(n):e(n)?r(n):[]}:i;t.exports=s},{113:113,114:114,120:120,126:126,134:134}],132:[function(n,t){function a(n){var a,t,rt,ot,ut;if(null==n)return[];k(n)||(n=Object(n));a=n.length;a=a&&b(a)&&(p(n)||y(n)||d(n))&&a||0;for(var ft=n.constructor,tt=-1,it=s(ft)&&ft.prototype||r,et=it===n,v=Array(a),st=a>0,ht=f.enumErrorProps&&(n===l||n instanceof Error),ct=f.enumPrototypes&&s(n);++tt<a;)v[tt]=tt+"";for(t in n)ct&&"prototype"==t||ht&&("message"==t||"name"==t)||st&&w(t,a)||"constructor"==t&&(et||!u.call(n,t))||v.push(t);if(f.nonEnumShadows&&n!==r)for(rt=n===g?c:n===l?h:nt.call(n),ot=i[rt]||i[e],rt==e&&(it=r),a=o.length;a--;)t=o[a],ut=ot[t],et&&ut||(ut?!u.call(n,t):n[t]===it[t])||v.push(t);return v}var v=n(102),y=n(122),p=n(123),s=n(124),w=n(116),b=n(118),k=n(126),d=n(128),f=n(134),h="[object Error]",e="[object Object]",c="[object String]",o=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],l=Error.prototype,r=Object.prototype,g=String.prototype,u=r.hasOwnProperty,nt=r.toString,i={};i["[object Array]"]=i["[object Date]"]=i["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0};i["[object Boolean]"]=i[c]={constructor:!0,toString:!0,valueOf:!0};i[h]=i["[object Function]"]=i["[object RegExp]"]={constructor:!0,toString:!0};i[e]={constructor:!0};v(o,function(n){var t,r;for(t in i)u.call(i,t)&&(r=i[t],r[n]=u.call(r,n))});t.exports=a},{102:102,116:116,118:118,122:122,123:123,124:124,126:126,128:128,134:134}],133:[function(n,t){var i=n(106),r=n(110),u=r(i);t.exports=u},{106:106,110:110}],134:[function(n,t){var f=Array.prototype,u=Error.prototype,e=Object.prototype,r=e.propertyIsEnumerable,o=f.splice,i={};!function(n){var t=function(){this.x=n},e={0:n,length:n},f=[],s;t.prototype={valueOf:n,y:n};for(s in new t)f.push(s);i.enumErrorProps=r.call(u,"message")||r.call(u,"name");i.enumPrototypes=r.call(t,"prototype");i.nonEnumShadows=!/valueOf/.test(f);i.ownLast="x"!=f[0];i.spliceObjects=(o.call(e,0,1),!e[0]);i.unindexedChars="x"[0]+Object("x")[0]!="xx"}(1,0);t.exports=i},{}],135:[function(n,t){function i(n){return n}t.exports=i},{}],136:[function(n,t){"use strict";var i=n(143);t.exports=function(){var r,u,f;if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var n={},t=Symbol("test"),e=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(e))return!1;r=42;n[t]=r;for(t in n)return!1;return 0!==i(n).length?!1:"function"==typeof Object.keys&&0!==Object.keys(n).length?!1:"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(n).length?!1:(u=Object.getOwnPropertySymbols(n),1!==u.length||u[0]!==t)?!1:Object.prototype.propertyIsEnumerable.call(n,t)?"function"==typeof Object.getOwnPropertyDescriptor&&(f=Object.getOwnPropertyDescriptor(n,t),f.value!==r||f.enumerable!==!0)?!1:!0:!1}},{143:143}],137:[function(n,t){"use strict";var e=n(143),i=n(142),o=function(n){return"undefined"!=typeof n&&null!==n},r=n(136)(),u=Object,s=i.call(Function.call,Array.prototype.push),f=i.call(Function.call,Object.prototype.propertyIsEnumerable),h=r?Object.getOwnPropertySymbols:null;t.exports=function(n){var l,c,t,a,v,w,i,y,p;if(!o(n))throw new TypeError("target must be an object");for(y=u(n),l=1;l<arguments.length;++l){if(c=u(arguments[l]),a=e(c),p=r&&(Object.getOwnPropertySymbols||h),p)for(v=p(c),t=0;t<v.length;++t)i=v[t],f(c,i)&&s(a,i);for(t=0;t<a.length;++t)i=a[t],w=c[i],f(c,i)&&(y[i]=w)}return y}},{136:136,142:142,143:143}],138:[function(n,t){"use strict";var u=n(139),f=n(137),i=n(145),e=n(146),r=i();u(r,{implementation:f,getPolyfill:i,shim:e});t.exports=r},{137:137,139:139,145:145,146:146}],139:[function(n,t){"use strict";var u=n(143),f=n(140),e="function"==typeof Symbol&&"symbol"==typeof Symbol(),o=Object.prototype.toString,s=function(n){return"function"==typeof n&&"[object Function]"===o.call(n)},h=function(){var n={},t;try{Object.defineProperty(n,"x",{enumerable:!1,value:n});for(t in n)return!1;return n.x===n}catch(i){return!1}},i=Object.defineProperty&&h(),c=function(n,t,r,u){t in n&&(!s(u)||!u())||(i?Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):n[t]=r)},r=function(n,t){var r=arguments.length>2?arguments[2]:{},i=u(t);e&&(i=i.concat(Object.getOwnPropertySymbols(t)));f(i,function(i){c(n,i,t[i],r[i])})};r.supportsDescriptors=!!i;t.exports=r},{140:140,143:143}],140:[function(n,t){var i=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(n,t,u){var e,f,o;if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");if(e=n.length,e===+e)for(f=0;f<e;f++)t.call(u,n[f],f,n);else for(o in n)i.call(n,o)&&t.call(u,n[o],o,n)}},{}],141:[function(n,t){var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,u=Object.prototype.toString,f="[object Function]";t.exports=function(n){var t=this,o;if("function"!=typeof t||u.call(t)!==f)throw new TypeError(r+t);for(var e,s=i.call(arguments,1),l=function(){if(this instanceof e){var r=t.apply(this,s.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(n,s.concat(i.call(arguments)))},a=Math.max(0,t.length-s.length),c=[],h=0;h<a;h++)c.push("$"+h);return(e=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),t.prototype)&&(o=function(){},o.prototype=t.prototype,e.prototype=new o,o.prototype=null),e}},{}],142:[function(n,t){var i=n(141);t.exports=Function.prototype.bind||i},{141:141}],143:[function(n,t){"use strict";var i=Object.prototype.hasOwnProperty,e=Object.prototype.toString,h=Array.prototype.slice,o=n(144),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(n){var t=n.constructor;return t&&t.prototype===n},a={$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},v=function(){if("undefined"==typeof window)return!1;for(var n in window)try{if(!a["$"+n]&&i.call(window,n)&&null!==window[n]&&"object"==typeof window[n])try{f(window[n])}catch(t){return!0}}catch(t){return!0}return!1}(),y=function(n){if("undefined"==typeof window||!v)return f(n);try{return f(n)}catch(t){return!1}},u=function(n){var a=null!==n&&"object"==typeof n,v="[object Function]"===e.call(n),p=o(n),k=a&&"[object String]"===e.call(n),u=[],w,f,s,h,b,t;if(!a&&!v&&!p)throw new TypeError("Object.keys called on a non-object");if(w=l&&v,k&&n.length>0&&!i.call(n,0))for(f=0;f<n.length;++f)u.push(String(f));if(p&&n.length>0)for(s=0;s<n.length;++s)u.push(String(s));else for(h in n)w&&"prototype"===h||!i.call(n,h)||u.push(String(h));if(c)for(b=y(n),t=0;t<r.length;++t)b&&"constructor"===r[t]||!i.call(n,r[t])||u.push(r[t]);return u};u.shim=function(){var n,t;return Object.keys?(n=function(){return 2===(Object.keys(arguments)||"").length}(1,2),n||(t=Object.keys,Object.keys=function(n){return t(o(n)?h.call(n):n)})):Object.keys=u,Object.keys||u};t.exports=u},{144:144}],144:[function(n,t){"use strict";var i=Object.prototype.toString;t.exports=function(n){var r=i.call(n),t="[object Arguments]"===r;return t||(t="[object Array]"!==r&&null!==n&&"object"==typeof n&&"number"==typeof n.length&&n.length>=0&&"[object Function]"===i.call(n.callee)),t}},{}],145:[function(n,t){"use strict";var i=n(137),r=function(){var f,i,e;if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",t=r.split(""),u={},n=0;n<t.length;++n)u[t[n]]=t[n];f=Object.assign({},u);i="";for(e in f)i+=e;return r!==i},u=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch(t){return"y"===n[1]}return!1};t.exports=function(){return Object.assign?r()?i:u()?i:Object.assign:i}},{137:137}],146:[function(n,t){"use strict";var i=n(139),r=n(145);t.exports=function(){var n=r();return i(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n}},{139:139,145:145}],147:[function(n,t){function i(n,t){var i,r=null;try{i=JSON.parse(n,t)}catch(u){r=u}return[r,i]}t.exports=i},{}],148:[function(n,t){function i(n){return n.replace(/\n\r?\s*/g,"")}t.exports=function(n){for(var r="",t=0;t<arguments.length;t++)r+=i(n[t])+(arguments[t+1]||"");return r}},{}],149:[function(n,t){"use strict";function e(n,t){for(var i=0;i<n.length;i++)t(n[i])}function o(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function r(n,t,i){var r=n;return c(t)?(i=t,"string"==typeof n&&(r={uri:n})):r=a(t,{uri:n}),r.callback=i,r}function i(n,t,i){return t=r(n,t,i),u(t)}function u(n){function d(){4===t.readyState&&p()}function g(){var n=void 0;if(t.response?n=t.response:"text"!==t.responseType&&t.responseType||(n=t.responseText||t.responseXML),k)try{n=JSON.parse(n)}catch(i){}return n}function s(n){clearTimeout(a);n instanceof Error||(n=new Error(""+(n||"Unknown XMLHttpRequest Error")));n.statusCode=0;u(n,c)}function p(){var r,i,e;w||(clearTimeout(a),r=n.useXDR&&void 0===t.status?200:1223===t.status?204:t.status,i=c,e=null,0!==r?(i={body:g(),statusCode:r,method:f,headers:{},url:v,rawRequest:t},t.getAllResponseHeaders&&(i.headers=l(t.getAllResponseHeaders()))):e=new Error("Internal XMLHttpRequest Error"),u(e,i,i.body))}var u=n.callback,c,t;if("undefined"==typeof u)throw new Error("callback argument missing");u=h(u);c={body:void 0,headers:{},statusCode:0,method:f,url:v,rawRequest:t};t=n.xhr||null;t||(t=n.cors||n.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var e,w,a,v=t.url=n.uri||n.url,f=t.method=n.method||"GET",b=n.body||n.data||null,r=t.headers=n.headers||{},y=!!n.sync,k=!1;if("json"in n&&(k=!0,r.accept||r.Accept||(r.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(r["content-type"]||r["Content-Type"]||(r["Content-Type"]="application/json"),b=JSON.stringify(n.json))),t.onreadystatechange=d,t.onload=p,t.onerror=s,t.onprogress=function(){},t.ontimeout=s,t.open(f,v,!y,n.username,n.password),y||(t.withCredentials=!!n.withCredentials),!y&&n.timeout>0&&(a=setTimeout(function(){w=!0;t.abort("timeout");var n=new Error("XMLHttpRequest timeout");n.code="ETIMEDOUT";s(n)},n.timeout)),t.setRequestHeader)for(e in r)r.hasOwnProperty(e)&&t.setRequestHeader(e,r[e]);else if(n.headers&&!o(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(t.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(t),t.send(b),t}function s(){}var f=n(95),h=n(151),c=n(150),l=n(154),a=n(155);t.exports=i;i.XMLHttpRequest=f.XMLHttpRequest||s;i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:f.XDomainRequest;e(["get","put","post","patch","head","delete"],function(n){i["delete"===n?"del":n]=function(t,i,f){return i=r(t,i,f),i.method=n.toUpperCase(),u(i)}})},{150:150,151:151,154:154,155:155,95:95}],150:[function(n,t){function i(n){var t=r.call(n);return"[object Function]"===t||"function"==typeof n&&"[object RegExp]"!==t||"undefined"!=typeof window&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}t.exports=i;var r=Object.prototype.toString},{}],151:[function(n,t){function i(n){var t=!1;return function(){if(!t)return t=!0,n.apply(this,arguments)}}t.exports=i;i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0})})},{}],152:[function(n,t){function u(n,t,i){if(!s(t))throw new TypeError("iterator must be a function");arguments.length<3&&(i=this);"[object Array]"===r.call(n)?f(n,t,i):"string"==typeof n?e(n,t,i):o(n,t,i)}function f(n,t,r){for(var u=0,f=n.length;u<f;u++)i.call(n,u)&&t.call(r,n[u],u,n)}function e(n,t,i){for(var r=0,u=n.length;r<u;r++)t.call(i,n.charAt(r),r,n)}function o(n,t,r){for(var u in n)i.call(n,u)&&t.call(r,n[u],u,n)}var s=n(150),r,i;t.exports=u;r=Object.prototype.toString;i=Object.prototype.hasOwnProperty},{150:150}],153:[function(n,t,i){function r(n){return n.replace(/^\s*|\s*$/g,"")}i=t.exports=r;i.left=function(n){return n.replace(/^\s*/,"")};i.right=function(n){return n.replace(/\s*$/,"")}},{}],154:[function(n,t){var i=n(153),r=n(152),u=function(n){return"[object Array]"===Object.prototype.toString.call(n)};t.exports=function(n){if(!n)return{};var t={};return r(i(n).split("\n"),function(n){var e=n.indexOf(":"),r=i(n.slice(0,e)).toLowerCase(),f=i(n.slice(e+1));"undefined"==typeof t[r]?t[r]=f:u(t[r])?t[r].push(f):t[r]=[t[r],f]}),t}},{152:152,153:153}],155:[function(n,t){function i(){for(var t,i,u={},n=0;n<arguments.length;n++){t=arguments[n];for(i in t)r.call(t,i)&&(u[i]=t[i])}return u}t.exports=i;var r=Object.prototype.hasOwnProperty},{}]},{},[93])(93)}),function(n){var t=n.vttjs={},i=t.VTTCue,r=t.VTTRegion,u=n.VTTCue,f=n.VTTRegion;t.shim=function(){t.VTTCue=i;t.VTTRegion=r};t.restore=function(){t.VTTCue=u;t.VTTRegion=f}}(this),function(n,t){function f(n){if("string"!=typeof n)return!1;var t=o[n.toLowerCase()];return!!t&&n.toLowerCase()}function r(n){if("string"!=typeof n)return!1;var t=s[n.toLowerCase()];return!!t&&n.toLowerCase()}function i(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)n[r]=i[r]}return n}function u(n,t,u){var o=this,h=/MSIE\s8\.0/.test(navigator.userAgent),s={};h?o=document.createElement("custom"):s.enumerable=!0;o.hasBeenReset=!1;var c="",l=!1,a=n,v=t,y=u,p=null,w="",b=!0,k="auto",d="start",g=50,nt="middle",tt=50,it="middle";if(Object.defineProperty(o,"id",i({},s,{get:function(){return c},set:function(n){c=""+n}})),Object.defineProperty(o,"pauseOnExit",i({},s,{get:function(){return l},set:function(n){l=!!n}})),Object.defineProperty(o,"startTime",i({},s,{get:function(){return a},set:function(n){if("number"!=typeof n)throw new TypeError("Start time must be set to a number.");a=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",i({},s,{get:function(){return v},set:function(n){if("number"!=typeof n)throw new TypeError("End time must be set to a number.");v=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"text",i({},s,{get:function(){return y},set:function(n){y=""+n;this.hasBeenReset=!0}})),Object.defineProperty(o,"region",i({},s,{get:function(){return p},set:function(n){p=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",i({},s,{get:function(){return w},set:function(n){var t=f(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");w=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",i({},s,{get:function(){return b},set:function(n){b=!!n;this.hasBeenReset=!0}})),Object.defineProperty(o,"line",i({},s,{get:function(){return k},set:function(n){if("number"!=typeof n&&n!==e)throw new SyntaxError("An invalid number or illegal string was specified.");k=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",i({},s,{get:function(){return d},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");d=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"position",i({},s,{get:function(){return g},set:function(n){if(n<0||n>100)throw new Error("Position must be between 0 and 100.");g=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",i({},s,{get:function(){return nt},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");nt=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"size",i({},s,{get:function(){return tt},set:function(n){if(n<0||n>100)throw new Error("Size must be between 0 and 100.");tt=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"align",i({},s,{get:function(){return it},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");it=t;this.hasBeenReset=!0}})),o.displayState=void 0,h)return o}var e="auto",o={"":!0,lr:!0,rl:!0},s={start:!0,middle:!0,end:!0,left:!0,right:!0};u.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};n.VTTCue=n.VTTCue||u;t.VTTCue=u}(this,this.vttjs||{}),function(n,t){function u(n){if("string"!=typeof n)return!1;var t=f[n.toLowerCase()];return!!t&&n.toLowerCase()}function i(n){return"number"==typeof n&&n>=0&&n<=100}function r(){var n=100,t=3,r=0,f=100,e=0,o=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");n=t}},lines:{enumerable:!0,get:function(){return t},set:function(n){if("number"!=typeof n)throw new TypeError("Lines must be set to a number.");t=n}},regionAnchorY:{enumerable:!0,get:function(){return f},set:function(n){if(!i(n))throw new Error("RegionAnchorX must be between 0 and 100.");f=n}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(n){if(!i(n))throw new Error("RegionAnchorY must be between 0 and 100.");r=n}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(n){if(!i(n))throw new Error("ViewportAnchorY must be between 0 and 100.");o=n}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(n){if(!i(n))throw new Error("ViewportAnchorX must be between 0 and 100.");e=n}},scroll:{enumerable:!0,get:function(){return s},set:function(n){var t=u(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");s=t}}})}var f={"":!0,up:!0};n.VTTRegion=n.VTTRegion||r;t.VTTRegion=r}(this,this.vttjs||{}),function(n){function i(n,t){this.name="ParsingError";this.code=n.code;this.message=t||n.message}function h(n){function i(n,t,i,r){return 3600*(0|n)+60*(0|t)+(0|i)+(0|r)/1e3}var t=n.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return t?t[3]?i(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?i(t[1],t[2],0,t[4]):i(0,t[1],t[2],t[4]):null}function u(){this.values=s(null)}function o(n,t,i,r){var f=r?n.split(r):[n],e,u,o,s;for(e in f)"string"==typeof f[e]&&(u=f[e].split(i),2===u.length&&(o=u[0],s=u[1],t(o,s)))}function v(n,t,r){function e(){var t=h(n);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+s);return n=n.replace(/^[^\sa-zA-Z-]+/,""),t}function c(n,t){var i=new u;o(n,function(n,t){var f,u,e;switch(n){case"region":for(f=r.length-1;f>=0;f--)if(r[f].id===t){i.set(n,r[f].region);break}break;case"vertical":i.alt(n,t,["rl","lr"]);break;case"line":u=t.split(",");e=u[0];i.integer(n,e);i.percent(n,e)?i.set("snapToLines",!1):null;i.alt(n,e,["auto"]);2===u.length&&i.alt("lineAlign",u[1],["start","middle","end"]);break;case"position":u=t.split(",");i.percent(n,u[0]);2===u.length&&i.alt("positionAlign",u[1],["start","middle","end"]);break;case"size":i.percent(n,t);break;case"align":i.alt(n,t,["start","middle","end","left","right"])}},/:/,/\s/);t.region=i.get("region",null);t.vertical=i.get("vertical","");t.line=i.get("line","auto");t.lineAlign=i.get("lineAlign","start");t.snapToLines=i.get("snapToLines",!0);t.size=i.get("size",100);t.align=i.get("align","middle");t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align);t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function f(){n=n.replace(/^\s+/,"")}var s=n;if(f(),t.startTime=e(),f(),"-->"!==n.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+s);n=n.substr(3);f();t.endTime=e();f();c(n,t)}function c(n,t){function c(){function i(n){return t=t.substr(n.length),n}if(!t)return null;var n=t.match(/^([^<]*)(<[^>]+>?)?/);return i(n[1]?n[1]:n[2])}function a(n){return b[n]}function v(n){for(;i=n.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)n=n.replace(i[0],a);return n}function y(n,t){return!l[t.localName]||l[t.localName]===n.localName}function p(t,i){var u=k[t],r,f;return u?(r=n.document.createElement(u),r.localName=u,f=d[t],f&&i&&(r[f]=i.trim()),r):null}for(var u,o,i,r,s=n.document.createElement("div"),f=s,e=[];null!==(r=c());)if("<"!==r[0])f.appendChild(n.document.createTextNode(v(r)));else{if("/"===r[1]){e.length&&e[e.length-1]===r.substr(2).replace(">","")&&(e.pop(),f=f.parentNode);continue}if(o=h(r.substr(1,r.length-2)),o){u=n.document.createProcessingInstruction("timestamp",o);f.appendChild(u);continue}if(i=r.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/),!i)continue;if(u=p(i[1],i[3]),!u)continue;if(!y(f,u))continue;i[2]&&(u.className=i[2].substr(1).replace("."," "));e.push(i[1]);f.appendChild(u);f=u}return s}function y(n){function f(n,t){for(var i=t.childNodes.length-1;i>=0;i--)n.push(t.childNodes[i])}function r(n){var t,i,u;return!n||!n.length?null:(t=n.pop(),i=t.textContent||t.innerText,i)?(u=i.match(/^.*(\n|\r)/),u?(n.length=0,u[0]):i):"ruby"===t.tagName?r(n):t.childNodes?(f(n,t),r(n)):void 0}var e,o=[],u="",t,i;if(!n||!n.childNodes)return"ltr";for(f(o,n);u=r(o);)for(t=0;t<u.length;t++)for(e=u.charCodeAt(t),i=0;i<a.length;i++)if(a[i]===e)return"rtl";return"ltr"}function p(n){if("number"==typeof n.line&&(n.snapToLines||n.line>=0&&n.line<=100))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;for(var r=n.track,i=r.textTrackList,u=0,t=0;t<i.length&&i[t]!==r;t++)"showing"===i[t].mode&&u++;return++u*-1}function f(){}function e(n,t,i){var e=/MSIE\s8\.0/.test(navigator.userAgent),o="rgba(255, 255, 255, 1)",s="rgba(0, 0, 0, 0.8)",r,u;e&&(o="rgb(255, 255, 255)",s="rgb(0, 0, 0)");f.call(this);this.cue=t;this.cueDiv=c(n,t.text);r={color:o,backgroundColor:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};e||(r.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",r.unicodeBidi="plaintext");this.applyStyles(r,this.cueDiv);this.div=n.document.createElement("div");r={textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"};e||(r.direction=y(this.cueDiv),r.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext");this.applyStyles(r);this.div.appendChild(this.cueDiv);u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")});this.move=function(n){this.applyStyles({top:this.formatStyle(n.top,"px"),bottom:this.formatStyle(n.bottom,"px"),left:this.formatStyle(n.left,"px"),right:this.formatStyle(n.right,"px"),height:this.formatStyle(n.height,"px"),width:this.formatStyle(n.width,"px")})}}function t(n){var i,r,f,u,e=/MSIE\s8\.0/.test(navigator.userAgent),t;n.div&&(r=n.div.offsetHeight,f=n.div.offsetWidth,u=n.div.offsetTop,t=(t=n.div.childNodes)&&(t=t[0])&&t.getClientRects&&t.getClientRects(),n=n.div.getBoundingClientRect(),i=t?Math.max(t[0]&&t[0].height||0,n.height/t.length):0);this.left=n.left;this.right=n.right;this.top=n.top||u;this.height=n.height||r;this.bottom=n.bottom||u+(n.height||r);this.width=n.width||f;this.lineHeight=void 0!==i?i:n.lineHeight;e&&!this.lineHeight&&(this.lineHeight=13)}function w(n,i,r,u){function w(n,i){for(var e,o,s=new t(n),h=1,f=0;f<i.length;f++){for(;n.overlapsOppositeAxis(r,i[f])||n.within(r)&&n.overlapsAny(u);)n.move(i[f]);if(n.within(r))return n;e=n.intersectPercentage(r);h>e&&(o=new t(n),h=e);n=new t(s)}return o||s}var h=new t(i),o=i.cue,e=p(o),f=[],c,a,y;if(o.snapToLines){switch(o.vertical){case"":f=["+y","-y"];c="height";break;case"rl":f=["+x","-x"];c="width";break;case"lr":f=["-x","+x"];c="width"}var l=h.lineHeight,s=l*Math.round(e),v=r[c]+l,b=f[0];Math.abs(s)>v&&(s=s<0?-1:1,s*=Math.ceil(v/l)*l);e<0&&(s+=""===o.vertical?r.height:r.width,f=f.reverse());h.move(b,s)}else{a=h.lineHeight/r.height*100;switch(o.lineAlign){case"middle":e-=a/2;break;case"end":e-=a}switch(o.vertical){case"":i.applyStyles({top:i.formatStyle(e,"%")});break;case"rl":i.applyStyles({left:i.formatStyle(e,"%")});break;case"lr":i.applyStyles({right:i.formatStyle(e,"%")})}f=["+y","-x","+x","-y"];h=new t(i)}y=w(h,f);i.move(y.toCSSCompatValues(r))}function r(){}var s=Object.create||function(){function n(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=t,new n}}();i.prototype=s(Error.prototype);i.prototype.constructor=i;i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};u.prototype={set:function(n,t){this.get(n)||""===t||(this.values[n]=t)},get:function(n,t,i){return i?this.has(n)?this.values[n]:t[i]:this.has(n)?this.values[n]:t},has:function(n){return n in this.values},alt:function(n,t,i){for(var r=0;r<i.length;++r)if(t===i[r]){this.set(n,t);break}},integer:function(n,t){/^-?\d+$/.test(t)&&this.set(n,parseInt(t,10))},percent:function(n,t){var i;return!!((i=t.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(n,t),!0)}};var b={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},k={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={v:"title",lang:"lang"},l={rt:"ruby"},a=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];f.prototype.applyStyles=function(n,t){t=t||this.div;for(var i in n)n.hasOwnProperty(i)&&(t.style[i]=n[i])};f.prototype.formatStyle=function(n,t){return 0===n?0:n+t};e.prototype=s(f.prototype);e.prototype.constructor=e;t.prototype.move=function(n,t){switch(t=void 0!==t?t:this.lineHeight,n){case"+x":this.left+=t;this.right+=t;break;case"-x":this.left-=t;this.right-=t;break;case"+y":this.top+=t;this.bottom+=t;break;case"-y":this.top-=t;this.bottom-=t}};t.prototype.overlaps=function(n){return this.left<n.right&&this.right>n.left&&this.top<n.bottom&&this.bottom>n.top};t.prototype.overlapsAny=function(n){for(var t=0;t<n.length;t++)if(this.overlaps(n[t]))return!0;return!1};t.prototype.within=function(n){return this.top>=n.top&&this.bottom<=n.bottom&&this.left>=n.left&&this.right<=n.right};t.prototype.overlapsOppositeAxis=function(n,t){switch(t){case"+x":return this.left<n.left;case"-x":return this.right>n.right;case"+y":return this.top<n.top;case"-y":return this.bottom>n.bottom}};t.prototype.intersectPercentage=function(n){var t=Math.max(0,Math.min(this.right,n.right)-Math.max(this.left,n.left)),i=Math.max(0,Math.min(this.bottom,n.bottom)-Math.max(this.top,n.top)),r=t*i;return r/(this.height*this.width)};t.prototype.toCSSCompatValues=function(n){return{top:this.top-n.top,bottom:n.bottom-this.bottom,left:this.left-n.left,right:n.right-this.right,height:this.height,width:this.width}};t.getSimpleBoxPosition=function(n){var t=n.div?n.div.offsetHeight:n.tagName?n.offsetHeight:0,r=n.div?n.div.offsetWidth:n.tagName?n.offsetWidth:0,i=n.div?n.div.offsetTop:n.tagName?n.offsetTop:0;return n=n.div?n.div.getBoundingClientRect():n.tagName?n.getBoundingClientRect():n,{left:n.left,right:n.right,top:n.top||i,height:n.height||t,bottom:n.bottom||i+(n.height||t),width:n.width||r}};r.StringDecoder=function(){return{decode:function(n){if(!n)return"";if("string"!=typeof n)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))}}};r.convertCueToDOMTree=function(n,t){return n&&t?c(n,t):null};var g=.05,nt="sans-serif",tt="1.5%";r.processCues=function(n,i,r){function h(n){for(var t=0;t<n.length;t++)if(n[t].hasBeenReset||!n[t].displayState)return!0;return!1}var u,f;if(!n||!i||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);if(u=n.document.createElement("div"),u.style.position="absolute",u.style.left="0",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.margin=tt,r.appendChild(u),h(i)){var o=[],s=t.getSimpleBoxPosition(u),c=Math.round(s.height*g*100)/100,l={font:c+"px "+nt};!function(){for(var r,f,h=0;h<i.length;h++)f=i[h],r=new e(n,f,l),u.appendChild(r.div),w(n,r,s,o),f.displayState=r.div,o.push(t.getSimpleBoxPosition(r))}()}else for(f=0;f<i.length;f++)u.appendChild(i[f].displayState)};r.Parser=function(n,t,i){i||(i=t,t={});t||(t={});this.window=n;this.vttjs=t;this.state="INITIAL";this.buffer="";this.decoder=i||new TextDecoder("utf8");this.regionList=[]};r.Parser.prototype={reportOrThrowError:function(n){if(!(n instanceof i))throw n;this.onparsingerror&&this.onparsingerror(n)},parse:function(n){function s(){for(var r,i=t.buffer,n=0;n<i.length&&"\r"!==i[n]&&"\n"!==i[n];)++n;return r=i.substr(0,n),"\r"===i[n]&&++n,"\n"===i[n]&&++n,t.buffer=i.substr(n),r}function l(n){var i=new u,r;(o(n,function(n,t){var f,r;switch(n){case"id":i.set(n,t);break;case"width":i.percent(n,t);break;case"lines":i.integer(n,t);break;case"regionanchor":case"viewportanchor":if(f=t.split(","),2!==f.length)break;if(r=new u,r.percent("x",f[0]),r.percent("y",f[1]),!r.has("x")||!r.has("y"))break;i.set(n+"X",r.get("x"));i.set(n+"Y",r.get("y"));break;case"scroll":i.alt(n,t,["up"])}},/=/,/\s/),i.has("id"))&&(r=new(t.vttjs.VTTRegion||t.window.VTTRegion),r.width=i.get("width",100),r.lines=i.get("lines",3),r.regionAnchorX=i.get("regionanchorX",0),r.regionAnchorY=i.get("regionanchorY",100),r.viewportAnchorX=i.get("viewportanchorX",0),r.viewportAnchorY=i.get("viewportanchorY",100),r.scroll=i.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:i.get("id"),region:r}))}function a(n){o(n,function(n,t){switch(n){case"Region":l(t)}},/:/)}var t=this,r,e,f,c;n&&(t.buffer+=t.decoder.decode(n,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;if(r=s(),e=r.match(/^WEBVTT([ \t].*)?$/),!e||!e[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!1:r=s(),t.state){case"HEADER":/:/.test(r)?a(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",r.indexOf("-->")===-1){t.cue.id=r;continue}case"CUE":try{v(r,t.cue,t.regionList)}catch(h){t.reportOrThrowError(h);t.cue=null;t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":if(c=r.indexOf("-->")!==-1,!r||c&&(f=!0)){t.oncue&&t.oncue(t.cue);t.cue=null;t.state="ID";continue}t.cue.text&&(t.cue.text+="\n");t.cue.text+=r;continue;case"BADCUE":r||(t.state="ID");continue}}}catch(h){t.reportOrThrowError(h);"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue);t.cue=null;t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var n=this;try{if(n.buffer+=n.decoder.decode(),(n.cue||"HEADER"===n.state)&&(n.buffer+="\n\n",n.parse()),"INITIAL"===n.state)throw new i(i.Errors.BadSignature);}catch(t){n.reportOrThrowError(t)}return n.onflush&&n.onflush(),this}};n.WebVTT=r}(this,this.vttjs||{}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return ff.apply(null,arguments)}function bs(n){ff=n}function at(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function pi(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function ks(n){var t;for(t in n)return!1;return!0}function dt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function wi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function ef(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function vt(n,t){for(var i in t)l(t,i)&&(n[i]=t[i]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function rt(n,t,i,r){return lo(n,t,i,r,!0).utc()}function ds(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function u(n){return n._pf==null&&(n._pf=ds()),n._pf}function wr(n){if(n._isValid==null){var t=u(n),r=sf.call(t.parsedDateParts,function(n){return n!=null}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined),Object.isFrozen!=null&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function bi(n){var t=rt(NaN);return n!=null?vt(u(t),n):u(t).userInvalidated=!0,t}function b(n){return n===void 0}function br(n,t){var f,i,r;if(b(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),b(t._i)||(n._i=t._i),b(t._f)||(n._f=t._f),b(t._l)||(n._l=t._l),b(t._strict)||(n._strict=t._strict),b(t._tzm)||(n._tzm=t._tzm),b(t._isUTC)||(n._isUTC=t._isUTC),b(t._offset)||(n._offset=t._offset),b(t._pf)||(n._pf=u(t)),b(t._locale)||(n._locale=t._locale),ki.length>0)for(f in ki)i=ki[f],r=t[i],b(r)||(n[i]=r);return n}function hi(n){br(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));di===!1&&(di=!0,t.updateOffset(this),di=!1)}function yt(n){return n instanceof hi||n!=null&&n._isAMomentObject!=null}function k(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=k(t)),i}function hf(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function cf(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function d(n,i){var r=!0;return vt(function(){var e,u,f,o;if(t.deprecationHandler!=null&&t.deprecationHandler(null,n),r){for(e=[],f=0;f<arguments.length;f++){if(u="",typeof arguments[f]=="object"){u+="\n["+f+"] ";for(o in arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}cf(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function lf(n,i){t.deprecationHandler!=null&&t.deprecationHandler(n,i);kr[n]||(cf(i),kr[n]=!0)}function et(n){return n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function gs(n){var t,i;for(i in n)t=n[i],et(t)?this[i]=t:this["_"+i]=t;this._config=n;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function af(n,t){var r=vt({},n),i;for(i in t)l(t,i)&&(pi(n[i])&&pi(t[i])?(r[i]={},vt(r[i],n[i]),vt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in n)l(n,i)&&!l(t,i)&&pi(n[i])&&(r[i]=vt({},r[i]));return r}function dr(n){n!=null&&this.set(n)}function nh(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return et(r)?r.call(t,i):r}function th(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function ih(){return this._invalidDate}function rh(n){return this._ordinal.replace("%d",n)}function uh(n,t,i,r){var u=this._relativeTime[i];return et(u)?u(n,t,i,r):u.replace(/%d/i,n)}function fh(n,t){var i=this._relativeTime[n>0?"future":"past"];return et(i)?i(t):i.replace(/%s/i,t)}function p(n,t){var i=n.toLowerCase();ui[i]=ui[i+"s"]=ui[t]=n}function g(n){return typeof n=="string"?ui[n]||ui[n.toLowerCase()]:undefined}function gr(n){var r={},i,t;for(t in n)l(n,t)&&(i=g(t),i&&(r[i]=n[t]));return r}function w(n,t){nu[n]=t}function eh(n){var t=[],i;for(i in n)t.push({unit:i,priority:nu[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function fi(n,i){return function(r){return r!=null?(ne(this,n,r),t.updateOffset(this,i),this):gi(this,n)}}function gi(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function ne(n,t,i){n.isValid()&&n._d["set"+(n._isUTC?"UTC":"")+t](i)}function oh(n){return(n=g(n),et(this[n]))?this[n]():this}function sh(n,t){var r,i;if(typeof n=="object")for(n=gr(n),r=eh(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(n=g(n),et(this[n]))return this[n](t);return this}function ot(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(ei[n]=u);t&&(ei[t[0]]=function(){return ot(u.apply(this,arguments),t[1],t[2])});i&&(ei[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function hh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function ch(n){for(var t=n.match(te),i=0,r=t.length;i<r;i++)t[i]=ei[t[i]]?ei[t[i]]:hh(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=t[u]instanceof Function?t[u].call(i,n):t[u];return f}}function iu(n,t){return n.isValid()?(t=ie(t,n.localeData()),tu[t]=tu[t]||ch(t),tu[t](n)):n.localeData().invalidDate()}function ie(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(nr.lastIndex=0;i>=0&&nr.test(n);)n=n.replace(nr,r),nr.lastIndex=0,i-=1;return n}function i(n,t,i){fu[n]=et(t)?t:function(n){return n&&i?i:t}}function ah(n,t){return l(fu,n)?fu[n](t._strict,t._locale):new RegExp(vh(n))}function vh(n){return gt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function gt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),dt(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)er[n[i]]=r}function li(n,t){s(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function yh(n,t,i){t!=null&&l(er,n)&&er[n](t,i._a,i,n)}function eu(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function bh(n,t){return n?at(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ou).test(t)?"format":"standalone"][n.month()]:this._months}function kh(n,t){return n?at(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ou.test(t)?"format":"standalone"][n.month()]:this._monthsShort}function dh(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=rt([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?t==="MMM"?(r=v.call(this._shortMonthsParse,f),r!==-1?r:null):(r=v.call(this._longMonthsParse,f),r!==-1?r:null):t==="MMM"?(r=v.call(this._shortMonthsParse,f),r!==-1)?r:(r=v.call(this._longMonthsParse,f),r!==-1?r:null):(r=v.call(this._longMonthsParse,f),r!==-1)?r:(r=v.call(this._shortMonthsParse,f),r!==-1?r:null)}function gh(n,t,i){var r,u,f;if(this._monthsParseExact)return dh.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=rt([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function ce(n,t){var i;if(!n.isValid())return n;if(typeof t=="string")if(/^\d+$/.test(t))t=f(t);else if(t=n.localeData().monthsParse(t),!dt(t))return n;return i=Math.min(n.date(),eu(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function le(n){return n!=null?(ce(this,n),t.updateOffset(this,!0),this):gi(this,"Month")}function nc(){return eu(this.year(),this.month())}function tc(n){return this._monthsParseExact?(l(this,"_monthsRegex")||ye.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ae),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function ic(n){return this._monthsParseExact?(l(this,"_monthsRegex")||ye.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ve),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function ye(){function f(n,t){return t.length-n.length}for(var i=[],r=[],t=[],u,n=0;n<12;n++)u=rt([2e3,n]),i.push(this.monthsShort(u,"")),r.push(this.months(u,"")),t.push(this.months(u,"")),t.push(this.monthsShort(u,""));for(i.sort(f),r.sort(f),t.sort(f),n=0;n<12;n++)i[n]=gt(i[n]),r[n]=gt(r[n]);for(n=0;n<24;n++)t[n]=gt(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ai(n){return pe(n)?366:365}function pe(n){return n%4==0&&n%100!=0||n%400==0}function rc(){return pe(this.year())}function uc(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function or(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function sr(n,t,i){var r=7+t-i,u=(7+or(n,0,r).getUTCDay()-t)%7;return-u+r-1}function we(n,t,i,r,u){var s=(7+i-r)%7,h=sr(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=ai(e)+f):f>ai(n)?(e=n+1,o=f-ai(n)):(e=n,o=f),{year:e,dayOfYear:o}}function vi(n,t,i){var e=sr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+ti(u,t,i)):r>ti(n.year(),t,i)?(f=r-ti(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function ti(n,t,i){var r=sr(n,t,i),u=sr(n+1,t,i);return(ai(n)-r+u)/7}function fc(n){return vi(n,this._week.dow,this._week.doy).week}function ec(){return this._week.dow}function oc(){return this._week.doy}function sc(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function hc(n){var t=vi(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function cc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function lc(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function ac(n,t){return n?at(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:this._weekdays}function vc(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort}function yc(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin}function pc(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=rt([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=v.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=v.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=v.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=v.call(this._minWeekdaysParse,u),r!==-1)?r:(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function wc(n,t,i){var r,u,f;if(this._weekdaysParseExact)return pc.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=rt([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function bc(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=cc(n,this.localeData()),this.add(n-t,"d")):t}function kc(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function dc(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=lc(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function gc(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||hu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=no),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function nl(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||hu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=to),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function tl(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||hu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=io),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function hu(){function u(n,t){return t.length-n.length}for(var e=[],i=[],r=[],t=[],f,o,s,h,n=0;n<7;n++)f=rt([2e3,1]).day(n),o=this.weekdaysMin(f,""),s=this.weekdaysShort(f,""),h=this.weekdays(f,""),e.push(o),i.push(s),r.push(h),t.push(o),t.push(s),t.push(h);for(e.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=gt(i[n]),r[n]=gt(r[n]),t[n]=gt(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function cu(){return this.hours()%12||12}function il(){return this.hours()||24}function ro(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function uo(n,t){return t._meridiemParse}function rl(n){return(n+"").toLowerCase().charAt(0)==="p"}function ul(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function oo(n){return n?n.toLowerCase().replace("_","-"):n}function el(n){for(var r=0,i,t,f,u;r<n.length;){for(u=oo(n[r]).split("-"),i=u.length,t=oo(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=so(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&hf(u,t,!0)>=i-1)break;i--}r++}return null}function so(n){var t=null;if(!a[n]&&typeof module!="undefined"&&module&&module.exports)try{t=hr._abbr;require("./locale/"+n);oi(t)}catch(i){}return a[n]}function oi(n,t){var i;return n&&(i=b(t)?pt(n):lu(n,t),i&&(hr=i)),hr._abbr}function lu(n,t){if(t!==null){var i=eo;if(t.abbr=n,a[n]!=null)lf("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=a[n]._config;else if(t.parentLocale!=null)if(a[t.parentLocale]!=null)i=a[t.parentLocale]._config;else return yi[t.parentLocale]||(yi[t.parentLocale]=[]),yi[t.parentLocale].push({name:n,config:t}),null;return a[n]=new dr(af(i,t)),yi[n]&&yi[n].forEach(function(n){lu(n.name,n.config)}),oi(n),a[n]}return delete a[n],null}function ol(n,t){if(t!=null){var i,r=eo;a[n]!=null&&(r=a[n]._config);t=af(r,t);i=new dr(t);i.parentLocale=a[n];a[n]=i;oi(n)}else a[n]!=null&&(a[n].parentLocale!=null?a[n]=a[n].parentLocale:a[n]!=null&&delete a[n]);return a[n]}function pt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return hr;if(!at(n)){if(t=so(n),t)return t;n=[n]}return el(n)}function sl(){return yf(a)}function au(n){var i,t=n._a;return t&&u(n).overflow===-2&&(i=t[st]<0||t[st]>11?st:t[ut]<1||t[ut]>eu(t[tt],t[st])?ut:t[y]<0||t[y]>24||t[y]===24&&(t[it]!==0||t[ht]!==0||t[ni]!==0)?y:t[it]<0||t[it]>59?it:t[ht]<0||t[ht]>59?ht:t[ni]<0||t[ni]>999?ni:-1,u(n)._overflowDayOfYear&&(i<tt||i>ut)&&(i=ut),u(n)._overflowWeeks&&i===-1&&(i=ph),u(n)._overflowWeekday&&i===-1&&(i=wh),u(n).overflow=i),n}function ho(n){var t,r,o=n._i,i=hl.exec(o)||cl.exec(o),s,e,f,h;if(i){for(u(n).iso=!0,t=0,r=cr.length;t<r;t++)if(cr[t][1].exec(i[1])){e=cr[t][0];s=cr[t][2]!==!1;break}if(e==null){n._isValid=!1;return}if(i[3]){for(t=0,r=vu.length;t<r;t++)if(vu[t][1].exec(i[3])){f=(i[2]||" ")+vu[t][0];break}if(f==null){n._isValid=!1;return}}if(!s&&f!=null){n._isValid=!1;return}if(i[4])if(ll.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=e+(f||"")+(h||"");pu(n)}else n._isValid=!1}function vl(n){var i=al.exec(n._i);if(i!==null){n._d=new Date(+i[1]);return}ho(n);n._isValid===!1&&(delete n._isValid,t.createFromInputFallback(n))}function si(n,t,i){return n!=null?n:t!=null?t:i}function yl(n){var i=new Date(t.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function yu(n){var t,i,r=[],f,e;if(!n._d){for(f=yl(n),n._w&&n._a[ut]==null&&n._a[st]==null&&pl(n),n._dayOfYear&&(e=si(n._a[tt],f[tt]),n._dayOfYear>ai(e)&&(u(n)._overflowDayOfYear=!0),i=or(e,0,n._dayOfYear),n._a[st]=i.getUTCMonth(),n._a[ut]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=f[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[y]===24&&n._a[it]===0&&n._a[ht]===0&&n._a[ni]===0&&(n._nextDay=!0,n._a[y]=0);n._d=(n._useUTC?or:uc).apply(null,r);n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[y]=24)}}function pl(n){var t,o,f,i,r,e,h,s,l;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,e=4,o=si(t.GG,n._a[tt],vi(c(),1,4).year),f=si(t.W,1),i=si(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=vi(c(),r,e),o=si(t.gg,n._a[tt],l.year),f=si(t.w,l.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);f<1||f>ti(o,r,e)?u(n)._overflowWeeks=!0:s!=null?u(n)._overflowWeekday=!0:(h=we(o,f,i,r,e),n._a[tt]=h.year,n._dayOfYear=h.dayOfYear)}function pu(n){if(n._f===t.ISO_8601){ho(n);return}n._a=[];u(n).empty=!0;for(var i=""+n._i,r,f,s,c=i.length,h=0,o=ie(n._f,n._locale).match(te)||[],e=0;e<o.length;e++)f=o[e],r=(i.match(ah(f,n))||[])[0],r&&(s=i.substr(0,i.indexOf(r)),s.length>0&&u(n).unusedInput.push(s),i=i.slice(i.indexOf(r)+r.length),h+=r.length),ei[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),yh(f,r,n)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=c-h;i.length>0&&u(n).unusedInput.push(i);n._a[y]<=12&&u(n).bigHour===!0&&n._a[y]>0&&(u(n).bigHour=undefined);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[y]=wl(n._locale,n._a[y],n._meridiem);yu(n);au(n)}function wl(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function bl(n){var t,e,f,r,i;if(n._f.length===0){u(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=br({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],pu(t),wr(t))&&(i+=u(t).charsLeftOver,i+=u(t).unusedTokens.length*10,u(t).score=i,(f==null||i<f)&&(f=i,e=t));vt(n,e||t)}function kl(n){if(!n._d){var t=gr(n._i);n._a=ef([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});yu(n)}}function dl(n){var t=new hi(au(co(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function co(n){var t=n._i,i=n._f;return(n._locale=n._locale||pt(n._l),t===null||i===undefined&&t==="")?bi({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),yt(t))?new hi(au(t)):(wi(t)?n._d=t:at(i)?bl(n):i?pu(n):gl(n),wr(n)||(n._d=null),n)}function gl(n){var i=n._i;i===undefined?n._d=new Date(t.now()):wi(i)?n._d=new Date(i.valueOf()):typeof i=="string"?vl(n):at(i)?(n._a=ef(i.slice(0),function(n){return parseInt(n,10)}),yu(n)):typeof i=="object"?kl(n):dt(i)?n._d=new Date(i):t.createFromInputFallback(n)}function lo(n,t,i,r,u){var f={};return(i===!0||i===!1)&&(r=i,i=undefined),(pi(n)&&ks(n)||at(n)&&n.length===0)&&(n=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,dl(f)}function c(n,t,i,r){return lo(n,t,i,r,!1)}function yo(n,t){var r,i;if(t.length===1&&at(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function na(){var n=[].slice.call(arguments,0);return yo("isBefore",n)}function ta(){var n=[].slice.call(arguments,0);return yo("isAfter",n)}function lr(n){var t=gr(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=pt();this._bubble()}function wu(n){return n instanceof lr}function bu(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function wo(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+ot(~~(n/60),2)+t+ot(~~n%60,2)})}function ku(n,t){var i=(t||"").match(n);if(i===null)return null;var e=i[i.length-1]||[],r=(e+"").match(bo)||["-",0,0],u=+(r[1]*60)+f(r[2]);return u===0?0:r[0]==="+"?u:-u}function du(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(yt(n)||wi(n)?n.valueOf():c(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):c(n).local()}function gu(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function ia(n,i){var r=this._offset||0,u;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=ku(fr,n),n===null)return this}else Math.abs(n)<16&&(n=n*60);return!this._isUTC&&i&&(u=gu(this)),this._offset=n,this._isUTC=!0,u!=null&&this.add(u,"m"),r!==n&&(!i||this._changeInProgress?rs(this,wt(n-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:gu(this)}function ra(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function ua(n){return this.utcOffset(0,n)}function fa(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(gu(this),"m")),this}function ea(){if(this._tzm!=null)this.utcOffset(this._tzm);else if(typeof this._i=="string"){var n=ku(lh,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function oa(n){return this.isValid()?(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function sa(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ha(){var n,t;return b(this._isDSTShifted)?(n={},br(n,this),n=co(n),n._a?(t=n._isUTC?rt(n._a):c(n._a),this._isDSTShifted=this.isValid()&&hf(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function ca(){return this.isValid()?!this._isUTC:!1}function la(){return this.isValid()?this._isUTC:!1}function ko(){return this.isValid()?this._isUTC&&this._offset===0:!1}function wt(n,t){var i=n,r=null,u,e,o;return wu(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:dt(n)?(i={},t?i[t]=n:i.milliseconds=n):(r=go.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:f(r[ut])*u,h:f(r[y])*u,m:f(r[it])*u,s:f(r[ht])*u,ms:f(bu(r[ni]*1e3))*u}):(r=ns.exec(n))?(u=r[1]==="-"?-1:1,i={y:ii(r[2],u),M:ii(r[3],u),w:ii(r[4],u),d:ii(r[5],u),h:ii(r[6],u),m:ii(r[7],u),s:ii(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=aa(c(i.from),c(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),e=new lr(i),wu(n)&&l(n,"_locale")&&(e._locale=n._locale),e}function ii(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function ts(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function aa(n,t){var i;return(n.isValid()&&t.isValid())?(t=du(t,n),n.isBefore(t)?i=ts(n,t):(i=ts(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function is(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(lf(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=wt(i,r),rs(this,u,n),this}}function rs(n,i,r,u){var o=i._milliseconds,f=bu(i._days),e=bu(i._months);n.isValid()&&(u=u==null?!0:u,o&&n._d.setTime(n._d.valueOf()+o*r),f&&ne(n,"Date",gi(n,"Date")+f*r),e&&ce(n,gi(n,"Month")+e*r),u&&t.updateOffset(n,f||e))}function va(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ya(n,i){var u=n||c(),f=du(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(et(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))}function pa(){return new hi(this)}function wa(n,t){var i=yt(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=g(b(t)?"millisecond":t),t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function ba(n,t){var i=yt(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=g(b(t)?"millisecond":t),t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function ka(n,t,i,r){return r=r||"()",(r[0]==="("?this.isAfter(n,i):!this.isBefore(n,i))&&(r[1]===")"?this.isBefore(t,i):!this.isAfter(t,i))}function da(n,t){var i=yt(n)?n:c(n),r;return(this.isValid()&&i.isValid())?(t=g(t||"millisecond"),t==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function ga(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function nv(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function tv(n,t,i){var f,e,u,r;return this.isValid()?(f=du(n,this),!f.isValid())?NaN:(e=(f.utcOffset()-this.utcOffset())*6e4,t=g(t),t==="year"||t==="month"||t==="quarter"?(r=iv(this,f),t==="quarter"?r=r/3:t==="year"&&(r=r/12)):(u=this-f,r=t==="second"?u/1e3:t==="minute"?u/6e4:t==="hour"?u/36e5:t==="day"?(u-e)/864e5:t==="week"?(u-e)/6048e5:u),i?r:k(r)):NaN}function iv(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)||0}function rv(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function uv(){var n=this.clone().utc();return 0<n.year()&&n.year()<=9999?et(Date.prototype.toISOString)?this.toDate().toISOString():iu(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):iu(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function fv(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)}function ev(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=iu(this,n);return this.localeData().postformat(i)}function ov(n,t){return this.isValid()&&(yt(n)&&n.isValid()||c(n).isValid())?wt({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sv(n){return this.from(c(),n)}function hv(n,t){return this.isValid()&&(yt(n)&&n.isValid()||c(n).isValid())?wt({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cv(n){return this.to(c(),n)}function es(n){var t;return n===undefined?this._locale._abbr:(t=pt(n),t!=null&&(this._locale=t),this)}function os(){return this._locale}function lv(n){n=g(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"&&this.weekday(0),n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function av(n){return(n=g(n),n===undefined||n==="millisecond")?this:(n==="date"&&(n="day"),this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms"))}function vv(){return this._d.valueOf()-(this._offset||0)*6e4}function yv(){return Math.floor(this.valueOf()/1e3)}function pv(){return new Date(this.valueOf())}function wv(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function bv(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function kv(){return this.isValid()?this.toISOString():null}function dv(){return wr(this)}function gv(){return vt({},u(this))}function ny(){return u(this).overflow}function ty(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ar(n,t){r(0,[n,n.length],0,t)}function iy(n){return ss.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ry(n){return ss.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function uy(){return ti(this.year(),1,4)}function fy(){var n=this.localeData()._week;return ti(this.year(),n.dow,n.doy)}function ss(n,t,i,r,u){var f;return n==null?vi(this,r,u).year:(f=ti(n,r,u),t>f&&(t=f),ey.call(this,n,t,i,r,u))}function ey(n,t,i,r,u){var e=we(n,t,i,r,u),f=or(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function oy(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function sy(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function hy(n,t){t[ni]=f(("0."+n)*1e3)}function cy(){return this._isUTC?"UTC":""}function ly(){return this._isUTC?"Coordinated Universal Time":""}function ay(n){return c(n*1e3)}function vy(){return c.apply(null,arguments).parseZone()}function as(n){return n}function vr(n,t,i,r){var u=pt(),f=rt().set(r,t);return u[i](f,n)}function vs(n,t,i){if(dt(n)&&(t=n,n=undefined),n=n||"",t!=null)return vr(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=vr(n,r,i,"month");return u}function rf(n,t,i,r){var o,f,u,e;if(typeof n=="boolean"?(dt(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,dt(t)&&(i=t,t=undefined),t=t||""),o=pt(),f=n?o._week.dow:0,i!=null)return vr(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=vr(t,(u+f)%7,r,"day");return e}function yy(n,t){return vs(n,t,"months")}function py(n,t){return vs(n,t,"monthsShort")}function wy(n,t,i){return rf(n,t,i,"weekdays")}function by(n,t,i){return rf(n,t,i,"weekdaysShort")}function ky(n,t,i){return rf(n,t,i,"weekdaysMin")}function dy(){var n=this._data;return this._milliseconds=ft(this._milliseconds),this._days=ft(this._days),this._months=ft(this._months),n.milliseconds=ft(n.milliseconds),n.seconds=ft(n.seconds),n.minutes=ft(n.minutes),n.hours=ft(n.hours),n.months=ft(n.months),n.years=ft(n.years),this}function ys(n,t,i,r){var u=wt(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function gy(n,t){return ys(this,n,t,1)}function np(n,t){return ys(this,n,t,-1)}function ps(n){return n<0?Math.floor(n):Math.ceil(n)}function tp(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=ps(uf(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=k(r/1e3),i.seconds=u%60,f=k(u/60),i.minutes=f%60,e=k(f/60),i.hours=e%24,n+=k(e/24),o=k(ws(n)),t+=o,n-=ps(uf(o)),s=k(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function ws(n){return n*4800/146097}function uf(n){return n*146097/4800}function ip(n){var t,r,i=this._milliseconds;if(n=g(n),n==="month"||n==="year")return t=this._days+i/864e5,r=this._months+ws(t),n==="month"?r:r/12;t=this._days+Math.round(uf(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}function rp(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+f(this._months/12)*31536e6}function kt(n){return function(){return this.as(n)}}function ap(n){return n=g(n),this[n+"s"]()}function ri(n){return function(){return this._data[n]}}function gp(){return k(this.days()/7)}function nw(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function tw(n,t,i){var r=wt(n).abs(),h=ct(r.as("s")),f=ct(r.as("m")),e=ct(r.as("h")),o=ct(r.as("d")),s=ct(r.as("M")),c=ct(r.as("y")),u=h<lt.s&&["s",h]||f<=1&&["m"]||f<lt.m&&["mm",f]||e<=1&&["h"]||e<lt.h&&["hh",e]||o<=1&&["d"]||o<lt.d&&["dd",o]||s<=1&&["M"]||s<lt.M&&["MM",s]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+n>0,u[4]=i,nw.apply(null,u)}function iw(n){return n===undefined?ct:typeof n=="function"?(ct=n,!0):!1}function rw(n,t){return lt[n]===undefined?!1:t===undefined?lt[n]:(lt[n]=t,!0)}function uw(n){var t=this.localeData(),i=tw(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function pr(){var t=yr(this._milliseconds)/1e3,a=yr(this._days),i=yr(this._months),n,e,o;n=k(t/60);e=k(n/60);t%=60;n%=60;o=k(i/12);i%=12;var s=o,h=i,c=a,r=e,u=n,f=t,l=this.asSeconds();return l?(l<0?"-":"")+"P"+(s?s+"Y":"")+(h?h+"M":"")+(c?c+"D":"")+(r||u||f?"T":"")+(r?r+"H":"")+(u?u+"M":"")+(f?f+"S":""):"P0D"}var ff,of,sf,ki,di,kr,vf,yf,pf,wf,bf,kf,df,gf,ui,nu,er,v,ou,se,he,ae,ve,su,be,ke,de,ge,no,to,io,fo,ao,vo,po,bo,go,ns,us,fs,nf,tf,hs,cs,bt,ls,n,o,ft,ct,lt,yr,e;of=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};sf=of;ki=t.momentProperties=[];di=!1;kr={};t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;vf=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)l(n,t)&&i.push(t);return i};yf=vf;pf={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};wf={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};bf="Invalid date";kf="%d";df=/\d{1,2}/;gf={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};ui={};nu={};var te=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,nr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,tu={},ei={};var re=/\d/,nt=/\d\d/,ue=/\d{3}/,ru=/\d{4}/,tr=/[+-]?\d{6}/,h=/\d\d?/,fe=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,ir=/\d{1,3}/,uu=/\d{1,4}/,rr=/[+-]?\d{1,6}/,ur=/[+-]?\d+/,lh=/Z|[+-]\d\d:?\d\d/gi,fr=/Z|[+-]\d\d(?::?\d\d)?/gi,ci=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,fu={};er={};var tt=0,st=1,ut=2,y=3,it=4,ht=5,ni=6,ph=7,wh=8,oe;oe=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};v=oe;r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});p("month","M");w("month",8);i("M",h);i("MM",h,nt);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});s(["M","MM"],function(n,t){t[st]=f(n)-1});s(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);f!=null?t[st]=f:u(i).invalidMonth=n});ou=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;se="January_February_March_April_May_June_July_August_September_October_November_December".split("_");he="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");ae=ci;ve=ci;r("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");p("year","y");w("year",1);i("Y",ur);i("YY",h,nt);i("YYYY",uu,ru);i("YYYYY",rr,tr);i("YYYYYY",rr,tr);s(["YYYYY","YYYYYY"],tt);s("YYYY",function(n,i){i[tt]=n.length===2?t.parseTwoDigitYear(n):f(n)});s("YY",function(n,i){i[tt]=t.parseTwoDigitYear(n)});s("Y",function(n,t){t[tt]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return f(n)+(f(n)>68?1900:2e3)};su=fi("FullYear",!0);r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");p("week","w");p("isoWeek","W");w("week",5);w("isoWeek",5);i("w",h);i("ww",h,nt);i("W",h);i("WW",h,nt);li(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});be={dow:0,doy:6};r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");p("day","d");p("weekday","e");p("isoWeekday","E");w("day",11);w("weekday",11);w("isoWeekday",11);i("d",h);i("e",h);i("E",h);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});li(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);f!=null?t.d=f:u(i).invalidWeekday=n});li(["d","e","E"],function(n,t,i,r){t[r]=f(n)});ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");de="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_");no=ci;to=ci;io=ci;r("H",["HH",2],0,"hour");r("h",["hh",2],0,cu);r("k",["kk",2],0,il);r("hmm",0,0,function(){return""+cu.apply(this)+ot(this.minutes(),2)});r("hmmss",0,0,function(){return""+cu.apply(this)+ot(this.minutes(),2)+ot(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+ot(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+ot(this.minutes(),2)+ot(this.seconds(),2)});ro("a",!0);ro("A",!1);p("hour","h");w("hour",13);i("a",uo);i("A",uo);i("H",h);i("h",h);i("HH",h,nt);i("hh",h,nt);i("hmm",fe);i("hmmss",ee);i("Hmm",fe);i("Hmmss",ee);s(["H","HH"],y);s(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});s(["h","hh"],function(n,t,i){t[y]=f(n);u(i).bigHour=!0});s("hmm",function(n,t,i){var r=n.length-2;t[y]=f(n.substr(0,r));t[it]=f(n.substr(r));u(i).bigHour=!0});s("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[y]=f(n.substr(0,r));t[it]=f(n.substr(r,2));t[ht]=f(n.substr(e));u(i).bigHour=!0});s("Hmm",function(n,t){var i=n.length-2;t[y]=f(n.substr(0,i));t[it]=f(n.substr(i))});s("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[y]=f(n.substr(0,i));t[it]=f(n.substr(i,2));t[ht]=f(n.substr(r))});fo=/[ap]\.?m?\.?/i;var fl=fi("Hours",!0),eo={calendar:pf,longDateFormat:wf,invalidDate:bf,ordinal:kf,ordinalParse:df,relativeTime:gf,months:se,monthsShort:he,week:be,weekdays:ke,weekdaysMin:ge,weekdaysShort:de,meridiemParse:fo},a={},yi={},hr;var hl=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cl=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ll=/Z|[+-]\d\d(?::?\d\d)?/,cr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],al=/^\/?Date\((\-?\d+)/i;for(t.createFromInputFallback=d("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),t.ISO_8601=function(){},ao=d("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:bi()}),vo=d("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:bi()}),po=function(){return Date.now?Date.now():+new Date},wo("Z",":"),wo("ZZ",""),i("Z",fr),i("ZZ",fr),s(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=ku(fr,n)}),bo=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},go=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ns=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/,wt.fn=lr.prototype,us=is(1,"add"),fs=is(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",nf=d("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ar("gggg","weekYear"),ar("ggggg","weekYear"),ar("GGGG","isoWeekYear"),ar("GGGGG","isoWeekYear"),p("weekYear","gg"),p("isoWeekYear","GG"),w("weekYear",1),w("isoWeekYear",1),i("G",ur),i("g",ur),i("GG",h,nt),i("gg",h,nt),i("GGGG",uu,ru),i("gggg",uu,ru),i("GGGGG",rr,tr),i("ggggg",rr,tr),li(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),li(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),p("quarter","Q"),w("quarter",7),i("Q",re),s("Q",function(n,t){t[st]=(f(n)-1)*3}),r("D",["DD",2],"Do","date"),p("date","D"),w("date",9),i("D",h),i("DD",h,nt),i("Do",function(n,t){return n?t._ordinalParse:t._ordinalParseLenient}),s(["D","DD"],ut),s("Do",function(n,t){t[ut]=f(n.match(h)[0],10)}),tf=fi("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),p("dayOfYear","DDD"),w("dayOfYear",4),i("DDD",ir),i("DDDD",ue),s(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),p("minute","m"),w("minute",14),i("m",h),i("mm",h,nt),s(["m","mm"],it),hs=fi("Minutes",!1),r("s",["ss",2],0,"second"),p("second","s"),w("second",15),i("s",h),i("ss",h,nt),s(["s","ss"],ht),cs=fi("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),p("millisecond","ms"),w("millisecond",16),i("S",ir,re),i("SS",ir,nt),i("SSS",ir,ue),bt="SSSS";bt.length<=9;bt+="S")i(bt,/\d+/);for(bt="S";bt.length<=9;bt+="S")s(bt,hy);ls=fi("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=hi.prototype;n.add=us;n.calendar=ya;n.clone=pa;n.diff=tv;n.endOf=av;n.format=ev;n.from=ov;n.fromNow=sv;n.to=hv;n.toNow=cv;n.get=oh;n.invalidAt=ny;n.isAfter=wa;n.isBefore=ba;n.isBetween=ka;n.isSame=da;n.isSameOrAfter=ga;n.isSameOrBefore=nv;n.isValid=dv;n.lang=nf;n.locale=es;n.localeData=os;n.max=vo;n.min=ao;n.parsingFlags=gv;n.set=sh;n.startOf=lv;n.subtract=fs;n.toArray=wv;n.toObject=bv;n.toDate=pv;n.toISOString=uv;n.inspect=fv;n.toJSON=kv;n.toString=rv;n.unix=yv;n.valueOf=vv;n.creationData=ty;n.year=su;n.isLeapYear=rc;n.weekYear=iy;n.isoWeekYear=ry;n.quarter=n.quarters=oy;n.month=le;n.daysInMonth=nc;n.week=n.weeks=sc;n.isoWeek=n.isoWeeks=hc;n.weeksInYear=fy;n.isoWeeksInYear=uy;n.date=tf;n.day=n.days=bc;n.weekday=kc;n.isoWeekday=dc;n.dayOfYear=sy;n.hour=n.hours=fl;n.minute=n.minutes=hs;n.second=n.seconds=cs;n.millisecond=n.milliseconds=ls;n.utcOffset=ia;n.utc=ua;n.local=fa;n.parseZone=ea;n.hasAlignedHourOffset=oa;n.isDST=sa;n.isLocal=ca;n.isUtcOffset=la;n.isUtc=ko;n.isUTC=ko;n.zoneAbbr=cy;n.zoneName=ly;n.dates=d("dates accessor is deprecated. Use date instead.",tf);n.months=d("months accessor is deprecated. Use month instead",le);n.years=d("years accessor is deprecated. Use year instead",su);n.zone=d("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ra);n.isDSTShifted=d("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ha);o=dr.prototype;o.calendar=nh;o.longDateFormat=th;o.invalidDate=ih;o.ordinal=rh;o.preparse=as;o.postformat=as;o.relativeTime=uh;o.pastFuture=fh;o.set=gs;o.months=bh;o.monthsShort=kh;o.monthsParse=gh;o.monthsRegex=ic;o.monthsShortRegex=tc;o.week=fc;o.firstDayOfYear=oc;o.firstDayOfWeek=ec;o.weekdays=ac;o.weekdaysMin=yc;o.weekdaysShort=vc;o.weekdaysParse=wc;o.weekdaysRegex=gc;o.weekdaysShortRegex=nl;o.weekdaysMinRegex=tl;o.isPM=rl;o.meridiem=ul;oi("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=f(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});t.lang=d("moment.lang is deprecated. Use moment.locale instead.",oi);t.langData=d("moment.langData is deprecated. Use moment.localeData instead.",pt);ft=Math.abs;var up=kt("ms"),fp=kt("s"),ep=kt("m"),op=kt("h"),sp=kt("d"),hp=kt("w"),cp=kt("M"),lp=kt("y");var vp=ri("milliseconds"),yp=ri("seconds"),pp=ri("minutes"),wp=ri("hours"),bp=ri("days"),kp=ri("months"),dp=ri("years");return ct=Math.round,lt={s:45,m:45,h:22,d:26,M:11},yr=Math.abs,e=lr.prototype,e.abs=dy,e.add=gy,e.subtract=np,e.as=ip,e.asMilliseconds=up,e.asSeconds=fp,e.asMinutes=ep,e.asHours=op,e.asDays=sp,e.asWeeks=hp,e.asMonths=cp,e.asYears=lp,e.valueOf=rp,e._bubble=tp,e.get=ap,e.milliseconds=vp,e.seconds=yp,e.minutes=pp,e.hours=wp,e.days=bp,e.weeks=gp,e.months=kp,e.years=dp,e.humanize=uw,e.toISOString=pr,e.toString=pr,e.toJSON=pr,e.locale=es,e.localeData=os,e.toIsoString=d("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pr),e.lang=nf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",ur),i("X",/[+-]?\d+(\.\d{1,3})?/),s("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),s("x",function(n,t,i){i._d=new Date(f(n))}),t.version="2.17.1",bs(c),t.fn=n,t.min=na,t.max=ta,t.now=po,t.utc=rt,t.unix=ay,t.months=yy,t.isDate=wi,t.locale=oi,t.invalid=bi,t.duration=wt,t.isMoment=yt,t.weekdays=wy,t.parseZone=vy,t.localeData=pt,t.isDuration=wu,t.monthsShort=py,t.weekdaysMin=ky,t.defineLocale=lu,t.updateLocale=ol,t.locales=sl,t.weekdaysShort=by,t.normalizeUnits=g,t.relativeTimeRounding=iw,t.relativeTimeThreshold=rw,t.calendarFormat=va,t.prototype=n,t}),function(n,t){"use strict";var i;if(typeof exports=="object"){try{i=require("moment")}catch(r){}module.exports=t(i)}else typeof define=="function"&&define.amd?define(function(n){try{i=n("moment")}catch(r){}return t(i)}):n.Pikaday=t(n.moment)}(this,function(n){"use strict";var o=typeof n=="function",l=!!window.addEventListener,t=window.document,a=window.setTimeout,u=function(n,t,i,r){l?n.addEventListener(t,i,!!r):n.attachEvent("on"+t,i)},e=function(n,t,i,r){l?n.removeEventListener(t,i,!!r):n.detachEvent("on"+t,i)},y=function(n,i,r){var u;t.createEvent?(u=t.createEvent("HTMLEvents"),u.initEvent(i,!0,!1),u=s(u,r),n.dispatchEvent(u)):t.createEventObject&&(u=t.createEventObject(),u=s(u,r),n.fireEvent("on"+i,u))},d=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")},i=function(n,t){return(" "+n.className+" ").indexOf(" "+t+" ")!==-1},g=function(n,t){i(n,t)||(n.className=n.className===""?t:n.className+" "+t)},nt=function(n,t){n.className=d((" "+n.className+" ").replace(" "+t+" "," "))},v=function(n){return/Array/.test(Object.prototype.toString.call(n))},r=function(n){return/Date/.test(Object.prototype.toString.call(n))&&!isNaN(n.getTime())},tt=function(n){var t=n.getDay();return t===0||t===6},it=function(n){return n%4==0&&n%100!=0||n%400==0},p=function(n,t){return[31,it(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},h=function(n){r(n)&&n.setHours(0,0,0,0)},c=function(n,t){return n.getTime()===t.getTime()},s=function(n,t,i){var u,f;for(u in t)f=n[u]!==undefined,f&&typeof t[u]=="object"&&t[u]!==null&&t[u].nodeName===undefined?r(t[u])?i&&(n[u]=new Date(t[u].getTime())):v(t[u])?i&&(n[u]=t[u].slice(0)):n[u]=s({},t[u],i):(i||!f)&&(n[u]=t[u]);return n},w=function(n){return n.month<0&&(n.year-=Math.ceil(Math.abs(n.month)/12),n.month+=12),n.month>11&&(n.year+=Math.floor(Math.abs(n.month)/12),n.month-=12),n},f={field:null,bound:undefined,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:undefined,maxMonth:undefined,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:undefined,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},b=function(n,t,i){for(t+=n.firstDay;t>=7;)t-=7;return i?n.i18n.weekdaysShort[t]:n.i18n.weekdays[t]},rt=function(n){var t=[],i="false";if(n.isEmpty)if(n.showDaysInNextAndPreviousMonths)t.push("is-outside-current-month");else return'<td class="is-empty"><\/td>';return n.isDisabled&&t.push("is-disabled"),n.isToday&&t.push("is-today"),n.isSelected&&(t.push("is-selected"),i="true"),n.isInRange&&t.push("is-inrange"),n.isStartRange&&t.push("is-startrange"),n.isEndRange&&t.push("is-endrange"),'<td data-day="'+n.day+'" class="'+t.join(" ")+'" aria-selected="'+i+'"><button class="pika-button pika-day" type="button" data-pika-year="'+n.year+'" data-pika-month="'+n.month+'" data-pika-day="'+n.day+'">'+n.day+"<\/button><\/td>"},ut=function(n,t,i){var r=new Date(i,0,1),u=Math.ceil(((new Date(i,t,n)-r)/864e5+r.getDay()+1)/7);return'<td class="pika-week">'+u+"<\/td>"},ft=function(n,t){return"<tr>"+(t?n.reverse():n).join("")+"<\/tr>"},et=function(n){return"<tbody>"+n.join("")+"<\/tbody>"},ot=function(n){var t,i=[];for(n.showWeekNumber&&i.push("<th><\/th>"),t=0;t<7;t++)i.push('<th scope="col"><abbr title="'+b(n,t)+'">'+b(n,t,!0)+"<\/abbr><\/th>");return"<thead><tr>"+(n.isRTL?i.reverse():i).join("")+"<\/tr><\/thead>"},st=function(n,t,i,r,u,f){for(var c,e=n._o,y=i===e.minYear,p=i===e.maxYear,h='<div id="'+f+'" class="pika-title" role="heading" aria-live="assertive">',l,a,w=!0,b=!0,s=[],o=0;o<12;o++)s.push('<option value="'+(i===u?o-t:12+o-t)+'"'+(o===r?' selected="selected"':"")+(y&&o<e.minMonth||p&&o>e.maxMonth?'disabled="disabled"':"")+">"+e.i18n.months[o]+"<\/option>");for(l='<div class="pika-label">'+e.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+s.join("")+"<\/select><\/div>",v(e.yearRange)?(o=e.yearRange[0],c=e.yearRange[1]+1):(o=i-e.yearRange,c=1+i+e.yearRange),s=[];o<c&&o<=e.maxYear;o++)o>=e.minYear&&s.push('<option value="'+o+'"'+(o===i?' selected="selected"':"")+">"+o+"<\/option>");return a='<div class="pika-label">'+i+e.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+s.join("")+"<\/select><\/div>",h+=e.showMonthAfterYear?a+l:l+a,y&&(r===0||e.minMonth>=r)&&(w=!1),p&&(r===11||e.maxMonth<=r)&&(b=!1),t===0&&(h+='<button class="pika-prev'+(w?"":" is-disabled")+'" type="button">'+e.i18n.previousMonth+"<\/button>"),t===n._o.numberOfMonths-1&&(h+='<button class="pika-next'+(b?"":" is-disabled")+'" type="button">'+e.i18n.nextMonth+"<\/button>"),h+"<\/div>"},ht=function(n,t,i){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+i+'">'+ot(n)+et(t)+"<\/table>"},k=function(f){var e=this,s=e.config(f),h;e._onMouseDown=function(n){if(e._v){n=n||window.event;var t=n.target||n.srcElement;if(t)if(i(t,"is-disabled")||(!i(t,"pika-button")||i(t,"is-empty")||i(t.parentNode,"is-disabled")?i(t,"pika-prev")?e.prevMonth():i(t,"pika-next")&&e.nextMonth():(e.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),s.bound&&a(function(){e.hide();s.field&&s.field.blur()},100))),i(t,"pika-select"))e._c=!0;else if(n.preventDefault)n.preventDefault();else return n.returnValue=!1,!1}};e._onChange=function(n){n=n||window.event;var t=n.target||n.srcElement;t&&(i(t,"pika-select-month")?e.gotoMonth(t.value):i(t,"pika-select-year")&&e.gotoYear(t.value))};e._onKeyChange=function(n){if(n=n||window.event,e.isVisible())switch(n.keyCode){case 13:case 27:s.field.blur();break;case 37:n.preventDefault();e.adjustDate("subtract",1);break;case 38:e.adjustDate("subtract",7);break;case 39:e.adjustDate("add",1);break;case 40:e.adjustDate("add",7)}};e._onInputChange=function(t){var i;t.firedBy!==e&&(o?(i=n(s.field.value,s.format,s.formatStrict),i=i&&i.isValid()?i.toDate():null):i=new Date(Date.parse(s.field.value)),r(i)&&e.setDate(i),e._v||e.show())};e._onInputFocus=function(){e.show()};e._onInputClick=function(){e.show()};e._onInputBlur=function(){var n=t.activeElement;do if(i(n,"pika-single"))return;while(n=n.parentNode);e._c||(e._b=a(function(){e.hide()},50));e._c=!1};e._onClick=function(n){n=n||window.event;var t=n.target||n.srcElement,r=t;if(t){!l&&i(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),u(t,"change",e._onChange)));do if(i(r,"pika-single")||r===s.trigger)return;while(r=r.parentNode);e._v&&t!==s.trigger&&r!==s.trigger&&e.hide()}};e.el=t.createElement("div");e.el.className="pika-single"+(s.isRTL?" is-rtl":"")+(s.theme?" "+s.theme:"");u(e.el,"mousedown",e._onMouseDown,!0);u(e.el,"touchend",e._onMouseDown,!0);u(e.el,"change",e._onChange);u(t,"keydown",e._onKeyChange);s.field&&(s.container?s.container.appendChild(e.el):s.bound?t.body.appendChild(e.el):s.field.parentNode.insertBefore(e.el,s.field.nextSibling),u(s.field,"change",e._onInputChange),s.defaultDate||(s.defaultDate=o&&s.field.value?n(s.field.value,s.format).toDate():new Date(Date.parse(s.field.value)),s.setDefaultDate=!0));h=s.defaultDate;r(h)?s.setDefaultDate?e.setDate(h,!0):e.gotoDate(h):e.gotoDate(new Date);s.bound?(this.hide(),e.el.className+=" is-bound",u(s.trigger,"click",e._onInputClick),u(s.trigger,"focus",e._onInputFocus),u(s.trigger,"blur",e._onInputBlur)):this.show()};return k.prototype={config:function(n){var t,i,u;return this._o||(this._o=s({},f,!0)),t=s(this._o,n,!0),t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme=typeof t.theme=="string"&&t.theme?t.theme:null,t.bound=!!(t.bound!==undefined?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn=typeof t.disableDayFn=="function"?t.disableDayFn:null,i=parseInt(t.numberOfMonths,10)||1,t.numberOfMonths=i>4?4:i,r(t.minDate)||(t.minDate=!1),r(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),v(t.yearRange)?(u=(new Date).getFullYear()-10,t.yearRange[0]=parseInt(t.yearRange[0],10)||u,t.yearRange[1]=parseInt(t.yearRange[1],10)||u):(t.yearRange=Math.abs(parseInt(t.yearRange,10))||f.yearRange,t.yearRange>100&&(t.yearRange=100)),t},toString:function(t){return r(this._d)?o?n(this._d).format(t||this._o.format):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(t,i){o&&n.isMoment(t)&&this.setDate(t.toDate(),i)},getDate:function(){return r(this._d)?new Date(this._d.getTime()):new Date},setDate:function(n,t){if(!n)return this._d=null,this._o.field&&(this._o.field.value="",y(this._o.field,"change",{firedBy:this})),this.draw();if(typeof n=="string"&&(n=new Date(Date.parse(n))),r(n)){var i=this._o.minDate,u=this._o.maxDate;r(i)&&n<i?n=i:r(u)&&n>u&&(n=u);this._d=new Date(n.getTime());h(this._d);this.gotoDate(this._d);this._o.field&&(this._o.field.value=this.toString(),y(this._o.field,"change",{firedBy:this}));t||typeof this._o.onSelect!="function"||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(n){var i=!0;if(r(n)){if(this.calendars){var f=new Date(this.calendars[0].year,this.calendars[0].month,1),t=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),u=n.getTime();t.setMonth(t.getMonth()+1);t.setDate(t.getDate()-1);i=u<f.getTime()||t.getTime()<u}i&&(this.calendars=[{month:n.getMonth(),year:n.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths));this.adjustCalendars()}},adjustDate:function(t,i){var u=this.getDate(),f=parseInt(i)*864e5,r;t==="add"?r=new Date(u.valueOf()+f):t==="subtract"&&(r=new Date(u.valueOf()-f));o&&(t==="add"?r=n(u).add(i,"days").toDate():t==="subtract"&&(r=n(u).subtract(i,"days").toDate()));this.setDate(r)},adjustCalendars:function(){this.calendars[0]=w(this.calendars[0]);for(var n=1;n<this._o.numberOfMonths;n++)this.calendars[n]=w({month:this.calendars[0].month+n,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(n){isNaN(n)||(this.calendars[0].month=parseInt(n,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(n){isNaN(n)||(this.calendars[0].year=parseInt(n,10),this.adjustCalendars())},setMinDate:function(n){n instanceof Date?(h(n),this._o.minDate=n,this._o.minYear=n.getFullYear(),this._o.minMonth=n.getMonth()):(this._o.minDate=f.minDate,this._o.minYear=f.minYear,this._o.minMonth=f.minMonth,this._o.startRange=f.startRange);this.draw()},setMaxDate:function(n){n instanceof Date?(h(n),this._o.maxDate=n,this._o.maxYear=n.getFullYear(),this._o.maxMonth=n.getMonth()):(this._o.maxDate=f.maxDate,this._o.maxYear=f.maxYear,this._o.maxMonth=f.maxMonth,this._o.endRange=f.endRange);this.draw()},setStartRange:function(n){this._o.startRange=n},setEndRange:function(n){this._o.endRange=n},draw:function(n){var i;if(this._v||n){var t=this._o,e=t.minYear,o=t.maxYear,r=t.minMonth,u=t.maxMonth,s="",f;for(this._y<=e&&(this._y=e,!isNaN(r)&&this._m<r&&(this._m=r)),this._y>=o&&(this._y=o,!isNaN(u)&&this._m>u&&(this._m=u)),f="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),i=0;i<t.numberOfMonths;i++)s+='<div class="pika-lendar">'+st(this,i,this.calendars[i].year,this.calendars[i].month,this.calendars[0].year,f)+this.render(this.calendars[i].year,this.calendars[i].month,f)+"<\/div>";if(this.el.innerHTML=s,t.bound&&t.field.type!=="hidden"&&a(function(){t.trigger.focus()},1),typeof this._o.onDraw=="function")this._o.onDraw(this);t.bound&&t.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var n,i,f,e,s,h,c,r,u,o;if(!this._o.container){if(this.el.style.position="absolute",n=this._o.trigger,i=n,f=this.el.offsetWidth,e=this.el.offsetHeight,s=window.innerWidth||t.documentElement.clientWidth,h=window.innerHeight||t.documentElement.clientHeight,c=window.pageYOffset||t.body.scrollTop||t.documentElement.scrollTop,typeof n.getBoundingClientRect=="function")o=n.getBoundingClientRect(),r=o.left+window.pageXOffset,u=o.bottom+window.pageYOffset;else for(r=i.offsetLeft,u=i.offsetTop+i.offsetHeight;i=i.offsetParent;)r+=i.offsetLeft,u+=i.offsetTop;(this._o.reposition&&r+f>s||this._o.position.indexOf("right")>-1&&r-f+n.offsetWidth>0)&&(r=r-f+n.offsetWidth);(this._o.reposition&&u+e>h+c||this._o.position.indexOf("top")>-1&&u-e-n.offsetHeight>0)&&(u=u-e-n.offsetHeight);this.el.style.left=r+"px";this.el.style.top=u+"px"}},render:function(n,t,i){var u=this._o,d=new Date,a=p(n,t),f=new Date(n,t,1).getDay(),g=[],l=[],o,w,ot;h(d);u.firstDay>0&&(f-=u.firstDay,f<0&&(f+=7));for(var nt=t===0?11:t-1,st=t===11?0:t+1,it=t===0?n-1:n,ct=t===11?n+1:n,lt=p(it,nt),v=a+f,y=v;y>7;)y-=7;for(v+=7-y,o=0,w=0;o<v;o++){var e=new Date(n,t,1+(o-f)),at=r(this._d)?c(e,this._d):!1,vt=c(e,d),et=o<f||o>=a+f,s=1+(o-f),b=t,k=n,yt=u.startRange&&c(u.startRange,e),pt=u.endRange&&c(u.endRange,e),wt=u.startRange&&u.endRange&&u.startRange<e&&e<u.endRange,bt=u.minDate&&e<u.minDate||u.maxDate&&e>u.maxDate||u.disableWeekends&&tt(e)||u.disableDayFn&&u.disableDayFn(e);et&&(o<f?(s=lt+s,b=nt,k=it):(s=s-a,b=st,k=ct));ot={day:s,month:b,year:k,isSelected:at,isToday:vt,isDisabled:bt,isEmpty:et,isStartRange:yt,isEndRange:pt,isInRange:wt,showDaysInNextAndPreviousMonths:u.showDaysInNextAndPreviousMonths};l.push(rt(ot));++w==7&&(u.showWeekNumber&&l.unshift(ut(o-f,t,n)),g.push(ft(l,u.isRTL)),l=[],w=0)}return ht(u,g,i)},isVisible:function(){return this._v},show:function(){this.isVisible()||(nt(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(u(t,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var n=this._v;n!==!1&&(this._o.bound&&e(t,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",g(this.el,"is-hidden"),this._v=!1,n!==undefined&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){this.hide();e(this.el,"mousedown",this._onMouseDown,!0);e(this.el,"touchend",this._onMouseDown,!0);e(this.el,"change",this._onChange);this._o.field&&(e(this._o.field,"change",this._onInputChange),this._o.bound&&(e(this._o.trigger,"click",this._onInputClick),e(this._o.trigger,"focus",this._onInputFocus),e(this._o.trigger,"blur",this._onInputBlur)));this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},k}),function(n,t){"use strict";typeof exports=="object"?t(require("jquery"),require("../pikaday")):typeof define=="function"&&define.amd?define(["jquery","pikaday"],t):t(n.jQuery,n.Pikaday)}(this,function(n,t){"use strict";n.fn.pikaday=function(){var i=arguments;return i&&i.length||(i=[{}]),this.each(function(){var r=n(this),u=r.data("pikaday"),f;u instanceof t?typeof i[0]=="string"&&typeof u[i[0]]=="function"&&(u[i[0]].apply(u,Array.prototype.slice.call(i,1)),i[0]==="destroy"&&r.removeData("pikaday")):typeof i[0]=="object"&&(f=n.extend({},i[0]),f.field=r[0],r.data("pikaday",new t(f)))})}}),function(n){var t;n.fn.printThis=function(i){var u,e,o,f,s,r;t=n.extend({},n.fn.printThis.defaults,i);u=this instanceof jQuery?this:n(this);e="printThis-"+(new Date).getTime();window.location.hostname!==document.domain&&navigator.userAgent.match(/msie/i)?(o='javascript:document.write("<head><script>document.domain=\\"'+document.domain+'\\";<\/script><\/head><body><\/body>")',f=document.createElement("iframe"),f.name="printIframe",f.id=e,f.className="MSIE",document.body.appendChild(f),f.src=o):(s=n("<iframe id='"+e+"' name='printIframe' />"),s.appendTo("body"));r=n("#"+e);t.debug||r.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"});setTimeout(function(){function a(n,t){var i,r;i=n.get(0);i=i.contentWindow||i.contentDocument||i;r=i.document||i.contentDocument||i;r.open();r.write(t);r.close()}var o,s,h;t.doctypeString&&a(r,t.doctypeString);var i=r.contents(),f=i.find("head"),e=i.find("body"),c=n("base"),l;l=t.base===!0&&c.length>0?c.attr("href"):typeof t.base=="string"?t.base:document.location.protocol+"//"+document.location.host;f.append('<base href="'+l+'">');t.importCSS&&n("link[rel=stylesheet]").each(function(){var t=n(this).attr("href"),i;t&&(i=n(this).attr("media")||"all",f.append("<link type='text/css' rel='stylesheet' href='"+t+"' media='"+i+"'>"))});t.importStyle&&n("style").each(function(){n(this).clone().appendTo(f)});t.pageTitle&&f.append("<title>"+t.pageTitle+"<\/title>");t.loadCSS&&(n.isArray(t.loadCSS)?jQuery.each(t.loadCSS,function(){f.append("<link type='text/css' rel='stylesheet' href='"+this+"'>")}):f.append("<link type='text/css' rel='stylesheet' href='"+t.loadCSS+"'>"));t.header&&e.append(t.header);t.printContainer?e.append(u.outer()):u.each(function(){e.append(n(this).html())});t.formValues&&(o=u.find("input"),o.length&&o.each(function(){var t=n(this),r=n(this).attr("name"),e=t.is(":checkbox")||t.is(":radio"),u=i.find('input[name="'+r+'"]'),f=t.val();e?t.is(":checked")&&(t.is(":checkbox")?u.attr("checked","checked"):t.is(":radio")&&i.find('input[name="'+r+'"][value='+f+"]").attr("checked","checked")):u.val(f)}),s=u.find("select"),s.length&&s.each(function(){var t=n(this),r=n(this).attr("name"),u=t.val();i.find('select[name="'+r+'"]').val(u)}),h=u.find("textarea"),h.length&&h.each(function(){var t=n(this),r=n(this).attr("name"),u=t.val();i.find('textarea[name="'+r+'"]').val(u)}));t.removeInline&&(n.isFunction(n.removeAttr)?i.find("body *").removeAttr("style"):i.find("body *").attr("style",""));setTimeout(function(){r.hasClass("MSIE")?(window.frames.printIframe.focus(),f.append("<script>  window.print(); <\/script>")):document.queryCommandSupported("print")?r[0].contentWindow.document.execCommand("print",!1,null):(r[0].contentWindow.focus(),r[0].contentWindow.print());t.debug||setTimeout(function(){r.remove()},1e3)},t.printDelay)},333)};n.fn.printThis.defaults={debug:!1,importCSS:!0,importStyle:!1,printContainer:!0,loadCSS:"",pageTitle:"",removeInline:!1,printDelay:333,header:null,formValues:!0,base:!1,doctypeString:"<!DOCTYPE html>"};jQuery.fn.outer=function(){return n(n("<div><\/div>").html(this.clone())).html()}}(jQuery);var prevArrowHtml='<button class="arrowbtn arrowbtn--left arrowbtn--prime">Previous<\/button>',nextArrowHtml='<button class="arrowbtn arrowbtn--right arrowbtn--prime">Next<\/button>',initSliders=function(){initPodCarousel();initMasonryCarousel();initGallery();initTextCarousel();initTabAccordionCarousel()},setSlideCount=function(n,t){var i=$(n).find(".count");i.text("/"+t)},setCurrentSlideNumber=function(n,t){var i=$(n).find(".current");i.text(t+1)},initPodCarousel=function(){var s=$(".js-pod_carousel"),r=function(n,t,i,r,u,s){var n=n,c="pod_wrapper_"+t,s="#"+c;n.attr("id",c);n.on("init",function(n,t){slideCount=t.slideCount;slideNo=t.currentSlide;setSlideCount(s,slideCount);setCurrentSlideNumber(s,slideNo)});n.slick({slide:s+" .pod_wrapper__item",slidesToShow:f,slidesToScroll:e,centerMode:h,centerPadding:r,autoplay:!1,arrows:!0,appendArrows:s+" .pod_wrapper__arrows",variableWidth:u,dots:!1,prevArrow:prevArrowHtml,nextArrow:nextArrowHtml,infinite:o,initialSlide:i});n.on("beforeChange",function(n,t,i,r){slideNo=r;setCurrentSlideNumber(s,slideNo)})};if(s.length){var u="",i=0,f=1,e=1,n="15px 30px",t=!1,o=!1,h=!0;s.each(function(s){var c=$(this);isSmall()?(i=0,n="15px 30px",t=!1,r(c,s,i,n,t,u)):isMedium()&&$(this).find(".pod_wrapper__item").length>=3?(n="15px 30px",t=!0,o=!1,r(c,s,i,n,t,u)):isLarge()&&$(this).find(".pod_wrapper__item").length>=4&&$(this).hasClass("initialize_on_large")&&(n="0 0",t=!1,i=0,f=3,e=3,o=!1,h=!1,typeof $(this).data("has_four_slides")!="undefined"&&(f=4,e=4),r(c,s,i,n,t,u))})}},initMasonryCarousel=function(){$(".masonry_image").length&&isSmall()&&$(".masonry_image").slick({slide:".masonry_image__item",slidesToShow:1,slidesToScroll:1,centerMode:!0,centerPadding:"15px 30px",arrows:!0,dots:!0,prevArrow:prevArrowHtml,nextArrow:nextArrowHtml})},initGallery=function(){var n=$(".image_gallery_wrapper");n.length&&n.each(function(n){var e=$(this),t=e.find(".image_gallery"),i="image_gallery_"+n,u=e.find(".image_gallery_thumbnail"),o="image_gallery_thumbnail_"+n,r="",f;if(t.attr("id",i),u.attr("id",o),t.length){f="";u.length&&(f="#"+o,u.slick({slide:r+" .image_gallery_thumbnail__item",slidesToShow:1,slidesToScroll:1,variableWidth:!0,centerPadding:"0",centerMode:!0,infinite:!1,arrows:!1,asNavFor:"#"+i,focusOnSelect:!0}));r="#"+i;t.on("init",function(n,t){slideCount=t.slideCount;slideNo=t.currentSlide;setSlideCount(r,slideCount);setCurrentSlideNumber(r,slideNo)});t.slick({slidesToShow:1,slidesToScroll:1,slide:"#"+i+" .image_gallery__item",infinite:!1,arrows:!0,appendArrows:"#"+i+" .image_gallery__arrows",prevArrow:prevArrowHtml,nextArrow:nextArrowHtml,asNavFor:f,fade:!0});t.on("beforeChange",function(n,t,i,u){slideNo=u;setCurrentSlideNumber(r,slideNo)})}})},initTextCarousel=function(){var n=$(".text_carousel_wrapper");n.length&&n.each(function(n){var f=$(this),t=f.find(".text_carousel"),u="text_carousel_"+n,r="#"+u,i;t.attr("id",u);t.on("init",function(n,t){slideCount=t.slideCount;slideNo=t.currentSlide;setSlideCount(r,slideCount);setCurrentSlideNumber(r,slideNo)});i="";isLarge()&&t.hasClass("text_carousel--overflow")?i="0 60px":isLarge()&&(i="0 30px");isXLarge()&&(i="0 15%");t.slick({slide:r+" .text_carousel__item",slidesToShow:1,slidesToScroll:1,centerPadding:i,centerMode:!0,infinite:!1,dots:!1,arrows:!0,appendArrows:"#"+u+" .text_carousel__arrows",prevArrow:prevArrowHtml,nextArrow:nextArrowHtml});t.on("beforeChange",function(n,t,i,u){slideNo=u;setCurrentSlideNumber(r,slideNo)})})},initTabAccordionCarousel=function(){var n=$(".tab_accordion--hastabs");n.length&&isLarge()&&n.each(function(n){var e=$(this),o=$(".tab_accordion__arrows",this),i=e.find(".tab_accordion__tabs"),f="tab_accordion__tabs_"+n,r=e.find(".tab_accordion__accordion"),u="tab_accordion__accordion_"+n,t;if(i.attr("id",f),r.attr("id",u),i.length&&(t="",i.length)){t="#"+u;r.on("init",function(n,i){slideCount=i.slideCount;slideNo=i.currentSlide;setSlideCount(t,slideCount);setCurrentSlideNumber(t,slideNo)});i.slick({slide:"#"+f+" .tab_accordion__tabtitle",slidesToShow:20,slidesToScroll:1,centerPadding:"0",infinite:!1,arrows:!1,asNavFor:"#"+u,focusOnSelect:!0,vertical:!0});r.on("beforeChange",function(n,i,r,u){slideNo=u;setCurrentSlideNumber(t,slideNo)});r.slick({slidesToShow:1,slidesToScroll:1,slide:"#"+u+" .tab_accordion__item",infinite:!1,arrows:!0,appendArrows:o,prevArrow:prevArrowHtml,nextArrow:nextArrowHtml,asNavFor:"#"+f,fade:!0,adaptiveHeight:!0})}})};$(window).on("resizeEnd navToggled",function(){(isMedium()||isLarge())&&($(".slick-initialized").slick("unslick"),initSliders())});initSelectPlugin=function(){var i=$(".selectricfield select, select.selectricfield"),n,t;if(i.length){n="input-validation-error";t=function(){$.each(i,function(t,i){var r=$(i),u=r.closest(".selectric-wrapper").find(".selectric");r.hasClass(n)?u.addClass(n):u.removeClass(n)})};$(".selectricfield select, select.selectricfield").selectric({onChange:function(n){$(n).change();var i=$(n).closest("form").validate();i.element(n);t()}});$(window).on("formSubmitted",function(){t()})}};$(window).load(function(){var n=$("select.hs-input");n.length&&setTimeout(function(){n.selectric()},400)});var initRTEImages=function(){$(".rte img").each(function(){var n=$(this);n.css("float")==="left"?n.addClass("img_float_left"):n.css("float")==="right"&&n.addClass("img_float_right")})},initVideos=function(){var n=$(".js-looping-video");if(n.length&&isLarge()){var i=9/16,r=function(n,t,i){var r=i.parentElement.offsetWidth;n.width(r).height(r*t).addClass("vjs-resizeloaded");$(window).trigger("videosResized")},t=function(){$.each(n,function(n,t){var u=$(t);videojs(t).ready(function(){var n=this;n.load();n.play();$(window).on("resizeEnd navToggled",function(){r(n,i,t)})})});$(window).trigger("resizeEnd")};t();$.each(n,function(n,i){videojs(i).ready(function(){t()})})}},initModals=function(){var t=$(".js-iframe-modal"),i=$(".masonry_image"),n={open:function(){$(window).trigger("modalOpened")},close:function(){$(window).trigger("modalClosed")}};t.magnificPopup({type:"iframe",callbacks:n,iframe:{patterns:{youtube:{index:"youtube.com/",id:function(n){return n},src:"%id%&autoplay=1"},vimeo:{index:"vimeo.com/",id:function(n){return n},src:"%id%&autoplay=1"}}}});i.magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",callbacks:n,gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{titleSrc:function(n){return n.el.attr("title")}}})},initEventsForm=function(){var n=$(".js-event_registration_form");if(n.length){var i=n.find(".js-number_of_tickets"),t=n.find(".js-total_ticket_cost"),r=parseFloat(t.data("single-ticket-cost")),u=function(n){if(typeof n=="undefined"||(n=parseInt(n),isNaN(n)))return!1;var i=n*r;t.text(i.toFixed(2))};i.on("change",function(){var n=$(this).val();u(n)})}},initFullScreenScrollSection=function(){var n=$(".full_screen_fixed_scroll");if(n.length){$fullScreenElement=n.find(".fixed_background_element");var u=function(){$(".nav_helper").hasClass("nav_helper--load")?$fullScreenElement.addClass("offset_left"):$fullScreenElement.removeClass("offset_left")},t="fixed",i="absolute_bottom",r=0,f=0,e=0,s=function(){e=n.outerHeight(!0);r=n.offset().top;f=r+e-$fullScreenElement.height()},h=function(){var t=$(window).height();n.css("minHeight",t)},c=function(){var n=$(window).height();$fullScreenElement.height(n)},l=function(){var n=elementPostion(r,f);u();n.IsInView?($fullScreenElement.removeClass(i),$fullScreenElement.addClass(t)):n.HasBeenScrolledPastBottom?($fullScreenElement.removeClass(t),$fullScreenElement.addClass(i)):n.HasBeenScrolledPastTop&&($fullScreenElement.removeClass(t),$fullScreenElement.removeClass(i))},o=function(){u();h();c();s();$(window).scroll()};$(window).on("scroll",function(){l()});$(window).on("load resizeEnd navToggled videosResized formSubmitted equalizerTriggered",function(){o()});$(window).on("eventCalendarChanged",function(){$fullScreenElement=n.find(".fixed_background_element");o()})}},initDayPlanner=function(){var n=$(".js-day_planner"),u=$(".js-bookmark_activity"),y=$("#js-activity_ids"),it=$(".js-day_planner_notification"),h=$(".js-day_planner_print_button"),p=$(".js-day_planner_placeholder_template"),f="ASP:DAYPLANNER",e="btn--remove_activity",w="Remove",b="Bookmark",i="activity-id",t=".js-day_activity",c=function(n,t){return $.inArray(n.toString(),t)},l=function(){y.val(o())},r=function(){$(document).foundation("equalizer","reflow");var t=n.find(".pod_imageabovetext, .pod_placeholder");t.equalHeightsGrid()},o=function(){var n=getCookie(f);return typeof n!="undefined"?n.split(","):[]},k=function(n){var i=!1,t=o();return typeof n!="undefined"&&c(n,t)==-1&&(t.push(n.toString()),createCookie(f,t),i=!0),i},a=function(n){var r=!1,t,i;return typeof n!="undefined"&&(t=o(),i=c(n,t),i>-1&&(t.splice(i,1),createCookie(f,t),r=!0)),r},s=function(n){var t="Activity Removed";n&&(t="Activity Added");ProdoNotifications.ShowNotification(t)},d=function(n){n.addClass(e);n.text(w)},g=function(n){n.removeClass(e);n.text(b)},nt=function(n){return n.removeClass("slick-slide slick-current slick-center"),n.removeAttr("style tabindex role aria-describedby data-slick-index aria-hidden"),n},tt=function(f,e){var o,s,c;n.length&&(o=e.clone(),o=nt(o),o.find(".pod_imageabovetext__content").addClass("pod_imageabovetext__content--pad_small").html('<button type="button" class="btn--remove js-remove_activity">Remove<\/button>'),s=n.find(".pod_wrapper .pod_placeholder"),s.length&&s.last().closest(".pod_wrapper__item").remove(),n.find(".pod_wrapper").prepend(o),h.show(),r());c=u.filter(function(n,r){var u=$(r).closest(t+"[data-"+i+'="'+f+'"]').closest(".pod_wrapper__item");return u.length>0});d(c)},v=function(f){var o=n.find(t+"[data-"+i+'="'+f+'"]').closest(".pod_wrapper__item"),e,s;n.length&&o.length&&(o.remove(),e=n.find(t).length,e<3&&n.find(".pod_wrapper").append(p.clone()),e<=0&&h.hide());s=u.filter(function(n,r){var u=$(r).closest(t+"[data-"+i+'="'+f+'"]').closest(".pod_wrapper__item");return u.length>0});g(s);r()};u.on("click",function(){var r=$(this),n=r.closest(t).data(i),u,f,o;r.hasClass(e)?(u=a(n),u&&(v(n),s(!1))):(f=k(n),f&&(o=r.closest(".pod_wrapper__item"),tt(n,o),s(!0)));$(window).trigger("dayPlannerChanged");l()});$("body").on("click",".js-remove_activity",function(){var r=$(this),n=r.closest(t).data(i),u=a(n);u&&(l(),v(n),s(!1),$(window).trigger("dayPlannerChanged"))});$(window).on("resizeEnd navToggled",function(){r()});r()},initPagination=function(){var n=$(".pagination__toggle"),t=$(".pagination__pages");n.click(function(){$(this).toggleClass("active");t.slideToggle()})},initPrintThis=function(){var n=$(".js-print_this"),t={debug:!1,importCSS:!0,importStyle:!1,printContainer:!0,loadCSS:"path/to/my.css",pageTitle:"",removeInline:!1,printDelay:333,header:'<h1 class="printed_header">Day Planner<\/h1>',base:!1,formValues:!0},i=function(n){if(typeof n=="undefined")return!1;n.printThis(t)};n.on("click",function(){var n=$(this).attr("data-print-target-element-selector"),t;if(typeof n=="undefined")return console.error('please enter a valid "data-print-target-element-selector" value'),!1;t=$(n);i(t)})},initDatePickers=function(){var n=$(".customdatepickerfield");n.each(function(){var n=$(this),u=n.data("val-pastdate"),f=n.data("val-futuredate"),e=n.data("val-mustbeeighteen"),i=null,t=null,r;u?t=moment().toDate():f?i=moment().toDate():e&&(r=moment().subtract(18,"years"),t=r.toDate());n.pikaday({format:"DD/MM/YYYY",minDate:i,maxDate:t,yearRange:100})})},initForms=function(){var n=$("form");n.on("submit",function(){$(window).trigger("formSubmitted")});$(".faux_dob input").change(function(){var n=$(this).parent(".faux_dob__container").parent(".faux_dob").next(".js-dob-concat").attr("id"),t=$(this).parent(".faux_dob__container").parent(".faux_dob").find(".js-dob-day").attr("id"),i=$(this).parent(".faux_dob__container").parent(".faux_dob").find(".js-dob-month").attr("id"),r=$(this).parent(".faux_dob__container").parent(".faux_dob").find(".js-dob-year").attr("id");$("#"+n).val($("#"+t).val()+"/"+$("#"+i).val()+"/"+$("#"+r).val())})};$(document).ready(function(){if($(".faux_dob").length>0){var t=$(".faux_dob").next(".js-dob-concat").attr("id"),i=$(".faux_dob").find("input.js-dob-day").attr("id"),r=$(".faux_dob").find("input.js-dob-month").attr("id"),u=$(".faux_dob").find("input.js-dob-year").attr("id"),f=$("#"+t).val().split(" ")[0],n=f.split("/");$("#"+i).val(n[0]);$("#"+r).val(n[1]);$("#"+u).val(n[2])}});var initAdoptionForm=function(){var n=$("#js-animal_adoption_form"),u=n.find(".js-payment_frequency"),ot=n.find(".js-payment_frequency_button"),e=n.find(".js-adoption_package"),o=n.find(".js-adoption_additions_wrapper"),s=n.find(".js-adoption_package_addition"),k=n.find(".js_annual-price"),d=n.find(".js_total-price"),g=n.find(".js_total-price-before-delivery"),nt=n.find(".js_total-price-with-delivery"),tt=n.find(".js-is_gift"),t=n.find(".js-recipient_destination"),h=n.find(".js-recipient-address-option"),c=n.find(".js-recipient-address-wrapper"),l=n.find(".js-adoption_pack_delivery-option"),st=$(".js-postcode-lookup-address-wrapper"),ht=n.find(".js-adoption-is-gift"),i=!0,a=!1,v=!1,f=0,it="data-monthly-cost",y="data-annual-cost",p=function(n){return parseFloat(n)},w=function(){i=u.filter(":checked").val()=="Monthly"},rt=function(){a=t.filter(":checked").val()==="AGift"},ut=function(){v=h.filter(":checked").val()==="Different"},r=function(){var o=u.filter(":checked").val(),r=e.filter(":checked"),f=i?it:y,n=p(r.attr(f)),t;k.text("£"+n.toFixed(2));i||(t=s.filter(":checked"),t.length&&$.each(t,function(t,i){var r=$(i).attr(y);n+=p(r)}));d.text("£"+n.toFixed(2))},b=function(){var n=l.filter(":checked").data("price");f=parseFloat(g.val())+parseFloat(n);nt.text("£"+f.toFixed(2));$("#Step4.TotalAmount").val(f.toFixed(2));$(window).trigger("formSubmitted")},ft=function(){i?o.hide():o.show();$(window).trigger("formSubmitted")},et=function(n){n?t.show():t.hide();$(window).trigger("formSubmitted")};h.on("change",function(){ut();v?($("#Step3_RecipientAddressLine1").val(""),$("#Step3_RecipientAddressLine2").val(""),$("#Step3_RecipientTown").val(""),$("#Step3_RecipientPostcode").val(""),$("#Step3_RecipientCounty").val(""),$("#Step3_RecipientCountry").val(""),c.show()):($("#Step3_RecipientAddressLine1").val($("#Step2_BillingAddressLine1").val()),$("#Step3_RecipientAddressLine2").val($("#Step2_BillingAddressLine2").val()),$("#Step3_RecipientTown").val($("#Step2_BillingTown").val()),$("#Step3_RecipientPostcode").val($("#Step2_BillingPostcode").val()),$("#Step3_RecipientCounty").val($("#Step2_BillingCounty").val()),$("#Step3_RecipientCountry").val($("#Step2_BillingCountry").val()),c.hide());$(window).trigger("formSubmitted")});t.on("change",function(){rt();a?($("#Step2_IsGift").val(!0),$(".progress_bar__fill").css("width","33%")):($("#Step2_IsGift").val(!1),$(".progress_bar__fill").css("width","50%"));$(window).trigger("formSubmitted")});l.on("change",function(){b()});u.on("change",function(){w();r();ft()});e.on("change",function(){r()});s.on("change",function(){r()});tt.on("change",function(){var n=$(this).is(":checked");et(n)});w();r();b()},initEventCalendar=function(){var n=$(".js-event_calendar");if(n.length){var r,i,f,t="active",u=function(){r=n.find(".js-event_calendar_event");i=n.find(".js-event_calendar_image");f=n.find(".js-event_calendar_load_month_link")},e=function(n){var u=n.data("image"),r;typeof u!="undefined"&&(r=i.filter(function(n,t){return $(t).data("image")==u}),r.length&&(i.not(r).removeClass(t),r.addClass(t)))},o=function(n){r.not(n).removeClass(t);n.addClass(t)},s=function(t){typeof t!="undefined"&&(n.addClass("loading"),setTimeout(function(){$.post(t,function(t){t!==""&&(n.html($(t).html()),u(),$(window).trigger("eventCalendarChanged"),setTimeout(function(){n.removeClass("loading")},300),$("html, body").animate({scrollTop:n.offset().top},500,"swing"))})},300))};u();n.on("mouseenter",".js-event_calendar_event",function(){var n=$(this);o(n);e(n)});n.on("click",".js-event_calendar_load_month_link",function(n){n.preventDefault();s($(this).attr("href"))})}},initMiscFunctions=function(){var t=$("[data-scroll-to-me]").first();if(t.length){var n=t.data("scroll-to-me"),i=50,r=function(){n=typeof n=="undefined"?"position":n;var r=t[n]().top,u=r-i;$("html, body").animate({scrollTop:u+"px"})};$(window).load(function(){r()})}},initPostCodeAddressLookup=function(){var u=$(".js-postcode-lookup"),r=$(".js-postcode-submit");if(u.length&&r.length){var d="/Umbraco/Surface/AddressLookupSurface/GetAddressesByPostcode",g="Success",o="Please select an address...",s="No addresses found",n=[],f=$(".js-postcode-lookup-address-wrapper"),e=$(".js-postcode-lookup-manual-entry-button"),h=$(".js-postcode-lookup-addresses-wrapper"),t=$(".js-postcode-lookup-addresses"),c=$(".js-postcode-lookup-addressline1"),l=$(".js-postcode-lookup-addressline2"),ut=$(".js-postcode-lookup-addressline3"),ft=$(".js-postcode-lookup-addressline4"),et=$(".js-postcode-lookup-addressline5"),ot=$(".js-postcode-lookup-addressline6"),a=$(".js-postcode-lookup-town"),v=$(".js-postcode-lookup-county"),y=$(".js-postcode-lookup-country"),i=f.closest("form"),nt=function(){validator=i.validate();validator.element("#"+u.attr("id"))},tt=function(){r.attr("disabled","disabled")},p=function(){r.removeAttr("disabled")},it=function(){t.find("option[value]").remove();$.each(n,function(n,i){t.append($("<option>",{value:i.SummaryLine,text:i.SummaryLine}))});var i=t.find("option:not([value])");n.length?i.text(o):i.text(s);t.selectric("refresh")},w=function(){c.val("");l.val("");a.val("");v.val("")},b=function(t){var i=n.filter(function(n){return n.SummaryLine==t}),r,u;if(!i.length)return!1;i=i[0];r="{0} {1}".Format([i.AddressLine2||"",i.AddressLine4||""]).trim();u=i.AddressLine6||"";c.val(r);l.val(u);a.val(i.Town||"");v.val(i.County||"");y.val(i.Country||"");y.selectric("refresh")},rt=function(t){n=[];w();$.ajax({type:"POST",url:d,data:{postcode:t},success:function(t){t.Status==g&&(n=t.Addresses,t.RecordCount==1&&b(t.Addresses[0].SummaryLine))}}).always(function(){it();e.hide();h.slideDown(function(){f.stop().slideDown(function(){$(window).trigger("formSubmitted")})});p()})},k=function(){h.hide();e.hide();f.stop().slideDown(function(){$(window).trigger("formSubmitted")})};r.on("click",function(){tt();var n=u.val();if(typeof n=="undefined"||n===null||n==="")return nt(),p(),!1;rt(n)});t.on("change",function(){var n=$(this).val();if(typeof n=="undefined"||n===null||n===""||n===o||n===s)return w(),!1;b(n)});e.on("click",function(){k()});i.on("submit",function(n){if(k(),i.validate(),!i.valid()){n.preventDefault();var t=i.find(".input-validation-error").first();$("html, body").animate({scrollTop:t.offset().top-50},300)}})}},initTabbedContent=function(){var i=".js-tabbed_content_wrapper",t=".js-tabbed_content_button",r=".js-tabbed_content",n="active",u=$(t),f=function(u){var f=u.closest(i),c=f.find(t).not(u),e,s,o,h;c.removeClass(n);e=u.data("target");s=f.find(t).filter('[data-target="'+e+'"]');s.addClass(n);o=f.find(e);h=f.find(r).not(o);h.removeClass(n);o.addClass(n);$(document).foundation("equalizer","reflow")};u.on("click",function(){f($(this))})},initVisibilityToggler=function(){var n=$(".js-visbility_toggler"),i=function(n,t){var i=$(n);t?(i.find("input").first().prop("checked",!0),i.show()):(i.hide(),i.find("input").prop("checked",!1))},t=function(){n.each(function(){var n=$(this),t=n.is(":checked"),r=n.data("visibility-target");i(r,t)})};n.on("change",function(){t()});t()},initGiftAid=function(){var t=".js-gift_aid",i=".js-gift_aid_amount",r=".js-gift_aid_output",u=$(".js-gift_aid_input"),n=function(n,t){return Number(Math.round(n+"e"+t)+"e-"+t)},f=function(u,f){var e=u.find(t),o=u.find(i),s=u.find(r);if(isNaN(f)||f===0)return e.hide(),!1;o.text(n(f,2));s.text(n(f*1.25,2));e.show()};u.on("change",function(){var n=$(this),t=n.closest("form"),i=parseFloat(n.val());f(t,i)})},initFilterListings=function(){var r=$(".js-filter-listings"),i=$(".js-filter-listings__filter"),n=$(".js-filter-listings__results-list"),t=$(".js-filter-listings__result");if(r.length)i.on("click",function(){i.removeClass("active");$(this).addClass("active");t.hide();n.hide();var r=$(this).data("filter-target");r=="All_adoptions"?(t.addClass("active").css("display","inline-block"),n.hide().show().addClass("active")):($.each(t,function(){var t=$(this);$(this).removeClass("active");var i=$(this).data("filter-result"),u=i.split(","),f=u.indexOf(r);f>=0&&(t.addClass("active").css("display","inline-block"),n.hide().show().addClass("active"))}),setTimeout(function(){$(".slick-initialized").slick("unslick");initSliders()},100))})},initHubspotNewsletter=function(){var n=$(".js-hubspot-newsletter-form");n.on("submit",function(n){var i;n.preventDefault();var t=$(this),r=t.find(".js-newsletter-loader"),u=t.find(".js-hubspot-newsletter-submit"),f=t.find(".faux_check_element__input"),e=t.closest(".js-hubspot-newsletter"),o=t.find(".faux_check_element label"),s=t.attr("action");t.validate();i=f[0].checked;o[0].style.borderColor=i?"":"red";t.valid()&&i&&(r.fadeIn(),u.prop("disabled",!0).addClass("loading"),$.ajax({type:"POST",url:s,data:t.serialize(),success:function(n){e.html(n)}}))})},initProfitroomBooking=function(){var r=$(".js_pr-sticky-booking-bar_button"),u=$(".js_pr-sticky-booking-bar_location"),t=$(".js_pr-sticky-booking-bar_checkin"),i=$(".js_pr-sticky-booking-bar_checkout"),f=$(".js_pr-sticky-booking-bar_promocode"),n={firstDay:1,format:"YYYY-MM-DD",minDate:new Date(2018,0,1),maxDate:new Date(2028,12,31),yearRange:[2018,2028]};t.pikaday(n);t.change(function(){var r=n.minDate,u,f;t.val()&&(r=moment(t.val(),n.format).toDate());u=i.val();u!==""&&u!==null&&typeof u!="undefined"&&(f=moment(u,n.format).toDate(),f<r&&i.val(moment(r).format(n.format)));i.pikaday("destroy");i.pikaday({format:n.format,defaultDate:r,minDate:r,maxDate:n.max,yearRange:n.yearRange})});r.on("click",function(n){var e;n.preventDefault();var h=u.val(),o=t.val(),s=i.val(),c=f.val(),r={};o&&s?(h&&(r.RoomID=h),r.checkin=o,r.checkout=s,c&&(r.promocode=c),Booking.Open(r)):(e=!1,o||e||(alert("Please choose a check in date"),e=!0),s||e||(alert("Please choose a check out date"),e=!0))})},initAccordion=function(){$(".tab_accordion__accordionlink").on("click",function(){var n=$(this);n.hasClass("active")?n.removeClass("active").next(".tab_accordion__content").slideUp():(n.parents(".tab_accordion__accordion").find(".tab_accordion__accordionlink.active").removeClass("active"),n.parents(".tab_accordion__accordion").find(".tab_accordion__content").slideUp(),n.addClass("active").next(".tab_accordion__content").slideDown(function(){var t=n.offset();$("html, body").animate({scrollTop:t.top})}));setTimeout(function(){$(window).trigger("accordionToggled")},500)})};initAccordion();$(document).ready(function(){initSelectPlugin();initRTEImages();initVideos();initModals();initEventCalendar();initFullScreenScrollSection();initDayPlanner();initPagination();initPrintThis();initDatePickers();initForms();initAdoptionForm();initEventsForm();initMiscFunctions();initPostCodeAddressLookup();initTabbedContent();initVisibilityToggler();initGiftAid();initFilterListings();initHubspotNewsletter();initProfitroomBooking()})