PageSourceSearch

https://www.leighperegoy.com/storage/opt/38be857fb7028a64e199bb15a55532b1.opt-min.co.js

js leighperegoy.com collected 2026-09-28 17:37:38 UTC 436,076 bytes, 13 lines download raw bytes

1function navigationSublevelWrap(t,e){t.each(function(){var t=$(this),n=t.parents("ul").length;n>0&&t.wrap(function(){return'<div class="'+e+n+'"></div>'})})}function disableLinks(t){$(t).each(function(){("#"===$(this).attr("href")||"javascript.void(0)"===$(this).attr("href"))&&$(this).click(function(t){t.preventDefault()})})}!function(t){var e,n,o,r,s="mmenu",a="5.6.4";t[s]&&t[s].version>a||(t[s]=function(t,e,n){this.$menu=t,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=e,this.conf=n,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var o=this.$pnls.children();return this._initAddons(),this.init(o),"function"==typeof this.___debug&&this.___debug(),this},t[s].version=a,t[s].addons={},t[s].uniqueId=0,t[s].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},t[s].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},t[s].prototype={init:function(t){t=t.not("."+e.nopanel),t=this._initPanels(t),this.trigger("init",t),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(t){this.$menu.find("."+e.listview).children().removeClass(e.selected),t.addClass(e.selected),this.trigger("setSelected",t)},openPanel:function(n){var o=n.parent(),r=this;if(o.hasClass(e.vertical)){var a=o.parents("."+e.subopened);if(a.length)return void this.openPanel(a.first());o.addClass(e.opened),this.trigger("openPanel",n),this.trigger("openingPanel",n),this.trigger("openedPanel",n)}else{if(n.hasClass(e.current))return;var l=this.$pnls.children("."+e.panel),c=l.filter("."+e.current);l.removeClass(e.highest).removeClass(e.current).not(n).not(c).not("."+e.vertical).addClass(e.hidden),t[s].support.csstransitions||c.addClass(e.hidden),n.hasClass(e.opened)?n.nextAll("."+e.opened).addClass(e.highest).removeClass(e.opened).removeClass(e.subopened):(n.addClass(e.highest),c.addClass(e.subopened)),n.removeClass(e.hidden).addClass(e.current),r.trigger("openPanel",n),setTimeout(function(){n.removeClass(e.subopened).addClass(e.opened),r.trigger("openingPanel",n),r.__transitionend(n,function(){r.trigger("openedPanel",n)},r.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(t){var n=t.parent();n.hasClass(e.vertical)&&(n.removeClass(e.opened),this.trigger("closePanel",t),this.trigger("closingPanel",t),this.trigger("closedPanel",t))},closeAllPanels:function(){this.$menu.find("."+e.listview).children().removeClass(e.selected).filter("."+e.vertical).removeClass(e.opened);var t=this.$pnls.children("."+e.panel).first();this.$pnls.children("."+e.panel).not(t).removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden),this.openPanel(t)},togglePanel:function(t){var n=t.parent();n.hasClass(e.vertical)&&this[n.hasClass(e.opened)?"closePanel":"openPanel"](t)},getInstance:function(){return this},bind:function(t,e){this.cbck[t]=this.cbck[t]||[],this.cbck[t].push(e)},trigger:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();if(this.cbck[e])for(var n=0,o=this.cbck[e].length;o>n;n++)this.cbck[e][n].apply(this,t)},_initMenu:function(){this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){t(this).attr("id",e.mm(t(this).attr("id")))})),this.$menu.contents().each(function(){3==t(this)[0].nodeType&&t(this).remove()}),this.$pnls=t('<div class="'+e.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(e.wrapper);var n=[e.menu];this.opts.slidingSubmenus||n.push(e.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&n.push(this.opts.extensions),this.$menu.addClass(n.join(" "))},_initPanels:function(o){var r=this,s=this.__findAddBack(o,"ul, ol");this.__refactorClass(s,this.conf.classNames.inset,"inset").addClass(e.nolistview+" "+e.nopanel),s.not("."+e.nolistview).addClass(e.listview);var a=this.__findAddBack(o,"."+e.listview).children();this.__refactorClass(a,this.conf.classNames.selected,"selected"),this.__refactorClass(a,this.conf.classNames.divider,"divider"),this.__refactorClass(a,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(o,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");
1var l=t(),c=o.add(o.find("."+e.panel)).add(this.__findAddBack(o,"."+e.listview).children().children(this.conf.panelNodetype)).not("."+e.nopanel);this.__refactorClass(c,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||c.addClass(e.vertical),c.each(function(){var n=t(this),o=n;n.is("ul, ol")?(n.wrap('<div class="'+e.panel+'" />'),o=n.parent()):o.addClass(e.panel);var s=n.attr("id");n.removeAttr("id"),o.attr("id",s||r.__getUniqueId()),n.hasClass(e.vertical)&&(n.removeClass(r.conf.classNames.vertical),o.add(o.parent()).addClass(e.vertical)),l=l.add(o)});var u=t("."+e.panel,this.$menu);l.each(function(o){var s,a,l=t(this),c=l.parent(),u=c.children("a, span").first();if(c.is("."+e.panels)||(c.data(n.sub,l),l.data(n.parent,c)),c.children("."+e.next).length||c.parent().is("."+e.listview)&&(s=l.attr("id"),a=t('<a class="'+e.next+'" href="#'+s+'" data-target="#'+s+'" />').insertBefore(u),u.is("span")&&a.addClass(e.fullsubopen)),!l.children("."+e.navbar).length&&!c.hasClass(e.vertical)){c=c.parent().is("."+e.listview)?c.closest("."+e.panel):(u=c.closest("."+e.panel).find('a[href="#'+l.attr("id")+'"]').first()).closest("."+e.panel);var d=!1,p=t('<div class="'+e.navbar+'" />');if(c.length){switch(s=c.attr("id"),r.opts.navbar.titleLink){case"anchor":d=u.attr("href");break;case"panel":case"parent":d="#"+s;break;default:d=!1}p.append('<a class="'+e.btn+" "+e.prev+'" href="#'+s+'" data-target="#'+s+'" />').append(t('<a class="'+e.title+'"'+(d?' href="'+d+'"':"")+" />").text(u.text())).prependTo(l),r.opts.navbar.add&&l.addClass(e.hasnavbar)}else r.opts.navbar.title&&(p.append('<a class="'+e.title+'">'+r.opts.navbar.title+"</a>").prependTo(l),r.opts.navbar.add&&l.addClass(e.hasnavbar))}});var d=this.__findAddBack(o,"."+e.listview).children("."+e.selected).removeClass(e.selected).last().addClass(e.selected);d.add(d.parentsUntil("."+e.menu,"li")).filter("."+e.vertical).addClass(e.opened).end().each(function(){t(this).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened)}),d.children("."+e.panel).not("."+e.vertical).addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened);var p=u.filter("."+e.opened);return p.length||(p=l.first()),p.addClass(e.opened).last().addClass(e.current),l.not("."+e.vertical).not(p.last()).addClass(e.hidden).end().filter(function(){return!t(this).parent().hasClass(e.panels)}).appendTo(this.$pnls),l},_initAnchors:function(){var n=this;r.$body.on(o.click+"-oncanvas","a[href]",function(o){var r=t(this),a=!1,l=n.$menu.find(r).length;for(var c in t[s].addons)if(t[s].addons[c].clickAnchor.call(n,r,l)){a=!0;break}var u=r.attr("href");if(!a&&l&&u.length>1&&"#"==u.slice(0,1))try{var d=t(u,n.$menu);d.is("."+e.panel)&&(a=!0,n[r.parent().hasClass(e.vertical)?"togglePanel":"openPanel"](d))}catch(t){}if(a&&o.preventDefault(),!a&&l&&r.is("."+e.listview+" > li > a")&&!r.is('[rel="external"]')&&!r.is('[target="_blank"]')){n.__valueOrFn(n.opts.onClick.setSelected,r)&&n.setSelected(t(o.target).parent());var p=n.__valueOrFn(n.opts.onClick.preventDefault,r,"#"==u.slice(0,1));p&&o.preventDefault(),n.__valueOrFn(n.opts.onClick.close,r,p)&&n.close()}})},_initAddons:function(){var e;for(e in t[s].addons)t[s].addons[e].add.call(this),t[s].addons[e].add=function(){};for(e in t[s].addons)t[s].addons[e].setup.call(this)},_getOriginalMenuId:function(){var t=this.$menu.attr("id");return t&&t.length&&this.conf.clone&&(t=e.umm(t)),t},__api:function(){var e=this,n={};return t.each(this._api,function(t){var o=this;n[o]=function(){var t=e[o].apply(e,arguments);return void 0===t?n:t}}),n},__valueOrFn:function(t,e,n){return"function"==typeof t?t.call(e[0]):void 0===t&&void 0!==n?n:t},__refactorClass:function(t,n,o){return t.filter("."+n).removeClass(n).addClass(e[o])},__findAddBack:function(t,e){return t.find(e).add(t.filter(e))},__filterListItems:function(t){return t.not("."+e.divider).not("."+e.hidden)},__transitionend:function(t,e,n){var r=!1,s=function(){r||e.call(t[0]),r=!0};t.one(o.transitionend,s),t.one(o.webkitTransitionEnd,s),setTimeout(s,1.1*n)},__getUniqueId:function(){return e.mm(t[s].uniqueId++)}},t.fn[s]=function(a,l){return t[s].glbl||(r={$wndw:t(window),$docu:t(document),$html:t("html"),$body:t("body")},e={},n={},o={},t.each([e,n,o],function(t,e){e.add=function(t){t=t.split(" ");for(var n=0,o=t.length;o>n;n++)e[t[n]]=e.mm(t[n])}}),e.mm=function(t){return"mm-"+t},e.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),e.umm=function(t){return"mm-"==t.slice(0,3)&&(t=t.
1slice(3)),t},n.mm=function(t){return"mm-"+t},n.add("parent sub"),o.mm=function(t){return t+".mm"},o.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),t[s]._c=e,t[s]._d=n,t[s]._e=o,t[s].glbl=r),a=t.extend(!0,{},t[s].defaults,a),l=t.extend(!0,{},t[s].configuration,l),this.each(function(){var e=t(this);if(!e.data(s)){var n=new t[s](e,a,l);n.$menu.data(s,n.__api())}})},t[s].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&void 0!==Modernizr.csstransitions)return Modernizr.csstransitions;var t=(document.body||document.documentElement).style,e="transition";if("string"==typeof t[e])return!0;var n=["Moz","webkit","Webkit","Khtml","O","ms"];e=e.charAt(0).toUpperCase()+e.substr(1);for(var o=0;o<n.length;o++)if("string"==typeof t[n[o]+e])return!0;return!1}()})}(jQuery),function(t){var e,n,o,r,s="mmenu",a="offCanvas";t[s].addons[a]={setup:function(){if(this.opts[a]){var n=this.opts[a],o=this.conf[a
1];r=t[s].glbl,this._api=t.merge(this._api,["open","close","setPage"]),("top"==n.position||"bottom"==n.position)&&(n.zposition="front"),"string"!=typeof o.pageSelector&&(o.pageSelector="> "+o.pageNodetype),r.$allMenus=(r.$allMenus||t()).add(this.$menu),this.vars.opened=!1;var l=[e.offcanvas];"left"!=n.position&&l.push(e.mm(n.position)),"back"!=n.zposition&&l.push(e.mm(n.zposition)),this.$menu.addClass(l.join(" ")).parent().removeClass(e.wrapper),this.setPage(r.$page),this._initBlocker(),this["_initWindow_"+a](),this.$menu[o.menuInjectMethod+"To"](o.menuWrapperSelector);var c=window.location.hash;if(c){var u=this._getOriginalMenuId();u&&u==c.slice(1)&&this.open()}}},add:function(){e=t[s]._c,n=t[s]._d,o=t[s]._e,e.add("offcanvas slideout blocking modal background opening blocker page"),n.add("style"),o.add("resize")},clickAnchor:function(t,e){if(!this.opts[a])return!1;var n=this._getOriginalMenuId();return n&&t.is('[href="#'+n+'"]')?(this.open(),!0):r.$page?!!((n=r.$page.first().attr("id"))&&t.is('[href="#'+n+'"]'))&&(this.close(),!0):void 0}},t[s].defaults[a]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},t[s].configuration[a]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},t[s].prototype.open=function(){if(!this.vars.opened){var t=this;this._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger("open")}},t[s].prototype._openSetup=function(){var s=this,l=this.opts[a];this.closeAllOthers(),r.$page.each(function(){t(this).data(n.style,t(this).attr("style")||"")}),r.$wndw.trigger(o.resize+"-"+a,[!0]);var c=[e.opened];l.blockUI&&c.push(e.blocking),"modal"==l.blockUI&&c.push(e.modal),l.moveBackground&&c.push(e.background),"left"!=l.position&&c.push(e.mm(this.opts[a].position)),"back"!=l.zposition&&c.push(e.mm(this.opts[a].zposition)),this.opts.extensions&&c.push(this.opts.extensions),r.$html.addClass(c.join(" ")),setTimeout(function(){s.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(e.current+" "+e.opened)},t[s].prototype._openFinish=function(){var t=this;this.__transitionend(r.$page.first(),function(){t.trigger("opened")},this.conf.transitionDuration),r.$html.addClass(e.opening),this.trigger("opening")},t[s].prototype.close=function(){if(this.vars.opened){var o=this;this.__transitionend(r.$page.first(),function(){o.$menu.removeClass(e.current).removeClass(e.opened),r.$html.removeClass(e.opened).removeClass(e.blocking).removeClass(e.modal).removeClass(e.background).removeClass(e.mm(o.opts[a].position)).removeClass(e.mm(o.opts[a].zposition)),o.opts.extensions&&r.$html.removeClass(o.opts.extensions),r.$page.each(function(){t(this).attr("style",t(this).data(n.style))}),o.vars.opened=!1,o.trigger("closed")},this.conf.transitionDuration),r.$html.removeClass(e.opening),this.trigger("close"),this.trigger("closing")}},t[s].prototype.closeAllOthers=function(){r.$allMenus.not(this.$menu).each(function(){var e=t(this).data(s);e&&e.close&&e.close()})}
1,t[s].prototype.setPage=function(n){var o=this,s=this.conf[a];n&&n.length||(n=r.$body.find(s.pageSelector),s.noPageSelector.length&&(n=n.not(s.noPageSelector.join(", "))),n.length>1&&s.wrapPageIfNeeded&&(n=n.wrapAll("<"+this.conf[a].pageNodetype+" />").parent())),n.each(function(){t(this).attr("id",t(this).attr("id")||o.__getUniqueId())}),n.addClass(e.page+" "+e.slideout),r.$page=n,this.trigger("setPage",n)},t[s].prototype["_initWindow_"+a]=function(){r.$wndw.off(o.keydown+"-"+a).on(o.keydown+"-"+a,function(t){return r.$html.hasClass(e.opened)&&9==t.keyCode?(t.preventDefault(),!1):void 0});var t=0;r.$wndw.off(o.resize+"-"+a).on(o.resize+"-"+a,function(n,o){if(1==r.$page.length&&(o||r.$html.hasClass(e.opened))){var s=r.$wndw.height();(o||s!=t)&&(t=s,r.$page.css("minHeight",s))}})},t[s].prototype._initBlocker=function(){var n=this;this.opts[a].blockUI&&(r.$blck||(r.$blck=t('<div id="'+e.blocker+'" class="'+e.slideout+'" />')),r.$blck.appendTo(r.$body).off(o.touchstart+"-"+a+" "+o.touchmove+"-"+a).on(o.touchstart+"-"+a+" "+o.touchmove+"-"+a,function(t){t.preventDefault(),t.stopPropagation(),r.$blck.trigger(o.mousedown+"-"+a)}).off(o.mousedown+"-"+a).on(o.mousedown+"-"+a,function(t){t.preventDefault(),r.$html.hasClass(e.modal)||(n.closeAllOthers(),n.close())}))}}(jQuery),function(t){var e,n,o,r="mmenu",s="scrollBugFix";t[r].addons[s]={setup:function(){var a=this,l=this.opts[s];if(this.conf[s],o=t[r].glbl,t[r].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof l&&(l={fix:l}),"object"!=typeof l&&(l={}),(l=this.opts[s]=t.extend(!0,{},t[r].defaults[s],l)).fix)){var c=this.$menu.attr("id"),u=!1;this.bind("opening",function(){this.$pnls.children("."+e.current).scrollTop(0)}),o.$docu.on(n.touchmove,function(t){a.vars.opened&&t.preventDefault()}),o.$body.on(n.touchstart,"#"+c+"> ."+e.panels+"> ."+e.current,function(t){a.vars.opened&&(u||(u=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),u=!1))}).on(n.touchmove,"#"+c+"> ."+e.panels+"> ."+e.current,function(e){a.vars.opened&&t(this)[0].scrollHeight>t(this).innerHeight()&&e.stopPropagation()}),o.$wndw.on(n.orientationchange,function(){a.$pnls.children("."+e.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){e=t[r]._c,t[r]._d,n=t[r]._e},clickAnchor:function(t,e){}},t[r].defaults[s]={fix:!0}}(jQuery),function(t){var e,n,o="mmenu",r="autoHeight";t[o].addons[r]={setup:function(){if(this.opts.offCanvas){var n=this.opts[r];if(this.conf[r],t[o].glbl,"boolean"==typeof n&&n&&(n={height:"auto"}),"string"==typeof n&&(n={height:n}),"object"!=typeof n&&(n={}),"auto"==(n=this.opts[r]=t.extend(!0,{},t[o].defaults[r],n)).height||"highest"==n.height){this.$menu.addClass(e.autoheight);var s=function(o){if(this.vars.opened){var r=parseInt(this.$pnls.css("top"),10)||0,s=parseInt(this.$pnls.css("bottom"),10)||0,a=0;this.$menu.addClass(e.measureheight),"auto"==n.height?((o=o||this.$pnls.children("."+e.current)).is("."+e.vertical)&&(o=o.parents("."+e.panel).not("."+e.vertical).first()),a=o.outerHeight()):"highest"==n.height&&this.$pnls.children().each(function(){var n=t(this);n.is("."+e.vertical)&&(n=n.parents("."+e.panel).not("."+e.vertical).first()),a=Math.max(a,n.outerHeight())}),this.$menu.height(a+r+s).removeClass(e.measureheight)}};this.bind("opening",s),"highest"==n.height&&this.bind("init",s),"auto"==n.height&&(this.bind("update",s),this.bind("openPanel",s),this.bind("closePanel",s))}}},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("autoheight measureheight"),n.add("resize")},clickAnchor:function(t,e){}},t[o].defaults[r]={height:"default"}}(jQuery),function(t){var e,n,o="mmenu",r="backButton";t[o].addons[r]={setup:function(){if(this.opts.offCanvas){var s=this,a=this.opts[r];if(this.conf[r],n=t[o].glbl,"boolean"==typeof a&&(a={close:a}),"object"!=typeof a&&(a={}),(a=t.extend(!0,{},t[o].defaults[r],a)).close){var l="#"+s.$menu.attr("id");this.bind("opened",function(t){location.hash!=l&&history.pushState(null,document.title,l)}),t(window).on("popstate",function(t){n.$html.hasClass(e.opened)?(t.stopPropagation(),s.close()):location.hash==l&&(t.stopPropagation(),s.open())})}}},add:function(){return window.history&&window.history.pushState?(e=t[o]._c,t[o]._d,void t[o]._e):void(t[o].addons[r].setup=function(){})},clickAnchor:function(t,e){}},t[o].defaults[r]={close:!1}}(jQuery),function(t){var e,n,o="mmenu",r="columns";t[o].addons[r]={setup:function(){var s=this.opts[r];if(this.conf[r],n=t[o].glbl,"boolean"==typeof s&&(s={add:s}),"number"==typeof s&&(s={add:!0,visible:s}),"object"!=typeof s&&(s={}),"number"==typeof s.visible&&(s.visible={min:s.visible,max:s.visible}),(s=this.opts[r]=t.extend(!0,{},t[o].defaults[r],s)).add){s.visible.min=Math.max(1,Math.min(6,s.visible.min)),s.visible.max=Math.max(s.visible.min,Math.min(6,s.visible.max)),this.$menu.addClass(e.columns);for(var a=this.opts.offCanvas?this.$menu.add(n.$html):this.$menu,l=[],c=0;c<=s.visible.max;
1c++)l.push(e.columns+"-"+c);l=l.join(" ");var u=function(){var t=this.$pnls.children("."+e.panel).filter("."+e.opened).length;t=Math.min(s.visible.max,Math.max(s.visible.min,t)),a.removeClass(l).addClass(e.columns+"-"+t)},d=function(n){this.$pnls.children("."+e.panel).removeClass(l).filter("."+e.subopened).removeClass(e.hidden).add(n).slice(-s.visible.max).each(function(n){t(this).addClass(e.columns+"-"+n)})};this.bind("open",u),this.bind("close",function(){this.opts.offCanvas&&n.$html.removeClass(l)}),this.bind("init",function(t){d.call(this,this.$pnls.children("."+e.current)),s.hideNavbars&&t.removeClass(e.hasnavbar)}),this.bind("openPanel",d),this.bind("openingPanel",u),this.bind("openedPanel",u),this.opts.offCanvas||u.call(this)}},add:function(){e=t[o]._c,t[o]._d,t[o]._e,e.add("columns")},clickAnchor:function(n,o){if(!this.opts[r].add)return!1;if(o){var s=n.attr("href");if(s.length>1&&"#"==s.slice(0,1))try{if(t(s,this.$menu).is("."+e.panel))for(var a=parseInt(n.closest("."+e.panel).attr("class").split(e.columns+"-")[1].split(" ")[0],10)+1;!1!==a;){var l=this.$pnls.children("."+e.columns+"-"+a);if(!l.length){a=!1;break}a++,l.removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden)}}catch(t){}}}},t[o].defaults[r]={add:!1,visible:{min:1,max:3},hideNavbars:!1}}(jQuery),function(t){var e,n,o="mmenu",r="counters";t[o].addons[r]={setup:function(){var s=this,a=this.opts[r];this.conf[r],t[o].glbl,"boolean"==typeof a&&(a={add:a,update:a}),"object"!=typeof a&&(a={}),a=this.opts[r]=t.extend(!0,{},t[o].defaults[r],a),this.bind("init",function(e){this.__refactorClass(t("em",e),this.conf.classNames[r].counter,"counter")}),a.add&&this.bind("init",function(o){var r;("panels"===a.addTo?o:o.filter(a.addTo)).each(function(){var o=t(this).data(n.parent);o&&(o.children("em."+e.counter).length||o.prepend(t('<em class="'+e.counter+'" />')))})}),a.update&&this.bind("update",function(){this.$pnls.children("."+e.panel).each(function(){var o=t(this),r=o.data(n.parent);if(r){var a=r.children("em."+e.counter);a.length&&(o=o.children("."+e.listview)).length&&a.html(s.__filterListItems(o.children()).length)}})})},add:function(){e=t[o]._c,n=t[o]._d,t[o]._e,e.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},t[o].defaults[r]={add:!1,addTo:"panels",update:!1},t[o].configuration.classNames[r]={counter:"Counter"}}(jQuery),function(t){var e,n,o="mmenu",r="dividers";t[o].addons[r]={setup:function(){var s=this,a=this.opts[r];if(this.conf[r],t[o].glbl,"boolean"==typeof a&&(a={add:a,fixed:a}),"object"!=typeof a&&(a={}),a=this.opts[r]=t.extend(!0,{},t[o].defaults[r],a),this.bind("init",function(e){this.__refactorClass(t("li",this.$menu),this.conf.classNames[r].collapsed,"collapsed")}),a.add&&this.bind("init",function(n){var o;o="panels"===a.addTo?n:n.filter(a.addTo),t("."+e.divider,o).remove(),o.find("."+e.listview).not("."+e.vertical).each(function(){var n="";s.__filterListItems(t(this).children()).each(function(){var o=t.trim(t(this).children("a, span").text()).slice(0,1).toLowerCase();o!=n&&o.length&&(n=o,t('<li class="'+e.divider+'">'+o+"</li>").insertBefore(this))})})}),a.collapse&&this.bind("init",function(n){t("."+e.divider,n).each(function(){var n=t(this);n.nextUntil("."+e.divider,"."+e.collapsed).length&&(n.children("."+e.subopen).length||(n.wrapInner("<span />"),n.prepend('<a href="#" class="'+e.subopen+" "+e.fullsubopen+'" />')))})}),a.fixed){var l=function(n){if((n=n||this.$pnls.children("."+e.current)).find("."+e.divider).not("."+e.hidden).length){this.$menu.addClass(e.hasdividers);var o=n.scrollTop()||0,r="";n.is(":visible")&&n.find("."+e.divider).not("."+e.hidden).each(function(){t(this).position().top+o<o+1&&(r=t(this).text())}),this.$fixeddivider.text(r)}else this.$menu.removeClass(e.hasdividers)};this.$fixeddivider=t('<ul class="'+e.listview+" "+e.fixeddivider+'"><li class="'+e.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",l),this.bind("update",l),this.bind("init",function(e){e.off(n.scroll+"-dividers "+n.touchmove+"-dividers").on(n.scroll+"-dividers "+n.touchmove+"-dividers",function(e){l.call(s,t(this))})})}},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("collapsed uncollapsed fixeddivider hasdividers"),n.add("scroll")},clickAnchor:function(t,n){if(this.opts[r].collapse&&n){var o=t.parent();if(o.is("."+e.divider)){var s=o.nextUntil("."+e.divider,"."+e.collapsed);return o.toggleClass(e.opened),s[o.hasClass(e.opened)?"addClass":"removeClass"](e.uncollapsed),!0}}return!1}},t[o].defaults[r]={add:!1,addTo:"panels",fixed:!1,collapse:!1},t[o].configuration.classNames[r]={collapsed:"Collapsed"}}(jQuery),function(t){function e(t,e,n){return e>t&&(t=e),t>n&&(t=n),t}var n,o,r="mmenu",s="dragOpen";t[r].addons[s]={setup:function(){if(this.opts.offCanvas){var a=this,l=this.opts[s],c=this.conf[s];if(o=t[r].glbl,"boolean"==typeof l&&(l={open:l}),"object"!=typeof l&&(l={}),(l=this.opts[s]=t.extend(!0,{},t[r].defaults[s],l)).open){var u,d,p,h,f,v={},g=0,m=!1,y=!1,b=0,_=0;switch(this.opts.offCanvas.position){case"left":case"right":v.events="panleft panright",v.typeLower="x",v.typeUpper="X",y="width";break;case"top":case"bottom":v.events="panup pandown",v.typeLower="y",v.typeUpper="Y",y="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":v.negative=!0,h=function(t){t>=o.$wndw[y]()-l.maxStartPos&&(g=1)};break;default:v.negative=!1,h=function(t){t<=l.maxStartPos&&(g=1)}}switch(this.opts.offCanvas.position){case"left":v.open_dir="right",v.close_dir="left";break;case"right":v.open_dir="left",v.close_dir="right";break;case"top":v.open_dir="down",v.close_dir="up";break;case"bottom":v.open_dir="up",v.close_dir="down"}f="front"===this.opts.offCanvas.zposition?function(){return this.$menu}:function(){return t("."+n.slideout)};var w=this.__valueOrFn(l.pageNode,this.$menu,o.$page);"string"==typeof w&&(w=t(w)),new Hammer(w[0],l.vendors.hammer).on("panstart",function(t){h(t.center[v.typeLower]),o.$slideOutNodes=f(),m=v.open_dir}).on(v.events+" panend",function(t){g>0&&t.preventDefault()}).on(v.events,function(t){if(u=t["delta"+v.typeUpper],v.negative&&(u=-u),u!=b&&(m=u>=b?v.open_dir:v.close_dir),(b=u)>l.threshold&&1==g){if(o.$html.hasClass(n.opened))return;g=2,a._openSetup(),a.trigger("opening"),o.$html.addClass(n.dragging),_=e(o.$wndw[y]()*c[y].perc,c[y].min,c[y].max)}2==g&&(d=e(b,10,_)-("front"==a.opts.offCanvas.zposition?_:0),v.negative&&(d=-d),p="translate"+v.typeUpper+"("+d+"px )",o.$slideOutNodes.css({"-webkit-transform":"-webkit-"+p,transform:p}))}).on("panend",function(t){2==g&&(o.$html.removeClass(n.dragging),o.$slideOutNodes.css("transform",""),a[m==v.open_dir?"_openFinish":"close"]()),g=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(t[r].addons[s].setup=function(){}):(n=t[r]._c,t[r]._d,t[r]._e,void n.add("dragging"))},clickAnchor:function(t,e){}},t[r].defaults[s]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer
1:{}}},t[r].configuration[s]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}}}(jQuery),function(t){var e,n,o,r,s="mmenu",a="dropdown";t[s].addons[a]={setup:function(){if(this.opts.offCanvas){var l=this,c=this.opts[a],u=this.conf[a];if(r=t[s].glbl,"boolean"==typeof c&&c&&(c={drop:c}),"object"!=typeof c&&(c={}),"string"==typeof c.position&&(c.position={of:c.position}),(c=this.opts[a]=t.extend(!0,{},t[s].defaults[a],c)).drop){if("string"!=typeof c.position.of){var d=this.$menu.attr("id");d&&d.length&&(this.conf.clone&&(d=e.umm(d)),c.position.of='[href="#'+d+'"]')}if("string"==typeof c.position.of){var p=t(c.position.of);if(p.length){this.$menu.addClass(e.dropdown),c.tip&&this.$menu.addClass(e.tip),c.event=c.event.split(" "),1==c.event.length&&(c.event[1]=c.event[0]),"hover"==c.event[0]&&p.on(o.mouseenter+"-dropdown",function(){l.open()}),"hover"==c.event[1]&&this.$menu.on(o.mouseleave+"-dropdown",function(){l.close()}),this.bind("opening",function(){this.$menu.data(n.style,this.$menu.attr("style")||""),r.$html.addClass(e.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(n.style)),r.$html.removeClass(e.dropdown)});var h=function(n,o){var l,d,h=o[0],f=o[1],v="x"==n?"left":"top",g="x"==n?"right":"bottom",m="x"==n?"width":"height",y=null,b=r.$wndw["x"==n?"scrollLeft":"scrollTop"](),_=p.offset()[v]-=b,w=_+p["x"==n?"outerWidth":"outerHeight"](),T=r.$wndw[m](),j=u.offset.button[n]+u.offset.viewport[n];if(c.position[n])switch(c.position[n]){case"left":case"bottom":y="after";break;case"right":case"top":y="before"}return null===y&&(y=T/2>_+(w-_)/2?"after":"before"),"after"==y?(d=T-((l="x"==n?_:w)+j),h[v]=l+u.offset.button[n],h[g]="auto",f.push(e["x"==n?"tipleft":"tiptop"])):(d=(l="x"==n?w:_)-j,h[g]="calc( 100% - "+(l-u.offset.button[n])+"px )",h[v]="auto",f.push(e["x"==n?"tipright":"tipbottom"])),h["x"==n?"maxWidth":"maxHeight"]=Math.min(t[s].configuration[a][m].max,d),[h,f]},f=function(t){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(n.style));var o=[{},[]];o=h.call(this,"y",o),o=h.call(this,"x",o),this.$menu.css(o[0]),c.tip&&this.$menu.removeClass(e.tipleft+" "+e.tipright+" "+e.tiptop+" "+e.tipbottom).addClass(o[1].join(" "))}};this.bind("opening",f),r.$wndw.on(o.resize+"-dropdown",function(t){f.call(l)}),this.opts.offCanvas.blockUI||r.$wndw.on(o.scroll+"-dropdown",function(t){f.call(l)})}}}}},add:function(){e=t[s]._c,n=t[s]._d,o=t[s]._e,e.add("dropdown tip tipleft tipright tiptop tipbottom"),o.add("mouseenter mouseleave resize scroll")},clickAnchor:function(t,e){}},t[s].defaults[a]={drop:!1,event:"click",position:{},tip:!0},t[s].configuration[a]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}}}(jQuery),function(t){var e,n,o="mmenu",r="fixedElements";t[o].addons[r]={setup:function(){if(this.opts.offCanvas){var e=this.opts[r];this.conf[r],n=t[o].glbl,e=this.opts[r]=t.extend(!0,{},t[o].defaults[r],e);var s=function(t){var e=this.conf.classNames[r].fixed;this.__refactorClass(t.find("."+e),e,"slideout").appendTo(n.$body)};s.call(this,n.$page),this.bind("setPage",s)}},add:function(){e=t[o]._c,t[o]._d,t[o]._e,e.add("fixed")},clickAnchor:function(t,e){}},t[o].configuration.classNames[r]={fixed:"Fixed"}}(jQuery),function(t){var e,n="mmenu",o="iconPanels";t[n].addons[o]={setup:function(){var r=this,s=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof s&&(s={add:s}),"number"==typeof s&&(s={add:!0,visible:s}),"object"!=typeof s&&(s={}),s=this.opts[o]=t.extend(!0,{},t[n].defaults[o],s),s.visible++,s.add){this.$menu.addClass(e.iconpanel);for(var a=[],l=0;l<=s.visible;l++)a.push(e.iconpanel+"-"+l);a=a.join(" ");var c=function(n){n.hasClass(e.vertical)||r.$pnls.children("."+e.panel).removeClass(a).filter("."+e.subopened).removeClass(e.hidden).add(n).not("."+e.vertical).slice(-s.visible).each(function(n){t(this).addClass(e.iconpanel+"-"+n)})};this.bind("openPanel",c),this.bind("init",function(n){c.call(r,r.$pnls.children("."+e.current)),s.hideNavbars&&n.removeClass(e.hasnavbar),n.not("."+e.vertical).each(function(){t(this).children("."+e.subblocker).length||t(this).prepend('<a href="#'+t(this).closest("."+e.panel).attr("id")+'" class="'+e.subblocker+'" />')})})}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("iconpanel subblocker")},clickAnchor:function(t,e){}},t[n].defaults[o]={add:!1,visible:3,hideNavbars:!1}}(jQuery),function(t){var e,n="mmenu",o="navbars";t[n].addons[o]={setup:function(){var r=this,s=this.opts[o],a=this.conf[o];if(t[n].glbl,void 0!==s){s instanceof Array||(s=[s]);var l={};for(var c in t.each(s,function(c){var u=s[c];"boolean"==typeof u&&u&&(u={}),"object"!=typeof u&&(u={}),void 0===u.content&&(u.content=["prev","title"]),u.content instanceof Array||(u.content=[u.content]);var d=(u=t.extend(!0,{},r.opts.navbar,u)).position,p=u.height;"number"!=typeof p&&(p=1),p=Math.min(4,Math.max(1,p)),"bottom"!=d&&(d="top"),l[d]||(l[d]=0),l[d]++;var h=t("<div />").addClass(e.navbar+" "+e.navbar+"-"+d+" "+e.navbar+"-"+d+"-"+l[d]+" "+e.navbar+"-size-"+p);l[d]+=p-1;for(var f=0,v=0,g=u.content.length;g>v;v++){var m=t[n].addons[o][u.content[v]]||!1;m?f+=m.call(r,h,u,a):((m=u.content[v])instanceof t||(m=t(u.content[v])),h.append(m))}(f+=Math.ceil(h.children().not("."+e.btn).not("."+e.title+"-prev").length/p))>1&&h.addClass(e.navbar+"-content-"+f),h.children("."+e.btn).length&&h.addClass(e.hasbtns),h.prependTo(r.$menu)}),l)r.$menu.addClass(e.hasnavbar+"-"+c+"-"+l[c])}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("close hasbtns")},clickAnchor:function(t,e){}},t[n].configuration[o]={breadcrumbSeparator:"/"}
1,t[n].configuration.classNames[o]={}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.breadcrumbs=function(n,o,r){var s=t[e]._c,a=t[e]._d;s.add("breadcrumbs separator");var l=t('<span class="'+s.breadcrumbs+'" />').appendTo(n);this.bind("init",function(e){e.removeClass(s.hasnavbar).each(function(){for(var e=[],n=t(this),o=t('<span class="'+s.breadcrumbs+'"></span>'),l=t(this).children().first(),c=!0;l&&l.length;){l.is("."+s.panel)||(l=l.closest("."+s.panel));var u=l.children("."+s.navbar).children("."+s.title).text();e.unshift(c?"<span>"+u+"</span>":'<a href="#'+l.attr("id")+'">'+u+"</a>"),c=!1,l=l.data(a.parent)}o.append(e.join('<span class="'+s.separator+'">'+r.breadcrumbSeparator+"</span>")).appendTo(n.children("."+s.navbar))})});var c=function(){l.html(this.$pnls.children("."+s.current).children("."+s.navbar).children("."+s.breadcrumbs).html())};return this.bind("openPanel",c),this.bind("init",c),0}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.close=function(n,o){var r=t[e]._c,s=t[e].glbl,a=t('<a class="'+r.close+" "+r.btn+'" href="#" />').appendTo(n),l=function(t){a.attr("href","#"+t.attr("id"))};return l.call(this,s.$page),this.bind("setPage",l),-1}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].next=function(o,r){var s,a,l=t[e]._c,c=t('<a class="'+l.next+" "+l.btn+'" href="#" />').appendTo(o),u=function(t){var e=(t=t||this.$pnls.children("."+l.current)).find("."+this.conf.classNames[n].panelNext);s=e.attr("href"),a=e.html(),c[s?"attr":"removeAttr"]("href",s),c[s||a?"removeClass":"addClass"](l.hidden),c.html(a)};return this.bind("openPanel",u),this.bind("init",function(){u.call(this)}),-1},t[e].configuration.classNames[n].panelNext="Next"}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].prev=function(o,r){var s=t[e]._c,a=t('<a class="'+s.prev+" "+s.btn+'" href="#" />').appendTo(o);this.bind("init",function(t){t.removeClass(s.hasnavbar).children("."+s.navbar).addClass(s.hidden)});var l,c,u=function(t){if(!(t=t||this.$pnls.children("."+s.current)).hasClass(s.vertical)){var e=t.find("."+this.conf.classNames[n].panelPrev);e.length||(e=t.children("."+s.navbar).children("."+s.prev)),l=e.attr("href"),c=e.html(),a[l?"attr":"removeAttr"]("href",l),a[l||c?"removeClass":"addClass"](s.hidden),a.html(c)}};return this.bind("openPanel",u),this.bind("init",function(){u.call(this)}),-1},t[e].configuration.classNames[n].panelPrev="Prev"}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.searchfield=function(n,o){var r=t[e]._c,s=t('<div class="'+r.search+'" />').appendTo(n);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=s,0}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].title=function(o,r){var s,a,l=t[e]._c,c=t('<a class="'+l.title+'" />').appendTo(o),u=function(t){if(!(t=t||this.$pnls.children("."+l.current)).hasClass(l.vertical)){var e=t.find("."+this.conf.classNames[n].panelTitle);e.length||(e=t.children("."+l.navbar).children("."+l.title)),s=e.attr("href"),a=e.html()||r.title,c[s?"attr":"removeAttr"]("href",s),c[s||a?"removeClass":"addClass"](l.hidden),c.html(a)}};return this.bind("openPanel",u),this.bind("init",function(t){u.call(this)}),0},t[e].configuration.classNames[n].panelTitle="Title"}(jQuery),function(t){function e(t,e,n){t.prop("aria-"+e,n)[n?"attr":"removeAttr"]("aria-"+e,"true")}function n(t){return'<span class="'+o.sronly+'">'+t+"</span>"}var o,r="mmenu",s="screenReader";t[r].addons[s]={setup:function(){var a=this.opts[s],l=this.conf[s];if(t[r].glbl,"boolean"==typeof a&&(a={aria:a,text:a}),"object"!=typeof a&&(a={}),(a=this.opts[s]=t.extend(!0,{},t[r].defaults[s],a)).aria){if(this.opts.offCanvas){var c=function(){e(this.$menu,"hidden",!0)};this.bind("open",function(){e(this.$menu,"hidden",!1)}),this.bind("close",c),c.call(this)}var u=function(){e(this.$menu.find("."+o.hidden),"hidden",!0),e(this.$menu.find('[aria-hidden="true"]').not("."+o.hidden),"hidden",!1)};this.bind("update",u),this.bind("openPanel",u),this.bind("openPanel",function(t){e(this.$pnls.children("."+o.panel).not(t).not("."+o.hidden),"hidden",!0),e(t,"hidden",!1)});var d=function(t){e(t.find("."+o.prev+", ."+o.next),"haspopup",!0)};this.bind("init",d),d.call(this,this.$menu.children("."+o.navbar))}if(a.text){var p=function(e){e.children("."+o.navbar).children("."+o.prev).html(n(l.text.closeSubmenu)).end().children("."+o.next).html(n(l.text.openSubmenu)).end().children("."+o.close).html(n(l.text.closeMenu)),e.is("."+o.panel)&&e.find("."+o.listview).find("."+o.next).each(function(){t(this).html(n(l.text[t(this).parent().is("."+o.vertical)?"toggleSubmenu":"openSubmenu"]))})};this.bind("init",p),p.call(this,this.$menu)}},add:function(){o=t[r]._c,t[r]._d,t[r]._e,o.add("sronly")},clickAnchor:function(t,e){}},t[r].defaults[s]={aria:!1,text:!1},t[r].configuration[s]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}}}(jQuery),function(t){var e,n,o,r="mmenu",s="searchfield";t[r].addons[s]={setup:function(){var a=this,l=this.opts[s],c=this.conf[s];t[r].glbl,"boolean"==typeof l&&(l={add:l}),"object"!=typeof l&&(l={}),"boolean"==typeof l.resultsPanel&&(l.resultsPanel={add:l.resultsPanel}),l=this.opts[s]=t.extend(!0,{},t[r].defaults[s],l),c=this.conf[s]=t.extend(!0,{},t[r].configuration[s],c),this.bind("close",function(){this.$menu.find("."+e.search).find("input").blur()}),this.bind("init",function(r){if(l.add){var u;if(("panels"===l.addTo?r:this.$menu.find(l.addTo)).each(function(){var n=t(this);if(!n.is("."+e.panel)||!n.is("."+e.vertical)){if(!n.children("."+e.search).length){var r,s=a.__valueOrFn(c.clear,n),u=a.__valueOrFn(c.form,n),d=a.__valueOrFn(c.input,n),p=a.__valueOrFn(c.submit,n),h=t("<"+(u?"form":"div")+' class="'+e.search+'" />'),f=t('<input placeholder="'+l.placeholder+'" type="text" autocomplete="off" />');if(h.append(f),d)for(r in d)f.attr(r,d[r]);if(s&&t('<a class="'+e.btn+" "+e.clear+'" href="#" />').appendTo(h).on(o.click+"-searchfield",function(t){t.preventDefault(),f.val("").trigger(o.keyup+"-searchfield")}),u){for(r in u)h.attr(r,u[r]);p&&!s&&t('<a class="'+e.btn+" "+e.next+'" href="#" />').appendTo(h).on(o.click+"-searchfield",function(t){t.preventDefault(),h.submit()})}n.hasClass(e.search)?n.replaceWith(h):n.prepend(h).addClass(e.hassearch)}if(l.noResults&&(n.closest("."+e.panel).length||(n=a.$pnls.children("."+e.panel).first()),!n.children("."+e.noresultsmsg).length)){var v=n.children("."+e.listview).first();t('<div class="'+e.noresultsmsg+" "+e.hidden+'" />').append(l.noResults)[v.length?"insertAfter":"prependTo"](v.length?v:n)}}}),l.search){if(l.resultsPanel.add){l.showSubPanels=!1;var d=this.$pnls.children("."+e.resultspanel);d.length||(d=t('<div class="'+e.panel+" "+e.resultspanel+" "+e.hidden+'" />').appendTo(this.$pnls).append('<div class="'+e.navbar+" "+e.hidden+'"><a class="'+e.title+'">'+l.resultsPanel.title+"</a></div>").append('<ul class="'+e.listview+'" />').append(this.$pnls.find("."+e.noresultsmsg).first().clone()),this.init(d))}this.$menu.find("."+e.search).each(function(){var r,c,u=t(this),p=u.closest("."+e.panel).length;p?c=r=u.closest("."+e.panel):(r=t("."+e.panel,a.$menu),c=a.$menu),l.resultsPanel.add&&(r=r.not(d));var h=u.children("input"),f=a.__findAddBack(r,"."+e.listview).children("li"),v=f.filter("."+e.divider),g=a.__filterListItems(f),m="",y=function(){var o=h.val().toLowerCase();if(o!=m){if(m=o,l.resultsPanel.add&&d.children("."+e.listview).empty(),r.scrollTop(0),g.add(v).addClass(e.hidden).find("."+e.fullsubopensearch).removeClass(e.fullsubopen+" "+e.fullsubopensearch),g.each(function(){var o=t(this),r="a";(l.showTextItems||l.showSubPanels&&o.find("."+e.next))&&(r="a, span"),(o.data(n.searchtext)||o.children(r).text()).toLowerCase().indexOf(m)>-1&&o.add(o.prevAll("."+e.divider).first()).removeClass(e.hidden)}),l.showSubPanels&&r.each(function(o){var r=t(this);a.__filterListItems(r.find("."+e.listview).children()).each(function(){var o=t(this),r=o.data(n.sub);o.removeClass(e.nosubresults),r&&r.find("."+e.listview).children().removeClass(e.hidden)})}),l.resultsPanel.add){if(""===m)this.closeAllPanels(),this.openPanel
1(this.$pnls.children("."+e.subopened).last());else{var s=t();r.each(function(){var n=a.__filterListItems(t(this).find("."+e.listview).children()).not("."+e.hidden).clone(!0);n.length&&(l.resultsPanel.dividers&&(s=s.add('<li class="'+e.divider+'">'+t(this).children("."+e.navbar).text()+"</li>")),s=s.add(n))}),s.find("."+e.next).remove(),d.children("."+e.listview).append(s),this.openPanel(d)}}else t(r.get().reverse()).each(function(o){var r=t(this),s=r.data(n.parent);s&&(a.__filterListItems(r.find("."+e.listview).children()).length?(s.hasClass(e.hidden)&&s.children("."+e.next).not("."+e.fullsubopen).addClass(e.fullsubopen).addClass(e.fullsubopensearch),s.removeClass(e.hidden).removeClass(e.nosubresults).prevAll("."+e.divider).first().removeClass(e.hidden)):p||(r.hasClass(e.opened)&&setTimeout(function(){a.openPanel(s.closest("."+e.panel))},(o+1)*(1.5*a.conf.openingInterval)),s.addClass(e.nosubresults)))});c.find("."+e.noresultsmsg)[g.not("."+e.hidden).length?"addClass":"removeClass"](e.hidden),this.update()}};h.off(o.keyup+"-"+s+" "+o.change+"-"+s).on(o.keyup+"-"+s,function(t){(function(t){switch(t){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1})(t.keyCode)||y.call(a)}).on(o.change+"-"+s,function(t){y.call(a)});var b=u.children("."+e.btn);b.length&&h.on(o.keyup+"-"+s,function(t){b[h.val().length?"removeClass":"addClass"](e.hidden)}),h.trigger(o.keyup+"-"+s)})}}})},add:function(){e=t[r]._c,n=t[r]._d,o=t[r]._e,e.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),n.add("searchtext"),o.add("change keyup")},clickAnchor:function(t,e){}},t[r].defaults[s]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},t[r].configuration[s]={clear:!1,form:!1,input:!1,submit:!1}}(jQuery),function(t){var e,n,o="mmenu",r="sectionIndexer";t[o].addons[r]={setup:function(){var s=this,a=this.opts[r];this.conf[r],t[o].glbl,"boolean"==typeof a&&(a={add:a}),"object"!=typeof a&&(a={}),a=this.opts[r]=t.extend(!0,{},t[o].defaults[r],a),this.bind("init",function(o){if(a.add){var r;("panels"===a.addTo?o:t(a.addTo,this.$menu).filter("."+e.panel)).find("."+e.divider).closest("."+e.panel).addClass(e.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+e.hasindexer).length){this.$indexer=t('<div class="'+e.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(n.mouseover+"-sectionindexer "+e.touchstart+"-sectionindexer",function(n){var o=t(this).attr("href").slice(1),r=s.$pnls.children("."+e.current),a=r.find("."+e.listview),l=!1,c=r.scrollTop();r.scrollTop(0),a.children("."+e.divider).not("."+e.hidden).each(function(){!1===l&&o==t(this).text().slice(0,1).toLowerCase()&&(l=t(this).position().top)}),r.scrollTop(!1!==l?l:c)});var l=function(t){s.$menu[(t.hasClass(e.hasindexer)?"add":"remove")+"Class"](e.hasindexer)};this.bind("openPanel",l),l.call(this,this.$pnls.children("."+e.current))}})},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("indexer hasindexer"),n.add("mouseover touchstart")},clickAnchor:function(t,n){return!!t.parent().is("."+e.indexer)||void 0}},t[o].defaults[r]={add:!1,addTo:"panels"}}(jQuery),function(t){var e,n,o="mmenu",r="setSelected";t[o].addons[r]={setup:function(){var s=this.opts[r];if(this.conf[r],t[o].glbl,"boolean"==typeof s&&(s={hover:s,parent:s}),"object"!=typeof s&&(s={}),(s=this.opts[r]=t.extend(!0,{},t[o].defaults[r],s)).current||this.bind("init",function(t){t.find("."+e.listview).children("."+e.selected).removeClass(e.selected)}),s.hover&&this.$menu.addClass(e.hoverselected),s.parent){this.$menu.addClass(e.parentselected);var a=function(t){this.$pnls.find("."+e.listview).find("."+e.next).removeClass(e.selected);for(var o=t.data(n.parent);o&&o.length;)o=o.children("."+e.next).addClass(e.selected).closest("."+e.panel).data(n.parent)};this.bind("openedPanel",a),this.bind("init",function(t){a.call(this,this.$pnls.children("."+e.current))})}},add:function(){e=t[o]._c,n=t[o]._d,t[o]._e,e.add("hoverselected parentselected")},clickAnchor:function(t,e){}},t[o].defaults[r]={current:!0,hover:!1,parent:!1}}(jQuery),function(t){var e,n="mmenu",o="toggles";t[n].addons[o]={setup:function(){var r=this;this.opts[o],this.conf[o],t[n].glbl,this.bind("init",function(n){this.__refactorClass(t("input",n),this.conf.classNames[o].toggle,"toggle"),this.__refactorClass(t("input",n),this.conf.classNames[o].check,"check"),t("input."+e.toggle+", input."+e.check,n).each(function(){var n=t(this),o=n.closest("li"),s=n.hasClass(e.toggle)?"toggle":"check",a=n.attr("id")||r.__getUniqueId();o.children('label[for="'+a+'"]').length||(n.attr("id",a),o.prepend(n),t('<label for="'+a+'" class="'+e[s]+'"></label>').insertBefore(o.children("a, span").last()))})})},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("toggle check")},clickAnchor:function(t,e){}},t[n].configuration.classNames[o]={toggle:"Toggle",check:"Check"}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=Array.prototype.slice,n=Array.prototype.splice,o={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:1e3},r=t(window),s=t(document),a=[],l=r.height(),c=function(){for(var e=r.scrollTop(),n=s.height(),o=n-l,c=e>o?o-e:0,u=0,d=a.length;u<d;u++){var p=a[u],h=p.stickyWrapper.offset().top-p.topSpacing-c;if(p.stickyWrapper.css("height",p.stickyElement.outerHeight()),e<=h)null!==p.currentTop&&(p.stickyElement.css({width:"",position:"",top:"","z-index":""}),p.stickyElement.parent().removeClass(p.className),p.stickyElement.trigger("sticky-end",[p]),p.currentTop=null);else{var f,v=n-p.stickyElement.outerHeight()-p.topSpacing-p.bottomSpacing-e-c;v<0?v+=p.topSpacing:v=p.topSpacing,p.currentTop!==v&&(p.getWidthFrom?f=t(p.getWidthFrom).width()||null:p.widthFromWrapper&&(f=p.stickyWrapper.width()),null==f&&(f=p.stickyElement.width()),p.stickyElement.css("width",f).css("position","fixed").css("top",v).css("z-index",p.zIndex),p.stickyElement.parent().addClass(p.className),null===p.currentTop?p.stickyElement.trigger("sticky-start",[p]):p.stickyElement.trigger("sticky-update",[p]),p.currentTop===p.topSpacing&&p.currentTop>v||null===p.currentTop&&v<p.topSpacing?p.stickyElement.trigger("sticky-bottom-reached",[p]):null!==p.currentTop&&v===p.topSpacing&&p.currentTop<v&&p.stickyElement.trigger("sticky-bottom-unreached",[p]),p.currentTop=v);var g=p.stickyWrapper.parent();p.stickyElement.offset().top+p.stickyElement.outerHeight()>=g.offset().top+g.outerHeight()&&p.stickyElement.offset().top<=p.topSpacing?p.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):p.stickyElement.css("position","fixed").css("top",v).css("bottom","").css("z-index",p.zIndex)}}},u=function(){l=r.height();for(var e=0,n=a.length;e<n;e++){var o=a[e],s=null;o.getWidthFrom?o.responsiveWidth&&(s=t(o.getWidthFrom).width()):o.widthFromWrapper&&(s=o.stickyWrapper.width()),null!=s&&o.stickyElement.css("width",s)}},d={init:function(e){var n=t.extend({},o,e);return this.each(function(){var e=t(this),r=e.attr("id"),s=r?r+"-"+o.wrapperClassName:o.wrapperClassName,l=t("<div></div>").attr("id",s).addClass(n.wrapperClassName);e.wrapAll(function(){if(0==t(this).parent("#"+s).length)return l});var c=e.parent();n.center&&c.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({float:"none"}).parent().css({float:"right"}),n.stickyElement=e,n.stickyWrapper=c,n.currentTop=null,a.push(n),d.setWrapperHeight(this),d.setupChangeListeners(this)})},setWrapperHeight:function(e){var n=t(e),o=n.parent();o&&o.css("height",n.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&d.setWrapperHeight(t)}).observe(t,{subtree:!0,childList:!0}):window.addEventListener?(t.addEventListener("DOMNodeInserted",function(){d.setWrapperHeight(t)},!1),t.addEventListener("DOMNodeRemoved",function(){d.setWrapperHeight(t)},!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",function(){d.setWrapperHeight(t)}),t.attachEvent("onDOMNodeRemoved",function(){d.setWrapperHeight(t)}))},update:c,unstick:function(e){return this.each(function(){for(var e=t
1(this),o=-1,r=a.length;r-- >0;)a[r].stickyElement.get(0)===this&&(n.call(a,r,1),o=r);-1!==o&&(e.unwrap(),e.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",c,!1),window.addEventListener("resize",u,!1)):window.attachEvent&&(window.attachEvent("onscroll",c),window.attachEvent("onresize",u)),t.fn.sticky=function(n){return d[n]?d[n].apply(this,e.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sticky"):d.init.apply(this,arguments)},t.fn.unstick=function(n){return d[n]?d[n].apply(this,e.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sticky"):d.unstick.apply(this,arguments)},t(function(){setTimeout(c,0)})}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,n,o,r){return jQuery.easing[jQuery.easing.def](t,e,n,o,r)},easeInQuad:function(t,e,n,o,r){return o*(e/=r)*e+n},easeOutQuad:function(t,e,n,o,r){return-o*(e/=r)*(e-2)+n},easeInOutQuad:function(t,e,n,o,r){return(e/=r/2)<1?o/2*e*e+n:-o/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,o,r){return o*(e/=r)*e*e+n},easeOutCubic:function(t,e,n,o,r){return o*((e=e/r-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,o,r){return(e/=r/2)<1?o/2*e*e*e+n:o/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,o,r){return o*(e/=r)*e*e*e+n},easeOutQuart:function(t,e,n,o,r){return-o*((e=e/r-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,o,r){return(e/=r/2)<1?o/2*e*e*e*e+n:-o/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,o,r){return o*(e/=r)*e*e*e*e+n},easeOutQuint:function(t,e,n,o,r){return o*((e=e/r-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,o,r){return(e/=r/2)<1?o/2*e*e*e*e*e+n:o/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,o,r){return-o*Math.cos(e/r*(Math.PI/2))+o+n},easeOutSine:function(t,e,n,o,r){return o*Math.sin(e/r*(Math.PI/2))+n},easeInOutSine:function(t,e,n,o,r){return-o/2*(Math.cos(Math.PI*e/r)-1)+n},easeInExpo:function(t,e,n,o,r){return 0==e?n:o*Math.pow(2,10*(e/r-1))+n},easeOutExpo:function(t,e,n,o,r){return e==r?n+o:o*(-Math.pow(2,-10*e/r)+1)+n},easeInOutExpo:function(t,e,n,o,r){return 0==e?n:e==r?n+o:(e/=r/2)<1?o/2*Math.pow(2,10*(e-1))+n:o/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(t,e,n,o,r){return-o*(Math.sqrt(1-(e/=r)*e)-1)+n},easeOutCirc:function(t,e,n,o,r){return o*Math.sqrt(1-(e=e/r-1)*e)+n},easeInOutCirc:function(t,e,n,o,r){return(e/=r/2)<1?-o/2*(Math.sqrt(1-e*e)-1)+n:o/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,o,r){var s=1.70158,a=0,l=o;if(0==e)return n;if(1==(e/=r))return n+o;if(a||(a=.3*r),l<Math.abs(o)){l=o;var s=a/4}else var s=a/(2*Math.PI)*Math.asin(o/l);return-(l*Math.pow(2,10*(e-=1))*Math.sin((e*r-s)*(2*Math.PI)/a))+n},easeOutElastic:function(t,e,n,o,r){var s=1.70158,a=0,l=o;if(0==e)return n;if(1==(e/=r))return n+o;if(a||(a=.3*r),l<Math.abs(o)){l=o;var s=a/4}else var s=a/(2*Math.PI)*Math.asin(o/l);return l*Math.pow(2,-10*e)*Math.sin((e*r-s)*(2*Math.PI)/a)+o+n},easeInOutElastic:function(t,e,n,o,r){var s=1.70158,a=0,l=o;if(0==e)return n;if(2==(e/=r/2))return n+o;if(a||(a=r*(.3*1.5)),l<Math.abs(o)){l=o;var s=a/4}else var s=a/(2*Math.PI)*Math.asin(o/l);return e<1?-.5*(l*Math.pow(2,10*(e-=1))*Math.sin((e*r-s)*(2*Math.PI)/a))+n:l*Math.pow(2,-10*(e-=1))*Math.sin((e*r-s)*(2*Math.PI)/a)*.5+o+n},easeInBack:function(t,e,n,o,r,s){return void 0==s&&(s=1.70158),o*(e/=r)*e*((s+1)*e-s)+n},easeOutBack:function(t,e,n,o,r,s){return void 0==s&&(s=1.70158),o*((e=e/r-1)*e*((s+1)*e+s)+1)+n},easeInOutBack:function(t,e,n,o,r,s){return(void 0==s&&(s=1.70158),(e/=r/2)<1)?o/2*(e*e*(((s*=1.525)+1)*e-s))+n:o/2*((e-=2)*e*(((s*=1.525)+1)*e+s)+2)+n},easeInBounce:function(t,e,n,o,r){return o-jQuery.easing.easeOutBounce(t,r-e,0,o,r)+n},easeOutBounce:function(t,e,n,o,r){return(e/=r)<1/2.75?o*(7.5625*e*e)+n:e<2/2.75?o*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?o*(7.5625*(e-=2.25/2.75)*e+.9375)+n:o*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(t,e,n,o,r){return e<r/2?.5*jQuery.easing.easeInBounce(t,2*e,0,o,r)+n:.5*jQuery.easing.easeOutBounce(t,2*e-r,0,o,r)+.5*o+n}}),function(t){var e={},n={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSli
1des:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(o){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(o)}),this;var r={},s=this;e.el=this;var a=t(window).width(),l=t(window).height(),c=function(){r.settings=t.extend({},n,o),r.settings.slideWidth=parseInt(r.settings.slideWidth),r.children=s.children(r.settings.slideSelector),r.children.length<r.settings.minSlides&&(r.settings.minSlides=r.children.length),r.children.length<r.settings.maxSlides&&(r.settings.maxSlides=r.children.length),r.settings.randomStart&&(r.settings.startSlide=Math.floor(Math.random()*r.children.length)),r.active={index:r.settings.startSlide},r.carousel=r.settings.minSlides>1||r.settings.maxSlides>1,r.carousel&&(r.settings.preloadImages="all"),r.minThreshold=r.settings.minSlides*r.settings.slideWidth+(r.settings.minSlides-1)*r.settings.slideMargin,r.maxThreshold=r.settings.maxSlides*r.settings.slideWidth+(r.settings.maxSlides-1)*r.settings.slideMargin,r.working=!1,r.controls={},r.interval=null,r.animProp="vertical"==r.settings.mode?"top":"left",r.usingCSS=r.settings.useCSS&&"fade"!=r.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in e)if(void 0!==t.style[e[n]])return r.cssPrefix=e[n].replace("Perspective","").toLowerCase(),r.animProp="-"+r.cssPrefix+"-transform",!0;return!1}(),"vertical"==r.settings.mode&&(r.settings.maxSlides=r.settings.minSlides),s.data("origStyle",s.attr("style")),s.children(r.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),u()},u=function(){s.wrap('<div class="'+r.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),r.viewport=s.parent(),r.loader=t('<div class="bx-loading" />'),r.viewport.prepend(r.loader),s.css({width:"horizontal"==r.settings.mode?100*r.children.length+215+"%":"auto",position:"relative"}),r.usingCSS&&r.settings.easing?s.css("-"+r.cssPrefix+"-transition-timing-function",r.settings.easing):r.settings.easing||(r.settings.easing="swing"),g(),r.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),r.viewport.parent().css({maxWidth:f()}),r.settings.pager||r.viewport.parent().css({margin:"0 auto 0px"}),r.children.css({float:"horizontal"==r.settings.mode?"left":"none",listStyle:"none",position:"relative"}),r.children.css("width",v()),"horizontal"==r.settings.mode&&r.settings.slideMargin>0&&r.children.css("marginRight",r.settings.slideMargin),"vertical"==r.settings.mode&&r.settings.slideMargin>0&&r.children.css("marginBottom",r.settings.slideMargin),"fade"==r.settings.mode&&(r.children.css({position:"absolute",zIndex:0,display:"none"}),r.children.eq(r.settings.startSlide).css({zIndex:r.settings.slideZIndex,display:"block"})),r.controls.el=t('<div class="bx-controls" />'),r.settings.captions&&k(),r.active.last=r.settings.startSlide==m()-1,r.settings.video&&s.fitVids();var e=r.children.eq(r.settings.startSlide);"all"==r.settings.preloadImages&&(e=r.children),r.settings.ticker?r.settings.pager=!1:(r.settings.pager&&T(),r.settings.controls&&j(),r.settings.auto&&r.settings.autoControls&&x(),(r.settings.controls||r.settings.autoControls||r.settings.pager)&&r.viewport.after(r.controls.el)),d(e,p)},d=function(e,n){var o=e.find("img, iframe").length;if(0==o){n();return}var r=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++r==o&&n()}).each(function(){this.complete&&t(this).load()})})},p=function(){if(r.settings.infiniteLoop&&"fade"!=r.settings.mode&&!r.settings.ticker){var e="vertical"==r.settings.mode?r.settings.minSlides:r.settings.maxSlides,n=r.children.slice(0,e).clone().addClass("bx-clone"),o=r.children.slice(-e).clone().addClass("bx-clone");s.append(n).prepend(o)}r.loader.remove(),b(),"vertical"==r.settings.mode&&(r.settings.adaptiveHeight=!0),r.viewport.height(h()),s.redrawSlider(),r.settings.onSliderLoad(r.active.index),r.initialized=!0,r.settings.responsive&&t(window).bind("resize",z),r.settings.auto&&r.settings.autoStart&&(m()>1||r.settings.autoSlideForOnePage)&&N(),r.settings.ticker&&D(),r.settings.pager&&M(r.settings.startSlide),r.settings.controls&&L(),r.settings.touchEnabled&&!r.settings.ticker&&F()},h=function(){var e=0,n=t();if("vertical"==r.settings.mode||r.settings.adaptiveHeight){if(r.carousel){var o=1==r.settings.moveSlides?r.active.index:r.active.index*y();for(i=1,n=r.children.eq(o);i<=r.settings.maxSlides-1;i++)n=o+i>=r.children.length?n.add(r.children.eq(i-1)):n.add(r.children.eq(o+i))}else n=r.children.eq(r.active.index)}else n=r.children;return"vertical"==r.settings.mode?(n.each(function(n){e+=t(this).outerHeight()}),r.settings.slideMargin>0&&(e+=r.settings.slideMargin*(r.settings.minSlides-1))):e=Math.max.apply(Math,n.map(function(){return t(this).outerHeight(!1)}).get()),"border-box"==r.viewport.css("box-sizing")?e+=parseFloat(r.viewport.css("padding-top"))+parseFloat(r.viewport.css("padding-bottom"))+parseFloat(r.viewport.css("border-top-width"))+parseFloat(r.viewport.css("border-bottom-width")):"padding-box"==r.viewport.css("box-sizing")&&(e+=parseFloat(r.viewport.css("padding-top"))+parseFloat(r.viewport.css("padding-bottom"))),e},f=function(){var t="100%";return r.settings.slideWidth>0&&(t="horizontal"==r.settings.mode?r.settings.maxSlides*r.settings.slideWidth+(r.settings.maxSlides-1)*r.settings.slideMargin:r.settings.slideWidth),t},v=function(){var t=r.settings.slideWidth,e=r.viewport.width();return 0==r.settings.slideWidth||r.settings.slideWidth>e&&!r.carousel||"vertical"==r.settings.mode?t=e:r.settings.maxSlides>1&&"horizontal"==r.settings.mode&&(e>r.maxThreshold||e<r.minThreshold&&(t=(e-r.settings.slideMargin*(r.settings.minSlides-1))/r.settings.minSlides)),t},g=function(){var t=1;if("horizontal"==r.settings.mode&&r.settings.slideWidth>0){if(r.viewport.width()<r.minThreshold)t=r.settings.minSlides;else if(r.viewport.width()>r.maxThreshold)t=r.settings.maxSlides;else{var e=r.children.first().width()+r.settings.slideMargin;t=Math.floor((r.viewport.width()+r.settings.slideMargin)/e)}}else"vertical"==r.settings.mode&&(t=r.settings.minSlides);return t},m=function(){var t=0;if(r.settings.moveSlides>0){if(r.settings.infiniteLoop)t=Math.ceil(r.children.length/y());else for(var e=0,n=0;e<r.children.length;)++t,e=n+g(),n+=r.settings.moveSlides<=g()?r.settings.moveSlides:g()}else t=Math.ceil(r.children.length/g());return t},y=function(){return r.settings.moveSlides>0&&r.settings.moveSlides<=g()?r.settings.moveSlides:g()},b=function(){if(r.children.length>r.settings.maxSlides&&r.active.last&&!r.settings.infiniteLoop){if("horizontal"==r.settings.mode){var t=r.children.last(
1),e=t.position();_(-(e.left-(r.viewport.width()-t.outerWidth())),"reset",0)}else if("vertical"==r.settings.mode){var n=r.children.length-r.settings.minSlides,e=r.children.eq(n).position();_(-e.top,"reset",0)}}else{var e=r.children.eq(r.active.index*y()).position();r.active.index==m()-1&&(r.active.last=!0),void 0!=e&&("horizontal"==r.settings.mode?_(-e.left,"reset",0):"vertical"==r.settings.mode&&_(-e.top,"reset",0))}},_=function(t,e,n,o){if(r.usingCSS){var a="vertical"==r.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";s.css("-"+r.cssPrefix+"-transition-duration",n/1e3+"s"),"slide"==e?(s.css(r.animProp,a),s.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){s.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),I()})):"reset"==e?s.css(r.animProp,a):"ticker"==e&&(s.css("-"+r.cssPrefix+"-transition-timing-function","linear"),s.css(r.animProp,a),s.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){s.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),_(o.resetValue,"reset",0),R()}))}else{var l={};l[r.animProp]=t,"slide"==e?s.animate(l,n,r.settings.easing,function(){I()}):"reset"==e?s.css(r.animProp,t):"ticker"==e&&s.animate(l,speed,"linear",function(){_(o.resetValue,"reset",0),R()})}},w=function(){for(var e="",n=m(),o=0;o<n;o++){var s="";r.settings.buildPager&&t.isFunction(r.settings.buildPager)?(s=r.settings.buildPager(o),r.pagerEl.addClass("bx-custom-pager")):(s=o+1,r.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+o+'" class="bx-pager-link">'+s+"</a></div>"}r.pagerEl.html(e)},T=function(){r.settings.pagerCustom?r.pagerEl=t(r.settings.pagerCustom):(r.pagerEl=t('<div class="bx-pager" />'),r.settings.pagerSelector?t(r.settings.pagerSelector).html(r.pagerEl):r.controls.el.addClass("bx-has-pager").append(r.pagerEl),w()),r.pagerEl.on("click","a",P)},j=function(){r.controls.next=t('<a class="bx-next" href="">'+r.settings.nextText+"</a>"),r.controls.prev=t('<a class="bx-prev" href="">'+r.settings.prevText+"</a>"),r.controls.next.bind("click",C),r.controls.prev.bind("click",S),r.settings.nextSelector&&t(r.settings.nextSelector).append(r.controls.next),r.settings.prevSelector&&t(r.settings.prevSelector).append(r.controls.prev),r.settings.nextSelector||r.settings.prevSelector||(r.controls.directionEl=t('<div class="bx-controls-direction" />'),r.controls.directionEl.append(r.controls.prev).append(r.controls.next),r.controls.el.addClass("bx-has-controls-direction").append(r.controls.directionEl))},x=function(){r.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+r.settings.startText+"</a></div>"),r.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+r.settings.stopText+"</a></div>"),r.controls.autoEl=t('<div class="bx-controls-auto" />'),r.controls.autoEl.on("click",".bx-start",E),r.controls.autoEl.on("click",".bx-stop",O),r.settings.autoControlsCombine?r.controls.autoEl.append(r.controls.start):r.controls.autoEl.append(r.controls.start).append(r.controls.stop),r.settings.autoControlsSelector?t(r.settings.autoControlsSelector).html(r.controls.autoEl):r.controls.el.addClass("bx-has-controls-auto").append(r.controls.autoEl),A(r.settings.autoStart?"stop":"start")},k=function(){r.children.each(function(e){var n=t(this).find("img:first").attr("title");void 0!=n&&(""+n).length&&t(this).append('<div class="bx-caption"><span>'+n+"</span></div>")})},C=function(t){r.settings.auto&&s.stopAuto(),s.goToNextSlide(),t.preventDefault()},S=function(t){r.settings.auto&&s.stopAuto(),s.goToPrevSlide(),t.preventDefault()},E=function(t){s.startAuto(),t.preventDefault()},O=function(t){s.stopAuto(),t.preventDefault()},P=function(e){r.settings.auto&&s.stopAuto();var n=t(e.currentTarget);if(void 0!==n.attr("data-slide-index")){var o=parseInt(n.attr("data-slide-index"));o!=r.active.index&&s.goToSlide(o),e.preventDefault()}},M=function(e){var n=r.children.length;if("short"==r.settings.pagerType){r.settings.maxSlides>1&&(n=Math.ceil(r.children.length/r.settings.maxSlides)),r.pagerEl.html(e+1+r.settings.pagerShortSeparator+n);return}r.pagerEl.find("a").removeClass("active"),r.pagerEl.each(function(n,o){t(o).find("a").eq(e).addClass("active")})},I=function(){if(r.settings.infiniteLoop){var t="";0==r.active.index?t=r.children.eq(0).position():r.active.index==m()-1&&r.carousel?t=r.children.eq((m()-1)*y()).position():r.active.index==r.children.length-1&&(t=r.children.eq(r.children.length-1).position()),t&&("horizontal"==r.settings.mode?_(-t.left,"reset",0):"vertical"==r.settings.mode&&_(-t.top,"reset",0))}r.working=!1,r.settings.onSlideAfter(r.children.eq(r.active.index),r.oldIndex,r.active.index)},A=function(t){r.settings.autoControlsCombine?r.controls.autoEl.html(r.controls[t]):(r.controls.autoEl.find("a").removeClass("active"),r.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},L=function(){1==m()?(r.controls.prev.addClass("disabled"),r.controls.next.addClass("disabled")):!r.settings.infiniteLoop&&r.settings.hideControlOnEnd&&(0==r.active.index?(r.controls.prev.addClass("disabled"),r.controls.next.removeClass("disabled")):r.active.index==m()-1?(r.controls.next.addClass("disabled"),r.controls.prev.removeClass("disabled")):(r.controls.prev.removeClass("disabled"),r.controls.next.removeClass("disabled")))},N=function(){r.settings.autoDelay>0?setTimeout(s.startAuto,r.settings.autoDelay):s.startAuto(),r.settings.autoHover&&s.hover(function(){r.interval&&(s.stopAuto(!0),r.autoPaused=!0)},function(){r.autoPaused&&(s.startAuto(!0),r.autoPaused=null)})},D=function(){var e=0;if("next"==r.settings.autoDirection)s.append(r.children.clone().addClass("bx-clone"));else{s.prepend(r.children.clone().addClass("bx-clone"));var n=r.children.first().position();e="horizontal"==r.settings.mode?-n.left:-n.top}_(e,"reset",0),r.settings.pager=!1,r.settings.controls=!1,r.settings.autoControls=!1,r.settings.tickerHover&&!r.usingCSS&&r.viewport.hover(function(){s.stop()},function(){var e=0;r.children.each(function(n){e+="horizontal"==r.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});
1var n=r.settings.speed/e,o="horizontal"==r.settings.mode?"left":"top",a=n*(e-Math.abs(parseInt(s.css(o))));R(a)}),R()},R=function(t){speed=t||r.settings.speed;var e={left:0,top:0},n={left:0,top:0};"next"==r.settings.autoDirection?e=s.find(".bx-clone").first().position():n=r.children.first().position();var o="horizontal"==r.settings.mode?-e.left:-e.top,a="horizontal"==r.settings.mode?-n.left:-n.top;_(o,"ticker",speed,{resetValue:a})},F=function(){r.touch={start:{x:0,y:0},end:{x:0,y:0}},r.viewport.bind("touchstart",B)},B=function(t){if(r.working)t.preventDefault();else{r.touch.originalPos=s.position();var e=t.originalEvent;r.touch.start.x=e.changedTouches[0].pageX,r.touch.start.y=e.changedTouches[0].pageY,r.viewport.bind("touchmove",H),r.viewport.bind("touchend",W)}},H=function(t){var e=t.originalEvent,n=Math.abs(e.changedTouches[0].pageX-r.touch.start.x),o=Math.abs(e.changedTouches[0].pageY-r.touch.start.y);if(3*n>o&&r.settings.preventDefaultSwipeX?t.preventDefault():3*o>n&&r.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=r.settings.mode&&r.settings.oneToOneTouch){var s=0;if("horizontal"==r.settings.mode){var a=e.changedTouches[0].pageX-r.touch.start.x;s=r.touch.originalPos.left+a}else{var a=e.changedTouches[0].pageY-r.touch.start.y;s=r.touch.originalPos.top+a}_(s,"reset",0)}},W=function(t){r.viewport.unbind("touchmove",H);var e=t.originalEvent,n=0;if(r.touch.end.x=e.changedTouches[0].pageX,r.touch.end.y=e.changedTouches[0].pageY,"fade"==r.settings.mode){var o=Math.abs(r.touch.start.x-r.touch.end.x);o>=r.settings.swipeThreshold&&(r.touch.start.x>r.touch.end.x?s.goToNextSlide():s.goToPrevSlide(),s.stopAuto())}else{var o=0;"horizontal"==r.settings.mode?(o=r.touch.end.x-r.touch.start.x,n=r.touch.originalPos.left):(o=r.touch.end.y-r.touch.start.y,n=r.touch.originalPos.top),!r.settings.infiniteLoop&&(0==r.active.index&&o>0||r.active.last&&o<0)?_(n,"reset",200):Math.abs(o)>=r.settings.swipeThreshold?(o<0?s.goToNextSlide():s.goToPrevSlide(),s.stopAuto()):_(n,"reset",200)}r.viewport.unbind("touchend",W)},z=function(e){if(r.initialized){var n=t(window).width(),o=t(window).height();(a!=n||l!=o)&&(a=n,l=o,s.redrawSlider(),r.settings.onSliderResize.call(s,r.active.index))}};return s.goToSlide=function(e,n){if(!r.working&&r.active.index!=e){if(r.working=!0,r.oldIndex=r.active.index,e<0?r.active.index=m()-1:e>=m()?r.active.index=0:r.active.index=e,r.settings.onSlideBefore(r.children.eq(r.active.index),r.oldIndex,r.active.index),"next"==n?r.settings.onSlideNext(r.children.eq(r.active.index),r.oldIndex,r.active.index):"prev"==n&&r.settings.onSlidePrev(r.children.eq(r.active.index),r.oldIndex,r.active.index),r.active.last=r.active.index>=m()-1,r.settings.pager&&M(r.active.index),r.settings.controls&&L(),"fade"==r.settings.mode)r.settings.adaptiveHeight&&r.viewport.height()!=h()&&r.viewport.animate({height:h()},r.settings.adaptiveHeightSpeed),r.children.filter(":visible").fadeOut(r.settings.speed).css({zIndex:0}),r.children.eq(r.active.index).css("zIndex",r.settings.slideZIndex+1).fadeIn(r.settings.speed,function(){t(this).css("zIndex",r.settings.slideZIndex),I()});else{r.settings.adaptiveHeight&&r.viewport.height()!=h()&&r.viewport.animate({height:h()},r.settings.adaptiveHeightSpeed);var o=0,a={left:0,top:0};if(!r.settings.infiniteLoop&&r.carousel&&r.active.last){if("horizontal"==r.settings.mode){var l=r.children.eq(r.children.length-1);a=l.position(),o=r.viewport.width()-l.outerWidth()}else{var c=r.children.length-r.settings.minSlides;a=r.children.eq(c).position()}}else if(r.carousel&&r.active.last&&"prev"==n){var u=1==r.settings.moveSlides?r.settings.maxSlides-y():(m()-1)*y()-(r.children.length-r.settings.maxSlides),l=s.children(".bx-clone").eq(u);a=l.position()}else if("next"==n&&0==r.active.index)a=s.find("> .bx-clone").eq(r.settings.maxSlides).position(),r.active.last=!1;else if(e>=0){var d=e*y();a=r.children.eq(d).position()}void 0!==a&&_("horizontal"==r.settings.mode?-(a.left-o):-a.top,"slide",r.settings.speed)}}},s.goToNextSlide=function(){if(r.settings.infiniteLoop||!r.active.last){var t=parseInt(r.active.index)+1;s.goToSlide(t,"next")}},s.goToPrevSlide=function(){if(r.settings.infiniteLoop||0!=r.active.index){var t=parseInt(r.active.index)-1;s.goToSlide(t,"prev")}},s.startAuto=function(t){!r.interval&&(r.interval=setInterval(function(){"next"==r.settings.autoDirection?s.goToNextSlide():s.goToPrevSlide()},r.settings.pause),r.settings.autoControls&&!0!=t&&A("stop"))},s.stopAuto=function(t){r.interval&&(clearInterval(r.interval),r.interval=null,r.settings.autoControls&&!0!=t&&A("start"))},s.getCurrentSlide=function(){return r.active.index},s.getCurrentSlideElement=function(){return r.children.eq(r.active.index)},s.getSlideCount=function(){return r.children.length},s.redrawSlider=function(){r.children.add(s.find(".bx-clone")).width(v()),r.viewport.css("height",h()),r.settings.ticker||b(),r.active.last&&(r.active.index=m()-1),r.active.index>=m()&&(r.active.last=!0),r.settings.pager&&!r.settings.pagerCustom&&(w(),M(r.active.index))},s.destroySlider=function(){r.initialized&&(r.initialized=!1,t(".bx-clone",this).remove(),r.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),r.controls.el&&r.controls.el.remove(),r.controls.next&&r.controls.next.remove(),r.controls.prev&&r.controls.prev.remove(),r.pagerEl&&r.settings.controls&&r.pagerEl.remove(),t(".bx-caption",this).remove(),r.controls.autoEl&&r.controls.autoEl.remove(),clearInterval(r.interval),r.settings.responsive&&t(window).unbind("resize",z))},s.reloadSlider=function(t){void 0!=t&&(o=t),s.destroySlider(),c()},c(),this}}(jQuery),/*!
2* FitVids 1.0
3*
4* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
5* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
6* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
7*
8* Date: Thu Sept 01 18:00:00 2011 -0500
9*/function(t){"use strict";t.fn.fitVids=function(e){var n={customSelector:null},o=document.createElement("div"),r=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return o.className="fit-vids-style",o.innerHTML="&shy;<style>               .fluid-width-video-wrapper {                 width: 100%;                              position: relative;                       padding: 0;                            }                                                                                   .fluid-width-video-wrapper iframe,        .fluid-width-video-wrapper object,        .fluid-width-video-wrapper embed {           position: absolute;                       top: 0;                                   left: 0;                                  width: 100%;                              height: 100%;                          }                                       </style>",r.parentNode.insertBefore(o,r),e&&t.extend(n,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.kickstarter.com']","object","embed"];n.customSelector&&e.push(n.customSelector),t(this).find(e.join(",")).each(function(){var e=t(this);if(("embed"!==this.tagName.toLowerCase()||!e.parent("object").length)&&!e.parent(".fluid-width-video-wrapper").length){var n="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),o=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10);e.attr("id")||e.attr("id","fitvid"+Math.floor(999999*Math.random())),e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*(n/o)+"%"),e.removeAttr("height").removeAttr("width")}})})}}(jQuery),function(t,e,n,o){"use strict";var r=n("html"),s=n(t),a=n(e),l=n.fancybox=function(){l.open.apply(this,arguments)},c=navigator.userAgent.match(/msie/i),u=null,d=o!==e.createTouch,p=function(t){return t&&t.hasOwnProperty&&t instanceof n},h=function(t){return t&&"string"===n.type(t)},f=function(t){return h(t)&&t.indexOf("%")>0},v=function(t,e){var n=parseInt(t,10)||0;return e&&f(t)&&(n=l.getViewport()[e]/100*n),Math.ceil(n)},g=function(t,e){return v(t,e)+"px"};n.extend(l,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!d,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(c?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,
9skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(n.isPlainObject(e)||(e={}),!1!==l.close(!0)))return n.isArray(t)||(t=p(t)?n(t).get():[t]),n.each(t,function(r,s){var a,c,u,d,f,v,g,m={};"object"===n.type(s)&&(s.nodeType&&(s=n(s)),p(s)?(m={href:s.data("fancybox-href")||s.attr("href"),title:s.data("fancybox-title")||s.attr("title"),isDom:!0,element:s},n.metadata&&n.extend(!0,m,s.metadata())):m=s),a=e.href||m.href||(h(s)?s:null),c=o!==e.title?e.title:m.title||"",(d=(u=e.content||m.content)?"html":e.type||m.type)||!m.isDom||(d=s.data("fancybox-type"))||(d=(f=s.prop("class").match(/fancybox\.(\w+)/))?f[1]:null),h(a)&&(!d&&(l.isImage(a)?d="image":l.isSWF(a)?d="swf":"#"===a.charAt(0)?d="inline":h(s)&&(d="html",u=s)),"ajax"===d&&(a=(v=a.split(/\s+/,2)).shift(),g=v.shift())),u||("inline"===d?a?u=n(h(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):m.isDom&&(u=s):"html"===d?u=a:d||a||!m.isDom||(d="inline",u=s)),n.extend(m,{href:a,type:d,content:u,title:c,selector:g}),t[r]=m}),l.opts=n.extend(!0,{},l.defaults,e),o!==e.keys&&(l.opts.keys=!!e.keys&&n.extend({},l.defaults.keys,e.keys)),l.group=t,l._start(l.opts.index)},cancel:function(){var t=l.coming;t&&!1!==l.trigger("onCancel")&&(l.hideLoading(),l.ajaxLoad&&l.ajaxLoad.abort(),l.ajaxLoad=null,l.imgPreload&&(l.imgPreload.onload=l.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),l.coming=null,l.current||l._afterZoomOut(t))},close:function(t){l.cancel(),!1!==l.trigger("beforeClose")&&(l.unbindEvents(),l.isActive&&(l.isOpen&&!0!==t?(l.isOpen=l.isOpened=!1,l.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),l.wrap.stop(!0,!0).removeClass("fancybox-opened"),l.transitions[l.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),l._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(l.player.timer)},n=function(){e(),l.current&&l.player.isActive&&(l.player.timer=setTimeout(l.next,l.current.playSpeed))},o=function(){e(),a.unbind(".player"),l.player.isActive=!1,l.trigger("onPlayEnd")};!0!==t&&(l.player.isActive||!1===t)?o():l.current&&(l.current.loop||l.current.index<l.group.length-1)&&(l.player.isActive=!0,a.bind({"onCancel.player beforeClose.player":o,"onUpdate.player":n,"beforeLoad.player":e}),n(),l.trigger("onPlayStart"))},next:function(t){var e=l.current;e&&(h(t)||(t=e.direction.next),l.jumpto(e.index+1,t,"next"))},prev:function(t){var e=l.current;e&&(h(t)||(t=e.direction.prev),l.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,n){var r=l.current;r&&(t=v(t),l.direction=e||r.direction[t>=r.index?"next":"prev"],l.router=n||"jumpto",r.loop&&(t<0&&(t=r.group.length+t%r.group.length),t%=r.group.length),o!==r.group[t]&&(l.cancel(),l._start(t)))},reposition:function(t,e){var o,r=l.current,s=r?r.wrap:null;s&&(o=l._getPosition(e),t&&"scroll"===t.type?(delete o.position,s.stop(!0,!0).animate(o,200)):(s.css(o),r.pos=n.extend({},r.dim,o)))},update:function(t){var e=t&&t.type,n=!e||"orientationchange"===e;n&&(clearTimeout(u),u=null),l.isOpen&&!u&&(u=setTimeout(function(){var o=l.current;o&&!l.isClosing&&(l.wrap.removeClass("fancybox-tmp"),(n||"load"===e||"resize"===e&&o.autoResize)&&l._setDimension(),"scroll"===e&&o.canShrink||l.reposition(t),l.trigger("onUpdate"),u=null)},n&&!d?0:300))},toggle:function(t){l.isOpen&&(l.current.fitToView="boolean"===n.type(t)?t:!l.current.fitToView,d&&(l.wrap.removeAttr("style").addClass("fancybox-tmp"),l.trigger("onUpdate")),l.update())},hideLoading:function(){a.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var t,e;l.hideLoading(),t=n('<div id="fancybox-loading"><div></div></div>').click(l.cancel).appendTo("body"),a.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),l.cancel())}),l.defaults.fixed||(e=l.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=l.current&&l.current.locked||!1,n={x:s.scrollLeft(),y:s.scrollTop()};return e?(n.w=e[0].clientWidth,n.h=e[0].clientHeight):(n.w=d&&t.innerWidth?t.innerWidth:s.width(),n.h=d&&t.innerHe
9ight?t.innerHeight:s.height()),n},unbindEvents:function(){l.wrap&&p(l.wrap)&&l.wrap.unbind(".fb"),a.unbind(".fb"),s.unbind(".fb")},bindEvents:function(){var t,e=l.current;e&&(s.bind("orientationchange.fb"+(d?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),l.update),(t=e.keys)&&a.bind("keydown.fb",function(r){var s=r.which||r.keyCode,a=r.target||r.srcElement;if(27===s&&l.coming)return!1;r.ctrlKey||r.altKey||r.shiftKey||r.metaKey||a&&(a.type||n(a).is("[contenteditable]"))||n.each(t,function(t,a){return e.group.length>1&&o!==a[s]?(l[t](a[s]),r.preventDefault(),!1):n.inArray(s,a)>-1?(l[t](),r.preventDefault(),!1):void 0})}),n.fn.mousewheel&&e.mouseWheel&&l.wrap.bind("mousewheel.fb",function(t,o,r,s){for(var a,c=n(t.target||null),u=!1;c.length&&!(u||c.is(".fancybox-skin")||c.is(".fancybox-wrap"));)u=(a=c[0])&&!(a.style.overflow&&"hidden"===a.style.overflow)&&(a.clientWidth&&a.scrollWidth>a.clientWidth||a.clientHeight&&a.scrollHeight>a.clientHeight),c=n(c).parent();0===o||u||!(l.group.length>1)||e.canShrink||(s>0||r>0?l.prev(s>0?"down":"left"):(s<0||r<0)&&l.next(s<0?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var o,r=e||l.coming||l.current;if(r){if(n.isFunction(r[t])&&(o=r[t].apply(r,Array.prototype.slice.call(arguments,1))),!1===o)return!1;r.helpers&&n.each(r.helpers,function(e,o){o&&l.helpers[e]&&n.isFunction(l.helpers[e][t])&&l.helpers[e][t](n.extend(!0,{},l.helpers[e].defaults,o),r)}),a.trigger(t)}},isImage:function(t){return h(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return h(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,o,r,s,a,c={};if(t=v(t),!(e=l.group[t]||null))return!1;if(s=(c=n.extend(!0,{},l.opts,e)).margin,a=c.padding,"number"===n.type(s)&&(c.margin=[s,s,s,s]),"number"===n.type(a)&&(c.padding=[a,a,a,a]),c.modal&&n.extend(!0,c,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),c.autoSize&&(c.autoWidth=c.autoHeight=!0),"auto"===c.width&&(c.autoWidth=!0),"auto"===c.height&&(c.autoHeight=!0),c.group=l.group,c.index=t,l.coming=c,!1===l.trigger("beforeLoad")){l.coming=null;return}if(r=c.type,o=c.href,!r)return l.coming=null,!!l.current&&!!l.router&&"jumpto"!==l.router&&(l.current.index=t,l[l.router](l.direction));if(l.isActive=!0,("image"===r||"swf"===r)&&(c.autoHeight=c.autoWidth=!1,c.scrolling="visible"),"image"===r&&(c.aspectRatio=!0),"iframe"===r&&d&&(c.scrolling="scroll"),c.wrap=n(c.tpl.wrap).addClass("fancybox-"+(d?"mobile":"desktop")+" fancybox-type-"+r+" fancybox-tmp "+c.wrapCSS).appendTo(c.parent||"body"),n.extend(c,{skin:n(".fancybox-skin",c.wrap),outer:n(".fancybox-outer",c.wrap),inner:n(".fancybox-inner",c.wrap)}),n.each(["Top","Right","Bottom","Left"],function(t,e){c.skin.css("padding"+e,g(c.padding[t]))}),l.trigger("onReady"),"inline"===r||"html"===r){if(!c.content||!c.content.length)return l._error("content")}else if(!o)return l._error("href");"image"===r?l._loadImage():"ajax"===r?l._loadAjax():"iframe"===r?l._loadIframe():l._afterLoad()},_error:function(t){n.extend(l.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:l.coming.tpl.error}),l._afterLoad()},_loadImage:function(){var t=l.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,l.coming.width=this.width/l.opts.pixelRatio,l.coming.height=this.height/l.opts.pixelRatio,l._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,l._error("image")},t.src=l.coming.href,!0!==t.complete&&l.showLoading()},_loadAjax:function(){var t=l.coming;l.showLoading(),l.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){l.coming&&"abort"!==e?l._error("ajax",t):l.hideLoading()},success:function(e,n){"success"===n&&(t.content=e,l._afterLoad())}}))},_loadIframe:function(){var t=l.coming,e=n(t.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",d?"auto":t.iframe.scrolling).attr("src",t.href);n(t.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(l.showLoading(),e.one("load",function(){n(this).data("ready",1),d||n(this).bind("load.fb",l.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),l._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||l._afterLoad()},_preloadImages:function(){var t,e,n=l.group,o=l.current,r=n.length,s=o.preload?Math.min(o.preload,r-1):0;for(e=1;e<=s;e+=1)"image"===(t=n[(o.index+e)%r]).type&&t.href&&(new Image().src=t.href)},_afterLoad:function(){var t,e,o,r,s,a=l.coming,c=l.current,u="fancybox-placeholder";if(l.hideLoading(),a&&!1!==l.isActive){if(!1===l.trigger("afterLoad",a,c)){a.wrap.stop(!0).trigger("onReset").remove(),l.coming=null;return}switch(c&&(l.trigger("beforeChange",c),c.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),l.unbindEvents(),t=a.content,e=a.type,o=a.scrolling,n.extend(l,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:
9a.inner,current:a,previous:c}),r=a.href,e){case"inline":case"ajax":case"html":a.selector?t=n("<div>").html(t).find(a.selector):p(t)&&(t.data(u)||t.data(u,n('<div class="'+u+'"></div>').insertAfter(t).hide()),t=t.show().detach(),a.wrap.bind("onReset",function(){n(this).find(t).length&&t.hide().replaceAll(t.data(u)).data(u,!1)}));break;case"image":t=a.tpl.image.replace("{href}",r);break;case"swf":t='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+r+'"></param>',s="",n.each(a.swf,function(e,n){t+='<param name="'+e+'" value="'+n+'"></param>',s+=" "+e+'="'+n+'"'}),t+='<embed src="'+r+'" type="application/x-shockwave-flash" width="100%" height="100%"'+s+"></embed></object>"}p(t)&&t.parent().is(a.inner)||a.inner.append(t),l.trigger("beforeShow"),a.inner.css("overflow","yes"===o?"scroll":"no"===o?"hidden":o),l._setDimension(),l.reposition(),l.isOpen=!1,l.coming=null,l.bindEvents(),l.isOpened?c.prevMethod&&l.transitions[c.prevMethod]():n(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove(),l.transitions[l.isOpened?a.nextMethod:a.openMethod](),l._preloadImages()}},_setDimension:function(){var t,e,o,r,s,a,c,u,d,p,h,m,y,b,_,w=l.getViewport(),T=0,j=!1,x=!1,k=l.wrap,C=l.skin,S=l.inner,E=l.current,O=E.width,P=E.height,M=E.minWidth,I=E.minHeight,A=E.maxWidth,L=E.maxHeight,N=E.scrolling,D=E.scrollOutside?E.scrollbarWidth:0,R=E.margin,F=v(R[1]+R[3]),B=v(R[0]+R[2]);if(k.add(C).add(S).width("auto").height("auto").removeClass("fancybox-tmp"),t=v(C.outerWidth(!0)-C.width()),e=v(C.outerHeight(!0)-C.height()),o=F+t,r=B+e,s=f(O)?(w.w-o)*v(O)/100:O,a=f(P)?(w.h-r)*v(P)/100:P,"iframe"===E.type){if(b=E.content,E.autoHeight&&1===b.data("ready"))try{b[0].contentWindow.document.location&&(S.width(s).height(9999),_=b.contents().find("body"),D&&_.css("overflow-x","hidden"),a=_.outerHeight(!0))}catch(t){}}else(E.autoWidth||E.autoHeight)&&(S.addClass("fancybox-tmp"),E.autoWidth||S.width(s),E.autoHeight||S.height(a),E.autoWidth&&(s=S.width()),E.autoHeight&&(a=S.height()),S.removeClass("fancybox-tmp"));if(O=v(s),P=v(a),d=s/a,M=v(f(M)?v(M,"w")-o:M),A=v(f(A)?v(A,"w")-o:A),I=v(f(I)?v(I,"h")-r:I),L=v(f(L)?v(L,"h")-r:L),c=A,u=L,E.fitToView&&
vendor: 5,685 bytes, line 9
9(A=Math.min(w.w-o,A),L=Math.min(w.h-r,L)),m=w.w-F,y=w.h-B,E.aspectRatio?(O>A&&(P=v((O=A)/d)),P>L&&(O=v((P=L)*d)),O<M&&(P=v((O=M)/d)),P<I&&(O=v((P=I)*d))):(O=Math.max(M,Math.min(O,A)),E.autoHeight&&"iframe"!==E.type&&(S.width(O),P=S.height()),P=Math.max(I,Math.min(P,L))),E.fitToView){if(S.width(O).height(P),k.width(O+t),p=k.width(),h=k.height(),E.aspectRatio)for(;(p>m||h>y)&&O>M&&P>I&&!(T++>19);)(O=v((P=Math.max(I,Math.min(L,P-10)))*d))<M&&(P=v((O=M)/d)),O>A&&(P=v((O=A)/d)),S.width(O).height(P),k.width(O+t),p=k.width(),h=k.height();else O=Math.max(M,Math.min(O,O-(p-m))),P=Math.max(I,Math.min(P,P-(h-y)))}D&&"auto"===N&&P<a&&O+t+D<m&&(O+=D),S.width(O).height(P),k.width(O+t),p=k.width(),h=k.height(),j=(p>m||h>y)&&O>M&&P>I,x=E.aspectRatio?O<c&&P<u&&O<s&&P<a:(O<c||P<u)&&(O<s||P<a),n.extend(E,{dim:{width:g(p),height:g(h)},origWidth:s,origHeight:a,canShrink:j,canExpand:x,wPadding:t,hPadding:e,wrapSpace:h-C.outerHeight(!0),skinSpace:C.height()-P}),!b&&E.autoHeight&&P>I&&P<L&&!x&&S.height("auto")},_getPosition:function(t){var e=l.current,n=l.getViewport(),o=e.margin,r=l.wrap.width()+o[1]+o[3],s=l.wrap.height()+o[0]+o[2],a={position:"absolute",top:o[0],left:o[3]};return e.autoCenter&&e.fixed&&!t&&s<=n.h&&r<=n.w?a.position="fixed":e.locked||(a.top+=n.y,a.left+=n.x),a.top=g(Math.max(a.top,a.top+(n.h-s)*e.topRatio)),a.left=g(Math.max(a.left,a.left+(n.w-r)*e.leftRatio)),a},_afterZoomIn:function(){var t=l.current;t&&(l.isOpen=l.isOpened=!0,l.wrap.css("overflow","visible").addClass("fancybox-opened"),l.update(),(t.closeClick||t.nextClick&&l.group.length>1)&&l.inner.css("cursor","pointer").bind("click.fb",function(e){n(e.target).is("a")||n(e.target).parent().is("a")||(e.preventDefault(),l[t.closeClick?"close":"next"]())}),t.closeBtn&&n(t.tpl.closeBtn).appendTo(l.skin).bind("click.fb",function(t){t.preventDefault(),l.close()}),t.arrows&&l.group.length>1&&((t.loop||t.index>0)&&n(t.tpl.prev).appendTo(l.outer).bind("click.fb",l.prev),(t.loop||t.index<l.group.length-1)&&n(t.tpl.next).appendTo(l.outer).bind("click.fb",l.next)),l.trigger("afterShow"),t.loop||t.index!==t.group.length-1?l.opts.autoPlay&&!l.player.isActive&&(l.opts.autoPlay=!1,l.play()):l.play(!1))},_afterZoomOut:function(t){t=t||l.current,n(".fancybox-wrap").trigger("onReset").remove(),n.extend(l,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),l.trigger("afterClose",t)}}),l.transitions={getOrigPosition:function(){var t=l.current,e=t.element,n=t.orig,o={},r=50,s=50,a=t.hPadding,c=t.wPadding,u=l.getViewport();return!n&&t.isDom&&e.is(":visible")&&!(n=e.find("img:first")).length&&(n=e),p(n)?(o=n.offset(),n.is("img")&&(r=n.outerWidth(),s=n.outerHeight())):(o.top=u.y+(u.h-s)*t.topRatio,o.left=u.x+(u.w-r)*t.leftRatio),("fixed"===l.wrap.css("position")||t.locked)&&(o.top-=u.y,o.left-=u.x),o={top:g(o.top-a*t.topRatio),left:g(o.left-c*t.leftRatio),width:g(r+c),height:g(s+a)}},step:function(t,e){var n,o,r=e.prop,s=l.current,a=s.wrapSpace,c=s.skinSpace;("width"===r||"height"===r)&&(n=e.end===e.start?1:(t-e.start)/(e.end-e.start),l.isClosing&&(n=1-n),o=t-("width"===r?s.wPadding:s.hPadding),l.skin[r](v("width"===r?o:o-a*n)),l.inner[r](v("width"===r?o:o-a*n-c*n)))},zoomIn:function(){var t=l.current,e=t.pos,o=t.openEffect,r="elastic"===o,s=n.extend({opacity:1},e);delete s.position,r?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===o&&(e.opacity=.1),l.wrap.css(e).animate(s,{duration:"none"===o?0:t.openSpeed,easing:t.openEasing,step:r?this.step:null,complete:l._afterZoomIn})},zoomOut:function(){var t=l.current,e=t.closeEffect,n="elastic"===e,o={opacity:.1};n&&(o=this.getOrigPosition(),t.closeOpacity&&(o.opacity=.1)),l.wrap.animate(o,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:n?this.step:null,complete:l._afterZoomOut})},changeIn:function(){var t,e=l.current,n=e.nextEffect,o=e.pos,r={opacity:1},s=l.direction;o.opacity=.1,"elastic"===n&&(t="down"===s||"up"===s?"top":"left","down"===s||"right"===s?(o[t]=g(v(o[t])-200),r[t]="+=200px"):(o[t]=g(v(o[t])+200),r[t]="-=200px")),"none"===n?l._afterZoomIn():l.wrap.css(o).animate(r,{duration:e.nextSpeed,easing:e.nextEasing,complete:l._afterZoomIn})},changeOut:function(){var t=l.previous,e=t.prevEffect,o={opacity:.1},r=l.direction;"elastic"===e&&(o["down"===r||"up"===r?"top":"left"]=("up"===r||"left"===r?"-":"+")+"=200px"),t.wrap.animate(o,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){n(this).trigger("onReset").remove()}})}},l.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!d,fixed:!0},overlay:null,fixed:!1,el:n("html"),create:function(t){t=n.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=n('<div class="fancybox-overlay"></div>').appendTo(l.coming?l.coming.parent:t.parent),this.fixed=!1,t.fixed&&l.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=n.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(s.bind("resize.overlay",n.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(n(t.target).hasClass("fancybox-overlay"))return l.isActive?l.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;s.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),t=s.scrollTop(),e=s.scrollLeft(),this.el.removeClass("fancybox-lock"),s.scrollTop(t).scrollLeft(e)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var t,n="100%";
9this.overlay.width(n).height("100%"),c?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),a.width()>t&&(n=a.width())):a.width()>s.width()&&(n=a.width()),this.overlay.width(n).height(a.height())},onReady:function(t,e){var o=this.overlay;n(".fancybox-overlay").stop(!0,!0),o||this.create(t),t.locked&&this.fixed&&e.fixed&&(o||(this.margin=a.height()>s.height()&&n("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var o,r;e.locked&&(!1!==this.margin&&(n("*").filter(function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),o=s.scrollTop(),r=s.scrollLeft(),this.el.addClass("fancybox-lock"),s.scrollTop(o).scrollLeft(r)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!l.coming&&this.overlay.fadeOut(t.speedOut,n.proxy(this.close,this))}},l.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,o,r=l.current,s=r.title,a=t.type;if(n.isFunction(s)&&(s=s.call(r.element,r)),h(s)&&""!==n.trim(s)){switch(e=n('<div class="fancybox-title fancybox-title-'+a+'-wrap">'+s+"</div>"),a){case"inside":o=l.skin;break;case"outside":o=l.wrap;break;case"over":o=l.inner;break;default:o=l.skin,e.appendTo("body"),c&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),l.current.margin[2]+=Math.abs(v(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](o)}}},n.fn.fancybox=function(t){var e,o=n(this),r=this.selector||"",s=function(s){var a,c,u=n(this).blur(),d=e;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||u.is(".fancybox-wrap")||(a=t.groupAttr||"data-fancybox-group",(c=u.attr(a))||(a="rel",c=u.get(0)[a]),c&&""!==c&&"nofollow"!==c&&(d=(u=(u=r.length?n(r):o).filter("["+a+'="'+c+'"]')).index(this)),t.index=d,!1!==l.open(u,t)&&s.preventDefault())};return e=(t=t||{}).index||0,r&&!1!==t.live?a.undelegate(r,"click.fb-start").delegate(r+":not('.fancybox-item, .fancybox-nav')","click.fb-start",s):o.unbind("click.fb-start").bind("click.fb-start",s),this.filter("[data-fancybox-start=1]").trigger("click"),this},a.ready(function(){var e,s,a,c;o===n.scrollbarWidth&&(n.scrollbarWidth=function(){var t=n('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),o=e.innerWidth()-e.height(99).innerWidth();return t.remove(),o}),o===n.support.fixedPosition&&(n.support.fixedPosition=(c=20===(a=n('<div style="position:fixed;top:20px;"></div>').appendTo("body"))[0].offsetTop||15===a[0].offsetTop,a.remove(),c)),n.extend(l.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),e=n(t).width(),r.addClass("fancybox-lock-test"),s=n(t).width(),r.removeClass("fancybox-lock-test"),n("<style type='text/css'>.fancybox-margin{margin-right:"+(s-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),ResponsiveHelper=function(t){var e,n=[],o=t(window),r=!1;function s(){var r=o.width();r!==e&&(e=r,t.each(n,function(e,n){t.each(n.data,function(t,e){e.currentActive&&!a(e.range[0],e.range[1])&&(e.currentActive=!1,"function"==typeof e.disableCallback&&e.disableCallback())}),t.each(n.data,function(t,e){!e.currentActive&&a(e.range[0],e.range[1])&&(e.currentActive=!0,"function"==typeof e.enableCallback&&e.enableCallback())})}))}function a(t,n){var o,s="";return t>0&&(s+="(min-width: "+t+"px)"),n<1/0&&(s+=(s?" and ":"")+"(max-width: "+n+"px)"),o=s,window.matchMedia&&r?matchMedia(o).matches:window.styleMedia?styleMedia.matchMedium(o):window.media?media.matchMedium(o):e>=t&&e<=n}return window.matchMedia&&(window.Window&&window.matchMedia===Window.prototype.matchMedia?r=!0:window.matchMedia.toString().indexOf("native")>-1&&(r=!0)),o.bind("load resize orientationchange",s),{addRange:function(o){var r={data:{}};t.each(o,function(t,e){var n;r.data[t]={range:[parseInt((n=t.split(".."))[0],10)||-1/0,parseInt(n[1],10)||1/0].sort(function(t,e){return t-e}),enableCallback:e.on,disableCallback:e.off}}),n.push(r),e=null,s()}}}(jQuery),function(t){function e(e){this.options=t.extend({place:"",move:"inside",setClass:!1}
9,e),this.init()}e.prototype={init:function(){this.options.holder&&(this.findElements(),this.setAnchor(),this.move(),this.setClass())},findElements:function(){this.elements={holder:t(this.options.holder),place:t(this.options.place)}},setAnchor:function(){this.anchorElem=t("<span>"),this.anchorElem.attr("data-anchor-id",this.elements.holder.data("moved-id")).insertBefore(this.elements.holder).css("display","none")},move:function(){var t=this,e={after:function(){t.elements.holder.insertAfter(t.elements.place)},before:function(){t.elements.holder.insertBefore(t.elements.place)},inside:function(){t.elements.place.prepend(t.elements.holder)}};void 0!==e[this.options.move]?e[this.options.move]():e.inside()},setClass:function(){this.options.setClass&&this.elements.holder.addClass(this.options.setClass)},destroy:function(){this.elements.holder.insertAfter(this.anchorElem).removeClass(this.options.setClass).removeData("moveElement"),this.anchorElem.remove(),n=[]}},t.fn.moveElement=function(o){return this.each(function(){n.push(this),t.each(n,function(e,o){e===n.length-1&&t(o).attr("data-moved-id",e+1)}),t(this).data("moveElement",new e(t.extend(o,{holder:this})))})};var n=[]}(jQuery),/*!
10  Colorbox 1.6.4
11  license: MIT
12  http://www.jacklmoore.com/colorbox
13*/function(t,e,n){function o(n,o,r){var s=e.createElement(n);return o&&(s.id=J+o),r&&(s.style.cssText=r),t(s)}function r(){return n.innerHeight?n.innerHeight:t(n).height()}function s(e,n){n!==Object(n)&&(n={}),this.cache={},this.el=e,this.value=function(e){var o;return void 0===this.cache[e]&&(void 0!==(o=t(this.el).attr("data-cbox-"+e))?this.cache[e]=o:void 0!==n[e]?this.cache[e]=n[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var n=this.value(e);return t.isFunction(n)?n.call(this.el,this):n}}function a(t){var e=x.length,n=(W+t)%e;return 0>n?e+n:n}function l(t,e){return Math.round((/%/.test(t)?("x"===e?k.width():r())/100:1)*parseInt(t,10))}function c(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function u(t,e){return t.get("retinaUrl")&&n.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in m[0]&&!m[0].contains(t.target)&&t.target!==g[0]&&(t.stopPropagation(),m.focus())}function p(t){p.str!==t&&(m.add(g).removeClass(p.str).addClass(t),p.str=t)}function h(n){t(e).trigger(n),ts.triggerHandler(n)}function f(r){var a;if(!q){if(a=t(r).data(G),D=new s(r,a),W=0,(f=D.get("rel"))&&!1!==f&&"nofollow"!==f?-1===(W=(x=t("."+Z).filter(function(){var e=t.data(this,G);return new s(this,e).get("rel")===f})).index(D.el))&&(W=(x=x.add(D.el)).length-1):x=t(D.el),!V){V=U=!0,p(D.get("className")),m.css({visibility:"hidden",display:"block",opacity:""}),C=o(ta,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(C),R=_.height()+j.height()+b.outerHeight(!0)-b.height(),F=w.width()+T.width()+b.outerWidth(!0)-b.width(),B=C.outerHeight(!0),H=C.outerWidth(!0);var f,v=l(D.get("initialWidth"),"x"),y=l(D.get("initialHeight"),"y"),k=D.get("maxWidth"),P=D.get("maxHeight");D.w=Math.max((!1!==k?Math.min(v,l(k,"x")):v)-H-F,0),D.h=Math.max((!1!==P?Math.min(y,l(P,"y")):y)-B-R,0),C.css({width:"",height:D.h}),Y.position(),h(tt),D.get("onOpen"),N.add(O).hide(),m.focus(),D.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ts.one(ti,function(){e.removeEventListener("focus",d,!0)})),D.get("returnFocus")&&ts.one(ti,function(){t(D.el).focus()})}var M=parseFloat(D.get("opacity"));g.css({opacity:M==M?M:"",cursor:D.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),D.get("closeButton")?L.html(D.get("close")).appendTo(b):L.appendTo("<div/>"),function(){var e,r,s,a=Y.prep,d=++tl;if(U=!0,z=!1,h(tr),h(te),D.get("onLoad"),D.h=D.get("height")?l(D.get("height"),"y")-B-R:D.get("innerHeight")&&l(D.get("innerHeight"),"y"),D.w=D.get("width")?l(D.get("width"),"x")-H-F:D.get("innerWidth")&&l(D.get("innerWidth"),"x"),D.mw=D.w,D.mh=D.h,D.get("maxWidth")&&(D.mw=l(D.get("maxWidth"),"x")-H-F,D.mw=D.w&&D.w<D.mw?D.w:D.mw),D.get("maxHeight")&&(D.mh=l(D.get("maxHeight"),"y")-B-R,D.mh=D.h&&D.h<D.mh?D.h:D.mh),e=D.get("href"),Q=setTimeout(function(){E.show()},100),D.get("inline")){var p=t(e).eq(0);s=t("<div>").hide().insertBefore(p),ts.one(tr,function(){s.replaceWith(p)}),a(p)}else D.get("iframe")?a(" "):D.get("html")?a(D.get("html")):c(D,e)?(e=u(D,e),t(z=D.get("createImg")).addClass(J+"Photo").bind("error."+J,function(){a(o(ta,"Error").html(D.get("imgError")))}).one("load",function(){d===tl&&setTimeout(function(){var e;D.get("retinaImage")&&n.devicePixelRatio>1&&(z.height=z.height/n.devicePixelRatio,z.width=z.width/n.devicePixelRatio),D.get("scalePhotos")&&(r=function(){z.height-=z.height*e,z.width-=z.width*e},D.mw&&z.width>D.mw&&(e=(z.width-D.mw)/z.width,r()),D.mh&&z.height>D.mh&&(e=(z.height-D.mh)/z.height,r())),D.h&&(z.style.marginTop=Math.max(D.mh-z.height,0)/2+"px"),x[1]&&(D.get("loop")||x[W+1])&&(z.style.cursor="pointer",t(z).bind("click."+J,function(){Y.next()})),z.style.width=z.width+"px",z.style.height=z.height+"px",a(z)},1)}),z.src=e):e&&S.load(e,D.get("data"),function(e,n){d===tl&&a("error"===n?o(ta,"Error").html(D.get("xhrError")):t(this).contents())})}()}}function v(){m||(K=!1,k=t(n),m=o(ta).attr({id:G,class:!1===t.support.opacity?J+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=o(ta,"Overlay").hide(),E=t([o(ta,"LoadingOverlay")[0],o(ta,"LoadingGraphic")[0]]),y=o(ta,"Wrapper"),b=o(ta,"Content").append(O=o(ta,"Title"),P=
13o(ta,"Current"),A=t('<button type="button"/>').attr({id:J+"Previous"}),I=t('<button type="button"/>').attr({id:J+"Next"}),M=t('<button type="button"/>').attr({id:J+"Slideshow"}),E),L=t('<button type="button"/>').attr({id:J+"Close"}),y.append(o(ta).append(o(ta,"TopLeft"),_=o(ta,"TopCenter"),o(ta,"TopRight")),o(ta,!1,"clear:left").append(w=o(ta,"MiddleLeft"),b,T=o(ta,"MiddleRight")),o(ta,!1,"clear:left").append(o(ta,"BottomLeft"),j=o(ta,"BottomCenter"),o(ta,"BottomRight"))).find("div div").css({float:"left"}),S=o(ta,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),N=I.add(A).add(P).add(M)),e.body&&!m.parent().length&&t(e.body).append(g,m.append(y,S))}var g,m,y,b,_,w,T,j,x,k,C,S,E,O,P,M,I,A,L,N,D,R,F,B,H,W,z,V,U,q,Q,Y,K,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,n=t(this).data("cbox-img-attrs");return"object"==typeof n&&t.each(n,function(t,n){e[t]=n}),e},createIframe:function(){var n=e.createElement("iframe"),o=t(this).data("cbox-iframe-attrs");return"object"==typeof o&&t.each(o,function(t,e){n[t]=e}),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},G="colorbox",J="cbox",Z=J+"Element",tt=J+"_open",te=J+"_load",tn=J+"_complete",to=J+"_cleanup",ti=J+"_closed",tr=J+"_purge",ts=t("<a/>"),ta="div",tl=0,tc={},tu=function(){function t(){clearTimeout(a)}function e(){(D.get("loop")||x[W+1])&&(t(),a=setTimeout(Y.next,D.get("slideshowSpeed")))}function n(){M.html(D.get("slideshowStop")).unbind(c).one(c,o),ts.bind(tn,e).bind(te,t),m.removeClass(l+"off").addClass(l+"on")}function o(){t(),ts.unbind(tn,e).unbind(te,t),M.html(D.get("slideshowStart")).unbind(c).one(c,function(){Y.next(),n()}),m.removeClass(l+"on").addClass(l+"off")}function r(){s=!1,M.hide(),t(),ts.unbind(tn,e).unbind(te,t),m.removeClass(l+"off "+l+"on")}var s,a,l=J+"Slideshow_",c="click."+J;return function(){s?D.get("slideshow")||(ts.unbind(to,r),r()):D.get("slideshow")&&x[1]&&(s=!0,ts.one(to,r),D.get("slideshowAuto")?n():o(),M.show())}}();t[G]||(t(v),(Y=t.fn[G]=t[G]=function(n,o){var r=this;return n=n||{},t.isFunction(r)&&(r=t("<a/>"),n.open=!0),r[0]&&(v(),function(){function n(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return!!m&&(K||(K=!0,I.click(function(){Y.next()}),A.click(function(){Y.prev()}),L.click(function(){Y.close()}),g.click(function(){D.get("overlayClose")&&Y.close()}),t(e).bind("keydown."+J,function(t){var e=t.keyCode;V&&D.get("escKey")&&27===e&&(t.preventDefault(),Y.close()),V&&D.get("arrowKey")&&x[1]&&!t.altKey&&(37===e?(t.preventDefault(),A.click()):39===e&&(t.preventDefault(),I.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+J,"."+Z,n):t("."+Z).live("click."+J,n)),!0)}()&&(o&&(n.onComplete=o),r.each(function(){var e=t.data(this,G)||{};t.data(this,G,t.extend(e,n))}).addClass(Z),new s(r[0],n).get("open")&&f(r[0]))),r}).position=function(e,n){function o(){_[0].style.width=j[0].style.width=b[0].style.width=parseInt(m[0].style.width,10)-F+"px",b[0].style.height=w[0].style.height=T[0].style.height=parseInt(m[0].style.height,10)-R+"px"}var s,a,c,u=0,d=0,p=m.offset();if(k.unbind("resize."+J),m.css({top:-9e4,left:-9e4}),a=k.scrollTop(),c=k.scrollLeft(),D.get("fixed")?(p.top-=a,p.left-=c,m.css({position:"fixed"})):(u=a,d=c,m.css({position:"absolute"})),d+=!1!==D.get("right")?Math.max(k.width()-D.w-H-F-l(D.get("right"),"x"),0):!1!==D.get("left")?l(D.get("left"),"x"):Math.round(Math.max(k.width()-D.w-H-F,0)/2),u+=!1!==D.get("bottom")?Math.max(r()-D.h-B-R-l(D.get("bottom"),"y"),0):!1!==D.get("top")?l(D.get("top"),"y"):Math.round(Math.max(r()-D.h-B-R,0)/2),m.css({top:p.top,left
13:p.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",s={width:D.w+H+F,height:D.h+B+R,top:u,left:d},e){var h=0;t.each(s,function(t){return s[t]!==tc[t]?void(h=e):void 0}),e=h}tc=s,e||m.css(s),m.dequeue().animate(s,{duration:e||0,complete:function(){o(),U=!1,y[0].style.width=D.w+H+F+"px",y[0].style.height=D.h+B+R+"px",D.get("reposition")&&setTimeout(function(){k.bind("resize."+J,Y.position)},1),t.isFunction(n)&&n()},step:o})},Y.resize=function(t){var e;V&&((t=t||{}).width&&(D.w=l(t.width,"x")-H-F),t.innerWidth&&(D.w=l(t.innerWidth,"x")),C.css({width:D.w}),t.height&&(D.h=l(t.height,"y")-B-R),t.innerHeight&&(D.h=l(t.innerHeight,"y")),t.innerHeight||t.height||(e=C.scrollTop(),C.css({height:"auto"}),D.h=C.height()),C.css({height:D.h}),e&&C.scrollTop(e),Y.position("none"===D.get("transition")?0:D.get("speed")))},Y.prep=function(n){if(V){var r,l="none"===D.get("transition")?0:D.get("speed");C.remove(),(C=o(ta,"LoadedContent").append(n)).hide().appendTo(S.show()).css({width:(D.w=D.w||C.width(),D.w=D.mw&&D.mw<D.w?D.mw:D.w,D.w),overflow:D.get("scrolling")?"auto":"hidden"}).css({height:(D.h=D.h||C.height(),D.h=D.mh&&D.mh<D.h?D.mh:D.h,D.h)}).prependTo(b),S.hide(),t(z).css({float:"none"}),p(D.get("className")),r=function(){function n(){!1===t.support.opacity&&m[0].style.removeAttribute("filter")}var o,r,d=x.length;V&&(r=function(){clearTimeout(Q),E.hide(),h(tn),D.get("onComplete")},O.html(D.get("title")).show(),C.show(),d>1?("string"==typeof D.get("current")&&P.html(D.get("current").replace("{current}",W+1).replace("{total}",d)).show(),I[D.get("loop")||d-1>W?"show":"hide"]().html(D.get("next")),A[D.get("loop")||W?"show":"hide"]().html(D.get("previous")),tu(),D.get("preloading")&&t.each([a(-1),a(1)],function(){var n=x[this],o=new s(n,t.data(n,G)),r=o.get("href");r&&c(o,r)&&(r=u(o,r),e.createElement("img").src=r)})):N.hide(),D.get("iframe")?(o=D.get("createIframe"),D.get("scrolling")||(o.scrolling="no"),t(o).attr({src:D.get("href"),class:J+"Iframe"}).one("load",r).appendTo(C),ts.one(tr,function(){o.src="//about:blank"}),D.get("fastIframe")&&t(o).trigger("load")):r(),"fade"===D.get("transition")?m.fadeTo(l,1,n):n())},"fade"===D.get("transition")?m.fadeTo(l,0,function(){Y.position(0,r)}):Y.position(l,r)}},Y.next=function(){!U&&x[1]&&(D.get("loop")||x[W+1])&&f(x[W=a(1)])},Y.prev=function(){!U&&x[1]&&(D.get("loop")||W)&&f(x[W=a(-1)])},Y.close=function(){V&&!q&&(q=!0,V=!1,h(to),D.get("onCleanup"),k.unbind("."+J),g.fadeTo(D.get("fadeOut")||0,0),m.stop().fadeTo(D.get("fadeOut")||0,0,function(){m.hide(),g.hide(),h(tr),C.remove(),setTimeout(function(){q=!1,h(ti),D.get("onClosed")},1)}))},Y.remove=function(){m&&(m.stop(),t[G].close(),m.stop(!1,!0).remove(),g.remove(),q=!1,m=null,t("."+Z).removeData(G).removeClass(Z),t(e).unbind("click."+J).unbind("keydown."+J))},Y.element=function(){return t(D.el)},Y.settings=X)}(jQuery,document,window),function(t){"use strict";var e=t('<style type="text/css">.mm-menu.mm-offcanvas { display: none; }</style>');t("html > head").append(e),t(document).ready(function(){t("[data-sticky-header]").closest(".js-sticky-nav").sticky({topSpacing:0}),t(".navigation__item.more").click(function(t){t.preventDefault()}),t("nav.mm-menu a.mm-prev").each(function(){var e=t(this).parent().find("a.mm-title").text();t(this).attr("title",e)}),t("nav.mm-menu a.mm-next").each(function(){var e=t("> a[data-title]",t(this).parent()).data("title");t(this).attr("title",e)}),t("nav.mm-menu a.mm-close").length>0&&t("nav.mm-menu a.mm-close").attr("title","Close");var e=t(".more_nav--loading");e.length&&e.removeClass("more_nav--loading")}),t(window).load(function(){t(".navigation-a").length&&t(".navigation-a > .navigation__list > .navigation__item.has-drop-down").on("mouseenter mouseleave",function(e){var n=t(this).find("> .navigation__list--sub"),o=n.find("> .navigation__item.has-drop-down > .navigation__list--sub"),r=o.find("> .navigation__item.has-drop-down > .navigation__list--sub"),s=n.outerWidth(!0),a=t(this).offset().left,l=0,c=0;t(o).each(function(){var e=t(this).outerWidth(!0);e>c&&(c=e)});var u=0;t(r).each(function(){var e=t(this).outerWidth(!0);e>u&&(u=e)}),l=s+c+u-t(this).outerWidth(!0),t(document).width()-(a+t(this).outerWidth(!0)+60)>l?t(this).removeClass("near-edge"):t(this).addClass("near-edge")})})}(window.jQuery),function(t){"use strict";var e=function(t,e){this.$el=t,this.$parent=t.closest(".cta"),this.options=e,this.ctaVideo="",this.initColorbox()};e.prototype.initColorbox=function(){this.$parent.find(".lb-class").each(function(){t(this).colorbox(t.extend(e.defaults,t(t(this).attr("href")).data()))}),t(document).bind("cbox_complete",{context:this},this.cboxOpenCallBack),t(document).bind("cbox_closed",{context:this},this.cboxClosedCallBack)},e.prototype.cboxOpenCallBack=function(t){t.data.context.formSizeHandler(t),t.data.context.videoLoadHandler(t)},e.prototype.cboxClosedCallBack=function(e){var n=t.colorbox.element
13().attr("href");t(n+" [data-setup-run]").each(function(){t(this).remove()})},e.prototype.formSizeHandler=function(e){var n=t.colorbox.element().attr("href"),o=t(n).find("form"),r=new MutationObserver(function(e){t.colorbox.resize()}),s=document.querySelector(o.selector);null!=s&&r.observe(s,{attributes:!0})},e.prototype.videoLoadHandler=function(e){var n=t.colorbox.element().attr("href");if(t(n+" [data-setup-run]").length&&(e.data.context.ctaVideo=t(n+" [data-setup-run]")[0].outerHTML,t(n+" [data-setup-run]").remove()),e.data.context.ctaVideo){t(n+" .video").append(t(e.data.context.ctaVideo));var o=t(n+" [data-setup-run]");videojs(o[0],o.data("setupRun"),function(){})}},e.defaults={inline:!0,width:"50%",transition:"fade",returnFocus:!1},t.fn.colorBoxModal=function(n){var o;return arguments,this.each(function(){var r=t(this),s=t.extend({},r.data(),"object"==typeof n&&n);if(r.data("ColorBoxModal",new e(r,s)),void 0!==o)return!1}),o||this},t.fn.colorBoxModal.Constructor=e,t.fn.colorBoxModal.noConflict=function(){return t.fn.colorBoxModal=old,this},t(document).ready(function(){t('[data-control="colorbox-modal"]').colorBoxModal({})})}(window.jQuery),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).videojs=t()}(function(){var t;return(function t(e,n,o){function r(a,l){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!l&&c)return c(a,!0);if(s)return s(a,!0);var u=Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[a]={exports:{}};e[a][0].call(d.exports,function(t){return r(e[a][1][t]||t)},d,d.exports,t,e,n,o)}return n[a].exports}for(var s="function"==typeof require&&require,a=0;a<o.length;a++)r(o[a]);return r})({1:[function(t,e){(function(n){var o=void 0!==n?n:"undefined"!=typeof window?window:{},r=t("min-document");if("undefined"!=typeof document)e.exports=document;else{var s=o["__GLOBAL_DOCUMENT_CACHE@4"];s||(s=o["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":3}],2:[function(t,e){(function(t){e.exports="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(){},{}],4:[function(t,e){var n=t("../internal/getNative")(Date,"now");e.exports=n||function(){return(new Date).getTime()}},{"../internal/getNative":20}],5:[function(t,e){var n=t("../lang/isObject"),o=t("../date/now"),r=Math.max;e.exports=function(t,e,s){function a(e,n){n&&clearTimeout(n),p=g=m=void 0,e&&(y=o(),h=t.apply(v,d),g||p||(d=v=void 0))}function l(){var t=e-(o()-f);0>=t||t>e?a(m,p):g=setTimeout(l,t)}function c(){a(_,g)}function u(){if(d=arguments,f=o(),v=this,m=_&&(g||!w),!1===b)var n=w&&!g;else{p||w||(y=f);var r=b-(f-y),s=0>=r||r>b;s?(p&&(p=clearTimeout(p)),y=f,h=t.apply(v,d)):p||(p=setTimeout(c,r))}return s&&g?g=clearTimeout(g):g||e===b||(g=setTimeout(l,e)),n&&(s=!0,h=t.apply(v,d)),!s||g||p||(d=v=void 0),h}var d,p,h,f,v,g,m,y=0,b=!1,_=!0;if("function"!=typeof t)throw TypeError("Expected a function");if(e=0>e?0:+e||0,!0===s){var w=!0;_=!1}else n(s)&&(w=!!s.leading,b="maxWait"in s&&r(+s.maxWait||0,e),_="trailing"in s?!!s.trailing:_);return u.cancel=function(){g&&clearTimeout(g),p&&clearTimeout(p),y=0,p=g=m=void 0},u}},{"../date/now":4,"../lang/isObject":33}],6:[function(t,e){var n=Math.max;e.exports=function(t,e){if("function"!=typeof t)throw TypeError("Expected a function");return e=n(void 0===e?t.length-1:+e||0,0),function(){for(var o=arguments,r=-1,s=n(o.length-e,0),a=Array(s);++r<s;)a[r]=o[e+r];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,o[0],a);case 2:return t.call(this,o[0],o[1],a)}var l=Array(e+1);for(r=-1;++r<e;)l[r]=o[r];return l[e]=a,t.apply(this,l)}}},{}],7:[function(t,e){var n=t("./debounce"),o=t("../lang/isObject");e.exports=function(t,e,r){var s=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return!1===r?s=!1:o(r)&&(s="leading"in r?!!r.leading:s,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:s,maxWait:+e,trailing:a})}},{"../lang/isObject":33,"./debounce":5}],8:[function(t,e){e.exports=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}},{}],9:[function(t,e){e.exports=function(t,e){for(var n=-1,o=t.length;++n<o&&!1!==e(t[n],n,t););return t}},{}],10:[function(t,e){e.exports=function(t,e,n){n||(n={});for(var o=-1,r=e.length;++o<r;){var s=e[o];n[s]=t[s]}return n}},{}],11:[function(t,e){var n=t("./createBaseFor")();e.exports=n},{"./createBaseFor":18}],12:[function(t,e){var n=t("./baseFor"),o=t("../object/keysIn");e.exports=function(t,e){return n(t,e,o)}},{"../object/keysIn":39,"./baseFor":11}],13:[function(t,e){var n=t("./arrayEach"),o=t("./baseMergeDeep"),r=t("../lang/isArray"),s=t("./isArrayLike"),a=t("../lang/isObject"),l=t("./isObjectLike"),c=t("../lang/isTypedArray"),u=t("../object/keys");e.exports=function t(e,d,p,h,f){if(!a(e))return e;var v=s(d)&&(r(d)||c(d)),g=v?void 0:u(d);return n(g||d,function(n,r){if(g&&(n=d[r=n]),l(n))h||(h=[]),f||(f=[]),o(e,d,r,t,p,h,f);else{var s=e[r],a=p?p(s,n,r,e,d):void 0,c=void 0===a;c&&(a=n),void 0===a&&(!v||r in e)||!c&&(a==a?a===s:s!=s)||(e[r]=a)}}),e}},{"../lang/isArray":30,"../lang/isObject":33,"../lang/isTypedArray":36,"../object/keys":38,"./arrayEach":9,"./baseMergeDeep":14,"./isArrayLike":21,"./isObjectLike":26}],14:[function(t,e){var n=t("./arrayCopy"),o=t("../lang/isArguments"),r=t("../lang/isArray"),s=t("./isArrayLike"),a=t("../lang/isPlainObject"),l=t("../lang/isTypedArray"),c=t("../lang/toPlainObject");e.exports=function(t,e,u,d,p,h,f){for(var v=h.length,g=e[u];v--;)if(h[v]==g)return void(t[u]=f[v]);var m=t[u],y=p?p(m,g,u,t,e):void 0,b=void 0===y;b&&(y=g,s(g)&&(r(g)||l(g))?y=r(m)?m:s(m)?n(m):[]:a(g)||o(g)?y=o(m)?c(m):a(m)?m:{}:b=!1),h.push(g),f.push(y),b?t[u]=d(y,g,p,h,f):(y==y?y!==m:m==m)&&(t[u]=y)}},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isPlainObject":34,"../lang/isTypedArray":36,"../lang/toPlainObject":37,"./arrayCopy":8,"./isArrayLike":21}],15:[function(t,e){var n=t("./toObject");e.exports=function(t){return function(e){return null==e?void 0:n(e)[t]}}},{"./toObject":28}],16:[function(t,e){var n=t("../utility/identity");
13e.exports=function(t,e,o){if("function"!=typeof t)return n;if(void 0===e)return t;switch(o){case 1:return function(n){return t.call(e,n)};case 3:return function(n,o,r){return t.call(e,n,o,r)};case 4:return function(n,o,r,s){return t.call(e,n,o,r,s)};case 5:return function(n,o,r,s,a){return t.call(e,n,o,r,s,a)}}return function(){return t.apply(e,arguments)}}},{"../utility/identity":42}],17:[function(t,e){var n=t("./bindCallback"),o=t("./isIterateeCall"),r=t("../function/restParam");e.exports=function(t){return r(function(e,r){var s=-1,a=null==e?0:r.length,l=a>2?r[a-2]:void 0,c=a>2?r[2]:void 0,u=a>1?r[a-1]:void 0;for("function"==typeof l?(l=n(l,u,5),a-=2):a-=(l="function"==typeof u?u:void 0)?1:0,c&&o(r[0],r[1],c)&&(l=3>a?void 0:l,a=1);++s<a;){var d=r[s];d&&t(e,d,l)}return e})}},{"../function/restParam":6,"./bindCallback":16,"./isIterateeCall":24}],18:[function(t,e){var n=t("./toObject");e.exports=function(t){return function(e,o,r){for(var s=n(e),a=r(e),l=a.length,c=t?l:-1;t?c--:++c<l;){var u=a[c];if(!1===o(s[u],u,s))break}return e}}},{"./toObject":28}],19:[function(t,e){var n=t("./baseProperty")("length");e.exports=n},{"./baseProperty":15}],20:[function(t,e){var n=t("../lang/isNative");e.exports=function(t,e){var o=null==t?void 0:t[e];return n(o)?o:void 0}},{"../lang/isNative":32}],21:[function(t,e){var n=t("./getLength"),o=t("./isLength");e.exports=function(t){return null!=t&&o(n(t))}},{"./getLength":19,"./isLength":25}],22:[function(t,e){e.exports=function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}},{}],23:[function(t,e){var n=/^\d+$/;e.exports=function(t,e){return t="number"==typeof t||n.test(t)?+t:-1,e=null==e?9007199254740991:e,t>-1&&t%1==0&&e>t}},{}],24:[function(t,e){var n=t("./isArrayLike"),o=t("./isIndex"),r=t("../lang/isObject");e.exports=function(t,e,s){if(!r(s))return!1;var a=typeof e;if("number"==a?n(s)&&o(e,s.length):"string"==a&&e in s){var l=s[e];return t==t?t===l:l!=l}return!1}},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(t,e){e.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&9007199254740991>=t}},{}],26:[function(t,e){e.exports=function(t){return!!t&&"object"==typeof t}},{}],27:[function(t,e){var n=t("../lang/isArguments"),o=t("../lang/isArray"),r=t("./isIndex"),s=t("./isLength"),a=t("../lang/isString"),l=t("../object/keysIn"),c=Object.prototype.hasOwnProperty;e.exports=function(t){for(var e=l(t),u=e.length,d=u&&t.length,p=!!d&&s(d)&&(o(t)||n(t)||a(t)),h=-1,f=[];++h<u;){var v=e[h];(p&&r(v,d)||c.call(t,v))&&f.push(v)}return f}},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isString":35,"../object/keysIn":39,"./isIndex":23,"./isLength":25}],28:[function(t,e){var n=t("../lang/isObject"),o=t("../lang/isString"),r=t("../support");e.exports=function(t){if(r.unindexedChars&&o(t)){for(var e=-1,s=t.length,a=Object(t);++e<s;)a[e]=t.charAt(e);return a}return n(t)?t:Object(t)}},{"../lang/isObject":33,"../lang/isString":35,"../support":41}],29:[function(t,e){var n=t("../internal/isArrayLike"),o=t("../internal/isObjectLike"),r=Object.prototype,s=r.hasOwnProperty,a=r.propertyIsEnumerable;e.exports=function(t){return o(t)&&n(t)&&s.call(t,"callee")&&!a.call(t,"callee")}},{"../internal/isArrayLike":21,"../internal/isObjectLike":26}],30:[function(t,e){var n=t("../internal/getNative"),o=t("../internal/isLength"),r=t("../internal/isObjectLike"),s=Object.prototype.toString,a=n(Array,"isArray");e.exports=a||function(t){return r(t)&&o(t.length)&&"[object Array]"==s.call(t)}},{"../internal/getNative":20,"../internal/isLength":25,"../internal/isObjectLike":26}],31:[function(t,e){var n=t("./isObject"),o=Object.prototype.toString;e.exports=function(t){return n(t)&&"[object Function]"==o.call(t)}},{"./isObject":33}],32:[function(t,e){var n=t("./isFunction"),o=t("../internal/isHostObject"),r=t("../internal/isObjectLike"),s=/^\[object .+?Constructor\]$/,a=Object.prototype,l=Function.prototype.toString,c=a.hasOwnProperty,u=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(t){return null!=t&&(n(t)?u.test(l.call(t)):r(t)&&(o(t)?u:s).test(t))}}
13,{"../internal/isHostObject":22,"../internal/isObjectLike":26,"./isFunction":31}],33:[function(t,e){e.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},{}],34:[function(t,e){var n=t("../internal/baseForIn"),o=t("./isArguments"),r=t("../internal/isHostObject"),s=t("../internal/isObjectLike"),a=t("../support"),l=Object.prototype,c=l.hasOwnProperty,u=l.toString;e.exports=function(t){var e,l;return!(!s(t)||"[object Object]"!=u.call(t)||r(t)||o(t))&&(!!c.call(t,"constructor")||"function"!=typeof(e=t.constructor)||e instanceof e)&&(a.ownLast?(n(t,function(t,e,n){return l=c.call(n,e),!1}),!1!==l):(n(t,function(t,e){l=e}),void 0===l||c.call(t,l)))}},{"../internal/baseForIn":12,"../internal/isHostObject":22,"../internal/isObjectLike":26,"../support":41,"./isArguments":29}],35:[function(t,e){var n=t("../internal/isObjectLike"),o=Object.prototype.toString;e.exports=function(t){return"string"==typeof t||n(t)&&"[object String]"==o.call(t)}},{"../internal/isObjectLike":26}],36:[function(t,e){var n=t("../internal/isLength"),o=t("../internal/isObjectLike"),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1;var s=Object.prototype.toString;e.exports=function(t){return o(t)&&n(t.length)&&!!r[s.call(t)]}},{"../internal/isLength":25,"../internal/isObjectLike":26}],37:[function(t,e){var n=t("../internal/baseCopy"),o=t("../object/keysIn");e.exports=function(t){return n(t,o(t))}},{"../internal/baseCopy":10,"../object/keysIn":39}],38:[function(t,e){var n=t("../internal/getNative"),o=t("../internal/isArrayLike"),r=t("../lang/isObject"),s=t("../internal/shimKeys"),a=t("../support"),l=n(Object,"keys");e.exports=l?function(t){var e=null==t?void 0:t.constructor;return"function"==typeof e&&e.prototype===t||("function"==typeof t?a.enumPrototypes:o(t))?s(t):r(t)?l(t):[]}:s},{"../internal/getNative":20,"../internal/isArrayLike":21,"../internal/shimKeys":27,"../lang/isObject":33,"../support":41}],39:[function(t,e){var n=t("../internal/arrayEach"),o=t("../lang/isArguments"),r=t("../lang/isArray"),s=t("../lang/isFunction"),a=t("../internal/isIndex"),l=t("../internal/isLength"),c=t("../lang/isObject"),u=t("../lang/isString"),d=t("../support"),p="[object Error]",h="[object Object]",f="[object String]",v=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g=Error.prototype,m=Object.prototype,y=String.prototype,b=m.hasOwnProperty,_=m.toString,w={};w["[object Array]"]=w["[object Date]"]=w["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},w["[object Boolean]"]=w[f]={constructor:!0,toString:!0,valueOf:!0},w[p]=w["[object Function]"]=w["[object RegExp]"]={constructor:!0,toString:!0},w[h]={constructor:!0},n(v,function(t){for(var e in w)if(b.call(w,e)){var n=w[e];n[t]=b.call(n,t)}}),e.exports=function(t){if(null==t)return[];c(t)||(t=Object(t));var e=t.length;e=e&&l(e)&&(r(t)||o(t)||u(t))&&e||0;for(var n=t.constructor,T=-1,j=s(n)&&n.prototype||m,x=j===t,k=Array(e),C=e>0,S=d.enumErrorProps&&(t===g||t instanceof Error),E=d.enumPrototypes&&s(t);++T<e;)k[T]=T+"";for(var O in t)E&&"prototype"==O||S&&("message"==O||"name"==O)||C&&a(O,e)||"constructor"==O&&(x||!b.call(t,O))||k.push(O);if(d.nonEnumShadows&&t!==m){var P=t===y?f:t===g?p:_.call(t),M=w[P]||w[h];for(P==h&&(j=m),e=v.length;e--;){var I=M[O=v[e]];x&&I||(I?!b.call(t,O):t[O]===j[O])||k.push(O)}}return k}},{"../internal/arrayEach":9,"../internal/isIndex":23,"../internal/isLength":25,"../lang/isArguments":29,"../lang/isArray":30,"../lang/isFunction":31,"../lang/isObject":33,"../lang/isString":35,"../support":41}],40:[function(t,e){var n=t("../internal/baseMerge"),o=t("../internal/createAssigner")(n);e.exports=o},{"../internal/baseMerge":13,"../internal/createAssigner":17}],41:[function(t,e){var n=Array.prototype,o=Error.prototype,r=Object.prototype.propertyIsEnumerable,s=n.splice,a={};(function(t){var e=function(){this.x=t},n={0:t,length:t},l=[];for(var c in e.prototype={valueOf:t,y:t},new e)l.push(c);a.enumErrorProps=r.call(o,"message")||r.call(o,"name"),a.enumPrototypes=r.call(e,"prototype"),a.nonEnumShadows=!/valueOf/.test(l),a.ownLast="x"!=l[0],a.spliceObjects=(s.call(n,0,1),!n[0]),a.unindexedChars="x"+Object("x")[0]!="xx"})(1,0),e.exports=a},{}],42:[function(t,e){e.exports=function(t){return t}},{}],43:[function(t,e){"use strict";var n=t("object-keys");e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test");
13if("string"==typeof e)return!1;for(e in t[e]=42,t)return!1;if(0!==n(t).length||"function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(t,e);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},{"object-keys":50}],44:[function(t,e){"use strict";var n=t("object-keys"),o=t("function-bind"),r=t("./hasSymbols")(),s=Object,a=o.call(Function.call,Array.prototype.push),l=o.call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(t){if(!(null!=t))throw TypeError("target must be an object");var e,o,c,u,d,p,h,f=s(t);for(e=1;e<arguments.length;++e){if(o=s(arguments[e]),u=n(o),r&&Object.getOwnPropertySymbols)for(d=Object.getOwnPropertySymbols(o),c=0;c<d.length;++c)h=d[c],l(o,h)&&a(u,h);for(c=0;c<u.length;++c)p=o[h=u[c]],l(o,h)&&(f[h]=p)}return f}},{"./hasSymbols":43,"function-bind":49,"object-keys":50}],45:[function(t,e){"use strict";var n=t("define-properties"),o=t("./implementation");n(o,{implementation:o,getPolyfill:t("./polyfill"),shim:t("./shim")}),e.exports=o},{"./implementation":44,"./polyfill":52,"./shim":53,"define-properties":46}],46:[function(t,e){"use strict";var n=t("object-keys"),o=t("foreach"),r="function"==typeof Symbol&&"symbol"==typeof Symbol(),s=Object.prototype.toString,a=Object.defineProperty&&function(){var t={};try{for(var e in Object.defineProperty(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),l=function(t,e,n,o){(!(e in t)||"function"==typeof o&&"[object Function]"===s.call(o)&&o())&&(a?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},c=function(t,e){var s=arguments.length>2?arguments[2]:{},a=n(e);r&&(a=a.concat(Object.getOwnPropertySymbols(e))),o(a,function(n){l(t,n,e[n],s[n])})};c.supportsDescriptors=!!a,e.exports=c},{foreach:47,"object-keys":50}],47:[function(t,e){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=function(t,e,r){if("[object Function]"!==o.call(e))throw TypeError("iterator must be a function");var s=t.length;if(s===+s)for(var a=0;s>a;a++)e.call(r,t[a],a,t);else for(var l in t)n.call(t,l)&&e.call(r,t[l],l,t)}},{}],48:[function(t,e){var n=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==o.call(e))throw TypeError("Function.prototype.bind called on incompatible "+e);for(var r,s=n.call(arguments,1),a=Math.max(0,e.length-s.length),l=[],c=0;a>c;c++)l.push("$"+c);if(r=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof r){var o=e.apply(this,s.concat(n.call(arguments)));return Object(o)===o?o:this}return e.apply(t,s.concat(n.call(arguments)))}),e.prototype){var u=function(){};u.prototype=e.prototype,r.prototype=new u,u.prototype=null}return r}},{}],49:[function(t,e){var n=t("./implementation");e.exports=Function.prototype.bind||n},{"./implementation":48}],50:[function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Array.prototype.slice,s=t("./isArguments"),a=!({toString:null}).propertyIsEnumerable("toString"),l=(function(){}).propertyIsEnumerable("prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(t){var e=t.constructor;return e&&e.prototype===t},d={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!d["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{u(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),h=function(t){if("undefined"==typeof window||!p)return u(t);try{return u(t)}catch(t){return!1}},f=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),u=s(t),d=e&&"[object String]"===o.call(t),p=[];if(!e&&!r&&!u)throw TypeError("Object.keys called on a non-object");var f=l&&r;if(d&&t.length>
130&&!n.call(t,0))for(var v=0;v<t.length;++v)p.push(String(v));if(u&&t.length>0)for(var g=0;g<t.length;++g)p.push(String(g));else for(var m in t)f&&"prototype"===m||!n.call(t,m)||p.push(String(m));if(a)for(var y=h(t),b=0;b<c.length;++b)y&&"constructor"===c[b]||!n.call(t,c[b])||p.push(c[b]);return p};f.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return t(s(e)?r.call(e):e)}}}else Object.keys=f;return Object.keys||f},e.exports=f},{"./isArguments":51}],51:[function(t,e){"use strict";var n=Object.prototype.toString;e.exports=function(t){var e=n.call(t),o="[object Arguments]"===e;return o||(o="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),o}},{}],52:[function(t,e){"use strict";var n=t("./implementation"),o=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},o=0;o<e.length;++o)n[e[o]]=e[o];var r=Object.assign({},n),s="";for(var a in r)s+=a;return t!==s},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}};e.exports=function(){return Object.assign?o()?n:r()?n:Object.assign:n}},{"./implementation":44}],53:[function(t,e){"use strict";var n=t("define-properties"),o=t("./polyfill");e.exports=function(){var t=o();return n(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},{"./polyfill":52,"define-properties":46}],54:[function(t,e){e.exports=function(t,e){var n,o=null;try{n=JSON.parse(t,e)}catch(t){o=t}return[o,n]}},{}],55:[function(t,e){e.exports=function(t){for(var e="",n=0;n<arguments.length;n++)e+=t[n].replace(/\n\r?\s*/g,"")+(arguments[n+1]||"");return e}},{}],56:[function(t,e){"use strict";function n(t,e,n){var o=t;return l(e)?(n=e,"string"==typeof t&&(o={uri:t})):o=u(e,{uri:t}),o.callback=n,o}function o(t,e,o){return r(e=n(t,e,o))}function r(t){function e(t){clearTimeout(p),t instanceof Error||(t=Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,s)}function n(){if(!d){clearTimeout(p);var e,n=s,o=null;0!==(e=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status)?(n={body:function(){var t=void 0;if(l.response?t=l.response:"text"!==l.responseType&&l.responseType||(t=l.responseText||l.responseXML),y)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:e,method:f,headers:{},url:h,rawRequest:l},l.getAllResponseHeaders&&(n.headers=c(l.getAllResponseHeaders()))):o=Error("Internal XMLHttpRequest Error"),r(o,n,n.body)}}var r=t.callback;if(void 0===r)throw Error("callback argument missing");r=a(r);var s={body:void 0,headers:{},statusCode:0,method:f,url:h,rawRequest:l},l=t.xhr||null;l||(l=t.cors||t.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var u,d,p,h=l.url=t.uri||t.url,f=l.method=t.method||"GET",v=t.body||t.data||null,g=l.headers=t.headers||{},m=!!t.sync,y=!1;if("json"in t&&(y=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),v=JSON.stringify(t.json))),l.onreadystatechange=function(){4===l.readyState&&n()},l.onload=n,l.onerror=e,l.onprogress=function(){},l.ontimeout=e,l.open(f,h,!m,t.username,t.password),m||(l.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(p=setTimeout(function(){d=!0,l.abort("timeout");var t=Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",e(t)},t.timeout)),l.setRequestHeader)for(u in g)g.hasOwnProperty(u)&&l.setRequestHeader(u,g[u]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(l.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(l),l.send(v),l}var s=t("global/window"),a=t("once"),l=t("is-function"),c=t("parse-headers"),u=t("xtend");e.exports=o,o.XMLHttpRequest=s.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:s.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],function(t){o["delete"===t?"del":t]=function(e,o,s){return(o=n(e,o,s)).method=t.toUpperCase(),r(o)}})},{"global/window":2,"is-function":57,once:58,"parse-headers":61,xtend:62}],57:[function(t,e){e.exports=function(t){var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},{}],58:[function(t,e){function n(t){var e=!1;return function(){return e?void 0:(e=!0,t.apply(this,arguments))}}e.exports=n,n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0})})},{}],59:[function(t,e){var n=t("is-function");e.exports=function(t,e,s){if(!n(e))throw TypeError("iterator must be a function");arguments.length<3&&(s=this),"[object Array]"===o.call(t)?function(t,e,n){for(var o=0,s=t.length;s>o;o++)r.call(t,o)&&e.call(n,t[o],o,t)}(t,e,s):"string"==typeof t?function(t,e,n){for(var o=0,r=t.length;r>o;o++)e.call(n,t.charAt(o),o,t)}(t,e,s):function(t,e,n){for(var o in t)r.call(t,o)&&e.call(n,t[o],o,t)}(t,e,s)};var o=Object.prototype.toString,r=Object.prototype.hasOwnProperty},{"is-function":57}],60:[function(t,e,n){(n=e.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},n.right=function(t){return t.replace(/\s*$/,"")}},{}],61:[function(t,e){var n=t("trim"),o=t("for-each");e.exports=function(t){if(!t)return{};var e={};return o(n(t).split("\n"),function(t){var o,r=t.indexOf(":"),s=n(t.slice(0,r)).toLowerCase(),a=n(t.slice(r+1));void 0===e[s]?e[s]=a:(o=e[s],"[object Array]"===Object.prototype.toString.call(o))?e[s].push(a):e[s]=[e[s],a]}),e}},{"for-each":59,trim:60}],62:[function(t,e){e.exports=function(){for(var t={},e=0;e<arguments.length;e++){var o=arguments[e];for(var r in o)n.call(o,r)&&(t[r]=o[r])}return t};var n=Object.prototype.hasOwnProperty},{}],63:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./button.js")),s=o(t("./component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(){this.player_.play()},e}(r.default);a.prototype.controlText_="Play Video",s.default.registerComponent("BigPlayButton",a),n.default=a,e.exports=n.default},{"./button.js":64,"./component.js":67}],64:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./clickable-component.js")),a=r(t("./component")),l=(o(t("./utils/events.js")),t("./utils/fn.js")),c=r((o(l),t("./utils/log.js"))),u=(r(t("global/document")),t("object.assign")),d=r(u),p=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"button":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];e=d.default({className:this.buildCSSClass()},e),"button"!==t&&(c.default.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),e=d.default({tabIndex:0},e),n=d.default({role:"button"},n)),n=d.default({type:"button","aria-live":"polite"},n);var o=a.default.prototype.createEl.call(this,t,e,n);return this.createControlTextEl(o),o},e.prototype.addChild=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=this.constructor.name;return c.default.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),a.default.prototype.addChild.call(this,t,e)},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which||t.prototype.handleKeyPress.call(this,e)},e}(s.default);a.default.registerComponent("Button",p),n.default=p,e.exports=n.default},{"./clickable-component.js":65,"./component":67,"./utils/events.js":144,"./ut
13ils/fn.js":145,"./utils/log.js":148,"global/document":1,"object.assign":45}],65:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./component")),a=o(t("./utils/dom.js")),l=o(t("./utils/events.js")),c=o(t("./utils/fn.js")),u=r(t("./utils/log.js")),d=r(t("global/document")),p=r(t("object.assign")),h=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.emitTapEvents(),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];n=p.default({className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&u.default.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),o=p.default({role:"button","aria-live":"polite"},o);var r=t.prototype.createEl.call(this,e,n,o);return this.createControlTextEl(r),r},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=a.createEl("span",{className:"vjs-control-text"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_),this.controlTextEl_},e.prototype.controlText=function(t){return t?(this.controlText_=t,this.controlTextEl_.innerHTML=this.localize(this.controlText_),this):this.controlText_||"Need Text"},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.addChild=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.prototype.addChild.call(this,e,n)},e.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),this},e.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),this},e.prototype.handleClick=function(){},e.prototype.handleFocus=function(){l.on(d.default,"keydown",c.bind(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleClick(e)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(){l.off(d.default,"keydown",c.bind(this,this.handleKeyPress))},e}(s.default);s.default.registerComponent("ClickableComponent",h),n.default=h,e.exports=n.default},{"./component":67,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/log.js":148,"global/document":1,"object.assign":45}],66:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./button")),s=o(t("./component")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.controlText(o&&o.controlText||this.localize("Close"))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},e}(r.default);s.default.registerComponent("CloseButton",a),n.default=a,e.exports=n.default},{"./button":64,"./component":67}],67:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("global/window")),a=o(t("./utils/dom.js")),l=o(t("./utils/fn.js")),c=o(t("./utils/guid.js")),u=o(t("./utils/events.js")),d=r(t("./utils/log.js")),p=r(t("./utils/to-title-case.js")),h=r(t("object.assign")),f=r(t("./utils/merge-options.js")),v=function(){function t(e,n,o){if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this.player_=!e&&this.play?e=this:e,this.options_=f.default({},this.options_),n=this.options_=f.default(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";
13this.id_=r+"_component_"+c.newGUID()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(o),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),a.removeElData(this.el_),this.el_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return d.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t&&(this.options_=f.default(this.options_,t)),this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,n){return a.createEl(t,e,n)},t.prototype.localize=function(t){var e=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages();if(!e||!n)return t;var o=n[e];if(o&&o[t])return o[t];var r=n[e.split("-")[0]];return r&&r[t]?r[t]:t},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){return this.childNameIndex_[t]},t.prototype.addChild=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?this.children_.length:arguments[2],r=void 0,s=void 0;if("string"==typeof e){s=e,n||(n={}),!0===n&&(d.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`."),n={});var a=n.componentClass||p.default(s);n.name=s;var l=t.getComponent(a);if(!l)throw Error("Component "+a+" does not exist");if("function"!=typeof l)return null;r=new l(this.player_||this,n)}else r=e;if(this.children_.splice(o,0,r),"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(s=s||r.name&&r.name())&&(this.childNameIndex_[s]=r),"function"==typeof r.el&&r.el()){var c=this.contentEl().children[o]||null;this.contentEl().insertBefore(r.el(),c)}return r},t.prototype.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var o=t.el();o&&o.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e,n,o,r=this,s=this.options_.children;s&&(e=r.options_,n=void 0,o=t.getComponent("Tech"),(n=Array.isArray(s)?s:Object.keys(s)).concat(Object.keys(r.options_).filter(function(t){return!n.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var e=void 0,n=void 0;return"string"==typeof t?n=s[e=t]||r.options_[e]||{}:(e=t.name,n=t),{name:e,opts:n}}).filter(function(e){var n=t.getComponent(e.opts.componentClass||p.default(e.name));return n&&!o.isTech(n)}).forEach(function(t){var n=t.name,o=t.opts;if(void 0!==e[n]&&(o=e[n]),!1!==o){!0===o&&(o={}),o.playerOptions=r.options_.playerOptions;var s=r.addChild(n,o);s&&(r[n]=s)}}))},t.prototype.buildCSSClass=function(){return""},t.prototype.on=function(t,e,n){var o,r,s,a=this;return"string"==typeof t||Array.isArray(t)?u.on(this.el_,t,l.bind(this,e)):(o=l.bind(a,n),(r=function(){return a.off(t,e,o)}).guid=o.guid,a.on("dispose",r),(s=function(){return a.off("dispose",r)}).guid=o.guid,t.nodeName?(u.on(t,e,o),u.on(t,"dispose",s)):"function"==typeof t.on&&(t.on(e,o),t.on("dispose",s))),this},t.prototype.off=function(t,e,n){if(!t||"string"==typeof t||Array.isArray(t))u.off(this.el_,t,e);else{var o=l.bind(this,n);this.off("dispose",o),t.nodeName?(u.off(t,e,o),u.off(t,"dispose",o)):(t.off(e,o),t.off("dispose",o))}return this},t.prototype.one=function(t,e,n){var o,r,s=this,a=arguments;return"string"==typeof t||Array.isArray(t)?u.one(this.el_,t,l.bind(this,e)):(o=l.bind(s,n),(r=function n(){s.off(t,e,n),o.apply(null,a)}).guid=o.guid,s.on(t,e,r)),this},t.prototype.trigger=function(t,e){return u.trigger(this.el_,t,e),this},t.prototype.ready=function(t){var e=!(arguments.length<=1)&&void 0!==arguments[1]&&arguments[1];return t&&(this.isReady_?e?t.call(this):this.setTimeout(t,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t))),this},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return a.$(t,e||this.contentEl())},t.prototype.$$=function(t,e){return a.$$(t,e||this.contentEl())},t.prototype.hasClass=function(t){return a.hasElClass(this.el_,t)},t.prototype.addClass=function(t){return a.addElClass(this.el_,t),this},t.prototype.removeClass=function(t){return a.removeElClass(this.el_,t),this},t.prototype.toggleClass=function(t,e){return a.toggleElClass(this.el_,t,e),this},t.prototype.show=function(){return this.removeClass("vjs-hidden"),this},t.prototype.hide=function(){return this.addClass("vjs-hidden"),this},t.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){return this.width(t,!0).height(e)},t.prototype.dimension=function(t,e,n){if(void 0!==e)return(null===e||e!=e)&&(e=0),this.el_.style[t]=-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?e:"auto"===e?"":e+"px",n||this.trigger("resize"),this;if(!this.el_)return 0;var o=this.el_.style[t],r=o.indexOf("px");return -1!==r?parseInt(o.slice(0,r),10):parseInt(this.el_["offset"+p.default(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw Error("currentDimension only accepts width or height value");if("function"==typeof s.default.getComputedStyle){var n=s.default.getComputedStyle(this.el_);e=n.getPropertyValue(t)||n[t]}else if(this.el_.currentStyle){var o="offset"+p.default(t);e=this.el_[o]}return parseFloat(e)},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.emitTapEvents=function(){var t=0,e=null,n=void 0;this.on("touchstart",function(o){1===o.touches.length&&(e=h.default({},o.touches[0]),t=(new Date).getTime(),n=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)n=!1;else if(e){var o=t.touches[0].pageX-e.pageX,r=t.touches[0].pageY-e.pageY;Math.sqrt(o*o+r*r)>10&&(n=!1)}});var o=function(){n=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",function(o){e=null,!0===n&&200>(new Date).getTime()-t&&(o.preventDefault(),this.trigger("tap"))})},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=l.bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.prototype.setTimeout=function(t,e){t=l.bind(this,t);var n=s.default.setTimeout(t,e),o=function(){this.clearTimeout(n)};return o.guid="vjs-timeout-"+n,this.on("dispose",o),n},t.prototype.clearTimeout=function(t){s.default.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){t=l.bind(this,t);var n=s.default.setInterval(t,e),o=function(){this.clearInterval(n)};return o.guid="vjs-interval-"+n,this.on("dispose",o),n},t.prototype.clearInterval=function(t){s.default.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.registerComponent=function(e,n){return t.components_||(t.components_={}),t.components_[e]=n,n},t.getComponent=function(e){return t.components_&&t.components_[e]?t.components_[e]:s.default&&s.default.videojs&&s.default.videojs[e]?(d.default.warn("The "+e+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),s.default.videojs[e]):void 0},t.extend=function(e){e=e||{},d.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var n=e.init||e.init||this.prototype.init||this.prototype.init||function(){},o=function(){n.apply(this,arguments)};for(var r in o.prototype=Object.create(this.prototype),o.prototype.constructor=o,o.extend=t.extend,e)e.hasOwnProperty(r)&&(o.prototype[r]=e[r]);return o},t}();v.registerComponent("Component",v),n.default=v,e.exports=n.default}
13,{"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/guid.js":147,"./utils/log.js":148,"./utils/merge-options.js":149,"./utils/to-title-case.js":152,"global/window":2,"object.assign":45}],68:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../track-button.js")),s=o(t("../../component.js")),a=o((function(t){if(!t||!t.__esModule){var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}}(t("../../utils/fn.js")),t("./audio-track-menu-item.js"))),l=function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.tracks=n.audioTracks&&n.audioTracks(),t.call(this,n,o),this.el_.setAttribute("aria-label","Audio Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],e=this.player_.audioTracks&&this.player_.audioTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];t.push(new a.default(this.player_,{selectable:!0,track:o}))}return t},e}(r.default);s.default.registerComponent("AudioTrackButton",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/fn.js":145,"../track-button.js":98,"./audio-track-menu-item.js":69}],69:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../menu/menu-item.js")),s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var r,s=o.track,l=n.audioTracks();o.label=s.label||s.language||"Unknown",o.selected=s.enabled,t.call(this,n,o),this.track=s,l&&(r=a.bind(this,this.handleTracksChange),l.addEventListener("change",r),this.on("dispose",function(){l.removeEventListener("change",r)}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(e){var n=this.player_.audioTracks();if(t.prototype.handleClick.call(this,e),n)for(var o=0;o<n.length;o++){var r=n[o];r===this.track&&(r.enabled=!0)}},e.prototype.handleTracksChange=function(){this.selected(this.track.enabled)},e}(r.default);s.default.registerComponent("AudioTrackMenuItem",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145}],70:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../component.js")),s=(o(t("./play-toggle.js")),t("./time-controls/current-time-display.js")),a=(o(s),t("./time-controls/duration-display.js")),l=(o(a),t("./time-controls/time-divider.js")),c=(o(l),t("./time-controls/remaining-time-display.js")),u=(o(c),t("./live-display.js")),d=(o(u),t("./progress-control/progress-control.js")),p=(o(d),t("./fullscreen-toggle.js")),h=(o(p),t("./volume-control/volume-control.js")),f=(o(h),t("./volume-menu-button.js")),v=(o(f),t("./mute-toggle.js")),g=(o(v),t("./text-track-controls/chapters-button.js")),m=(o(g),t("./text-track-controls/descriptions-button.js")),y=(o(m),t("./text-track-controls/subtitles-button.js")),b=(o(y),t("./text-track-controls/captions-button.js")),_=(o(b),t("./audio-track-controls/audio-track-button.js")),w=(o(_),t("./playback-rate-menu/playback-rate-menu-button.js")),T=(o(w),t("./spacer-control
13s/custom-control-spacer.js")),j=(o(T),function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},e}(r.default));j.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},r.default.registerComponent("ControlBar",j),n.default=j,e.exports=n.default},{"../component.js":67,"./audio-track-controls/audio-track-button.js":68,"./fullscreen-toggle.js":71,"./live-display.js":72,"./mute-toggle.js":73,"./play-toggle.js":74,"./playback-rate-menu/playback-rate-menu-button.js":75,"./progress-control/progress-control.js":80,"./spacer-controls/custom-control-spacer.js":83,"./text-track-controls/captions-button.js":86,"./text-track-controls/chapters-button.js":87,"./text-track-controls/descriptions-button.js":89,"./text-track-controls/subtitles-button.js":91,"./time-controls/current-time-display.js":94,"./time-controls/duration-display.js":95,"./time-controls/remaining-time-display.js":96,"./time-controls/time-divider.js":97,"./volume-control/volume-control.js":100,"./volume-menu-button.js":102}],71:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../button.js")),s=o(t("../component.js")),a=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},e}(r.default);a.prototype.controlText_="Fullscreen",s.default.registerComponent("FullscreenToggle",a),n.default=a,e.exports=n.default},{"../button.js":64,"../component.js":67}],72:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("../component"))&&o.__esModule?o:{default:o},s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/dom.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateShowing(),this.on(this.player(),"durationchange",this.updateShowing)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},e}(r.default);r.default.registerComponent("LiveDisplay",a),n.default=a,e.exports=n.default},{"../component":67,"../utils/dom.js":143}],73:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../button")),s=o(t("../component")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/dom.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"volumechange",this.update),n.tech_&&!1===n.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(n,"loadstart",function(){this.update(),!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},e.prototype.update=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:.33>t?e=1:.67>t&&(e=2);var n=this.player_.muted()?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n);for(var o=0;4>o;o++)a.removeElClass(this.el_,"vjs-vol-"+o);a.addElClass(this.el_,"vjs-vol-"+e)},e}(r.default);l.prototype.controlText_="Mute",s.default.registerComponent("MuteToggle",l),n.default=l,e.exports=n.default},{"../button":64,"../component":67,"../utils/dom.js":143}],74:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../button.js")),s=o(t("../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"play",this.handlePlay),this.on(n,"pause",this.handlePause)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e}(r.default);a.prototype.controlText_="Play",s.default.registerComponent("PlayToggle",a),n.default=a,e.exports=n.default},{"../button.js":64,"../component.js":67}],75:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../menu/menu-button.js")),s=o(t("../../menu/menu.js")),a=o(t("./playback-rate-menu-item.js")),l=o(t("../../component.js")),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),u=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateVisibility(),this.updateLabel(),this.on(n,"loadstart",this.updateVisibility),this.on(n,"ratechange",this.updateLabel)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=c.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.labelEl_),e},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.createMenu=function(){var t=new s.default(this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;n>=0;n--)t.addChild(new a.default(this.player(),{rate:e[n]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(){for(var t=this.player().playbackRate(),e=this.playbackRates(),n=e[0],o=0;o<e.length;o++)if(e[o]>t){n=e[o];break}this.player().playbackRate(n)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(r.default);u.prototype.controlText_="Playback Rate",l.default.registerComponent("PlaybackRateMenuButton",u),n.default=u,e.exports=n.default},{"../../component.js":67,"../../menu/menu-button.js":109,"../../menu/menu.js":111,"../../utils/dom.js":143,"./playback-rate-menu-item.js":76}],76:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../menu/menu-item.js")),s=o(t("../../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var r=o.rate,s=parseFloat(r,10);o.label=r,o.selected=1===s,t.call(this,n,o),this.label=r,this.rate=s,this.on(n,"ratechange",this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},e}(r.default);a.prototype.contentElType="button",s.default.registerComponent("PlaybackRateMenuItem",a),n.default=a,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110}
13],77:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("../../component.js"))&&o.__esModule?o:{default:o},s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"progress",this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},e.prototype.update=function(){var t=this.player_.buffered(),e=this.player_.duration(),n=this.player_.bufferedEnd(),o=this.el_.children,r=function(t,e){var n=t/e||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=r(n,e);for(var a=0;a<t.length;a++){var l=t.start(a),c=t.end(a),u=o[a];u||(u=this.el_.appendChild(s.createEl())),u.style.left=r(l,n),u.style.width=r(c-l,n)}for(var a=o.length;a>t.length;a--)this.el_.removeChild(o[a-1])},e}(r.default);r.default.registerComponent("LoadProgressBar",a),n.default=a,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143}],78:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("global/window")),a=r(t("../../component.js")),l=o(t("../../utils/dom.js")),c=o(t("../../utils/fn.js")),u=r(t("../../utils/format-time.js")),d=r(t("lodash-compat/function/throttle")),p=function(t){function e(n,o){var r=this;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&(this.tooltip=l.createEl("div",{className:"vjs-time-tooltip"}),this.el().appendChild(this.tooltip),this.addClass("vjs-keep-tooltips-inside")),this.update(0,0),n.on("ready",function(){r.on(n.controlBar.progressControl.el(),"mousemove",d.default(c.bind(r,r.handleMouseMove),25))})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.handleMouseMove=function(t){var e=this.player_.duration(),n=this.calculateDistance(t)*e,o=t.pageX-l.findElPosition(this.el().parentNode).left;this.update(n,o)},e.prototype.update=function(t,e){var n=u.default(t,this.player_.duration());if(this.el().style.left=e+"px",this.el().setAttribute("data-current-time",n),this.keepTooltipsInside){var o=this.clampPosition_(e),r=parseFloat(s.default.getComputedStyle(this.tooltip).width);this.tooltip.innerHTML=n,this.tooltip.style.right="-"+(r/2-(e-o+1))+"px"}},e.prototype.calculateDistance=function(t){return l.getPointerPosition(this.el().parentNode,t).x},e.prototype.clampPosition_=function(t){if(!this.keepTooltipsInside)return t;var e=parseFloat(s.default.getComputedStyle(this.player().el()).width),n=parseFloat(s.default.getComputedStyle(this.tooltip).width)/2,o=t;return n>t?o=Math.ceil(n):t>e-n&&(o=Math.floor(e-n)),o},e}(a.default);a.default.registerComponent("MouseTimeDisplay",p),n.default=p,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146,"global/window":2,"lodash-compat/function/throttle":7}],79:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("../../component.js")),a=o(t("../../utils/fn.js")),l=r((o(t("../../utils/dom.js")),t("../../utils/format-time.js"))),c=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateDataAttr(),this.on(n,"timeupdate",this.updateDataAttr),n.ready(a.bind(this,this.updateDataAttr)),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&this.addClass("vjs-keep-tooltips-inside")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.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>"})},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",l.default(t,this.player_.duration()))},e}(s.default);s.default.registerComponent("PlayProgressBar",c),n.default=c,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146}],80:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../component.js")),s=(o(t("./seek-bar.js")),t("./mouse-time-display.js")),a=(o(s),function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e}(r.default));a.prototype.options_={children:["seekBar"]},r.default.registerComponent("ProgressControl",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./mouse-time-display.js":78,"./seek-bar.js":81}],81:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("global/window")),s=o(t("../../slider/slider.js")),a=o(t("../../component.js")),l=(o(t("./load-progress-bar.js")),t("./play-progress-bar.js")),c=(o(l),t("./tooltip-progress-bar.js")),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}((o(c),t("../../utils/fn.js"))),d=o(t("../../utils/format-time.js")),p=(o(t("object.assign")),function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateProgress),this.on(n,"ended",this.updateProgress),n.ready(u.bind(this,this.updateProgress)),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&(this.tooltipProgressBar=this.addChild("TooltipProgressBar"))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},e.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 t=parseFloat(r.default.getComputedStyle(this.player().el()).width),e=parseFloat(r.default.getComputedStyle(this.tooltipProgressBar.tooltip).width),n=this.tooltipProgressBar.el().style;n.maxWidth=Math.floor(t-e/2)+"px",n.minWidth=Math.ceil(e/2)+"px",n.right="-"+e/2+"px"}},e.prototype.updateAriaAttributes=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",d.default(e,this.player_.duration()))},e.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){t.prototype.handleMouseDown.call(this,e),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},e.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e}(s.default));p.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},p.prototype.playerEvent="timeupdate",a.default.registerComponent("SeekBar",p),n.default=p,e.exports=n.default},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":145,"../../utils/format-time.js":146,"./load-progress-bar.js":77,"./play-progress-bar.js":79,"./tooltip-progress-bar.js":82,"global/window":2,"object.assign":45}],82:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("../../component.js")),a=o(t("../../utils/fn.js")),l=r((o(t("../../utils/dom.js")),t("../../utils/format-time.js"))),c=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateDataAttr(),this.on(n,"timeupdate",this.updateDataAttr),n.ready(a.bind(this,this.updateDataAttr))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>
13\n        <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});return this.tooltip=e.querySelector(".vjs-time-tooltip"),e},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=l.default(t,this.player_.duration());this.el_.setAttribute("data-current-time",e),this.tooltip.innerHTML=e},e}(s.default);s.default.registerComponent("TooltipProgressBar",c),n.default=c,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146}],83:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./spacer.js")),s=o(t("../../component.js")),a=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML="&nbsp;",e},e}(r.default);s.default.registerComponent("CustomControlSpacer",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./spacer.js":84}],84:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("../../component.js"))&&o.__esModule?o:{default:o},s=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(r.default);r.default.registerComponent("Spacer",s),n.default=s,e.exports=n.default},{"../../component.js":67}],85:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./text-track-menu-item.js")),s=o(t("../../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.track={kind:o.kind,player:n,label:o.kind+" settings",selectable:!1,default:!1,mode:"disabled"},o.selectable=!1,t.call(this,n,o),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+o.kind+" settings dialog")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},e}(r.default);s.default.registerComponent("CaptionSettingsMenuItem",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./text-track-menu-item.js":93}],86:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./text-track-button.js")),s=o(t("../../component.js")),a=o(t("./caption-settings-menu-item.js")),l=function(t){function e(n,o,r){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,r),this.el_.setAttribute("aria-label","Captions Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.update=function(){var e=2;t.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(e=1),this.items&&this.items.length>e?this.show():this.hide()},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||e.push(new a.default(this.player_,{kind:this.kind_})),t.prototype.createItems.call(this,e)},e}(r.default);l.prototype.kind_="captions",l.prototype.controlText_="Captions",s.default.registerComponent("CaptionsButton",l),n.default=l,e.exports=n.default},{"../../component.js":67,"./caption-settings-menu-item.js":85,"./text-track-button.js":92}],87:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./text-track-button.js")),a=r(t("../../component.js")),l=r(t("./text-track-menu-item.js")),c=r(t("./chapters-track-menu-item.js")),u=r(t("../../menu/menu.js")),d=o(t("../../utils/dom.js")),p=r((o(t("../../utils/fn.js")),t("../../utils/to-title-case.js"))),h=(r(t("global/window")),function(t){function e(n,o,r){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,r),this.el_.setAttribute("aria-label","Chapters Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=[],e=this.player_.textTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];o.kind===this.kind_&&t.push(new l.default(this.player_,{track:o}))}return t},e.prototype.createMenu=function(){for(var t=this,e=this.player_.textTracks()||[],n=void 0,o=this.items=[],r=0,s=e.length;s>r;r++){var a=e[r];if(a.kind===this.kind_){n=a;break}}var l=this.menu;if(void 0===l){l=new u.default(this.player_);var h=d.createEl("li",{className:"vjs-menu-title",innerHTML:p.default(this.kind_),tabIndex:-1});l.children_.unshift(h),d.insertElFirst(h,l.contentEl())}if(n&&null==n.cues){n.mode="hidden";var f=this.player_.remoteTextTrackEls().getTrackElementByTrack_(n);
13f&&f.addEventListener("load",function(){return t.update()})}if(n&&n.cues&&n.cues.length>0){for(var v=n.cues,g=void 0,r=0,m=v.length;m>r;r++){g=v[r];var y=new c.default(this.player_,{track:n,cue:g});o.push(y),l.addChild(y)}this.addChild(l)}return this.items.length>0&&this.show(),l},e}(s.default));h.prototype.kind_="chapters",h.prototype.controlText_="Chapters",a.default.registerComponent("ChaptersButton",h),n.default=h,e.exports=n.default},{"../../component.js":67,"../../menu/menu.js":111,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/to-title-case.js":152,"./chapters-track-menu-item.js":88,"./text-track-button.js":92,"./text-track-menu-item.js":93,"global/window":2}],88:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../menu/menu-item.js")),s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var r=o.track,s=o.cue,l=n.currentTime();o.label=s.text,o.selected=s.startTime<=l&&l<s.endTime,t.call(this,n,o),this.track=r,this.cue=s,r.addEventListener("cuechange",a.bind(this,this.update))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(){var t=this.cue,e=this.player_.currentTime();this.selected(t.startTime<=e&&e<t.endTime)},e}(r.default);s.default.registerComponent("ChaptersTrackMenuItem",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145}],89:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./text-track-button.js")),s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=function(t){function e(n,o,r){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,r),this.el_.setAttribute("aria-label","Descriptions Menu");var s,l=n.textTracks();l&&(s=a.bind(this,this.handleTracksChange),l.addEventListener("change",s),this.on("dispose",function(){l.removeEventListener("change",s)}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleTracksChange=function(){for(var t=this.player().textTracks(),e=!1,n=0,o=t.length;o>n;n++){var r=t[n];if(r.kind!==this.kind_&&"showing"===r.mode){e=!0;break}}e?this.disable():this.enable()},e.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},e}(r.default);l.prototype.kind_="descriptions",l.prototype.controlText_="Descriptions",s.default.registerComponent("DescriptionsButton",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/fn.js":145,"./text-track-button.js":92}],90:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./text-track-menu-item.js")),s=o(t("../../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.track={kind:o.kind,player:n,label:o.kind+" off",default:!1,mode:"disabled"},o.selectable=!0,t.call(this,n,o),this.selected(!0)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleTracksChange=function(){for(var t=this.player().textTracks(),e=!0,n=0,o=t.length;o>n;n++){var r=t[n];if(r.kind===this.track.kind&&"showing"===r.mode){e=!1;break}}this.selected(e)},e}(r.default);s.default.registerComponent("OffTextTrackMenuItem",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./text-track-menu-item.js":93}],91:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./text-track-button.js")),s=o(t("../../component.js")),a=function(t){function e(n,o,r){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,r),this.el_.setAttribute("aria-label","Subtitles Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e}(r.default);a.prototype.kind_="subtitles",a.prototype.controlText_="Subtitles",s.default.registerComponent("SubtitlesButton",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./text-track-button.js":92}],92:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../track-button.js")),s=o(t("../../component.js")),a=o((function(t){if(!t||!t.__esMo
13dule){var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}}(t("../../utils/fn.js")),t("./text-track-menu-item.js"))),l=o(t("./off-text-track-menu-item.js")),c=function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.tracks=n.textTracks(),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createItems=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];t.push(new l.default(this.player_,{kind:this.kind_}));var e=this.player_.textTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];o.kind===this.kind_&&t.push(new a.default(this.player_,{selectable:!0,track:o}))}return t},e}(r.default);s.default.registerComponent("TextTrackButton",c),n.default=c,e.exports=n.default},{"../../component.js":67,"../../utils/fn.js":145,"../track-button.js":98,"./off-text-track-menu-item.js":90,"./text-track-menu-item.js":93}],93:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../menu/menu-item.js")),s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=o(t("global/window")),c=o(t("global/document")),u=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var r,s,u=o.track,d=n.textTracks();o.label=u.label||u.language||"Unknown",o.selected=u.default||"showing"===u.mode,t.call(this,n,o),this.track=u,d&&(r=a.bind(this,this.handleTracksChange),d.addEventListener("change",r),this.on("dispose",function(){d.removeEventListener("change",r)})),d&&void 0===d.onchange&&(s=void 0,this.on(["tap","click"],function(){if("object"!=typeof l.default.Event)try{s=new l.default.Event("change")}catch(t){}s||(s=c.default.createEvent("Event")).initEvent("change",!0,!0),d.dispatchEvent(s)}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(e){var n=this.track.kind,o=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),o)for(var r=0;r<o.length;r++){var s=o[r];s.kind===n&&(s.mode=s===this.track?"showing":"disabled")}},e.prototype.handleTracksChange=function(){this.selected("showing"===this.track.mode)},e}(r.default);s.default.registerComponent("TextTrackMenuItem",u),n.default=u,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145,"global/document":1,"global/window":2}],94:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=o(t("../../utils/format-time.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=this.localize("Current Time"),n=a.default(t,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> "+n)},e}(r.default);r.default.registerComponent("CurrentTimeDisplay",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],95:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=o(t("../../utils/format-time.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent),this.on(n,"loadedmetadata",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.duration();if(t&&this.duration_!==t){this.duration_=t;var e=this.localize("Duration Time"),n=a.default(t);this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> "+n}},e}(r.default);r.default.registerComponent("DurationDisplay",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],96:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=o(t("../../utils/format-time.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),e=a.default(this.player_.remainingTime());e!==this.formattedTime_&&(this.formattedTime_=e,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"</span> -"+e)}},e}(r.default);r.default.registerComponent("RemainingTimeDisplay",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],97:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("../../component.js"))&&o.__esModule?o:{default:o},s=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},e}(r.default);r.default.registerComponent("TimeDivider",s),n.default=s,e.exports=n.default},{"../../component.js":67}],98:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../menu/menu-button.js")),s=o(t("../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/fn.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var r=o.tracks;
13if(t.call(this,n,o),this.items.length<=1&&this.hide(),r){var s=a.bind(this,this.update);r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),this.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})}}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);s.default.registerComponent("TrackButton",l),n.default=l,e.exports=n.default},{"../component.js":67,"../menu/menu-button.js":109,"../utils/fn.js":145}],99:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../slider/slider.js")),s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=(o(t("./volume-level.js")),function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"volumechange",this.updateARIAAttributes),n.ready(a.bind(this,this.updateARIAAttributes))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},e.prototype.handleMouseMove=function(t){this.checkMuted(),this.player_.volume(this.calculateDistance(t))},e.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},e}(r.default));l.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},l.prototype.playerEvent="volumechange",s.default.registerComponent("VolumeBar",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":145,"./volume-level.js":101}],100:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../component.js")),s=(o(t("./volume-bar.js")),function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),n.tech_&&!1===n.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(n,"loadstart",function(){!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},e}(r.default));s.prototype.options_={children:["volumeBar"]},r.default.registerComponent("VolumeControl",s),n.default=s,e.exports=n.default},{"../../component.js":67,"./volume-bar.js":99}],101:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("../../component.js"))&&o.__esModule?o:{default:o},s=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(r.default);
13r.default.registerComponent("VolumeLevel",s),n.default=s,e.exports=n.default},{"../../component.js":67}],102:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/fn.js")),s=o(t("../component.js")),a=o(t("../popup/popup.js")),l=o(t("../popup/popup-button.js")),c=o(t("./mute-toggle.js")),u=o(t("./volume-control/volume-bar.js")),d=function(t){function e(n){function o(){n.tech_&&!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),void 0===r.inline&&(r.inline=!0),void 0===r.vertical&&(r.vertical=!r.inline),r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=!!r.vertical,t.call(this,n,r),this.on(n,"volumechange",this.volumeUpdate),this.on(n,"loadstart",this.volumeUpdate),o.call(this),this.on(n,"loadstart",o),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){var e="";return e=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+e},e.prototype.createPopup=function(){var t=new a.default(this.player_,{contentElType:"div"}),e=new u.default(this.player_,this.options_.volumeBar);return t.addChild(e),this.menuContent=t,this.volumeBar=e,this.attachVolumeBarEvents(),t},e.prototype.handleClick=function(){c.default.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},e.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],r.bind(this,this.handleMouseDown))},e.prototype.handleMouseDown=function(){this.on(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},e.prototype.handleMouseUp=function(){this.off(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove))},e}(l.default);d.prototype.volumeUpdate=c.default.prototype.update,d.prototype.controlText_="Mute",s.default.registerComponent("VolumeMenuButton",d),n.default=d,e.exports=n.default},{"../component.js":67,"../popup/popup-button.js":115,"../popup/popup.js":116,"../utils/fn.js":145,"./mute-toggle.js":73,"./volume-control/volume-bar.js":99}],103:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./component")),s=o(t("./modal-dialog")),a=o((function(t){if(!t||!t.__esModule){var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}}(t("./utils/dom")),t("./utils/merge-options"))),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"error",this.open)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(s.default);l.prototype.options_=a.default(s.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),r.default.registerComponent("ErrorDisplay",l),n.default=l,e.exports=n.default},{"./component":67,"./modal-dialog":112,"./utils/dom":143,"./utils/merge-options":149}],104:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./utils/events.js")),r=function(){};r.prototype.allowedEvents_={},r.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},o.on(this,t,e),this.addEventListener=n},r.prototype.addEventListener=r.prototype.on,r.prototype.off=function(t,e){o.off(this,t,e)},r.prototype.removeEventListener=r.prototype.off,r.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},o.one(this,t,e),this.addEventListener=n},r.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=o.fixEvent(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),o.trigger(this,t)},r.prototype.dispatchEvent=r.prototype.trigger,n.default=r,e.exports=n.default},{"./utils/events.js":144}],105:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("./utils/log"))&&o.__esModule?o:{default:o},s=function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)};n.default=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=function(){t.apply(this,arguments)},o={};for(var a in"object"==typeof e?("function"==typeof e.init&&(r.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),e.constructor=e.init),e.constructor!==Object.prototype.constructor&&(n=e.constructor),o=e):"function"==typeof e&&(n=e),s(n,t),o)o.hasOwnProperty(a)&&(n.prototype[a]=o[a]);return n},e.exports=n.default},{"./utils/log":148}],106:[function(t,e,n){"use strict";n.__esModule=!0;for(var o=t("global/document"),r=o&&o.__esModule?o:{default:o},s={},a=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["
13webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=a[0],c=void 0,u=0;u<a.length;u++)if(a[u][1]in r.default){c=a[u];break}if(c)for(var u=0;u<c.length;u++)s[l[u]]=c[u];n.default=s,e.exports=n.default},{"global/document":1}],107:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("./component"))&&o.__esModule?o:{default:o},s=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},e}(r.default);r.default.registerComponent("LoadingSpinner",s),n.default=s,e.exports=n.default},{"./component":67}],108:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("object.assign"))&&o.__esModule?o:{default:o},s=function t(e){"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:"object"==typeof e&&r.default(this,e),this.message||(this.message=t.defaultMessages[this.code]||"")};s.prototype.code=0,s.prototype.message="",s.prototype.status=null,s.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],s.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."};for(var a=0;a<s.errorTypes.length;a++)s[s.errorTypes[a]]=a,s.prototype[s.errorTypes[a]]=a;n.default=s,e.exports=n.default},{"object.assign":45}],109:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("../clickable-component.js")),a=r(t("../component.js")),l=r(t("./menu.js")),c=o(t("../utils/dom.js")),u=o(t("../utils/fn.js")),d=r(t("../utils/to-title-case.js")),p=function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.update(),this.enabled_=!0,this.el_.setAttribute("aria-haspopup","true"),this.el_.setAttribute("role","menuitem"),this.on("keydown",this.handleSubmenuKeyPress)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),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()},e.prototype.createMenu=function(){var t=new l.default(this.player_);if(this.options_.title){var e=c.createEl("li",{className:"vjs-menu-title",innerHTML:d.default(this.options_.title),tabIndex:-1});t.children_.unshift(e),c.insertElFirst(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return"vjs-menu-button "+(e+=!0===this.options_.inline?"-inline":"-popup")+" "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.one("mouseout",u.bind(this,function(){this.menu.unlockShowing(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&e.preventDefault()):38===e.which||40===e.which?this.buttonPressed_||(this.pressButton(),e.preventDefault()):t.prototype.handleKeyPress.call(this,e)},e.prototype.handleSubmenuKeyPress=function(t){(27===t.which||9===t.which)&&(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault())},e.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},e.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","fal
13se"),this.el_.focus())},e.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,t.prototype.disable.call(this)},e.prototype.enable=function(){return this.enabled_=!0,t.prototype.enable.call(this)},e}(s.default);a.default.registerComponent("MenuButton",p),n.default=p,e.exports=n.default},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/to-title-case.js":152,"./menu.js":111}],110:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../clickable-component.js")),s=o(t("../component.js")),a=o(t("object.assign")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.selectable=o.selectable,this.selected(o.selected),this.selectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitem")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(e,n,o){return t.prototype.createEl.call(this,"li",a.default({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},n),o)},e.prototype.handleClick=function(){this.selected(!0)},e.prototype.selected=function(t){this.selectable&&(t?(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(" ")))},e}(r.default);s.default.registerComponent("MenuItem",l),n.default=l,e.exports=n.default},{"../clickable-component.js":65,"../component.js":67,"object.assign":45}],111:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var r,s=(r=t("../component.js"))&&r.__esModule?r:{default:r},a=o(t("../utils/dom.js")),l=o(t("../utils/fn.js")),c=o(t("../utils/events.js")),u=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.focusedChild_=-1,this.on("keydown",this.handleKeyPress)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",l.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.setAttribute("role","presentation"),n.appendChild(this.contentEl_),c.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):(38===t.which||39===t.which)&&(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),e.length>0&&(0>t?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(s.default);s.default.registerComponent("Menu",u),n.default=u,e.exports=n.default},{"../component.js":67,"../utils/dom.js":143,"../utils/events.js":144,"../utils/fn.js":145}],112:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var s=r(t("./utils/dom")),a=r(t("./utils/fn")),l=(o(t("./utils/log")),t("./component")),c=o(l),u=(o(t("./close-button")),"vjs-modal-dialog"),d=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=s.createEl("div",{className:u+"-content"},{role:"document"}),this.descEl_=s.createEl("p",{className:u+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")}),s.textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.buildCSSClass=function(){return u+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},e.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!t.paused(),this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},e.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var o=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton"),this.contentEl_=o,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},e.prototype.fill=function(){return this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,o=e.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),s.insertContent(e,t),this.trigger("modalfill"),o?n.insertBefore(e,o):n.appendChild(e),this},e.prototype.empty=function(){return this.trigger("beforemodalempty"),s.emptyEl(this.contentEl()),this.trigger("modalempty"),this},e.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},e}(c.default);d.prototype.options_={temporary:!0}
13,c.default.registerComponent("ModalDialog",d),n.default=d,e.exports=n.default},{"./close-button":66,"./component":67,"./utils/dom":143,"./utils/fn":145,"./utils/log":148}],113:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./component.js")),a=r(t("global/document")),l=r(t("global/window")),c=o(t("./utils/events.js")),u=o(t("./utils/dom.js")),d=o(t("./utils/fn.js")),p=o(t("./utils/guid.js")),h=o(t("./utils/browser.js")),f=r(t("./utils/log.js")),v=r(t("./utils/to-title-case.js")),g=t("./utils/time-ranges.js"),m=t("./utils/buffer.js"),y=o(t("./utils/stylesheet.js")),b=r(t("./fullscreen-api.js")),_=r(t("./media-error.js")),w=r(t("safe-json-parse/tuple")),T=r(t("object.assign")),j=r(t("./utils/merge-options.js")),x=r(t("./tracks/text-track-list-converter.js")),k=r(t("./tracks/audio-track-list.js")),C=r(t("./tracks/video-track-list.js")),S=(r(t("./tech/loader.js")),t("./poster-image.js")),E=(r(S),t("./tracks/text-track-display.js")),O=(r(E),t("./loading-spinner.js")),P=(r(O),t("./big-play-button.js")),M=(r(P),t("./control-bar/control-bar.js")),I=(r(M),t("./error-display.js")),A=(r(I),t("./tracks/text-track-settings.js")),L=(r(A),t("./modal-dialog")),N=r(L),D=r(t("./tech/tech.js")),R=(r(t("./tech/html5.js")),function(t){function e(n,o,r){var s,a,l=this;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),n.id=n.id||"vjs_video_"+p.newGUID(),(o=T.default(e.getTagSettings(n),o)).initChildren=!1,o.createEl=!1,o.reportTouchActivity=!1,t.call(this,null,o,r),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=n,this.tagAttributes=n&&u.getElAttributes(n),this.language(this.options_.language),o.languages?(s={},Object.getOwnPropertyNames(o.languages).forEach(function(t){s[t.toLowerCase()]=o.languages[t]}),l.languages_=s):this.languages_=e.prototype.options_.languages,this.cache_={},this.poster_=o.poster||"",this.controls_=!!o.controls,n.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var c=j.default(this.options_);o.plugins&&Object.getOwnPropertyNames(a=o.plugins).forEach(function(t){"function"==typeof this[t]?this[t](a[t]):f.default.error("Unable to find plugin:",t)},l),this.options_.playerOptions=c,this.initChildren(),this.isAudio("audio"===n.nodeName.toLowerCase()),this.addClass(this.controls()?"vjs-controls-enabled":"vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label","audio player"):this.el_.setAttribute("aria-label","video player"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),h.IS_IOS||this.addClass("vjs-workinghover"),e.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),e.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(),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.el_=t.prototype.createEl.call(this,"div"),n=this.tag;n.removeAttribute("width"),n.removeAttribute("height");var o=u.getElAttributes(n);
13if(Object.getOwnPropertyNames(o).forEach(function(t){"class"===t?e.className=o[t]:e.setAttribute(t,o[t])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),!0!==l.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=y.createStyleElement("vjs-styles-dimensions");var r=u.$(".vjs-styles-defaults"),s=u.$("head");s.insertBefore(this.styleEl_,r?r.nextSibling:s.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var a=n.getElementsByTagName("a"),c=0;c<a.length;c++){var d=a.item(c);u.addElClass(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&n.parentNode.insertBefore(e,n),u.insertElFirst(n,e),this.children_.unshift(n),this.el_=e,e},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e)this[n]=void 0;else{var o=parseFloat(e);if(isNaN(o))return f.default.error('Improper value "'+e+'" supplied for for '+t),this;this[n]=o}return this.updateStyleEl_(),this},e.prototype.fluid=function(t){return void 0===t?!!this.fluid_:(this.fluid_=!!t,void(t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")))},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){if(!0===l.default.VIDEOJS_NO_DYNAMIC_STYLE){var t="number"==typeof this.width_?this.width_:this.options_.width,e="number"==typeof this.height_?this.height_:this.options_.height,n=this.tech_&&this.tech_.el();return void(n&&(t>=0&&(n.width=t),e>=0&&(n.height=e)))}var o=void 0,r=void 0,s=void 0,a=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),c=a[1]/a[0];o=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/c:this.videoWidth()||300,r=void 0!==this.height_?this.height_:o*c,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),y.setTextContent(this.styleEl_,"\n      ."+s+" {\n        width: "+o+"px;\n        height: "+r+"px;\n      }\n\n      ."+s+".vjs-fluid {\n        padding-top: "+100*c+"%;\n      }\n    ")},e.prototype.loadTech_=function(t,e){this.tech_&&this.unloadTech_(),"Html5"!==t&&this.tag&&(D.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=t,this.isReady_=!1;var n=T.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:e,playerId:this.id(),techId:this.id()+"_"+t+"_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_[t.toLowerCase()]);this.tag&&(n.tag=this.tag),e&&(this.currentType_=e.type,e.src===this.cache_.src&&this.cache_.currentTime>0&&(n.startTime=this.cache_.currentTime),this.cache_.src=e.src);var o=D.default.getTech(t);o||(o=s.default.getComponent(t)),this.tech_=new o(n),this.tech_.ready(d.bind(this,this.handleTechReady_),!0),x.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),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_,"progress",this.handleTechProgress_),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_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControl
13sListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===t&&this.tag||u.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=x.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},e.prototype.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.tech_;var e="\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 l.default.alert(e),Error(e)},e.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_)},e.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_)},e.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},e.prototype.hasStarted=function(t){return void 0!==t?(this.hasStarted_!==t&&(this.hasStarted_=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechProgress_=function(){this.trigger("progress")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){0===t.button&&this.controls()&&(this.paused()?this.play():this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t&&t.code)},e.prototype.handleTechSuspend_=function(){this.trigger("suspend")},e.prototype.handleTechAbort_=function(){this.trigger("abort")},e.prototype.handleTechEmptied_=function(){this.trigger("emptied")},e.prototype.handleTechStalled_=function(){this.trigger("stalled")},e.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},e.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},e.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},e.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},e.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},e.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[t](e)},!0);else try{this.tech_[t](e)}catch(t){throw f.default(t),t}},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[t]()}catch(e){throw void 0===this.tech_[t]?f.default("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e):"TypeError"===e.name?(f.default("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1):f.default(e),e}},e.prototype.play=function(){return this.techCall_("play"),this},e.prototype.pause=function(){return this.techCall_("pause"),this},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.scrubbing=function(t){return void 0!==t?(this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},e.prototype.currentTime=function(t){return void 0!==t?(this.techCall_("setCurrentTime",t),this):this.cache_.currentTime=this.techGet_("currentTime")||0},e.prototype.duration=function(t){return void 0===t?this.cache_.duration||0:(0>(t=parseFloat(t)||0)&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=g.createTimeRange(0,0)),t},e.prototype.bufferedPercent=function(){return m.bufferedPercent(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),this):isNaN(e=parseFloat(this.techGet_("volume")))?1:e},e.prototype.muted=function(t){return void 0!==t?(this.techCall_("setMuted",t),this):this.techGet_("muted")||!1},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){return void 0!==t?(this.isFullscreen_=!!t,this):!!this.isFullscreen_},e.prototype.requestFullscreen=function(){var t=b.default;return this.isFullscreen(!0),t.requestFullscreen?(c.on(a.default,t.fullscreenchange,d.bind(this,function e(){this.isFullscreen(a.default[t.fullscreenElement]),!1===this.isFullscreen()&&c.off(a.default,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.exitFullscreen=function(){var t=b.default;return this.isFullscreen(!1),t.requestFullscreen?a.default[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=a.default.documentElement.style.overflow,c.on(a.default,"keydown",d.bind(this,this.fullWindowOnEscKey)),a.default.documentElement.style.overflow="hidden",u.addElClass(a.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,c.off(a.default,"keydown",this.fullWindowOnEscKey),a.default.documentElement.style.overflow=this.docOrigOverflow,u.removeElClass(a.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,n=0,o=this.options_.techOrder;n<o.length;n++){var r=v.default(o[n]),a=D.default.getTech(r);if(a||(a=s.default.getComponent(r)),a){if(a.isSupported()&&(e=a.canPlayType(t)))return e}else f.default.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e=this.options_.techOrder.map(v.default).map(function(t){return[t,D.default.getTech(t)||s.default.getComponent(t)]}).filter(function(t){var e=t[0],n=t[1];return n?n.isSupported():(f.default.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(t,e,n){var o=void 0;return t.some(function(t){return e.some(function(e){return!!(o=n(t,e))||void 0})}),o},o=function(t,e){var n=t[0];return t[1].canPlaySource(e)?{source:e,tech:n}:void 0};return(this.options_.sourceOrder?n(t,e,function(t,e){return o(e,t)}):n(e,t,o))||!1},e.prototype.src=function(t){if(void 0===t)return this.techGet_("src");var e=D.default.getTech(this.techName_);return e||(e=s.default.getComponent(this.techName_)),Array.isArray(t)?this.sourceList_(t):"string"==typeof t?this.src({src:t}):t instanceof Object&&(t.type&&!e.canPlaySource(t)?this.sourceList_([t]):(this.cache_.src=t.src,this.currentType_=t.type||"",this.ready(function(){e.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),"auto"===this.options_.preload&&this.load(),this.options_.autoplay&&this.play()},!0))),this},e.prototype.sourceList_=function(t){var e=this.selectSource(t);e?e.tech===this.techName_?this.src(e.source):this.loadTech_(e.tech,e.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},e.prototype.load=function(){return this.techCall_("load"),this},e.prototype.reset=function(){return this.loadTech_(v.default(this.options_.techOrder[0]),null),this.techCall_("reset"),this},e.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},e.prototype.currentType=function(){return this.currentType_||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),this.options_.preload=t,this):this.techGet_("preload")},e.prototype.autoplay=function(t){return void 0!==t?(this.techCall_("setAutoplay",t),this.options_.autoplay=t,this):this.techGet_("autoplay",t)},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),this.options_.loop=t,this):this.techGet_("loop")},e.prototype.poster=function(t){return void 0===t?this.poster_:(t||(t=""),this.poster_=t,this.techCall_("setPoster",t),this.trigger("posterchange"),this)},e.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},e.prototype.controls=function(t){return void 0!==t?(t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
13sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},e.prototype.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),this.errorDisplay.close(),this):(this.error_=t instanceof _.default?t:new _.default(t),this.addClass("vjs-error"),f.default.error("(CODE:"+this.error_.code+" "+_.default.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},e.prototype.ended=function(){return this.techGet_("ended")},e.prototype.seeking=function(){return this.techGet_("seeking")},e.prototype.seekable=function(){return this.techGet_("seekable")},e.prototype.reportUserActivity=function(){this.userActivity_=!0},e.prototype.userActive=function(t){return void 0!==t?((t=!!t)!==this.userActive_&&(this.userActive_=t,t?(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(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,n=void 0,o=d.bind(this,this.reportUserActivity);this.on("mousedown",function(){o(),this.clearInterval(t),t=this.setInterval(o,250)}),this.on("mousemove",function(t){(t.screenX!==e||t.screenY!==n)&&(e=t.screenX,n=t.screenY,o())}),this.on("mouseup",function(){o(),this.clearInterval(t)}),this.on("keydown",o),this.on("keyup",o);var r=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(r);var t=this.options_.inactivityTimeout;t>0&&(r=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){return void 0!==t?(this.techCall_("setPlaybackRate",t),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},e.prototype.isAudio=function(t){return void 0!==t?(this.isAudio_=!!t,this):!!this.isAudio_},e.prototype.networkState=function(){return this.techGet_("networkState")},e.prototype.readyState=function(){return this.techGet_("readyState")},e.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new C.default,this.videoTracks_)},e.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new k.default,this.audioTracks_)},e.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},e.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},e.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},e.prototype.addTextTrack=function(t,e,n){return this.tech_&&this.tech_.addTextTrack(t,e,n)},e.prototype.addRemoteTextTrack=function(t){return this.tech_&&this.tech_.addRemoteTextTrack(t)},e.prototype.removeRemoteTextTrack=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.track,n=void 0===e?arguments[0]:e;this.tech_&&this.tech_.removeRemoteTextTrack(n)},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){return void 0===t?this.language_:(this.language_=(""+t).toLowerCase(),this)},e.prototype.languages=function(){return j.default(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=j.default(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var o=e[n];(o=j.default(o)).player=void 0,t.tracks[n]=o}return t},e.prototype.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var o=new N.default(n,e);return n.addChild(o),o.on("dispose",function(){n.removeChild(o)}),o.open()},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=u.getElAttributes(t),o=n["data-setup"];if(null!==o){var r=w.default(o||"{}"),s=r[0],a=r[1];s&&f.default.error(s),T.default(n,a)}if(T.default(e,n),t.hasChildNodes())for(var l=t.childNodes,c=0,d=l.length;d>c;
13c++){var p=l[c],h=p.nodeName.toLowerCase();"source"===h?e.sources.push(u.getElAttributes(p)):"track"===h&&e.tracks.push(u.getElAttributes(p))}return e},e}(s.default));R.players={};var F=l.default.navigator;R.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:a.default.getElementsByTagName("html")[0].getAttribute("lang")||F.languages&&F.languages[0]||F.userLanguage||F.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},R.prototype.handleLoadedMetaData_,R.prototype.handleLoadedData_,R.prototype.handleUserActive_,R.prototype.handleUserInactive_,R.prototype.handleTimeUpdate_,R.prototype.handleTechEnded_,R.prototype.handleVolumeChange_,R.prototype.handleError_,R.prototype.flexNotSupported_=function(){var t=a.default.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},s.default.registerComponent("Player",R),n.default=R,e.exports=n.default},{"./big-play-button.js":63,"./component.js":67,"./control-bar/control-bar.js":70,"./error-display.js":103,"./fullscreen-api.js":106,"./loading-spinner.js":107,"./media-error.js":108,"./modal-dialog":112,"./poster-image.js":117,"./tech/html5.js":122,"./tech/loader.js":123,"./tech/tech.js":124,"./tracks/audio-track-list.js":125,"./tracks/text-track-display.js":130,"./tracks/text-track-list-converter.js":131,"./tracks/text-track-settings.js":133,"./tracks/video-track-list.js":138,"./utils/browser.js":140,"./utils/buffer.js":141,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/guid.js":147,"./utils/log.js":148,"./utils/merge-options.js":149,"./utils/stylesheet.js":150,"./utils/time-ranges.js":151,"./utils/to-title-case.js":152,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":54}],114:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("./player.js"))&&o.__esModule?o:{default:o};n.default=function(t,e){r.default.prototype[t]=e},e.exports=n.default},{"./player.js":113}],115:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("../clickable-component.js")),a=r(t("../component.js")),l=(o((r(t("./popup.js")),t("../utils/dom.js"))),t("../utils/fn.js")),c=(r((o(l),t("../utils/to-title-case.js"))),function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.update()}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createPopup=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return"vjs-menu-button "+(e+=!0===this.options_.inline?"-inline":"-popup")+" "+t.prototype.buildCSSClass.call(this)},e}(s.default));a.default.registerComponent("PopupButton",c),n.default=c,e.exports=n.default},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/to-title-case.js":152,"./popup.js":116}],116:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var r,s=(r=t("../component.js"))&&r.__esModule?r:{default:r},a=o(t("../utils/dom.js")),l=o(t("../utils/fn.js")),c=o(t("../utils/events.js")),u=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",l.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(e,{className:"vjs-menu-content"});var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),c.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e}(s.default);s.default.registerComponent("Popup",u),n.default=u,e.exports=n.default},{"../component.js":67,"../utils/dom.js":143,"../utils/events.js":144,"../utils/fn.js":145}],117:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./clickable-component.js")),a=r(t("./component.js")),l=o(t("./utils/fn.js")),c=o(t("./utils/dom.js")),u=o(t("./utils/browser.js")),d=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.update(),n.on("posterchange",l.bind(this,this.update))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=c.createEl("div",{className:"vjs-poster",tabIndex:-1});
13return u.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=c.createEl("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e}(s.default);a.default.registerComponent("PosterImage",d),n.default=d,e.exports=n.default},{"./clickable-component.js":65,"./component.js":67,"./utils/browser.js":140,"./utils/dom.js":143,"./utils/fn.js":145}],118:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./utils/events.js")),s=o(t("global/document")),a=o(t("global/window")),l=!1,c=void 0,u=function(){var t=s.default.getElementsByTagName("video"),e=s.default.getElementsByTagName("audio"),n=[];if(t&&t.length>0)for(var o=0,r=t.length;r>o;o++)n.push(t[o]);if(e&&e.length>0)for(var o=0,r=e.length;r>o;o++)n.push(e[o]);if(n&&n.length>0)for(var o=0,r=n.length;r>o;o++){var a=n[o];if(!a||!a.getAttribute){d(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&c(a)}else l||d(1)},d=function(t,e){e&&(c=e),setTimeout(u,t)};"complete"===s.default.readyState?l=!0:r.one(a.default,"load",function(){l=!0}),n.autoSetup=u,n.autoSetupTimeout=d,n.hasLoaded=function(){return l}},{"./utils/events.js":144,"global/document":1,"global/window":2}],119:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/dom.js")),a=o(t("object.assign")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(n,"controlsvisible",this.update),this.on(n,this.playerEvent,this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return n.className=n.className+" vjs-slider",n=a.default({tabIndex:0},n),o=a.default({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},o),t.prototype.createEl.call(this,e,n,o)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;t.preventDefault(),s.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;s.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!=t||0>t||t===1/0)&&(t=0);var n=(100*t).toFixed(2)+"%";this.vertical()?e.el().style.height=n:e.el().style.width=n}}},e.prototype.calculateDistance=function(t){var e=s.getPointerPosition(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):(38===t.which||39===t.which)&&(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){return void 0===t?this.vertical_||!1:(this.vertical_=!!t,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal"),this)},e}(r.default);r.default.registerComponent("Slider",l),n.default=l,e.exports=n.default},{"../component.js":67,"../utils/dom.js":143,"object.assign":45}],120:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t){return t.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.streamFromParts=function(t,e){return t+"&"+e},t.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),o=void 0;return -1!==n?o=n+1:0===(n=o=t.lastIndexOf("/")+1)&&(n=o=t.length),e.connection=t.substring(0,n),e.stream=t.substring(o,t.length),e},t.isStreamingType=function(e){return e in t.streamingFormats},t.RTMP_RE=/^rtmp[set]?:\/\//i,t.isStreamingSrc=function(e){return t.RTMP_RE.test(e)},t.rtmpSourceHandler={},t.rtmpSourceHandler.canPlayType=function(e){return t.isStreamingType(e)?"maybe":""},t.rtmpSourceHandler.canHandleSource=function(e){return t.rtmpSourceHandler.canPlayType(e.type)||(t.isStreamingSrc(e.src)?"maybe":"")},t.rtmpSourceHandler.handleSource=function(e,n){var o=t.streamToParts(e.src);
13n.setRtmpConnection(o.connection),n.setRtmpStream(o.stream)},t.registerSourceHandler(t.rtmpSourceHandler),t},e.exports=n.default},{}],121:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function s(t){x[t]=function(){return this.el_.vjs_getProperty(t)}}n.__esModule=!0;for(var a=t("./tech"),l=r(a),c=t("../utils/dom.js"),u=o(c),d=t("../utils/url.js"),p=o(d),h=t("../utils/time-ranges.js"),f=t("./flash-rtmp"),v=r(f),g=t("../component"),m=r(g),y=t("global/window"),b=r(y),_=t("object.assign"),w=r(_),T=b.default.navigator,j=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),n.source&&this.ready(function(){this.setSource(n.source)},!0),n.startTime&&this.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),b.default.videojs=b.default.videojs||{},b.default.videojs.Flash=b.default.videojs.Flash||{},b.default.videojs.Flash.onReady=e.onReady,b.default.videojs.Flash.onEvent=e.onEvent,b.default.videojs.Flash.onError=e.onError,this.on("seeked",function(){this.lastSeekTarget_=void 0})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var t=this.options_;t.swf||(t.swf="//vjs.zencdn.net/swf/5.0.1/video-js.swf");var n=t.techId,o=w.default({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:t.autoplay,preload:t.preload,loop:t.loop,muted:t.muted},t.flashVars),r=w.default({wmode:"opaque",bgcolor:"#000000"},t.params),s=w.default({id:n,name:n,class:"vjs-tech"},t.attributes);return this.el_=e.embed(t.swf,o,r,s),this.el_.tech=this,this.el_},e.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},e.prototype.pause=function(){this.el_.vjs_pause()},e.prototype.src=function(t){return void 0===t?this.currentSrc():this.setSrc(t)},e.prototype.setSrc=function(t){if(t=p.getAbsoluteURL(t),this.el_.vjs_src(t),this.autoplay()){var e=this;this.setTimeout(function(){e.play()},0)}},e.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},e.prototype.setCurrentTime=function(e){var n=this.seekable();n.length&&(e=(e=e>n.start(0)?e:n.start(0))<n.end(n.length-1)?e:n.end(n.length-1),this.lastSeekTarget_=e,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",e),t.prototype.setCurrentTime.call(this))},e.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},e.prototype.load=function(){this.el_.vjs_load()},e.prototype.poster=function(){this.el_.vjs_getProperty("poster")},e.prototype.setPoster=function(){},e.prototype.seekable=function(){var t=this.duration();return 0===t?h.createTimeRange():h.createTimeRange(0,t)},e.prototype.buffered=function(){var t=this.el_.vjs_getProperty("buffered");return 0===t.length?h.createTimeRange():h.createTimeRange(t[0][0],t[0][1])},e.prototype.supportsFullScreen=function(){return!1},e.prototype.enterFullScreen=function(){return!1},e}(l.default),x=j.prototype,k="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),C="networkState,readyState,initialTime,duration,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","),S=0;S<k.length;S++)s(k[S]),function(t){x["set"+(t.charAt(0).toUpperCase()+t.slice(1))]=function(e){return this.el_.vjs_setProperty(t,e)}}(k[S]);for(var S=0;S<C.length;S++)s(C[S]);j.isSupported=function(){return j.version()[0]>=10},l.default.withSourceHandlers(j),j.nativeSourceHandler={},j.nativeSourceHandler.canPlayType=function(t){return t in j.formats?"maybe":""},j.nativeSourceHandler.canHandleSource=function(t){var e,n,o;return e=t.type?t.type.replace(/;.*/,"").toLowerCase():(n=t.src,(o=p.getFileExtension(n))?"video/"+o:""),j.nativeSourceHandler.canPlayType(e)},j.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},j.nativeSourceHandler.dispose=function(){},j.registerSourceHandler(j.nativeSourceHandler),j.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},j.onReady=function(t){var e=u.getEl(t),n=e&&e.tech;n&&n.el()&&j.checkReady(n)},j.checkReady=function(t){t.el()&&(t.el().vjs_getProperty?t.triggerReady():this.setTimeout(function(){j.checkReady(t)},50))},j.onEvent=function(t,e){u.getEl(t).tech.trigger(e)},j.onError=function(t,e){var n=u.getEl(t).tech;return"srcnotfound"===e?n.error(4):void n.error("FLASH: "+e)},j.version=function(){var t="0,0,0";try{t=new b.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{T.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(T.plugins["Shockwave Flash 2.0"]||T.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(t){}}return t.split(",")},j.embed=function(t,e,n,o){var r=j.getEmbedCode(t,e,n,o);return u.createEl("div",{innerHTML:r}).childNodes[0]},j.getEmbedCode=function(t,e,n,o){var r="",s="",a="";return e&&Object.getOwnPropertyNames(e).forEach(function(t){r+=t+"="+e[t]+"&amp;"}),Object.getOwnPropertyNames(n=w.default({movie:t,flashvars:r,allowScriptAccess:"always",allowNetworking:"all"}
13,n)).forEach(function(t){s+='<param name="'+t+'" value="'+n[t]+'" />'}),Object.getOwnPropertyNames(o=w.default({data:t,width:"100%",height:"100%"},o)).forEach(function(t){a+=t+'="'+o[t]+'" '}),'<object type="application/x-shockwave-flash" '+a+">"+s+"</object>"},v.default(j),m.default.registerComponent("Flash",j),l.default.registerTech("Flash",j),n.default=j,e.exports=n.default},{"../component":67,"../utils/dom.js":143,"../utils/time-ranges.js":151,"../utils/url.js":153,"./flash-rtmp":120,"./tech":124,"global/window":2,"object.assign":45}],122:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s,a=((s=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n            This may prevent text tracks from loading."]).raw=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n            This may prevent text tracks from loading."],s),l=r(t("./tech.js")),c=r(t("../component")),u=o(t("../utils/dom.js")),d=o(t("../utils/url.js")),p=o(t("../utils/fn.js")),h=r(t("../utils/log.js")),f=r(t("tsml")),v=o((r(t("../../../src/js/tracks/text-track.js")),t("../utils/browser.js"))),g=r(t("global/document")),m=r(t("global/window")),y=r(t("object.assign")),b=r(t("../utils/merge-options.js")),_=r(t("../utils/to-title-case.js")),w=function(t){function e(n,o){var r=this;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o);var s=n.source,l=!1;if(s&&(this.el_.currentSrc!==s.src||n.tag&&3===n.tag.initNetworkState_)?this.setSource(s):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var c=this.el_.childNodes,u=c.length,g=[];u--;){var m=c[u];"track"===m.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(m),this.remoteTextTracks().addTrack_(m.track),l||this.el_.hasAttribute("crossorigin")||!d.isCrossOrigin(m.src)||(l=!0)):g.push(m))}for(var y=0;y<g.length;y++)this.el_.removeChild(g[y])}["audio","video"].forEach(function(t){var e=_.default(t);if(r["featuresNative"+e+"Tracks"]){var n=r.el()[t+"Tracks"];n&&n.addEventListener&&(n.addEventListener("change",p.bind(r,r["handle"+e+"TrackChange_"])),n.addEventListener("addtrack",p.bind(r,r["handle"+e+"TrackAdd_"])),n.addEventListener("removetrack",p.bind(r,r["handle"+e+"TrackRemove_"])))}}),this.featuresNativeTextTracks&&(l&&h.default.warn(f.default(a)),this.handleTextTrackChange_=p.bind(this,this.handleTextTrackChange),this.handleTextTrackAdd_=p.bind(this,this.handleTextTrackAdd),this.handleTextTrackRemove_=p.bind(this,this.handleTextTrackRemove),this.proxyNativeTextTracks_()),(v.TOUCH_ENABLED&&
13!0===n.nativeControlsForTouch||v.IS_IPHONE||v.IS_NATIVE_ANDROID)&&this.setControls(!0),this.triggerReady()}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){var n=this;["audio","video","text"].forEach(function(t){var e=_.default(t),o=n.el_[t+"Tracks"];o&&o.removeEventListener&&(o.removeEventListener("change",n["handle"+e+"TrackChange_"]),o.removeEventListener("addtrack",n["handle"+e+"TrackAdd_"]),o.removeEventListener("removetrack",n["handle"+e+"TrackRemove_"]))}),e.disposeMediaElement(this.el_),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=this.options_.tag;if(!t||!1===this.movingMediaElementInDOM){if(t){var n=t.cloneNode(!0);t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=g.default.createElement("video");var o=this.options_.tag&&u.getElAttributes(this.options_.tag),r=b.default({},o);
13v.TOUCH_ENABLED&&!0===this.options_.nativeControlsForTouch||delete r.controls,u.setElAttributes(t,y.default(r,{id:this.options_.techId,class:"vjs-tech"}))}}for(var s=["autoplay","preload","loop","muted"],a=s.length-1;a>=0;a--){var l=s[a],c={};void 0!==this.options_[l]&&(c[l]=this.options_[l]),u.setElAttributes(t,c)}return t},e.prototype.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e,n,o,r=(e=!1,n=function(){e=!0},this.on("loadstart",n),o=function(){e||this.trigger("loadstart")},this.on("loadedmetadata",o),this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",o),e||this.trigger("loadstart")}),{v:void 0});if("object"==typeof r)return r.v}var s=["loadstart"];s.push("loadedmetadata"),t.readyState>=2&&s.push("loadeddata"),t.readyState>=3&&s.push("canplay"),t.readyState>=4&&s.push("canplaythrough"),this.ready(function(){s.forEach(function(t){this.trigger(t)},this)})}},e.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;if(t){for(var e=0;e<t.length;e++)this.textTracks().addTrack_(t[e]);t.addEventListener&&(t.addEventListener("change",this.handleTextTrackChange_),t.addEventListener("addtrack",this.handleTextTrackAdd_),t.addEventListener("removetrack",this.handleTextTrackRemove_))}},e.prototype.handleTextTrackChange=function(){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleTextTrackAdd=function(t){this.textTracks().addTrack_(t.track)},e.prototype.handleTextTrackRemove=function(t){this.textTracks().removeTrack_(t.track)},e.prototype.handleVideoTrackChange_=function(){var t=this.videoTracks();this.videoTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleVideoTrackAdd_=function(t){this.videoTracks().addTrack_(t.track)},e.prototype.handleVideoTrackRemove_=function(t){this.videoTracks().removeTrack_(t.track)},e.prototype.handleAudioTrackChange_=function(){var t=this.audioTracks();this.audioTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleAudioTrackAdd_=function(t){this.audioTracks().addTrack_(t.track)},e.prototype.handleAudioTrackRemove_=function(t){this.audioTracks().removeTrack_(t.track)},e.prototype.play=function(){this.el_.play()},e.prototype.pause=function(){this.el_.pause()},e.prototype.paused=function(){return this.el_.paused},e.prototype.currentTime=function(){return this.el_.currentTime},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){h.default(t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){return this.el_.duration||0},e.prototype.buffered=function(){return this.el_.buffered},e.prototype.volume=function(){return this.el_.volume},e.prototype.setVolume=function(t){this.el_.volume=t},e.prototype.muted=function(){return this.el_.muted},e.prototype.setMuted=function(t){this.el_.muted=t},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=m.default.navigator.userAgent;if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;"webkitDisplayingFullscreen"in t&&this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})}),this.trigger("fullscreenchange",{isFullscreen:!0})}),t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){return void 0===t?this.el_.src:void this.setSrc(t)},e.prototype.setSrc=function(t){this.el_.src=t},e.prototype.load=function(){this.el_.load()},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.poster=function(){return this.el_.poster},e.prototype.setPoster=function(t){this.el_.poster=t},e.prototype.preload=function(){return this.el_.preload},e.prototype.setPreload=function(t){this.el_.preload=t},e.prototype.autoplay=function(){return this.el_.autoplay},e.prototype.setAutoplay=function(t){this.el_.autoplay=t},e.prototype.controls=function(){return this.el_.controls},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.loop=function(){return this.el_.loop},e.prototype.setLoop=function(t){this.el_.loop=t},e.prototype.error=function(){return this.el_.error},e.prototype.seeking=function(){return this.el_.seeking},e.prototype.seekable=function(){return this.el_.seekable},e.prototype.ended=function(){return this.el_.ended},e.prototype.defaultMuted=function(){return this.el_.defaultMuted},e.prototype.playbackRate=function(){return this.el_.playbackRate},e.prototype.played=function(){return this.el_.played},e.prototype.setPlaybackRate=function(t){this.el_.playbackRate=t},e.prototype.networkState=function(){return this.el_.networkState},e.prototype.readyState=function(){return this.el_.readyState},e.prototype.videoWidth=function(){return this.el_.videoWidth},e.prototype.videoHeight=function(){return this.el_.videoHeight},e.prototype.textTracks=function(){return t.prototype.textTracks.call(this)},e.prototype.addTextTrack=function(e,n,o){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,o):t.prototype.addTextTrack.call(this,e,n,o)},e.prototype.addRemoteTextTrack=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(!this.featuresNativeTextTracks)return t.prototype.addRemoteTextTrack.call(this,e);var n=g.default.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),this.el().appendChild(n),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),n},e.prototype.removeRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.removeRemoteTextTrack.call(this,e);var n=void 0,o=void 0,r=this.remoteTextTrackEls().getTrackElementByTrack_(e);for(this.remoteTextTrackEls().removeTrackElement_(r),this.remoteTextTracks().removeTrack_(e),o=(n=this.$$("track")).length;o--;)(e===n[o]||e===n[o].track)&&this.el().removeChild(n[o])},e}(l.default);w.TEST_VID=g.default.createElement("video");var T=g.default.createElement("track");T.kind="captions",T.srclang="en",T.label="English",w.TEST_VID.appendChild(T),w.isSupported=function(){try{w.TEST_VID.volume=.5}catch(t){return!1}
13return!!w.TEST_VID.canPlayType},l.default.withSourceHandlers(w),w.nativeSourceHandler={},w.nativeSourceHandler.canPlayType=function(t){try{return w.TEST_VID.canPlayType(t)}catch(t){return""}},w.nativeSourceHandler.canHandleSource=function(t){var e;return t.type?w.nativeSourceHandler.canPlayType(t.type):t.src?(e=d.getFileExtension(t.src),w.nativeSourceHandler.canPlayType("video/"+e)):""},w.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},w.nativeSourceHandler.dispose=function(){},w.registerSourceHandler(w.nativeSourceHandler),w.canControlVolume=function(){var t=w.TEST_VID.volume;return w.TEST_VID.volume=t/2+.1,t!==w.TEST_VID.volume},w.canControlPlaybackRate=function(){if(v.IS_ANDROID&&v.IS_CHROME)return!1;var t=w.TEST_VID.playbackRate;return w.TEST_VID.playbackRate=t/2+.1,t!==w.TEST_VID.playbackRate},w.supportsNativeTextTracks=function(){var t;return(t=!!w.TEST_VID.textTracks)&&w.TEST_VID.textTracks.length>0&&(t="number"!=typeof w.TEST_VID.textTracks[0].mode),t&&v.IS_FIREFOX&&(t=!1),!t||"onremovetrack"in w.TEST_VID.textTracks||(t=!1),t},w.supportsNativeVideoTracks=function(){return!!w.TEST_VID.videoTracks},w.supportsNativeAudioTracks=function(){return!!w.TEST_VID.audioTracks},w.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],w.prototype.featuresVolumeControl=w.canControlVolume(),w.prototype.featuresPlaybackRate=w.canControlPlaybackRate(),w.prototype.movingMediaElementInDOM=!v.IS_IOS,w.prototype.featuresFullscreenResize=!0,w.prototype.featuresProgressEvents=!0,w.prototype.featuresNativeTextTracks=w.supportsNativeTextTracks(),w.prototype.featuresNativeVideoTracks=w.supportsNativeVideoTracks(),w.prototype.featuresNativeAudioTracks=w.supportsNativeAudioTracks();var j=void 0,x=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,k=/^video\/mp4/i;w.patchCanPlayType=function(){v.ANDROID_VERSION>=4&&(j||(j=w.TEST_VID.constructor.prototype.canPlayType),w.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&x.test(t)?"maybe":j.call(this,t)}),v.IS_OLD_ANDROID&&(j||(j=w.TEST_VID.constructor.prototype.canPlayType),w.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&k.test(t)?"maybe":j.call(this,t)})},w.unpatchCanPlayType=function(){var t=w.TEST_VID.constructor.prototype.canPlayType;return w.TEST_VID.constructor.prototype.canPlayType=j,j=null,t},w.patchCanPlayType(),w.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},w.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},c.default.registerComponent("Html5",w),l.default.registerTech("Html5",w),n.default=w,e.exports=n.default},{"../../../src/js/tracks/text-track.js":134,"../component":67,"../utils/browser.js":140,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options.js":149,"../utils/to-title-case.js":152,"../utils/url.js":153,"./tech.js":124,"global/document":1,"global/window":2,"object.assign":45,tsml:55}],123:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../component.js")),s=o(t("./tech.js")),a=(o(t("global/window")),t("../utils/to-title-case.js")),l=o(a),c=function(t){function e(n,o,a){if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),t.call(this,n,o,a),o.playerOptions.sources&&0!==o.playerOptions.sources.length)n.src(o.playerOptions.sources);else for(var c=0,u=o.playerOptions.techOrder;c<u.length;c++){var d=l.default(u[c]),p=s.default.getTech(d);if(d||(p=r.default.getComponent(d)),p&&p.isSupported()){n.loadTech_(d);break}}}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);r.default.registerComponent("MediaLoader",c),n.default=c,e.exports=n.default},{"../component.js":67,"../utils/to-title-case.js":152,"./tech.js":124,"global/window":2}],124:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../component")),s=o(t("../tracks/html-track-element")),a=o(t("../tracks/html-track-element-list")),l=o(t("../utils/merge-options.js")),c=o(t("../tracks/text-track")),u=o(t("../tracks/text-track-list")),d=(o(t("../tracks/video-track")),t("../tracks/video-track-list")),p=o(d),h=o(t("../tracks/audio-track-list")),f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}((o(t("../tracks/audio-track")),t("../utils/fn.js"))),v=o(t("../utils/log.js")),g=t("../utils/time-ranges.js"),m=t("../utils/buffer.js"),y=o(t("../media-error.js")),b=
13o(t("global/window")),_=o(t("global/document")),w=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),n.reportTouchActivity=!1,t.call(this,null,n,o),this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),this.textTracks_=n.textTracks,this.videoTracks_=n.videoTracks,this.audioTracks_=n.audioTracks,this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),(!1===n.nativeCaptions||!1===n.nativeTextTracks)&&(this.featuresNativeTextTracks=!1),this.featuresNativeTextTracks||this.on("ready",this.emulateTextTracks),this.initTextTrackListeners(),this.initTrackListeners(),this.emitTapEvents()}/*! Time Tracking -------------------------------------------------------------- */return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(){this.stopTrackingProgress(),this.progressInterval=this.setInterval(f.bind(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(){this.duration_=this.duration()},e.prototype.buffered=function(){return g.createTimeRange(0,0)},e.prototype.bufferedPercent=function(){return m.bufferedPercent(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach(function(t){for(var n=e[t+"Tracks"]()||[],o=n.length;o--;){var r=n[o];"text"===t&&e.removeRemoteTextTrack(r),n.removeTrack_(r)}})},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&&(this.error_=t instanceof y.default?t:new y.default(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?g.createTimeRange(0,0):g.createTimeRange()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTextTrackListeners=function(){var t=f.bind(this,function(){this.trigger("texttrackchange")}),e=this.textTracks();e&&(e.addEventListener("removetrack",t),e.addEventListener("addtrack",t),this.on("dispose",f.bind(this,function(){e.removeEventListener("removetrack",t),e.removeEventListener("addtrack",t)})))},e.prototype.initTrackListeners=function(){var t=this;["video","audio"].forEach(function(e){var n=function(){t.trigger(e+"trackchange")},o=t[e+"Tracks"]();
13o.addEventListener("removetrack",n),o.addEventListener("addtrack",n),t.on("dispose",function(){o.removeEventListener("removetrack",n),o.removeEventListener("addtrack",n)})})},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks();if(e){b.default.WebVTT||null==this.el().parentNode||((n=_.default.createElement("script")).src=t.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js",n.onload=function(){t.trigger("vttjsloaded")},n.onerror=function(){t.trigger("vttjserror")},t.on("dispose",function(){n.onload=null,n.onerror=null}),b.default.WebVTT=!0,t.el().parentNode.appendChild(n));var n,o=function(){return t.trigger("texttrackchange")},r=function(){o();for(var t=0;t<e.length;t++){var n=e[t];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};r(),e.addEventListener("change",r),this.on("dispose",function(){e.removeEventListener("change",r)})}},e.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new p.default,this.videoTracks_},e.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new h.default,this.audioTracks_},e.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new u.default,this.textTracks_},e.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new u.default,this.remoteTextTracks_},e.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new a.default,this.remoteTextTrackEls_},e.prototype.addTextTrack=function(t,e,n){if(!t)throw Error("TextTrack kind is required but was not provided");return T(this,t,e,n)},e.prototype.addRemoteTextTrack=function(t){var e=l.default(t,{tech:this}),n=new s.default(e);return this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),this.textTracks().addTrack_(n.track),n},e.prototype.removeRemoteTextTrack=function(t){this.textTracks().removeTrack_(t);var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack_(t)},e.prototype.setPoster=function(){},e.prototype.canPlayType=function(){return""},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw Error("Tech "+t+" must be a Tech");return e.techs_[t]=n,n},e.getTech=function(t){return e.techs_&&e.techs_[t]?e.techs_[t]:b.default&&b.default.videojs&&b.default.videojs[t]?(v.default.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),b.default.videojs[t]):void 0},e}(r.default);w.prototype.textTracks_,w.prototype.audioTracks_,w.prototype.videoTracks_;var T=function(t,e,n,o){var r=arguments.length<=4||void 0===arguments[4]?{}:arguments[4],s=t.textTracks();r.kind=e,n&&(r.label=n),o&&(r.language=o),r.tech=t;var a=new c.default(r);return s.addTrack_(a),a};w.prototype.featuresVolumeControl=!0,w.prototype.featuresFullscreenResize=!1,w.prototype.featuresPlaybackRate=!1,w.prototype.featuresProgressEvents=!1,w.prototype.featuresTimeupdateEvents=!1,w.prototype.featuresNativeTextTracks=!1,w.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var o=t.sourceHandlers;o||(o=t.sourceHandlers=[]),void 0===n&&(n=o.length),o.splice(n,0,e)},t.canPlayType=function(e){for(var n=t.sourceHandlers||[],o=void 0,r=0;r<n.length;r++)if(o=n[r].canPlayType(e))return o;return""},t.selectSourceHandler=function(e){for(var n=t.sourceHandlers||[],o=0;o<n.length;o++)if(n[o].canHandleSource(e))return n[o];return null},t.canPlaySource=function(e){var n=t.selectSourceHandler(e);return n?n.canHandleSource(e):""},["seekable","duration"].forEach(function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var n=t.selectSourceHandler(e);return n||(t.nativeSourceHandler?n=t.nativeSourceHandler:v.default.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),n!==t.nativeSourceHandler&&(this.currentSource_=e,this.off(this.el_,"loadstart",t.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",t.prototype.successiveLoadStartListener_),this.one(this.el_,"loadstart",t.prototype.firstLoadStartListener_)),this.sourceHandler_=n.handleSource(e,this,this.options_),this.on("dispose",this.disposeSourceHandler),this},t.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",t.prototype.successiveLoadStartListener_)},t.prototype.successiveLoadStartListener_=function(){this.currentSource_=null,this.disposeSourceHandler(),this.one(this.el_,"loadstart",t.prototype.successiveLoadStartListener_)},t.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&(this.off(this.el_,"loadstart",t.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",t.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose())}},r.default.registerComponent("Tech",w),r.default.registerComponent("MediaTechController",w),w.registerTech("Tech",w),n.default=w,e.exports=n.default},{"../component":67,"../media-error.js":108,"../tracks/audio-track":126,"../tracks/audio-track-list":125,"../tracks/html-track-element":128,"../tracks/html-track-element-list":127,"../tracks/text-track":134,"../tracks/text-track-list":132,"../tracks/video-track":139,"../tracks/video-track-list":138,"../utils/buffer.js":141,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options.js":149,"../utils/time-ranges.js":151,"global/document":1,"global/window":2}],125:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./track-list")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),a=o(t("global/document")),l=function(t,e){for(var n=0;n<t.length;n++)e.id!==t[n].id&&(t[n].enabled=!1)},c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);for(var o=void 0,c=n.length-1;c>=0;c--)if(n[c].enabled){l(n,n[c]);break}if(s.IS_IE8){for(var u in o=a.default.createElement("custom"),r.default.prototype)"constructor"!==u&&(
13o[u]=r.default.prototype[u]);for(var u in e.prototype)"constructor"!==u&&(o[u]=e.prototype[u])}return(o=t.call(this,n,o)).changing_=!1,o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){var n=this;e.enabled&&l(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,l(n,e),n.changing_=!1,n.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(r.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],126:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=t("./track-enums"),s=o(t("./track")),a=o(t("../utils/merge-options")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var o=a.default(n,{kind:r.AudioTrackKind[n.kind]||""}),s=t.call(this,o),c=!1;if(l.IS_IE8)for(var u in e.prototype)"constructor"!==u&&(s[u]=e.prototype[u]);return Object.defineProperty(s,"enabled",{get:function(){return c},set:function(t){"boolean"==typeof t&&t!==c&&(c=t,this.trigger("enabledchange"))}}),o.enabled&&(s.enabled=o.enabled),s.loaded_=!0,s}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(s.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"../utils/merge-options":149,"./track":137,"./track-enums":135}],127:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),s=(o=t("global/document"))&&o.__esModule?o:{default:o},a=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t);var n=this;if(r.IS_IE8)for(var o in n=s.default.createElement("custom"),t.prototype)"constructor"!==o&&(n[o]=t.prototype[o]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var a=0,l=e.length;l>a;a++)n.addTrackElement_(e[a]);return r.IS_IE8?n:void 0}return t.prototype.addTrackElement_=function(t){this.trackElements_.push(t)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,n=0,o=this.trackElements_.length;o>n;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;n>e;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}();n.default=a,e.exports=n.default},{"../utils/browser.js":140,"global/document":1}],128:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),s=o(t("global/document")),a=o(t("../event-target")),l=o(t("../tracks/text-track")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this);var o=void 0,a=this;if(r.IS_IE8)for(var c in a=s.default.createElement("custom"),e.prototype)"constructor"!==c&&(a[c]=e.prototype[c]);var u=new l.default(n);return a.kind=u.kind,a.src=u.src,a.srclang=u.language,a.label=u.label,a.default=u.default,Object.defineProperty(a,"readyState",{get:function(){return o}}),Object.defineProperty(a,"track",{get:function(){return u}}),o=0,u.addEventListener("loadeddata",function(){o=2,a.trigger({type:"load",target:a})}),r.IS_IE8?a:void 0}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a.default);c.prototype.allowedEvents_={load:"load"},c.NONE=0,c.LOADING=1,c.LOADED=2,c.ERROR=3,n.default=c,e.exports=n.default},{"../event-target":104,"../tracks/text-track":134,"../utils/browser.js":140,"global/document":1}],129:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),s=(o=t("global/document"))&&o.__esModule?o:{default:o},a=function(){function t(e){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t);var n=this;if(r.IS_IE8)for(var o in n=s.default.createElement("custom"),t.prototype)"constructor"!==o&&(n[o]=t.prototype[o]);return t.prototype.setCues_.call(n,e),Object.defineProperty(n,"length",{get:function(){return this.length_}}),r.IS_IE8?n:void 0}return t.prototype.setCues_=function(t){var e=this.length||0,n=0,o=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(o>e)for(n=e;o>n;n++)r.call(this,n)},t.prototype.getCueById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var r=this[n];if(r.id===t){e=r;break}}return e},t}();n.default=a,e.exports=n.default},{"../utils/browser.js":140,"global/document":1}],130:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function s(t,e,n){try{t.style[e]=n}catch(t){}}n.__esModule=!0;var a=o(t("../component")),l=(o(t("../menu/menu.js")),t("../menu/menu-item.js")),c=(o(l),t("../menu/menu-button.js")),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}((o(c),t("../utils/fn.js"))),d=(o(t("global/document")),t("global/window")),p=o(d),h="#222",f="#ccc",v={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',
13script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},g=function(t){function e(n,o,r){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,r),n.on("loadstart",u.bind(this,this.toggleDisplay)),n.on("texttrackchange",u.bind(this,this.updateDisplay)),n.ready(u.bind(this,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)return void this.hide();n.on("fullscreenchange",u.bind(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e<t.length;e++){var o=t[e];this.player_.addRemoteTextTrack(o)}var r={captions:1,subtitles:1},s=this.player_.textTracks(),a=void 0,l=void 0;if(s){for(var e=0;e<s.length;e++){var o=s[e];o.default&&("descriptions"!==o.kind||a?o.kind in r&&!l&&(l=o):a=o)}l?l.mode="showing":a&&(a.mode="showing")}}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"assertive","aria-atomic":"true"})},e.prototype.clearDisplay=function(){"function"==typeof p.default.WebVTT&&p.default.WebVTT.processCues(p.default,[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();if(this.clearDisplay(),t){for(var e=null,n=null,o=t.length;o--;){var r=t[o];"showing"===r.mode&&("descriptions"===r.kind?e=r:n=r)}n?this.updateForTrack(n):e&&this.updateForTrack(e)}},e.prototype.updateForTrack=function(t){if("function"==typeof p.default.WebVTT&&t.activeCues){for(var e=this.player_.textTrackSettings.getValues(),n=[],o=0;o<t.activeCues.length;o++)n.push(t.activeCues[o]);p.default.WebVTT.processCues(p.default,n,this.el_);for(var a=n.length;a--;){var l=n[a];if(l){var c=l.displayState;if(e.color&&(c.firstChild.style.color=e.color),e.textOpacity&&s(c.firstChild,"color",r(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(c.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&s(c.firstChild,"backgroundColor",r(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?s(c,"backgroundColor",r(e.windowColor,e.windowOpacity)):c.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?c.firstChild.style.textShadow="2px 2px 3px "+h+", 2px 2px 4px "+h+", 2px 2px 5px "+h:"raised"===e.edgeStyle?c.firstChild.style.textShadow="1px 1px "+h+", 2px 2px "+h+", 3px 3px "+h:"depressed"===e.edgeStyle?c.firstChild.style.textShadow="1px 1px "+f+", 0 1px "+f+", -1px -1px "+h+", 0 -1px "+h:"uniform"===e.edgeStyle&&(c.firstChild.style.textShadow="0 0 4px "+h+", 0 0 4px "+h+", 0 0 4px "+h+", 0 0 4px "+h)),e.fontPercent&&1!==e.fontPercent){var u=p.default.parseFloat(c.style.fontSize);c.style.fontSize=u*e.fontPercent+"px",c.style.height="auto",c.style.top="auto",c.style.bottom="2px"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?c.firstChild.style.fontVariant="small-caps":c.firstChild.style.fontFamily=v[e.fontFamily])}}}},e}(a.default);a.default.registerComponent("TextTrackDisplay",g),n.default=g,e.exports=n.default},{"../component":67,"../menu/menu-button.js":109,"../menu/menu-item.js":110,"../menu/menu.js":111,"../utils/fn.js":145,"global/document":1,"global/window":2}],131:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,n){return t[n]&&(e[n]=t[n]),e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})};n.default={textTracksToJson:function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=o(t.track);return t.src&&(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return -1===n.indexOf(t)}).map(o))},jsonToTextTracks:function(t,e){return t.forEach(function(t){var n=e.addRemoteTextTrack(t).track;
13!t.src&&t.cues&&t.cues.forEach(function(t){return n.addCue(t)})}),e.textTracks()},trackToJson_:o},e.exports=n.default},{}],132:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./track-list")),a=o(t("../utils/fn.js")),l=o(t("../utils/browser.js")),c=r(t("global/document")),u=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var o=void 0;if(l.IS_IE8){for(var r in o=c.default.createElement("custom"),s.default.prototype)"constructor"!==r&&(o[r]=s.default.prototype[r]);for(var r in e.prototype)"constructor"!==r&&(o[r]=e.prototype[r])}return t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){t.prototype.addTrack_.call(this,e),e.addEventListener("modechange",a.bind(this,function(){this.trigger("change")}))},e.prototype.removeTrack_=function(t){for(var e=void 0,n=0,o=this.length;o>n;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var r=this[n];if(r.id===t){e=r;break}}return e},e}(s.default);n.default=u,e.exports=n.default},{"../utils/browser.js":140,"../utils/fn.js":145,"./track-list":136,"global/document":1}],133:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function s(t){var e=void 0;return t.selectedOptions?e=t.selectedOptions[0]:t.options&&(e=t.options[t.options.selectedIndex]),e.value}function a(t,e){if(e){var n=void 0;for(n=0;n<t.options.length&&t.options[n].value!==e;n++);t.selectedIndex=n}}n.__esModule=!0;var l=r(t("../component")),c=o(t("../utils/events.js")),u=o(t("../utils/fn.js")),d=r(t("../utils/log.js")),p=r(t("safe-json-parse/tuple")),h=r(t("global/window")),f=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.hide(),void 0===o.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),c.on(this.$(".vjs-done-button"),"click",u.bind(this,function(){this.saveSettings(),this.hide()})),c.on(this.$(".vjs-default-button"),"click",u.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),c.on(this.$(".vjs-fg-color > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-bg-color > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".window-color > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-text-opacity > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-bg-opacity > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-window-opacity > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-font-percent select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-edge-style select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-font-family select"),"change",u.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:'<div class="vjs-tracksettings">\n      <div class="vjs-tracksettings-colors">\n        <div class="vjs-fg-color vjs-tracksetting">\n            <label class="vjs-label">Foreground</label>\n            <select>\n              <option value="">---</option>\n              <option value="#FFF">White</option>\n              <option value="#000">Black</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>
13\n            <span class="vjs-text-opacity vjs-opacity">\n              <select>\n                <option value="">---</option>\n                <option value="1">Opaque</option>\n                <option value="0.5">Semi-Opaque</option>\n              </select>\n            </span>\n        </div> <!-- vjs-fg-color -->\n        <div class="vjs-bg-color vjs-tracksetting">\n            <label class="vjs-label">Background</label>\n            <select>\n              <option value="">---</option>\n              <option value="#FFF">White</option>\n              <option value="#000">Black</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-bg-opacity vjs-opacity">\n                <select>\n                  <option value="">---</option>\n                  <option value="1">Opaque</option>\n                  <option value="0.5">Semi-Transparent</option>\n                  <option value="0">Transparent</option>\n                </select>\n            </span>\n        </div> <!-- vjs-bg-color -->\n        <div class="window-color vjs-tracksetting">\n            <label class="vjs-label">Window</label>\n            <select>\n              <option value="">---</option>\n              <option value="#FFF">White</option>\n              <option value="#000">Black</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-window-opacity vjs-opacity">\n                <select>\n                  <option value="">---</option>\n                  <option value="1">Opaque</option>\n                  <option value="0.5">Semi-Transparent</option>\n                  <option value="0">Transparent</option>\n                </select>\n            </span>\n        </div> <!-- vjs-window-color -->\n      </div> <!-- vjs-tracksettings -->\n      <div class="vjs-tracksettings-font">\n        <div class="vjs-font-percent vjs-tracksetting">\n          <label class="vjs-label">Font Size</label>\n          <select>\n            <option value="0.50">50%</option>\n            <option value="0.75">75%</option>\n            <option value="1.00" selected>100%</option>\n            <option value="1.25">125%</option>\n            <option value="1.50">150%</option>\n            <option value="1.75">175%</option>\n            <option value="2.00">200%</option>\n            <option value="3.00">300%</option>\n            <option value="4.00">400%</option>\n          </select>\n        </div> <!-- vjs-font-percent -->\n        <div class="vjs-edge-style vjs-tracksetting">\n          <label class="vjs-label">Text Edge Style</label>\n          <select>\n            <option value="none">None</option>\n            <option value="raised">Raised</option>\n            <option value="depressed">Depressed</option>\n            <option value="uniform">Uniform</option>\n            <option value="dropshadow">Dropshadow</option>\n          </select>\n        </div> <!-- vjs-edge-style -->\n        <div class="vjs-font-family vjs-tracksetting">\n          <label class="vjs-label">Font Family</label>\n          <select>\n            <option value="">Default</option>\n            <option value="monospaceSerif">Monospace Serif</option>\n            <option value="proportionalSerif">Proportional Serif</option>\n            <option value="monospaceSansSerif">Monospace Sans-Serif</option>\n            <option value="proportionalSansSerif">Proportional Sans-Serif</option>\n            <option value="casual">Casual</option>\n            <option value="script">Script</option>\n            <option value="small-caps">Small Caps</option>\n          </select>\n        </div> <!-- vjs-font-family -->\n      </div>\n    </div>\n    <div class="vjs-tracksettings-controls">\n      <button class="vjs-default-button">Defaults</button>\n      <button class="vjs-done-button">Done</button>\n    </div>'})},e.prototype.getValues=function(){var t=s(this.$(".vjs-edge-style select")),e=s(this.$(".vjs-font-family select")),n=s(this.$(".vjs-fg-color > select")),o=s(this.$(".vjs-text-opacity > select")),r=s(this.$(".vjs-bg-color > select")),a=s(this.$(".vjs-bg-opacity > select")),l=s(this.$(".window-color > select")),c={backgroundOpacity:a,textOpacity:o,windowOpacity:s(this.$(".vjs-window-opacity > select")),edgeStyle:t,fontFamily:e,color:n,backgroundColor:r,windowColor:l,fontPercent:h.default.parseFloat(s(this.$(".vjs-font-percent > select")))};for(var u in c)(""===c[u]||"none"===c[u]||"fontPercent"===u&&1===c[u])&&delete c[u];return c},e.prototype.setValues=function(t){a(this.$(".vjs-edge-style select"),t.edgeStyle),a(this.$(".vjs-font-family select"),t.fontFamily),a(this.$(".vjs-fg-color > select"),t.color),a(this.$(".vjs-text-opacity > select"),t.textOpacity),a(this.$(".vjs-bg-color > select"),t.backgroundColor),a(this.$(".vjs-bg-opacity > select"),t.backgroundOpacity),a(this.$(".window-color > select"),t.windowColor),a(this.$(".vjs-window-opacity > select"),t.windowOpacity);var e=t.fontPercent;e&&(e=e.toFixed(2)),a(this.$(".vjs-font-percent > select"),e)},e.prototype.restoreSettings=function(){var t=void 0,e=void 0;try{var n=p.default(h.default.localStorage.getItem("vjs-text-track-settings"));t=n[0],e=n[1],t&&d.default.error(t)}catch(t){d.default.warn(t)}e&&this.setValues(e)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.getOwnPropertyNames(t).length>0?h.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):h.default.localStorage.removeItem("vjs-text-track-settings")}catch(t){d.default.warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e}(l.default);l.default.registerComponent("TextTrackSettings",f),n.default=f,e.exports=n.default},{"../component":67,"../utils/events.js":144,"../utils/fn.js":145,"../utils/log.js":148,"global/window":2,"safe-json-parse/tuple":54}],134:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./text-track-cue-list")),a=o(t("../utils/fn.js")),l=t("./track-enums"),c=r(t("../utils/log.js")),u=(r(t("global/document")),t("global/window")),d=r(u),p=r(t("./track.js")),h=t("../utils/url.js"),f=r(t("xhr")),v=r(t("../utils/merge-options")),g=o(t("../utils/browser.js")),m=function(t,e){var n=new d.default.WebVTT.Parser(d.default,d.default.vttjs,d.default.WebVTT.StringDecoder()),o=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){o.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),o.length>0&&o.forEach(function(t){return c.default.error(t)}),n.flush()},y=function(t,e){var n={uri:t},o=h.isCrossOrigin(t);o&&(n.cors=o),f.default(n,a.bind(this,function(t,n,o){var r;return t?c.default.error(t,n):(e.loaded_=!0,void("function"!=typeof d.default.WebVTT?e.tech_&&(r=function(){return m(o,e)},e.tech_.on("vttjsloaded",r),e.tech_.on("vttjserror",function(){c.default.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",r)})):m(o,e)))}))},b=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}
13(this,e),!n.tech)throw Error("A tech was not provided.");var o=v.default(n,{kind:l.TextTrackKind[n.kind]||"subtitles",language:n.language||n.srclang||""}),r=l.TextTrackMode[o.mode]||"disabled",c=o.default;("metadata"===o.kind||"chapters"===o.kind)&&(r="hidden");var u=t.call(this,o);if(u.tech_=o.tech,g.IS_IE8)for(var d in e.prototype)"constructor"!==d&&(u[d]=e.prototype[d]);u.cues_=[],u.activeCues_=[];var p=new s.default(u.cues_),h=new s.default(u.activeCues_),f=!1,m=a.bind(u,function(){this.activeCues,f&&(this.trigger("cuechange"),f=!1)});return"disabled"!==r&&u.tech_.on("timeupdate",m),Object.defineProperty(u,"default",{get:function(){return c},set:function(){}}),Object.defineProperty(u,"mode",{get:function(){return r},set:function(t){l.TextTrackMode[t]&&("showing"===(r=t)&&this.tech_.on("timeupdate",m),this.trigger("modechange"))}}),Object.defineProperty(u,"cues",{get:function(){return this.loaded_?p:null},set:function(){}}),Object.defineProperty(u,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var t=this.tech_.currentTime(),e=[],n=0,o=this.cues.length;o>n;n++){var r=this.cues[n];r.startTime<=t&&r.endTime>=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(f=!1,e.length!==this.activeCues_.length)f=!0;else for(var n=0;n<e.length;n++)-1===this.activeCues_.indexOf(e[n])&&(f=!0);return this.activeCues_=e,h.setCues_(this.activeCues_),h},set:function(){}}),o.src?(u.src=o.src,y(o.src,u)):u.loaded_=!0,u}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addCue=function(t){var e=this.tech_.textTracks();if(e)for(var n=0;n<e.length;n++)e[n]!==this&&e[n].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){for(var e=!1,n=0,o=this.cues_.length;o>n;n++)this.cues_[n]===t&&(this.cues_.splice(n,1),e=!0);e&&this.cues.setCues_(this.cues_)},e}(p.default);b.prototype.allowedEvents_={cuechange:"cuechange"},n.default=b,e.exports=n.default},{"../utils/browser.js":140,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options":149,"../utils/url.js":153,"./text-track-cue-list":129,"./track-enums":135,"./track.js":137,"global/document":1,"global/window":2,xhr:56}],135:[function(t,e,n){"use strict";n.__esModule=!0,n.default={VideoTrackKind:{alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},AudioTrackKind:{alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},TextTrackKind:{subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},TextTrackMode:{disabled:"disabled",hidden:"hidden",showing:"showing"}},e.exports=n.default},{}],136:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("../event-target")),a=(o(t("../utils/fn.js")),t("../utils/browser.js")),l=o(a),c=r(t("global/document")),u=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],o=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),t.call(this),!o&&(o=this,l.IS_IE8))for(var r in o=c.default.createElement("custom"),e.prototype)"constructor"!==r&&(o[r]=e.prototype[r]);o.tracks_=[],Object.defineProperty(o,"length",{get:function(){return this.tracks_.length}});for(var s=0;s<n.length;s++)o.addTrack_(n[s]);return o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack_=function(t){for(var e=void 0,n=0,o=this.length;o>n;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var r=this[n];if(r.id===t){e=r;break}}return e},e}(s.default);for(var d in u.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},u.prototype.allowedEvents_)u.prototype["on"+d]=null;n.default=u,e.exports=n.default},{"../event-target":104,"../utils/browser.js":140,"../utils/fn.js":145,"global/document":1}],137:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var s=r(t("../utils/browser.js")),a=o(t("global/document")),l=r(t("../utils/guid.js")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this);var o=this;if(s.IS_IE8)for(var r in o=a.default.createElement("custom"),e.prototype)"constructor"!==r&&(o[r]=e.prototype[r]);var c={id:n.id||"vjs_track_"+l.newGUID(),kind:n.kind||"",label:n.label||"",language:n.language||""},u=function(t){Object.defineProperty(o,t,{get:function(){return c[t]},set:function(){}})};for(var d in c)u(d);return o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(o(t("../event-target")).default);n.default=c,e.exports=n.default},{"../event-target":104,"../utils/browser.js":140,"../utils/guid.js":147,"global/document":1}],138:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./track-list")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),a=o(t("global/document")),l=function(t,e){for(var n=0;n<t.length;n++)e.id!==t[n].id&&(t[n].selected=!1)},c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);for(var o=void 0,c=n.length-1;c>=0;c--)if(n[c].selected){l(n,n[c]);break}if(s.IS_IE8){for(var u in o=a.default.createElement("custom"),r.default.prototype)"constructor"!==u&&(
13o[u]=r.default.prototype[u]);for(var u in e.prototype)"constructor"!==u&&(o[u]=e.prototype[u])}return(o=t.call(this,n,o)).changing_=!1,Object.defineProperty(o,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return -1},set:function(){}}),o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){var n=this;e.selected&&l(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,l(n,e),n.changing_=!1,n.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(r.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],139:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=t("./track-enums"),s=o(t("./track")),a=o(t("../utils/merge-options")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var o=a.default(n,{kind:r.VideoTrackKind[n.kind]||""}),s=t.call(this,o),c=!1;if(l.IS_IE8)for(var u in e.prototype)"constructor"!==u&&(s[u]=e.prototype[u]);return Object.defineProperty(s,"selected",{get:function(){return c},set:function(t){"boolean"==typeof t&&t!==c&&(c=t,this.trigger("selectedchange"))}}),o.selected&&(s.selected=o.selected),s}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(s.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"../utils/merge-options":149,"./track":137,"./track-enums":135}],140:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r,s,a,l,c=o(t("global/document")),u=o(t("global/window")),d=u.default.navigator.userAgent,p=/AppleWebKit\/([\d.]+)/i.exec(d),h=p?parseFloat(p.pop()):null,f=/iPad/i.test(d);n.IS_IPAD=f;var v=/iPhone/i.test(d)&&!f;n.IS_IPHONE=v;var g=/iPod/i.test(d);n.IS_IPOD=g,n.IS_IOS=v||f||g;var m=(r=d.match(/OS (\d+)_/i))&&r[1]?r[1]:void 0;n.IOS_VERSION=m;var y=/Android/i.test(d);n.IS_ANDROID=y;var b=(l=d.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i))?(s=l[1]&&parseFloat(l[1]),a=l[2]&&parseFloat(l[2]),s&&a?parseFloat(l[1]+"."+l[2]):s||null):null;n.ANDROID_VERSION=b;var _=y&&/webkit/i.test(d)&&2.3>b;n.IS_OLD_ANDROID=_,n.IS_NATIVE_ANDROID=y&&5>b&&537>h;var w=/Firefox/i.test(d);n.IS_FIREFOX=w;var T=/Edge/i.test(d);n.IS_EDGE=T;var j=!T&&/Chrome/i.test(d);n.IS_CHROME=j;var x=/MSIE\s8\.0/.test(d);n.IS_IE8=x;var k=!!("ontouchstart"in u.default||u.default.DocumentTouch&&c.default instanceof u.default.DocumentTouch);n.TOUCH_ENABLED=k;var C="backgroundSize"in c.default.createElement("video").style;n.BACKGROUND_SIZE_SUPPORTED=C},{"global/document":1,"global/window":2}],141:[function(t,e,n){"use strict";n.__esModule=!0,n.bufferedPercent=function(t,e){var n,r,s=0;if(!e)return 0;t&&t.length||(t=o.createTimeRange(0,0));for(var a=0;a<t.length;a++)n=t.start(a),(r=t.end(a))>e&&(r=e),s+=r-n;return s/e};var o=t("./time-ranges.js")},{"./time-ranges.js":151}],142:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("./log.js"))&&o.__esModule?o:{default:o},s={get:function(t,e){return t[e]},set:function(t,e,n){return t[e]=n,!0}};n.default=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if("function"==typeof Proxy){var n,o=(n={},Object.keys(e).forEach(function(t){s.hasOwnProperty(t)&&(n[t]=function(){return r.default.warn(e[t]),s[t].apply(this,arguments)})}),{v:new Proxy(t,n)});if("object"==typeof o)return o.v}return t},e.exports=n.default},{"./log.js":148}],143:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){return"string"==typeof t&&/\S/.test(t)}function s(t){if(/\s/.test(t))throw Error("class has illegal whitespace characters")}function a(t){return function(e,n){return r(e)?(r(n)&&(n=b.default.querySelector(n)),(p(n)?n:b.default)[t](e)):b.default[t](null)}}function l(t,e){return t.classList?t.classList.contains(e):(s(e),RegExp("(^|\\s)"+e+"($|\\s)").test(t.className))}function c(t,e){return t.classList?t.classList.add(e):l(t,e)||(t.className=(t.className+" "+e).trim()),t}function u(t,e){return t.classList?t.classList.remove(e):(s(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function d(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=b.default.documentElement,o=b.default.body,r=n.clientLeft||o.clientLeft||0,s=_.default.pageXOffset||o.scrollLeft,a=e.left+s-r,l=n.clientTop||o.clientTop||0,c=_.default.pageYOffset||o.scrollTop;return{left:Math.round(a),top:Math.round(e.top+c-l)}}function p(t){return!!t&&"object"==typeof t&&1===t.nodeType}function h(t){return!!t&&"object"==typeof t&&3===t.nodeType}function f(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function v(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),p(t)||h(t)?t:"string"==typeof t&&/\S/.test(t)?b.default.createTextNode(t):void 0}).filter(function(t){return t})}function g(t,e){return v(e).forEach(function(e){return t.appendChild(e)}),t}n.__esModule=!0,n.getEl=function(t){return 0===t.indexOf("#")&&(t=t.
13slice(1)),b.default.getElementById(t)},n.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=b.default.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(T.default.warn(j.default(y,t,n)),o.setAttribute(t,n)):o[t]=n}),Object.getOwnPropertyNames(n).forEach(function(t){n[t],o.setAttribute(t,n[t])}),o},n.textContent=function(t,e){void 0===t.textContent?t.innerText=e:t.textContent=e},n.insertElFirst=function(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},n.getElData=function(t){var e=t[k];return e||(e=t[k]=w.newGUID()),x[e]||(x[e]={}),x[e]},n.hasElData=function(t){var e=t[k];return!!e&&!!Object.getOwnPropertyNames(x[e]).length},n.removeElData=function(t){var e=t[k];if(e){delete x[e];try{delete t[k]}catch(e){t.removeAttribute?t.removeAttribute(k):t[k]=null}}},n.hasElClass=l,n.addElClass=c,n.removeElClass=u,n.toggleElClass=function(t,e,n){var o=l(t,e);return"function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!o),n!==o?(n?c(t,e):u(t,e),t):void 0},n.setElAttributes=function(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var o=e[n];null==o||!1===o?t.removeAttribute(n):t.setAttribute(n,!0===o?"":o)})},n.getElAttributes=function(t){var e,n,o,r;if(e={},t&&t.attributes&&t.attributes.length>0){n=t.attributes;for(var s=n.length-1;s>=0;s--)o=n[s].name,r=n[s].value,("boolean"==typeof t[o]||-1!==",autoplay,controls,loop,muted,default,".indexOf(","+o+","))&&(r=null!==r),e[o]=r}return e},n.blockTextSelection=function(){b.default.body.focus(),b.default.onselectstart=function(){return!1}},n.unblockTextSelection=function(){b.default.onselectstart=function(){return!0}},n.findElPosition=d,n.getPointerPosition=function(t,e){var n={},o=d(t),r=t.offsetWidth,s=t.offsetHeight,a=o.top,l=o.left,c=e.pageY,u=e.pageX;return e.changedTouches&&(u=e.changedTouches[0].pageX,c=e.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-c+s)/s)),n.x=Math.max(0,Math.min(1,(u-l)/r)),n},n.isEl=p,n.isTextNode=h,n.emptyEl=f,n.normalizeContent=v,n.appendContent=g,n.insertContent=function(t,e){return g(f(t),e)};var m,y=((m=["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 ","."]).raw=["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 ","."],m),b=o(t("global/document")),_=o(t("global/window")),w=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./guid.js")),T=o(t("./log.js")),j=o(t("tsml")),x={},k="vdata"+(new Date).getTime(),C=a("querySelector");n.$=C;var S=a("querySelectorAll");n.$$=S},{"./guid.js":147,"./log.js":148,"global/document":1,"global/window":2,tsml:55}],144:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t,e,n){if(Array.isArray(e))return u(s,t,e,n);var o=d.getElData(t);o.handlers||(o.handlers={}),o.handlers[e]||(o.handlers[e]=[]),n.guid||(n.guid=p.newGUID()),o.handlers[e].push(n),o.dispatcher||(o.disabled=!1,o.dispatcher=function(e,n){if(!o.disabled){e=l(e);var r=o.handlers[e.type];if(r)for(var s=r.slice(0),a=0,c=s.length;c>a&&!e.isImmediatePropagationStopped();a++)s[a].call(t,e,n)}}),1===o.handlers[e].length&&(t.addEventListener?t.addEventListener(e,o.dispatcher,!1):t.attachEvent&&t.attachEvent("on"+e,o.dispatcher))}function a(t,e,n){if(d.hasElData(t)){var o=d.getElData(t);if(o.handlers){if(Array.isArray(e))return u(a,t,e,n);var r=function(e){o.handlers[e]=[],c(t,e)};if(e){var s=o.handlers[e];if(s){if(!n)return void r(e);if(n.guid)for(var l=0;l<s.length;l++)s[l].guid===n.guid&&s.splice(l--,1);c(t,e)}}else for(var p in o.handlers)r(p)}}}function l(t){function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped){var o=t||h.default.event;for(var r in t={},o)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&o.preventDefault||(t[r]=o[r]));if(t.target||(t.target=t.srcElement||f.default),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){o.preventDefault&&o.preventDefault(),t.returnValue=!1,o.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){o.stopPropagation&&o.stopPropagation(),t.cancelBubble=!0,o.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){o.stopImmediatePropagation&&o.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!=t.clientX){var s=f.default.documentElement,a=f.default.body;t.pageX=t.clientX+(s&&s.scrollLeft||a&&a.scrollLeft||0)-(s&&s.clientLeft||a&&a.clientLeft||0),t.pageY=t.clientY+(s&&s.scrollTop||a&&a.scrollTop||0)-(s&&s.clientTop||a&&a.clientTop||0)}t.which=t.charCode||t.keyCode,null!=t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}function c(t,e){var n=d.getElData(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&d.removeElData(t)}
13function u(t,e,n,o){n.forEach(function(n){t(e,n,o)})}n.__esModule=!0,n.on=s,n.off=a,n.trigger=function t(e,n,o){var r=d.hasElData(e)?d.getElData(e):{},s=e.parentNode||e.ownerDocument;if("string"==typeof n&&(n={type:n,target:e}),n=l(n),r.dispatcher&&r.dispatcher.call(e,n,o),s&&!n.isPropagationStopped()&&!0===n.bubbles)t.call(null,s,n,o);else if(!s&&!n.defaultPrevented){var a=d.getElData(n.target);n.target[n.type]&&(a.disabled=!0,"function"==typeof n.target[n.type]&&n.target[n.type](),a.disabled=!1)}return!n.defaultPrevented},n.one=function t(e,n,o){if(Array.isArray(n))return u(t,e,n,o);var r=function t(){a(e,n,t),o.apply(this,arguments)};r.guid=o.guid=o.guid||p.newGUID(),s(e,n,r)},n.fixEvent=l;var d=r(t("./dom.js")),p=r(t("./guid.js")),h=o(t("global/window")),f=o(t("global/document"))},{"./dom.js":143,"./guid.js":147,"global/document":1,"global/window":2}],145:[function(t,e,n){"use strict";n.__esModule=!0;var o=t("./guid.js");n.bind=function(t,e,n){e.guid||(e.guid=o.newGUID());var r=function(){return e.apply(t,arguments)};return r.guid=n?n+"_"+e.guid:e.guid,r}},{"./guid.js":147}],146:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t){var e,n,o,r=arguments.length<=1||void 0===arguments[1]?t:arguments[1];return e=Math.floor((t=0>t?0:t)%60),n=Math.floor(t/60%60),o=Math.floor(t/3600),(isNaN(t)||t===1/0)&&(o=n=e="-"),n=(((o=o>0||Math.floor(r/3600)>0?o+":":"")||Math.floor(r/60%60)>=10)&&10>n?"0"+n:n)+":",o+n+(e=10>e?"0"+e:e)},e.exports=n.default},{}],147:[function(t,e,n){"use strict";n.__esModule=!0,n.newGUID=function(){return o++};var o=1},{}],148:[function(t,e,n){"use strict";function o(t,e){var n=Array.prototype.slice.call(e),o=function(){},r=s.default.console||{log:o,warn:o,error:o};t?n.unshift(t.toUpperCase()+":"):t="log",a.history.push(n),n.unshift("VIDEOJS:"),r[t].apply?r[t].apply(r,n):r[t](n.join(" "))}n.__esModule=!0;var r,s=(r=t("global/window"))&&r.__esModule?r:{default:r},a=function(){o(null,arguments)};a.history=[],a.error=function(){o("error",arguments)},a.warn=function(){o("warn",arguments)},n.default=a,e.exports=n.default},{"global/window":2}],149:[function(t,e,n){"use strict";function o(t){return!!t&&"object"==typeof t&&"[object Object]"===t.toString()&&t.constructor===Object}function r(){var t=Array.prototype.slice.call(arguments);return t.unshift({}),t.push(l),a.default.apply(null,t),t[0]}n.__esModule=!0,n.default=r;var s,a=(s=t("lodash-compat/object/merge"))&&s.__esModule?s:{default:s},l=function(t,e){return o(e)?o(t)?void 0:r(e):e};e.exports=n.default},{"lodash-compat/object/merge":40}],150:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("global/document"))&&o.__esModule?o:{default:o};n.createStyleElement=function(t){var e=r.default.createElement("style");return e.className=t,e},n.setTextContent=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e}},{"global/document":1}],151:[function(t,e,n){"use strict";function o(t,e){return Array.isArray(t)?r(t):void 0===t||void 0===e?r():r([[t,e]])}function r(t){return void 0===t||0===t.length?{length:0,start:function(){throw Error("This TimeRanges object is empty")},end:function(){throw Error("This TimeRanges object is empty")}}:{length:t.length,start:s.bind(null,"start",0,t),end:s.bind(null,"end",1,t)}}function s(t,e,n,o){return void 0===o&&(l.default.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),o=0),function(t,e,n){if(0>e||e>n)throw Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is greater than or equal to the maximum bound ("+n+").")}(t,o,n.length-1),n[o][e]}n.__esModule=!0,n.createTimeRanges=o;var a,l=(a=t("./log.js"))&&a.__esModule?a:{default:a};n.createTimeRange=o},{"./log.js":148}],152:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},e.exports=n.default},{}],153:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("global/document")),s=o(t("global/window")),a=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=r.default.createElement("a");n.href=t;
13var o=""===n.host&&"file:"!==n.protocol,s=void 0;o&&((s=r.default.createElement("div")).innerHTML='<a href="'+t+'"></a>',n=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),r.default.body.appendChild(s));for(var a={},l=0;l<e.length;l++)a[e[l]]=n[e[l]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),o&&r.default.body.removeChild(s),a};n.parseUrl=a,n.getAbsoluteURL=function(t){if(!t.match(/^https?:\/\//)){var e=r.default.createElement("div");e.innerHTML='<a href="'+t+'">x</a>',t=e.firstChild.href}return t},n.getFileExtension=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},n.isCrossOrigin=function(t){var e=s.default.location,n=a(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host}},{"global/document":1,"global/window":2}],154:[function(e,n,o){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var a=s(e("global/window")),l=s(e("global/document")),c=r(e("./setup")),u=r(e("./utils/stylesheet.js")),d=s(e("./component")),p=s(e("./event-target")),h=r(e("./utils/events.js")),f=s(e("./player")),v=s(e("./plugins.js")),g=s(e("../../src/js/utils/merge-options.js")),m=r(e("./utils/fn.js")),y=s(e("./tracks/text-track.js")),b=s(e("./tracks/audio-track.js")),_=s(e("./tracks/video-track.js")),w=(s(e("object.assign")),e("./utils/time-ranges.js")),T=s(e("./utils/format-time.js")),j=s(e("./utils/log.js")),x=r(e("./utils/dom.js")),k=r(e("./utils/browser.js")),C=r(e("./utils/url.js")),S=s(e("./extend.js")),E=s(e("lodash-compat/object/merge")),O=s(e("./utils/create-deprecation-proxy.js")),P=s(e("xhr")),M=s(e("./tech/tech.js")),I=(s(e("./tech/html5.js")),e("./tech/flash.js"));s(I),"undefined"==typeof HTMLVideoElement&&(l.default.createElement("video"),l.default.createElement("audio"),l.default.createElement("track"));var A=function t(e,n,o){var r=void 0;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),t.getPlayers()[e])return n&&j.default.warn('Player "'+e+'" is already initialised. Options will not be applied.'),o&&t.getPlayers()[e].ready(o),t.getPlayers()[e];r=x.getEl(e)}else r=e;if(!r||!r.nodeName)throw TypeError("The element or ID supplied is not valid. (videojs)");return r.player||f.default.players[r.playerId]||new f.default(r,n,o)};if(!0!==a.default.VIDEOJS_NO_DYNAMIC_STYLE){var L=x.$(".vjs-styles-defaults");if(!L){L=u.createStyleElement("vjs-styles-defaults");var N=x.$("head");N.insertBefore(L,N.firstChild),u.setTextContent(L,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}c.autoSetupTimeout(1,A),A.VERSION="5.10.2",A.options=f.default.prototype.options_,A.getPlayers=function(){return f.default.players},A.players=O.default(f.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),A.getComponent=d.default.getComponent,A.registerComponent=function(t,e){M.default.isTech(e)&&j.default.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),d.default.registerComponent.call(d.default,t,e)},A.getTech=M.default.getTech,A.registerTech=M.default.registerTech,A.browser=k,A.TOUCH_ENABLED=k.TOUCH_ENABLED,A.extend=S.default,A.mergeOptions=g.default,A.bind=m.bind,A.plugin=v.default,A.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),E.default(A.options.languages,((n={})[t]=e,n))[t]},A.log=j.default,A.createTimeRange=A.createTimeRanges=w.createTimeRanges,A.formatTime=T.default,A.parseUrl=C.parseUrl,A.isCrossOrigin=C.isCrossOrigin,A.EventTarget=p.default,A.on=h.on,A.one=h.one,A.off=h.off,A.trigger=h.trigger,A.xhr=P.default,A.TextTrack=y.default,A.AudioTrack=b.default,A.VideoTrack=_.default,A.isEl=x.isEl,A.isTextNode=x.isTextNode,A.createEl=x.createEl,A.hasClass=x.hasElClass,A.addClass=x.addElClass,A.removeClass=x.removeElClass,A.toggleClass=x.toggleElClass,A.setAttributes=x.setElAttributes,A.getAttributes=x.getElAttributes,A.emptyEl=x.emptyEl,A.appendContent=x.appendContent,A.insertContent=x.insertContent,"function"==typeof t&&t.amd?t("videojs",[],function(){return A}):"object"==typeof o&&"object"==typeof n&&(n.exports=A),o.default=A,n.exports=o.default},{"../../src/js/utils/merge-options.js":149,"./component":67,"./event-target":104,"./extend.js":105,"./player":113,"./plugins.js":114,"./setup":118,"./tech/flash.js":121,"./tech/html5.js":122,"./tech/tech.js":124,"./tracks/audio-track.js":126,"./tracks/text-track.js":134,"./tracks/video-track.js":139,"./utils/browser.js":140,"./utils/create-deprecation-proxy.js":142,"./utils/dom.js":143,"./utils/events.js":144,"./ut
13ils/fn.js":145,"./utils/format-time.js":146,"./utils/log.js":148,"./utils/stylesheet.js":150,"./utils/time-ranges.js":151,"./utils/url.js":153,"global/document":1,"global/window":2,"lodash-compat/object/merge":40,"object.assign":45,xhr:56}]},{},[154])(154)}),function(t){var e=t.vttjs={},n=e.VTTCue,o=e.VTTRegion,r=t.VTTCue,s=t.VTTRegion;e.shim=function(){e.VTTCue=n,e.VTTRegion=o},e.restore=function(){e.VTTCue=r,e.VTTRegion=s}}(this),function(t,e){function n(t){return"string"==typeof t&&!!l[t.toLowerCase()]&&t.toLowerCase()}function o(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}function r(t,e,r){var l=this,c=/MSIE\s8\.0/.test(navigator.userAgent),u={};c?l=document.createElement("custom"):u.enumerable=!0,l.hasBeenReset=!1;var d="",p=!1,h=t,f=e,v=r,g=null,m="",y=!0,b="auto",_="start",w=50,T="middle",j=50,x="middle";return Object.defineProperty(l,"id",o({},u,{get:function(){return d},set:function(t){d=""+t}})),Object.defineProperty(l,"pauseOnExit",o({},u,{get:function(){return p},set:function(t){p=!!t}})),Object.defineProperty(l,"startTime",o({},u,{get:function(){return h},set:function(t){if("number"!=typeof t)throw TypeError("Start time must be set to a number.");h=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"endTime",o({},u,{get:function(){return f},set:function(t){if("number"!=typeof t)throw TypeError("End time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"text",o({},u,{get:function(){return v},set:function(t){v=""+t,this.hasBeenReset=!0}})),Object.defineProperty(l,"region",o({},u,{get:function(){return g},set:function(t){g=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"vertical",o({},u,{get:function(){return m},set:function(t){var e="string"==typeof t&&!!a[t.toLowerCase()]&&t.toLowerCase();if(!1===e)throw SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(l,"snapToLines",o({},u,{get:function(){return y},set:function(t){y=!!t,this.hasBeenReset=!0}})),Object.defineProperty(l,"line",o({},u,{get:function(){return b},set:function(t){if("number"!=typeof t&&t!==s)throw SyntaxError("An invalid number or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"lineAlign",o({},u,{get:function(){return _},set:function(t){var e=n(t);if(!e)throw SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(l,"position",o({},u,{get:function(){return w},set:function(t){if(0>t||t>100)throw Error("Position must be between 0 and 100.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"positionAlign",o({},u,{get:function(){return T},set:function(t){var e=n(t);if(!e)throw SyntaxError("An invalid or illegal string was specified.");T=e,this.hasBeenReset=!0}})),Object.defineProperty(l,"size",o({},u,{get:function(){return j},set:function(t){if(0>t||t>100)throw Error("Size must be between 0 and 100.");j=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"align",o({},u,{get:function(){return x},set:function(t){var e=n(t);if(!e)throw SyntaxError("An invalid or illegal string was specified.");x=e,this.hasBeenReset=!0}})),l.displayState=void 0,c?l:void 0}var s="auto",a={"":!0,lr:!0,rl:!0},l={start:!0,middle:!0,end:!0,left:!0,right:!0};r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.VTTCue=t.VTTCue||r,e.VTTCue=r}(this,this.vttjs||{}),function(t,e){function n(t){return"number"==typeof t&&t>=0&&100>=t}function o(){var t=100,e=3,o=0,s=100,a=0,l=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!n(t))throw Error("RegionAnchorX must be between 0 and 100.");s=t}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!n(t))throw Error("RegionAnchorY must be between 0 and 100.");o=t}},viewportAnchorY:{enumerable:!0,get:function(){return l},set:function(t){if(!n(t))throw Error("ViewportAnchorY must be between 0 and 100.");l=t}},viewportAnchorX:{enumerable:!0,get:function(){return a}
13,set:function(t){if(!n(t))throw Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return c},set:function(t){var e="string"==typeof t&&!!r[t.toLowerCase()]&&t.toLowerCase();if(!1===e)throw SyntaxError("An invalid or illegal string was specified.");c=e}}})}var r={"":!0,up:!0};t.VTTRegion=t.VTTRegion||o,e.VTTRegion=o}(this,this.vttjs||{}),function(t){function e(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function n(t){function e(t,e,n,o){return 3600*(0|t)+60*(0|e)+(0|n)+(0|o)/1e3}var n=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function o(){this.values=d(null)}function r(t,e,n,o){var r=o?t.split(o):[t];for(var s in r)if("string"==typeof r[s]){var a=r[s].split(n);2===a.length&&e(a[0],a[1])}}function s(t,e){function o(t){return p[t]}for(var r,s=t.document.createElement("div"),a=s,l=[];null!==(r=function(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]+>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}());)if("<"!==r[0])a.appendChild(t.document.createTextNode(function(t){for(;m=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(m[0],o);return t}(r)));else{if("/"===r[1]){l.length&&l[l.length-1]===r.substr(2).replace(">","")&&(l.pop(),a=a.parentNode);continue}var c,u,d,g=n(r.substr(1,r.length-2));if(g){d=t.document.createProcessingInstruction("timestamp",g),a.appendChild(d);continue}var m=r.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!m||!(d=function(e,n){var o=h[e];if(!o)return null;var r=t.document.createElement(o);r.localName=o;var s=f[e];return s&&n&&(r[s]=n.trim()),r}(m[1],m[3]))||(c=a,v[(u=d).localName]&&v[u.localName]!==c.localName))continue;m[2]&&(d.className=m[2].substr(1).replace("."," ")),l.push(m[1]),a.appendChild(d),a=d}return s}function a(){}function l(t,e,n){var o=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",l="rgba(0, 0, 0, 0.8)";o&&(r="rgb(255, 255, 255)",l="rgb(0, 0, 0)"),a.call(this),this.cue=e,this.cueDiv=s(t,e.text);var c={color:r,backgroundColor:l,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};o||(c.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",c.unicodeBidi="plaintext"),this.applyStyles(c,this.cueDiv),this.div=t.document.createElement("div"),c={textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},o||(c.direction=function(t){function e(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}var n,o=[],r="";if(!t||!t.childNodes)return"ltr";for(e(o,t);r=function t(n){if(!n||!n.length)return null;var o=n.pop(),r=o.textContent||o.innerText;if(r){var s=r.match(/^.*(\n|\r)/);return s?(n.length=0,s[0]):r}return"ruby"===o.tagName?t(n):o.childNodes?(e(n,o),t(n)):void 0}(o);)for(var s=0;s<r.length;s++){n=r.charCodeAt(s);for(var a=0;a<g.length;a++)if(g[a]===n)return"rtl"}return"ltr"}(this.cueDiv),c.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(c),this.div.appendChild(this.cueDiv);var u=0;switch(e.positionAlign){case"start":u=e.position;break;case"middle":u=e.position-e.size/2;break;case"end":u=e.position-e.size}this.applyStyles(""===e.vertical?{left:this.formatStyle(u,"%"),width:this.formatStyle(e.size,"%")}:{top:this.formatStyle(u,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function c(t){var e,n,o,r,s=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){n=t.div.offsetHeight,o=t.div.offsetWidth,r=t.div.offsetTop;var a=(a=t.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();t=t.div.getBoundingClientRect(),e=a?Math.max(a[0]&&a[0].height||0,t.height/a.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||n,this.bottom=t.bottom||r+(t.height||n),this.width=t.width||o,this.lineHeight=void 0!==e?e:t.lineHeight,s&&!this.lineHeight&&(this.lineHeight=13)}function u(){}var d=Object.create||function(){function t(){}return function(e){if(1!=arguments.length)throw Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();e.prototype=d(Error.prototype),e.prototype.constructor=e,e.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var o=0;o<n.length;++o)if(e===n[o]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>
13=0&&100>=e&&(this.set(t,e),!0)}};var p={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":"\xa0"},h={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},f={v:"title",lang:"lang"},v={rt:"ruby"},g
vendor: 10,850 bytes, line 13
13=[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];
vendor: 2,914 bytes, line 13
13a.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},a.prototype.formatStyle=function(t,e){return 0===t?0:t+e},l.prototype=d(a.prototype),l.prototype.constructor=l,c.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},c.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},c.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},c.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},c.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},c.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},c.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},c.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,o=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||o,height:t.height||e,bottom:t.bottom||o+(t.height||e),width:t.width||n}},u.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},u.convertCueToDOMTree=function(t,e){return t&&e?s(t,e):null},u.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var o=t.document.createElement("div");if(o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin="1.5%",n.appendChild(o),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var r=[],s=c.getSimpleBoxPosition(o),a={font:Math.round(5*s.height)/100+"px sans-serif"};!function(){for(var n,u,d=0;d<e.length;d++)u=e[d],n=new l(t,u,a),o.appendChild(n.div),function(t,e,n,o){var r=new c(e),s=e.cue,a=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return -1;for(var e=t.track,n=e.textTrackList,o=0,r=0;r<n.length&&n[r]!==e;r++)"showing"===n[r].mode&&o++;return -1*++o}(s),l=[];
13if(s.snapToLines){switch(s.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width"}var u,d=r.lineHeight,p=d*Math.round(a),h=n[u]+d,f=l[0];Math.abs(p)>h&&(p=(0>p?-1:1)*(Math.ceil(h/d)*d)),0>a&&(p+=""===s.vertical?n.height:n.width,l=l.reverse()),r.move(f,p)}else{var v=r.lineHeight/n.height*100;switch(s.lineAlign){case"middle":a-=v/2;break;case"end":a-=v}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}l=["+y","-x","+x","-y"],r=new c(e)}var g=function(t,e){for(var r,s=new c(t),a=1,l=0;l<e.length;l++){for(;t.overlapsOppositeAxis(n,e[l])||t.within(n)&&t.overlapsAny(o);)t.move(e[l]);if(t.within(n))return t;var u=t.intersectPercentage(n);a>u&&(r=new c(t),a=u),t=new c(s)}return r||s}(r,l);e.move(g.toCSSCompatValues(n))}(0,n,s,r),u.displayState=n.div,r.push(c.getSimpleBoxPosition(n))}()}else for(var u=0;u<e.length;u++)o.appendChild(e[u].displayState)},u.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},u.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof e))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){function s(){for(var t=l.buffer,e=0;e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var n=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,l.buffer=t.substr(e),n}var a,l=this;t&&(l.buffer+=l.decoder.decode(t,{stream:!0}));try{if("INITIAL"===l.state){if(!/\r\n|\n/.test(l.buffer))return this;var c,u=(a=s()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new e(e.Errors.BadSignature);l.state="HEADER"}for(var d=!1;l.buffer&&/\r\n|\n/.test(l.buffer);)switch(d?d=!1:a=s(),l.state){case"HEADER":/:/.test(a)?(c=a,r(c,function(t,e){"Region"===t&&function(t){var e=new o;if(r(t,function(t,n){switch(t){case"id":e.set(t,n);break;case"width":e.percent(t,n);break;case"lines":e.integer(t,n);break;case"regionanchor":case"viewportanchor":var r=n.split(",");if(2!==r.length)break;var s=new o;if(s.percent("x",r[0]),s.percent("y",r[1]),!s.has("x")||!s.has("y"))break;e.set(t+"X",s.get("x")),e.set(t+"Y",s.get("y"));break;case"scroll":e.alt(t,n,["up"])}},/=/,/\s/),e.has("id")){var n=new(l.vttjs.VTTRegion||l.window.VTTRegion);n.width=e.get("width",100),n.lines=e.get("lines",3),n.regionAnchorX=e.get("regionanchorX",0),n.regionAnchorY=e.get("regionanchorY",100),n.viewportAnchorX=e.get("viewportanchorX",0),n.viewportAnchorY=e.get("viewportanchorY",100),n.scroll=e.get("scroll",""),l.onregion&&l.onregion(n),l.regionList.push({id:e.get("id"),region:n})}}(e)},/:/)):a||(l.state="ID");continue;case"NOTE":a||(l.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){l.state="NOTE";break}if(!a)continue;if(l.cue=new(l.vttjs.VTTCue||l.window.VTTCue)(0,0,""),l.state="CUE",-1===a.indexOf("-->")){l.cue.id=a;continue}case"CUE":try{(function(t,s,a){function l(){var o=n(t);if(null===o)throw new e(e.Errors.BadTimeStamp,"Malformed timestamp: "+h);return t=t.replace(/^[^\sa-zA-Z-]+/,""),o}function c(){t=t.replace(/^\s+/,"")}var u,d,p,h=t;if(c(),s.startTime=l(),c(),"-->"!==t.substr(0,3))throw new e(e.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+h);t=t.substr(3),c(),s.endTime=l(),c(),u=t,d=s,p=new o,r(u,function(t,e){switch(t){case"region":for(var n=a.length-1;n>=0;n--)if(a[n].id===e){p.set(t,a[n].region);break}break;case"vertical":p.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),r=o[0];p.integer(t,r),p.percent(t,r)&&p.set("snapToLines",!1),p.alt(t,r,["auto"]),2===o.length&&p.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=e.split(","),p.percent(t,o[0]),2===o.length&&p.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":p.percent(t,e);break;case"align":p.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),d.region=p.get("region",null),d.vertical=p.get("vertical",""),d.line=p.get("line","auto"),d.lineAlign=p.get("lineAlign","start"),d.snapToLines=p.get("snapToLines",!0),d.size=p.get("size",100),d.align=p.get("align","middle"),d.position=p.get("position",{start:0,left:0,middle:50,end:100,right:100},d.align),d.positionAlign=p.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},d.align)})(a,l.cue,l.regionList)}catch(t){l.reportOrThrowError(t),l.cue=null,l.state="BADCUE";continue}l.state="CUETEXT";continue;case"CUETEXT":var p=-1!==a.indexOf("-->");if(!a||p&&(d=!0)){l.oncue&&l.oncue(l.cue),l.cue=null,l.state="ID";continue}l.cue.text&&(l.cue.text+="\n"),l.cue.text+=a;continue;case"BADCUE":a||(l.state="ID");continue}}catch(t){l.reportOrThrowError(t),"CUETEXT"===l.state&&l.cue&&l.oncue&&l.oncue(l.cue),l.cue=null,l.state="INITIAL"===l.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new e(e.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.WebVTT=u}(this,this.vttjs||{}),function(t,e){"function"==typeof define&&define.amd?define(["video.js"],function(n){return t.Youtube=e(n)}):"object"==typeof module&&module.exports?module.exports=t.Youtube=e(require("video.js")):t.Youtube=e(t.videojs)}(this,function(t){"use strict";var e,n,o,r,s,a=t.getComponent("Tech"),l=t.extend(a,{constructor:function(t,e){a.call(this,t,e),this.setPoster(t.poster),this.setSrc(this.options_.source,!0),setTimeout((function(){this.el_.parentNode.className+=" vjs-youtube",c&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),l.isApiReady?this.initYTPlayer():l.apiReadyQueue.push(this)}).bind(this))},dispose:function(){this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile","")},createEl:function(){var t=document.createElement("div");t.setAttribute("id",this.options_.techId),t.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute");var e=document.createElement("div");if(e.appendChild(t),!c&&!this.options_.ytControls){var n=document.createElement("div");n.setAttribute("class","vjs-iframe-blocker"),n.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),n.onclick=(function(){this.pause()}).bind(this),e.appendChild(n)}return e},initYTPlayer:function(){var t={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};void 0!==this.options_.autohide&&(t.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(t.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(t.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(t.disablekb=this.options_.disablekb),void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.color&&(t.color=this.options_.color),t.controls?void 0!==this.options_.fs&&
13(t.fs=this.options_.fs):t.fs=0,void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.hl?t.hl=this.options_.hl:void 0!==this.options_.language&&(t.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(t.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?t.list=this.options_.list:this.url&&void 0!==this.url.listId&&(t.list=this.url.listId),void 0!==this.options_.listType&&(t.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(t.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(t.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(t.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(t.rel=this.options_.rel),void 0!==this.options_.showinfo&&(t.showinfo=this.options_.showinfo),void 0!==this.options_.start&&(t.start=this.options_.start),void 0!==this.options_.theme&&(t.theme=this.options_.theme),this.activeVideoId=this.url?this.url.videoId:null,this.activeList=t.list,this.ytPlayer=new YT.Player(this.options_.techId,{videoId:this.activeVideoId,playerVars:t,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onPlayerError.bind(this)}})},onPlayerReady:function(){this.playerReady_=!0,this.triggerReady(),this.playOnReady&&this.play()},onPlayerPlaybackQualityChange:function(){},onPlayerStateChange:function(t){var e=t.data;if(e!==this.lastState){switch(e){case -1:this.trigger("loadedmetadata"),this.trigger("durationchange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}this.lastState=e}},onPlayerError:function(t){this.errorNumber=t.data,this.trigger("error"),this.ytPlayer.stopVideo(),this.ytPlayer.destroy(),this.ytPlayer=null},error:function(){switch(this.errorNumber){case 2:case 100:return{code:"Unable to find the video"};case 5:return{code:"Error while trying to play the video"};case 101:case 150:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"YouTube unknown error ("+this.errorNumber+")"}},src:function(t){return t&&(this.setSrc({src:t}),this.play()),this.source},poster:function(){return c?null:this.poster_},setPoster:function(t){this.poster_=t},setSrc:function(t){t&&t.src&&(this.source=t,this.url=l.parseUrl(t.src),!this.options_.poster&&this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.checkHighResPoster()),this.options_.autoplay&&!c&&(this.isReady_?this.play():this.playOnReady=!0))},play:function(){this.url&&this.url.videoId&&(this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.ytPlayer.loadVideoById(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))},pause:function(){this.ytPlayer&&this.ytPlayer.pauseVideo()},paused:function(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(t,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval((function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}).bind(this),250))},onSeeked:function(){clearInterval(this.checkSeekedInPauseInterval),this.trigger("seeked"),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause()},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(t){this.ytPlayer&&(this.ytPlayer.setPlaybackRate(t),this.trigger("ratechange"))},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source},ended:function(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(t){this.ytPlayer&&(this.ytPlayer.setVolume(100*t),this.setTimeout(function(){this.trigger("volumechange")},50))},muted:function(){return!!this.ytPlayer&&this.ytPlayer.isMuted()},setMuted:function(t){this.ytPlayer&&(this.muted(!0),t?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50))},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return{length:0,start:function(){throw Error("This TimeRanges object is empty")},end:function(){throw Error("This TimeRanges object is empty")}};var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return{length:1,start:function(){return 0},end:function(){return t}}},supportsFullScreen:function(){return!0},checkHighResPoster:function(){var t="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var e=new Image;e.onload=(function(){if("naturalHeight"in e){if(e.naturalHeight<=90||e.naturalWi
13dth<=120){"function"==typeof this.onerror&&this.onerror();return}}else if(e.height<=90||e.width<=120){this.onerror();return}this.poster_=t,this.trigger("posterchange")}).bind(this),e.onerror=function(){},e.src=t}catch(t){}}});l.isSupported=function(){return!0},l.canPlaySource=function(t){return"video/youtube"===t.type};var c=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);l.parseUrl=function(t){var e={videoId:null},n=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return n&&11===n[2].length&&(e.videoId=n[2]),(n=t.match(/[?&]list=([^#\&\?]+)/))&&n[1]&&(e.listId=n[1]),e},l.apiReadyQueue=[],window.onYouTubeIframeAPIReady=function(){l.isApiReady=!0;for(var t=0;t<l.apiReadyQueue.length;++t)l.apiReadyQueue[t].initYTPlayer();"function"==typeof onYouTubeIframeAPIReadyFullscreenBackground&&onYouTubeIframeAPIReadyFullscreenBackground()},window.onYouTubeIframeAPIReadyYoutube=function(){l.isApiReady=!0;for(var t=0;t<l.apiReadyQueue.length;++t)l.apiReadyQueue[t].initYTPlayer()},(e=document.createElement("script")).src="https://www.youtube.com/iframe_api",(n=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,n),o=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",r=document.head||document.getElementsByTagName("head")[0],(s=document.createElement("style")).type="text/css",s.styleSheet?s.styleSheet.cssText=o:s.appendChild(document.createTextNode(o)),r.appendChild(s),t.registerTech("Youtube",l)}),function(){"use strict";var t={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},e=videojs.getComponent("Tech"),n=videojs.extend(e,{constructor:function(t,o){e.call(this,t,o),""!=t.poster&&this.setPoster(t.poster),this.setSrc(this.options_.source.src,!0),setTimeout((function(){this.el_.parentNode.className+=" vjs-vimeo",n.isApiReady?this.initPlayer():n.apiReadyQueue.push(this)}).bind(this))},dispose:function(){this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-vimeo","")},createEl:function(){this.vimeo={},this.vimeoInfo={},this.baseUrl="https://player.vimeo.com/video/",this.baseApiUrl="https://www.vimeo.com/api/v2/video/",this.videoId=n.parseUrl(this.options_.source.src).videoId,this.iframe=document.createElement("iframe"),this.iframe.setAttribute("id",this.options_.techId),this.iframe.setAttribute("title","Vimeo Video Player"),this.iframe.setAttribute("class","vimeoplayer"),this.iframe.setAttribute("src",this.baseUrl+this.videoId+"?api=1&player_id="+this.options_.techId),this.iframe.setAttribute("frameborder","0"),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("marginWidth","0"),this.iframe.setAttribute("marginHeight","0"),this.iframe.setAttribute("webkitAllowFullScreen","0"),this.iframe.setAttribute("mozallowfullscreen","0"),this.iframe.setAttribute("allowFullScreen","0"),this.options_.autoplay&&this.iframe.setAttribute("autoplay","true");var t,e=document.createElement("div");if(e.setAttribute("style","margin:0 auto;padding-bottom:56.25%;width:100%;height:0;position:relative;overflow:hidden;"),e.setAttribute("class","vimeoFrame"),e.appendChild(this.iframe),!o&&!this.options_.ytControls){var r=document.createElement("div");r.setAttribute("class","vjs-iframe-blocker"),r.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),r.onclick=(function(){this.onPause()}).bind(this),e.appendChild(r)}return""==this.options_.poster&&null!=this.videoId&&$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},(t=this,function(e){t.setPoster(e[0].thumbnail_large)})),e},initPlayer:function(){var e=this;$(e.iframe).load(function(){n.parseUrl(e.options_.source.src).videoId,e.vimeo&&e.vimeo.api&&(e.vimeo.api("unload"),delete e.vimeo),e.vimeo=$f(e.iframe),e.vimeoInfo={state:t.UNSTARTED,volume:1,muted:!1,muteVolume:1,time:0,duration:0,buffered:0,url:e.baseUrl+e.videoId,error:null},e.vimeo.addEvent("ready",function(t){e.onReady(),e.vimeo.addEvent("loadProgress",function(t,n){e.onLoadProgress(t)}),e.vimeo.addEvent("playProgress",function(t,n){e.onPlayProgress(t)}),e.vimeo.addEvent("play",function(t){e.onPlay()}),e.vimeo.addEvent("pause",function(t){e.onPause()}),e.vimeo.addEvent("finish",function(t){e.onFinish()}),e.vimeo.addEvent("seek",function(t,n){e.onSeek(t)})})})},onReady:function(){this.playerReady_=!0,this.triggerReady(),this.trigger("loadedmetadata"),this.startMuted&&(this.setMuted(!0),this.startMuted=!1)},onLoadProgress:function(t){var e=!this.vimeoInfo.duration;this.vimeoInfo.duration=t.duration,this.vimeoInfo.buffered=t.percent,this.trigger("progress"),e&&this.trigger("durationchange")},onPlayProgress:function(t){this.vimeoInfo.time=t.seconds,this.trigger("timeupdate")},onPlay:function(){this.vimeoInfo.state=t.PLAYING,this.trigger("play")},onPause:function(){this.vimeoInfo.state=t.PAUSED,this.trigger("pause")},onFinish:function(){this.vimeoInfo.state=t.ENDED,this.trigger("ended")},onSeek:function(t){this.trigger("seeking"),this.vimeoInfo.time=t.seconds,this.trigger("timeupdate"),this.trigger("seeked")},onError:function(t){this.error=t,this.trigger("error")},error:function(){switch(this.errorNumber){case 2:case 100:return{code:"Unable to find the video"};case 5:return{code:"Error while trying to play the video"};case 101:case 150:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"Vimeo unknown error ("+this.errorNumber+")"}},src:function(){return this.source},poster:function(){return this.poster_},setPoster:function(t){this.poster_=t},setSrc:function(t){if(t&&t.src){if(this.source=t,this.url=n.parseUrl(t.src),!this.options_.poster&&null!=this.url.videoId){var e;$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"}
13,(e=this,function(t){e.poster_=t[0].thumbnail_small})),this.checkHighResPoster()}this.options_.autoplay&&!o&&(this.isReady_?this.play():this.playOnReady=!0)}},supportsFullScreen:function(){return!0},load:function(){},play:function(){this.vimeo.api("play")},pause:function(){this.vimeo.api("pause")},paused:function(){return this.vimeoInfo.state!==t.PLAYING&&this.vimeoInfo.state!==t.BUFFERING},currentTime:function(){return this.vimeoInfo.time||0},setCurrentTime:function(t){this.vimeo.api("seekTo",t),this.player_.trigger("timeupdate")},duration:function(){return this.vimeoInfo.duration||0},buffered:function(){return videojs.createTimeRange(0,this.vimeoInfo.buffered*this.vimeoInfo.duration||0)},volume:function(){return this.vimeoInfo.muted?this.vimeoInfo.muteVolume:this.vimeoInfo.volume},setVolume:function(t){this.vimeo.api("setvolume",t),this.vimeoInfo.volume=t,this.player_.trigger("volumechange")},currentSrc:function(){return this.el_.src},muted:function(){return this.vimeoInfo.muted||!1},setMuted:function(t){t?(this.vimeoInfo.muteVolume=this.vimeoInfo.volume,this.setVolume(0)):this.setVolume(this.vimeoInfo.muteVolume),this.vimeoInfo.muted=t,this.player_.trigger("volumechange")},checkHighResPoster:function(){try{if(null!=this.url.videoId){$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},function(t){t[0].thumbnail_large});var t=new Image;t.onload=(function(){if("naturalHeight"in this){if(this.naturalHeight<=90||this.naturalWidth<=120){this.onerror();return}}else if(this.height<=90||this.width<=120){this.onerror();return}this.poster_="",this.trigger("posterchange")}).bind(this),t.onerror=function(){},t.src=""}}catch(t){}}});n.isSupported=function(){return!0},n.canPlaySource=function(t){return"video/vimeo"===t.type};var o=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);n.parseUrl=function(t){var e={videoId:null},n=t.match(/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/);return n&&(e.videoId=n[5]),e},n.apiReadyQueue=[],function(){n.isApiReady=!0,t=".vjs-vimeo .vjs-iframe-blocker { display: none; }.vjs-vimeo.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-vimeo .vjs-poster { background-size: cover; }.vjs-vimeo { height:100%; }.vimeoplayer { width:100%; height:180%; position:absolute; left:0; top:-40%; }",e=document.head||document.getElementsByTagName("head")[0],(o=document.createElement("style")).type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),e.appendChild(o);for(var t,e,o,r=0;r<n.apiReadyQueue.length;++r)n.apiReadyQueue[r].initPlayer()}(),videojs.registerTech("Vimeo",n),function(){function t(e){return new t.fn.init(e)}var e={},n=!1,o=(Array.prototype.slice,"*");function r(t,e,n){if(null==n.contentWindow||!n.contentWindow.postMessage)return!1;var r=JSON.stringify({method:t,value:e});n.contentWindow.postMessage(r,o)}function s(t){try{a=(s=JSON.parse(t.data)).event||s.method}catch(t){}if("ready"!=a||n||(n=!0),!/^https?:\/\/player.vimeo.com/.test(t.origin))return!1;"*"===o&&(o=t.origin);var r,s,a,l=s.value,c=s.data,u=""===u?null:s.player_id,d=(r=a,u&&e[u]?e[u][r]:e[r]?e[r]:void 0),p=[];return!!d&&(void 0!==l&&p.push(l),c&&p.push(c),u&&p.push(u),p.length>0?d.apply(null,p):d.call())}function a(t,n,o){o?(e[o]||(e[o]={}),e[o][t]=n):e[t]=n}function l(t){return!!(t&&t.constructor&&t.call&&t.apply)}t.fn=t.prototype={element:null,init:function(t){return"string"==typeof t&&(t=document.getElementById(t)),this.element=t,this},api:function(t,e){if(!this.element||!t)return!1;var n=this.element,o=""!==n.id?n.id:null,s=l(e)?null:e,c=l(e)?e:null;return c&&a(t,c,o),r(t,s,n),this},addEvent:function(t,e){if(!this.element)return!1;var o=this.element,s=""!==o.id?o.id:null;return a(t,e,s),"ready"!=t?r("addEventListener",t,o):"ready"==t&&n&&e.call(null,s),this},removeEvent:function(t){if(!this.element)return!1;var n=this.element,o=function(t,n){if(n&&e[n]){if(!e[n][t])return!1;e[n][t]=null}else{if(!e[t])return!1;e[t]=null}return!0}(t,""!==n.id?n.id:null);"ready"!=t&&o&&r("removeEventListener",t,n)}},t.fn.init.prototype=t.fn,window.addEventListener?window.addEventListener("message",s,!1):window.attachEvent("onmessage",s),window.Froogaloop=window.$f=t}()}(),function(t){var e=function(e,n){this.$el=t(e),this.inputAttributes=n.attributes,this.options=n||{},this.config={fail:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>Oops! Upload failed</span>',notSupported:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File type not supported</span>',maxSize:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File exceeds max size</span>',fileSize:10485760,fileTypes:n.fileTypes,defaultLabel:""==this.options.label?this.options.label:this.options.helpText},this.itemInfo={},this.insertHTML(this.inputAttributes),this.$uploadFieldInput=this.$el.find(":file"),this.$label=this.$el.find(".labelHolder"),this.$close=this.$el.find(".la-cicon-close"),this.init(this.$el)};e.prototype.init=function(t){this.attachEvents()},e.prototype.attachEvents=function(){var e=this;e.$el.on("change",":file",function(){var e=t(this),n=e.get(0).files?e.get(0).files.length:1,o=e.val().replace(/\\/g,"/").replace(/.*\//,""),r=document.getElementById(e.attr("id")).files[0];r&&e.trigger("fileselect",[n,o,r])}),e.$uploadFieldInput.on("fileselect",function(t,n,o,r){e.validateFiles(t,n,o,r)}),e.$uploadFieldInput.on("focus",function(){e.$uploadFieldInput.addClass("has-focus")}).on("blur",function(){e.$uploadFieldInput.removeClass("has-focus")}),e.$close.on("click",function(t){t.preventDefault(),e.toggleInputState("reset"),e.uploadItems("removeLastUploaded"),e.$uploadFieldInput.val("")}
13)},e.prototype.uploadItems=function(t){"object"!=typeof t?this.$uploadFieldInput.data("item",""):(this.$uploadFieldInput.data("item",JSON.stringify(t)),this.toggleInputState("close"))},e.prototype.toggleInputState=function(t){"reset"===t&&(t="upload",this.$label.html(this.config.defaultLabel)),this.$el.find(".la-cicon-"+t).show(),this.$el.find(".la-cicon-"+t).siblings("i").hide(),"upload"===t?this.$el.find(".status-label").show():this.$el.find(".status-label").hide()},e.prototype.encodeBaseSF=function(t,e,n){var o=this,r=new FileReader,s={};r.readAsDataURL(t),r.onload=function(){return s.id=e,s.string=r.result,s.size=t.size,s.extension=o.itemInfo.extension,s.icon=o.itemInfo.icon,n(s)},r.onerror=function(t){}},e.prototype.insertHTML=function(e){this.options.required;var n='<label for="'+e.id+'"><span class="labelHolder">'+this.config.defaultLabel+'</span><span class="btnS"><span class=""><i class="la-cicon-spinner icon-pulse icon-fw icon-load" style="display:none;"></i><i class="la-cicon-upload"></i><i class="la-cicon-close" style="display:none;"></i><span class="status-label"> Browse</span></span></span></label><span class="form-input-info">Maximum file size allowed: 10MB</label>',o=t("<input>",e).addClass("fileUpload");this.$el.append(o).append(n)},e.prototype.validateFiles=function(e,n,o,r){var s=this,a=s.$label.html(),l="",c=!1;t("label",s.$el).removeClass("has-error"),t(".error_container",s.$el.parent().parent()).remove(),s.itemInfo.extension=r.name.split(".").pop().toUpperCase(),s.itemInfo.icon="other",t.each(s.options.fileTypes,function(t,e){e.ext===s.itemInfo.extension&&(c=!0,s.itemInfo.icon=e.icon)}),e.target.value&&(l=e.target.value.split("\\").pop());var u='<span class="success"><i class="la-cicon-file-'+s.itemInfo.icon+'"></i>'+l+"</span>";l?(r.size>s.config.fileSize?s.updateLabel(s.config.maxSize):c?s.encodeBaseSF(r,l,function(t){s.uploadItems(t),s.updateLabel(u)}):s.updateLabel(s.config.notSupported),s.toggleInputState("close")):(s.$label.html(a),s.toggleInputState("load"))},e.prototype.updateLabel=function(t){void 0!==t&&this.$label.html(t)}
13;var n=t.fn.uploadField;t.fn.uploadField=function(n){n=t.extend({},t(this).data(),"object"==typeof n&&n),new e(this,n)},t.fn.uploadField.Constructor=e,t.fn.uploadField.noConflict=function(){return t.fn.uploadField=n,this}}(jQuery),function(t){"use strict";t(document).ready(function(){t("body").on("SMBLeadsFormReady",function(){var e=t('[data-control="form"]');e.length&&e.each(function(){""!=t(this).data("mhorgid")&&(t("<input>").attr({type:"hidden",name:"mh_orgId",value:t(this).data("mhorgid")}).appendTo(t("form",t(this))),t("<input>").attr({type:"hidden",name:"mh_template_id",value:t(this).data("templateId")}).appendTo(t("form",t(this))))})});var e=t(".section-form:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)"),n=t(".form.isPleForm");e.length&&n.length&&e.each(function(){t(this).find(n).addClass("form-themeExtras"),t("body").on("SMBLeadsFormReady",function(){var e=t(".forms--2col-textarea:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)"),o=t(".forms-option--b .leadForm .form__group:not(.checkbox__group):not(.radio__group)");e.find(n).each(function(){t(this).find(".form__group").not(".form-input-comments").wrapAll("<div class='groupWrap' />")}),o.each(function(){t(this).hasClass("hasLabel")&&t(this).addClass("optionB-enabled")})})})})}(window.jQuery),$(document).ready(function(){var t=$(".editable__container");t.length&&t.each(function(){var t=$(this),e=t.find(".contentExpandWrap"),n=t.find("#readMoreLink");n.length&&("SPAN"==n[0].nodeName&&(n.attr("href","#editableAnimateShowLess"),function(t,e){$(t).each(function(){var t=$(e,{html:$(this).html()});$.each(this.attributes,function(){t.attr(this.name,this.value)}),$(this).replaceWith(t)})}(n,"<a></a>")),e.add(n).removeClass("expand"),e.hide(),n.text("Show More"),t.on("click","#readMoreLink",function(n){n.preventDefault();var o=$(this),r=$("body .redactor-link-tooltip .redactor-link-tooltip-action:first-child");r.length&&r.parent().css("visibility","hidden"),"Show More"===o.text()?(t.removeAttr("id"),o.text("Show Less")):(t.attr("id","editableAnimateShowLess"),o.text("Show More")),e.add(o).toggleClass("expand")}))})}),(t=>{"use strict";class e{constructor(t){this.$el=t,this.init()}init(){this.bindToOffsetToAnchors()}bindToOffsetToAnchors(){this.$el.on("click",'a[href^="#"]',e=>{let n=e.target;if(!n)return;let o=decodeURI(n.hash).slice(1);if(!o)return;let r=document.getElementById(o);r&&this.animateToAnchor(t(r))})}animateToAnchor(e,n){n??=this.getStickySectionsHeight(),t("html, body").animate({scrollTop:e.offset().top-n},"slow")}getStickySectionsHeight(){return PLEStickyState?.getStickySectionsHeight()??0}static dataAttribute="linkToSection"}t(()=>{for(let n of document.querySelectorAll(".editable__container")){let o=t(n);o.data(e.dataAttribute,new e(o))}})})(window.jQuery),function(t){"use strict";var e=function(e,n){this.$element=t(e),this.$ul=this.$element,this.$videos=t(".video-js-slider",e),this.$videoOverlays=t(".video-overlay",this.$element),this.players=[],this.clones=[],this.prevDevice=null,this.loaded=0,this.tempArrVidsPause=[],this.vidsPauseClicked=[],this.lastDevice="",this.groupSlidesByDevice(),this.options=this.parseTrueFalseOptions(n),this.auto=this.options.auto,this.muted=!1,this.options.autoplayvideo&&(this.muted=!0),this.startPaused=-1!==location.href.indexOf("slide_show_pause=1")||-1!==location.href.indexOf("screenshot_mode=1"),this.startPaused&&(this.options.auto=!1),this.options.auto&&this.options.firstSlideVideo&&this.options.autoplayvideo&&(this.change=!0,this.options.auto=!1),this.attachEvents(),this.runSlider()};e.prototype.runSlider=function(){var e,n,o=this,r=o.getDevice();if(""!=o.lastDevice){if(r==o.lastDevice)return;if(JSON.stringify(o[r+"Items"])==JSON.stringify(o[o.lastDevice+"Items"])){o.lastDevice=r;return}}o.lastDevice=r,o.destroySlider(),e=r+"Items",o.options.count=o[e].length,0!=o.options.count&&(o[e].forEach(function(t){o.$ul.append(t)}),1==o.options.count&&(o.options.infiniteLoop=!1),n=o.generateBxSliderData(),t.extend(n,o.options),o.$bxSlider=o.$ul.bxSlider(n))},e.prototype.generateBxSliderData=function(){var e=this,n=!1;function o(){setTimeout(function(){t(window).trigger("scroll")},100)}return n=!!t(".lazyLoadImg").length,{onSlideAfter:function(t,r,s){if(e.players.forEac
13h(function(t){t.paused()||(-1==e.tempArrVidsPause.indexOf(t.id_)&&e.tempArrVidsPause.push(t.id_),t.pause())}),t.hasClass("slider__video_type")){var a=t.find("[data-item-id]").data("itemId"),l=e.findPlayerByItemId(a);l||(l=e.returnPlayer(t.find(".video-js"))),e.options.autoplayvideo&&1>l.currentTime()&&(e.$element.stopAuto(),l.muted(!0),l.play()),e.muted&&l.muted(!0)}e.options.stopSlideshowAfterOneLoop&&e.options.count-1==s&&e.$element.stopAuto(),n&&o()},onSliderLoad:function(n){e.$element.css("visibility","visible"),e.$wrapper=e.$element.closest(".bx-wrapper"),""==e.options.easing&&(e.options.easing=null),e.options.controlsHover&&(t(".bx-controls-direction",e.$wrapper).hide(),e.$wrapper.hover(function(){t(".bx-controls-direction",t(this)).fadeIn(300)},function(){t(".bx-controls-direction",t(this)).fadeOut(300)})),e.options.autoHoverModified&&e.$wrapper.hover(function(){e.options.auto&&e.$element.stopAuto()},function(){e.options.auto&&!e.isVideoPlaying()&&(e.$element.stopAuto(),e.$element.startAuto())}),e.change&&(e.options.auto=!0),null!=e.options.easing&&(e.options.useCSS=!1),e.auto&&e.makePauseSlideshowButton(),o=e.options.count>1&&"fade"!=e.options.mode?1:0;var o,r=t("#slider").find(".bx-viewport").find("ul").children().eq(o);if(r.hasClass("slider__video_type")){var s=e.returnPlayer(r.find(".video-js"));e.options.autoplayvideo&&(e.$element.stopAuto(),s.muted(!0),s.play()),e.muted&&s.muted(!0)}e.initializeClones(),e.initializeOverlays(),e.$element.closest(".bx-wrapper").find(".bx-controls").wrapAll("<div class='wrap__bx-controls' />"),e.$element.closest(".bx-wrapper").find(".wrap_on-off, .wrap_pause-play, .bx-pager ").wrapAll("<div class='bx-controls-buttons' />")},onSlideNext:function(){n&&o()},onSlidePrev:function(){n&&o()}}},e.prototype.destroySlider=function(){this.$bxSlider&&this.$bxSlider.destroySlider(),this.$ul.html("")},e.prototype.attachEvents=function(){var e,n,o=this;t("#slider").on("click",".pause-slideshow",function(n,r){t(this).hide(),o.$element.stopAuto(),o.options.auto=!1,t("#slider .play-slideshow").fadeIn("slow",function(){void 0!==r&&t(this).focus()}),(e=o.isVideoPlaying())&&e.pause()}),t("#slider").on("click",".play-slideshow",function(e,n){t(this).hide(),o.$element.startAuto(),o.options.auto=!0,t("#slider .pause-slideshow").fadeIn("slow",function(){void 0!==n&&t(this).focus()})}),t("body").keypress(function(e){13==e.which&&(t("#slider").find(".play-slideshow").is(":focus")&&t("#slider").find(".play-slideshow").trigger("click",{kb:!0}),t("#slider").find(".pause-slideshow").is(":focus")&&t("#slider").find(".pause-slideshow").trigger("click",{kb:!0}),t("#slider").find(".sound-off").is(":focus")&&t("#slider").find(".sound-off").trigger("click",{kb:!0}),t("#slider").find(".sound-on").is(":focus")&&t("#slider").find(".sound-on").trigger("click",{kb:!0}))}),t(window).resize(function(){clearTimeout(n),n=setTimeout(function(){o.runSlider()},250)})},e.prototype.returnPlayer=function(t){var e=this,n=t.data("setupRun");return void 0!=n.techOrder&&"vimeo"==n.techOrder[0]&&(n.controls=!1),void 0!=n.techOrder&&"youtube"==n.techOrder[0]&&(n.youtube={ytControls:2},n.controls=!1),videojs(t.attr("id"),n,function(){var t,n=this;e.players.push(n),n.on("play",function(){e.showCaptionWhilePlay(this.id_,!1),e.options.auto&&e.$element.stopAuto()}),n.on("pause",function(o){e.showCaptionWhilePlay(this.id_,!0),e.options.auto&&(e.$element.stopAuto(),e.$element.startAuto()),(t=e.hasClone(n))&&(t.poster(""),t.bigPlayButton.hide(),t.currentTime(n.currentTime()))}),n.on("ended",function(){e.showCaptionWhilePlay(this.id_,!0),e.options.auto&&(e.$element.stopAuto(),e.$element.startAuto())})})},e.prototype.parseTrueFalseOptions=function(t,n){for(var o in t)t.hasOwnProperty(o)&&-1!=e.BOOLEANS.indexOf(o)&&(t[o]=!!t[o]);return t},e.prototype.isVideoPlaying=function(){var t=!1;return this.players.forEach(function(e){e.paused()||(t=e)}),t},e.prototype.initializeOverlays=function(){var e=this;e.$videoOverlays.length&&e.$videoOverlays.on("click",function(){var n=e.findPlayerByItemId(t(this).data("itemId"));n.paused()?n.play():n.pause()})},e.prototype.findPlayerByItemId=function(e){for(var n=0;n<this.players.length;n++){var o=this.players[n];if(t(o.el_).data("itemId")==e)return o}return!1},e.prototype.groupSlidesByDevice=function(){var e,n=this;n.desktopItems=[],n.tabletItems=[],n.mobileItems=[];var o=navigator.userAgent.indexOf("Trident")>-1||navigator.userAgent.indexOf("MSIE")>-1;n.$ul.find("li").each(function(){e=o?t(this).clone(!0,!0):t(this),t(this).data("desktop")&&n.desktopItems.push(e),t(this).data("tablet")&&n.tabletItems.push(e),t(this).data("mobile")&&n.mobileItems.push(e)})},e.prototype.makePauseSlideshowButton=function(){var e="",n="";this.options.auto?e='style="display:none"':n='style="display:none"';var o='<div class="wrap_pause-play">
13<div class="pause-slideshow" aria-label="icon pause" '+n+' title="Pause slideshow" tabindex="0"><span class="icon icon-pause"></span></div><div class="play-slideshow" aria-label="icon play" '+e+' title="Play slideshow" tabindex="0"><span class="icon icon-play"></span></div></div>';t("#slider").find(".bx-wrapper .bx-controls").prepend(o)},e.prototype.initializeClones=function(){var e,n=this;n.$element.find(".bx-clone").each(function(o){if((e=t(this).find("video")).attr("id",e.attr("id")+"_clone"),e.length){var r=t(e[0]).data("setupRun")?t(e[0]).data("setupRun"):t(e[0]).data("setup");void 0!=r.techOrder&&"vimeo"==r.techOrder[0]&&(r.controls=!1),void 0!=r.techOrder&&"youtube"==r.techOrder[0]&&(r.youtube={ytControls:2},r.controls=!1),videojs(e[0],r,function(){this.muted(!0),n.clones.push(this)})}})},e.prototype.hasClone=function(e){for(var n=0;n<this.clones.length;n++){var o=this.clones[n];if(t(o.el_).attr("id")==t(e.el_).attr("id")+"_clone")return o}return!1},e.prototype.showCaptionWhilePlay=function(e,n){var o=t("#"+e).parents(".slider__item").find("[data-vidplay]"),r=o.data("vidplay");
13n&&(r=1),this.$element.find(o).css({opacity:r})},e.prototype.getDevice=function(){var t=window.innerWidth;return t<768?"mobile":t<1025?"tablet":"desktop"},e.DEFAULTS={video:!0,pager:!0,controls:!0,autoControls:!1,autoHoverModified:!1,autoHover:!1,auto:!0,infiniteLoop:!0,randomStart:!1,controlsHover:!1,responsive:!1,mode:"horizontal",speed:500,pause:4e3,autoDelay:0,easing:null,useCSS:!1,isEditor:!1},e.BOOLEANS=["pager","controls","autoControls","auto","infiniteLoop","randomStart","controlsHover","responsive","autoHoverModified"];var n=t.fn.Slider;t.fn.Slider=function(n){var o;return arguments,this.each(function(){var r=t(this),s=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n);if(r.data("bxslider",new e(this,s)),void 0!==o)return!1}),o||this},t.fn.Slider.Constructor=e,t.fn.Slider.noConflict=function(){return t.fn.Slider=n,this},t(function(){t('[data-control="slider"]').Slider()})}(window.jQuery),function(t){"use strict";t(window).load(function(){t(".lazyLoadImg").length&&t(".slider__image.lazy").lazy({effect:"fadeIn",effectTime:2e3,threshold:0})})}(window.jQuery),function(t){"use strict";var e,n,o,r,s,a,l,c=!0,u="",d=0,p="",h=null,f="",v=!1,g={resize:1,click:1},m=!0,y=1,b="bodyOffset",_=b,w=!0,T="",j={},x=32,k=null,C=!1,S="[iFrameSizer]",E=S.length,O="",P={max:1,min:1,bodyScroll:1,documentElementScroll:1},M="child",I=!0,A=t.parent,L="*",N=0,D=!1,R=null,F=16,B=1,H="scroll",W=H,z=t,V=function(){Z("MessageCallback function not defined")},U=function(){},q=function(){};function Q(e,n,o){"addEventListener"in t?e.addEventListener(n,o,!1):"attachEvent"in t&&e.attachEvent("on"+n,o)}function Y(e,n,o){"removeEventListener"in t?e.removeEventListener(n,o,!1):"detachEvent"in t&&e.detachEvent("on"+n,o)}function K(t){return t.charAt(0).toUpperCase()+t.slice(1)}var X=Date.now||function(){return new Date().getTime()};function G(t){return S+"["+O+"] "+t}function J(e){C&&"object"==typeof t.console&&console.log(G(e))}function Z(e){"object"==typeof t.console&&console.warn(G(e))}function tt(t,e){void 0!==e&&""!==e&&"null"!==e&&(document.body.style[t]=e,J("Body "+t+' set to "'+e+'"'))}function te(e){function n(){tm(e.eventName,e.eventType)}var o={add:function(e){Q(t,e,n)},remove:function(e){Y(t,e,n)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(o[e.method])):o[e.method](e.eventName),J(K(e.method)+" event listener: "+e.eventType)}function tn(t){te({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),te({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),te({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),te({method:t,eventType:"Input",eventName:"input"}),te({method:t,eventType:"Mouse Up",eventName:"mouseup"}),te({method:t,eventType:"Mouse Down",eventName:"mousedown"}),te({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),te({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),te({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),te({method:t,eventType:"Touch Start",eventName:"touchstart"}),te({method:t,eventType:"Touch End",eventName:"touchend"}),te({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),te({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),te({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),te({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===M&&te({method:t,eventType:"IFrame Resized",eventName:"resize"})}function to(t,e,n,o){return e!==t&&(t in n||(Z(t+" is not a valid option for "+o+"CalculationMethod."),t=e),J(o+' calculation method set to "'+t+'"')),t}function ti(){_=to(_,b,tf,"height")}function tr(){W=to(W,H,tv,"width")}function ts(){var e;!0===c?(tn("add"),e=0>x,t.MutationObserver||t.WebKitMutationObserver?e?tl():h=function(){function e(t){function e(t){!1===t.complete&&(J("Attach listeners to "+t.src),t.addEventListener("load",r,!1),t.addEventListener("error",s,!1),l.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function n(t){J("Remove listeners from "+t.src),t.removeEventListener("load",r,!1),t.removeEventListener("error",s,!1),l.splice(l.indexOf(t),1)}function o(t,e,o){n(t.target),tm(e,o+": "+t.target.src,void 0,void 0)}function r(t){o(t,"imageLoad","Image loaded")}function s(t){o(t,"imageLoadFailed","Image load failed")}var a,l=[],c=t.MutationObserver||t.WebKitMutationObserver,u=(a=document.querySelector("body"),u=new c(function(t){tm("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}),J("Create body MutationObserver"),u.observe(a,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),u);return{disconnect:function(){"disconnect"in u&&(J("Disconnect body MutationObserver"),u.disconnect(),l.forEach(n))}}}():(J("MutationObserver not supported in this browser!"),tl())):J("Auto Re
13size disabled")}function ta(){tn("remove"),null!==h&&h.disconnect(),clearInterval(k)}function tl(){0!==x&&(J("setInterval: "+x+"ms"),k=setInterval(function(){tm("interval","setInterval: "+x)},Math.abs(x)))}function tc(t,e){var n=0;return e=e||document.body,parseInt(n="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(n=document.defaultView.getComputedStyle(e,null))?n[t]:0:function(t){if(/^\d+(px)?$/i.test(t))return parseInt(t,10);var n=e.style.left,o=e.runtimeStyle.left;return e.runtimeStyle.left=e.currentStyle.left,e.style.left=t||0,t=e.style.pixelLeft,e.style.left=n,e.runtimeStyle.left=o,t}(e.currentStyle[t]),10)}function tu(t,e){for(var n,o=e.length,r=0,s=0,a=K(t),l=X(),c=0;c<o;c++)(r=e[c].getBoundingClientRect()[t]+tc("margin"+a,e[c]))>s&&(s=r);return l=X()-l,J("Parsed "+o+" HTML elements"),J("Element position calculated in "+l+"ms"),(n=l)>F/2&&J("Event throttle increased to "+(F=2*n)+"ms"),s}function td(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function tp(t,e){var n=document.querySelectorAll("["+e+"]");return 0===n.length?(Z("No tagged elements ("+e+") found on page"),y):tu(t,n)}function th(){return document.querySelectorAll("body *")}var tf={bodyOffset:function(){return document.body.offsetHeight+tc("marginTop")+tc("marginBottom")},offset:function(){return tf.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,td(tf))},min:function(){return Math.min.apply(null,td(tf))},grow:function(){return tf.max()},lowestElement:function(){return Math.max(tf.bodyOffset(),tu("bottom",th()))},taggedElement:function(){return tp("bottom","data-iframe-height")}},tv={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(tv.bodyScroll(),tv.documentElementScroll())},max:function(){return Math.max.apply(null,td(tv))},min:function(){return Math.min.apply(null,td(tv))},rightMostElement:function(){return tu("right",th())},taggedElement:function(){return tp("right","data-iframe-width")}},tg=(e=function(t,e,n,o){var r,s;(function(){function t(t,e){return!(Math.abs(t-e)<=N)}return r=void 0!==n?n:tf[_](),s=void 0!==o?o:tv[W](),t(y,r)||v&&t(B,s)})()||"init"===t?(ty(),tw(y=r,B=s,t)):!(t in{init:1,interval:1,size:1})&&(_ in P||v&&W in P)?t_(e):t in{interval:1}||J("No change in size detected")},s=null,a=0,l=function(){a=X(),s=null,r=e.apply(n,o),s||(n=o=null)},function(){var t=X();a||(a=t);var c=F-(t-a);return n=this,o=arguments,c<=0||c>F?(s&&(clearTimeout(s),s=null),a=t,r=e.apply(n,o),s||(n=o=null)):s||(s=setTimeout(l,c)),r});function tm(t,e,n,o){D&&t in g?J("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||J("Trigger event: "+e),tg(t,e,n,o))}function ty(){D||(D=!0,J("Trigger event lock on")),clearTimeout(R),R=setTimeout(function(){D=!1,J("Trigger event lock off"),J("--")},128)}function tb(t){y=tf[_](),B=tv[W](),tw(y,B,t)}function t_(t){var e=_;_=b,J("Reset trigger event: "+t),ty(),tb("reset"),_=e}function tw(t,e,n,o,r){if(!0===I){var s;void 0===r?r=L:J("Message targetOrigin: "+r),J("Sending message to host page ("+(s=O+":"+t+":"+e+":"+n+(void 0!==o?":"+o:""))+")"),A.postMessage(S+s,r)}}Q(t,"message",function e(n){var o,r;function s(){return n.data.split("]")[1].split(":")[0]}function a(){return n.data.substr(n.data.indexOf(":")+1)}function l(){return n.data.split(":")[2]in{true:1,false:1}}S===(""+n.data).substr(0,E)&&(!1===m?function(){var e,o,r;switch(s()){case"reset":w?J("Page reset ignored by init"):(J("Page size reset by host page"),tb("resetPage"));break;case"resize":tm("resizeParent","Parent window requested size check");break;case"moveToAnchor":e=a(),j.findTarget(e);break;case"message":J("MessageCallback called from parent: "+(o=a())),V(JSON.parse(o)),J(" --");break;case"pageInfo":J("PageInfoFromParent called from parent: "+(r=a())),q(JSON.parse(r)),J(" --");break;default:"iFrameResize"in t||l()||Z("Unexpected message ("+n.data+")")}}():l()?(T=n.data,A=n.source,function(){function t(t){return"true"===t}var e=T.substr(E).split(":");O=e[0],d=void 0!==e[1]?Number(e[1]):d,v=void 0!==e[2]?t(e[2]):v,C=void 0!==e[3]?t(e[3]):C,x=void 0!==e[4]?Number(e[4]):x,c=void 0!==e[6]?t(e[6]):c,p=e[7],_=void 0!==e[8]?e[8]:_,u=e[9],f=e[10],N=void 0!==e[11]?Number(e[11]):N,j.enable=void 0!==e[12]&&t(e[12]),M=void 0!==e[13]?e[13]:M,W=void 0!==e[14]?e[14]:W}(),J("Initialising iFrame ("+location.href+")"),function(){if("iFrameResizer"in t&&Object===t.iFrameResizer.constructor){var e;J("Reading data from page: "+JSON.stringify(e=t.iFrameResizer)),V="messageCallback"in e?e.messageCallback:V,U="readyCallback"in e?e.readyCallback:U,L="targetOrigin"in e?e.targetOrigin:L,_="heightCalculationMethod"in e?e.heightCalculationMethod:_,W="widthCalculationMethod"in e?e.widthCalculationMethod:W}J("TargetOrigin for parent set to: "+L)}(),void 0===p&&(p=d+"px"),tt("margin",(-1!==(o=p).indexOf("-")&&(Z("Negative CSS value ignored for margin"),o=""),o)),tt("background",u),tt("padding",f),(r=document.createElement("div")).style.clear="both",r.style.display="block",document.body.appendChild(r),ti(),tr(),document.documentElement.style.height="",document.body.style.height="",J('HTML & body height set to "auto"'),J("Enable public methods"),z.parentIFrame={autoResize:function(t){return!0===t&&!1===c?(c=!0,ts()):!1===t&&!0===c&&(c=!1,ta()),c},close:function(){tw(0,0,"close"),J("Disable outgoing messages"),I=!1,J("Remove event listener: Message"),Y(t,"message",e),!0===c&&ta()},getId:function(){return O},getPageInfo:function(t){"function"==typeof t?(q=t,tw(0,0,"pageInfo")):(q=function(){},tw(0,0,"pageInfoStop"))},moveToAnchor:function(t){j.findTarget(t)},reset:function(){t_("parentIFrame.reset")},scrollTo:function(t,e){tw(e,t,"scrollTo")},scrollToOffset:function(t,e){tw(e,t,"scrollToOffset")},sendMessage:function(t,e){tw(0,0,"message",JSON.stringify(t),e)}
13,setHeightCalculationMethod:function(t){_=t,ti()},setWidthCalculationMethod:function(t){W=t,tr()},setTargetOrigin:function(t){J("Set targetOrigin: "+t),L=t},size:function(t,e){tm("size","parentIFrame.size("+(t||"")+(e?","+e:"")+")",t,e)}},ts(),j=function(){function e(e){var n,o,r,s=e.split("#")[1]||e,a=decodeURIComponent(s),l=document.getElementById(a)||document.getElementsByName(a)[0];void 0!==l?(n=l.getBoundingClientRect(),o={x:void 0!==t.pageXOffset?t.pageXOffset:document.documentElement.scrollLeft,y:void 0!==t.pageYOffset?t.pageYOffset:document.documentElement.scrollTop},J("Moving to in page link (#"+s+") at x: "+(r={x:parseInt(n.left,10)+parseInt(o.x,10),y:parseInt(n.top,10)+parseInt(o.y,10)}).x+" y: "+r.y),tw(r.y,r.x,"scrollToOffset")):(J("In page link (#"+s+") not found in iFrame, so sending to parent"),tw(0,0,"inPageLink","#"+s))}function n(){""!==location.hash&&"#"!==location.hash&&e(location.href)}return j.enable?Array.prototype.forEach&&document.querySelectorAll?(J("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(t){"#"!==t.getAttribute("href")&&Q(t,"click",function(t){t.preventDefault(),e(this.getAttribute("href"))})}),Q(t,"hashchange",n),setTimeout(n,128)):Z("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):J("In page linking not enabled"),{findTarget:e}}(),tm("init","Init message from host page"),U(),m=!1,setTimeout(function(){w=!1},128)):J('Ignored message of type "'+s()+'". Received before initialization.'))}),"loading"!==document.readyState&&t.parent.postMessage("[iFrameResizerChild]Ready","*")}(window||{}),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var n=window.Cookies,o=window.Cookies=t();o.noConflict=function(){return window.Cookies=n,o}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function e(n){function o(e,r,s){if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(s=t({path:"/"},o.defaults,s)).expires){var a,l=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*s.expires),s.expires=l}try{a=JSON.stringify(r),/^[\{\[]/.test(a)&&(r=a)}catch(t){}return r=n.write?n.write(r,e):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",r,s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}e||(a={});for(var c=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,d=0;d<c.length;d++){var p=c[d].split("="),h=p.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{var f=p[0].replace(u,decodeURIComponent);if(h=n.read?n.read(h,f):n(h,f)||h.replace(u,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(t){}if(e===f){a=h;break}e||(a[f]=h)}catch(t){}}return a}}return o.set=o,o.get=function(t){return o.call(o,t)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(e,n){o(e,"",t(n,{expires:-1}))},o.withConverter=e,o}(function(){})}),$(()=>{"use strict";let t=document.querySelectorAll("#shapePnl a"),e=({currentTarget:t})=>{let e=t.classList.item(0),n=t.parentElement.querySelectorAll(":scope > .selected");for(let t of n)t.classList.remove("selected");t.classList.add("selected");let o=document.querySelectorAll("#facePnl");for(let t of o)t.setAttribute("class",e);let r=document.querySelectorAll(`#infoPnl div.${e}`);for(let t of r)for(let e of t.parentElement.children)e.style.display=e===t?"block":"none"};for(let n of t)n.addEventListener("click",e);let n=document.querySelectorAll('#framePnl span[class*="frm"]'),o=({currentTarget:t})=>{let e=t.getAttribute("class"),n=document.querySelectorAll("#framePnl a.selected");for(let t of n)t.classList.remove("selected");t.parentElement.classList.add("selected");let o=document.querySelectorAll("#lrgFrame");for(let t of o)t.setAttribute("class",e)};for(let t of n)t.addEventListener("click",o);let r=1,s=document.querySelectorAll("ul#frameSets li").length,a=document.querySelectorAll("a.prvSet"),l=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(r>1){e.animate({left:"+=720px"},500),r-=1;return}e.animate({left:`-${(s-1)*720}px`},500),r=s};for(let t of a)t.addEventListener("click",l);let c=document.querySelectorAll("a.nxtSet"),u=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(r<s){e.animate({left:"-=720px"},500),r+=1;return}e.animate({left:"0px"},500),r=1};for(let t of c)t.addEventListener("click",u);let d=document.querySelectorAll("a.lnchFrmSlctr"),p=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"815",height:"508"})};for(let t of d)t.addEventListener("click",p);let h=document.querySelectorAll("button.lnch3dspine"),f=t=>{t.stopPropagation(),t.preventDefault(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"902",height:"833"})};for(let t of h)t.addEventListener("click",f);
13let v=document.querySelectorAll("button.lnchpetselector"),g=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"940",height:"750"})};for(let t of v)t.addEventListener("click",g)}),$(document).ready(function(){$(".preview_iframe").height($(window).height());var t=$("#navigation_header"),e=t.find(".navigation__list").find("ul");navigationSublevelWrap(e,"sublevel-"),t.mmenu({offCanvas:!1,extensions:["multiline","border-full","fullscreen"],slidingSubmenus:!1});var n=$("#hamburger"),o=$(".wrap__navigationHeader");n.on("click",function(t){t.preventDefault(),o.toggleClass("wrap__navigationHeader--active")}),$(document).on("click touchstart",function(t){var e=$(t.target);e.is(o)||e.closest(o).length||e.is(n)||e.closest(n).length||o.removeClass("wrap__navigationHeader--active")});var r=$(".wrap__slider");$(".slider__text").each(function(){$(this).children().length||r.addClass("empty-text")}),$(".image_fullscreen__container .image").each(function(){var t=$(this),e=t.find("img"),n=e.attr("src");t.length&&e.length&&n&&(t.css({backgroundImage:"url("+n+")",backgroundRepeat:"repeat"}),e.remove())}),ResponsiveHelper.addRange({"..1024":{on:function(){$(".sidebar-holder-top").moveElement({place:".container-holder .content-holder",move:"before"})},off:function(){$(".sidebar-holder-top").data("moveElement").destroy()}}})}),$(document).ready(function(){disableLinks(".wrap__page-content a, .wrap__editable-content a"),$(".form").length&&$("body").on("SMBLeadsFormReady",function(){void 0!==$("body").data("FixedScrollBlock")&&$("body").data("FixedScrollBlock").refresh()}),setTimeout(function(){$("body").removeClass("mm-slideout mm-page")},1e3),$("a.dd-lightbox").fancybox()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.