diff --git a/public/bundle.js b/public/bundle.js index e2a2a12..b938231 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -3,7 +3,7 @@ object-assign (c) Sindre Sorhus @license MIT */ -var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=r(e),u=1;u1){for(var h=Array(p),b=0;b1){for(var g=Array(v),y=0;y]/;e.exports=a},function(e,t,n){"use strict";var r,a=n(5),i=n(31),o=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,c=n(39),u=c(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(a.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=u},function(e,t){e.exports=function(e){"undefined"!=typeof execScript?execScript(e):eval.call(null,e)}},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function a(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=0;o-1||o("96",e),!u.plugins[n]){t.extractEvents||o("97",e),u.plugins[n]=t;var r=t.eventTypes;for(var i in r)a(r[i],t,i)||o("98",i,e)}}}function a(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&o("99",n),u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&o("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var o=n(2),s=(n(0),null),c={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&o("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];c.hasOwnProperty(n)&&c[n]===a||(c[n]&&o("102",n),c[n]=a,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var a=u.registrationNameModules[n[r]];if(a)return a}}return null},_resetEventPlugins:function(){s=null;for(var e in c)c.hasOwnProperty(e)&&delete c[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var a in r)r.hasOwnProperty(a)&&delete r[a]}};e.exports=u},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function a(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function o(e,t,n,r){var a=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(r),t?b.invokeGuardedCallbackWithCatch(a,n,e):b.invokeGuardedCallback(a,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var a=0;a0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var o=n(2),s=(n(10),n(21)),c=(n(7),n(8)),u=(n(0),n(1),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var a=i(e);if(!a)return null;a._pendingCallbacks?a._pendingCallbacks.push(t):a._pendingCallbacks=[t],r(a)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&o("122",t,a(e))}});e.exports=u},function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e};e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function a(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=a},function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=r},function(e,t,n){"use strict";/** +var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=r(e),u=1;u1){for(var h=Array(p),b=0;b1){for(var g=Array(v),y=0;y]/;e.exports=a},function(e,t,n){"use strict";var r,a=n(5),i=n(31),o=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,c=n(39),u=c(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(a.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=u},function(e,t){e.exports=function(e){"undefined"!=typeof execScript?execScript(e):eval.call(null,e)}},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function a(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=0;o-1||o("96",e),!u.plugins[n]){t.extractEvents||o("97",e),u.plugins[n]=t;var r=t.eventTypes;for(var i in r)a(r[i],t,i)||o("98",i,e)}}}function a(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&o("99",n),u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&o("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var o=n(2),s=(n(0),null),c={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&o("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];c.hasOwnProperty(n)&&c[n]===a||(c[n]&&o("102",n),c[n]=a,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var a=u.registrationNameModules[n[r]];if(a)return a}}return null},_resetEventPlugins:function(){s=null;for(var e in c)c.hasOwnProperty(e)&&delete c[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var a in r)r.hasOwnProperty(a)&&delete r[a]}};e.exports=u},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function a(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function o(e,t,n,r){var a=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(r),t?b.invokeGuardedCallbackWithCatch(a,n,e):b.invokeGuardedCallback(a,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var a=0;a0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var o=n(2),s=(n(10),n(21)),c=(n(7),n(8)),u=(n(0),n(1),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var a=i(e);if(!a)return null;a._pendingCallbacks?a._pendingCallbacks.push(t):a._pendingCallbacks=[t],r(a)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&o("122",t,a(e))}});e.exports=u},function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e};e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function a(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=a},function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=r},function(e,t,n){"use strict";/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, @@ -17,4 +17,4 @@ var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.pr * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ -function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&a&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var a,i=n(5);i.canUseDOM&&(a=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=null===e||!1===e,r=null===t||!1===t;if(n||r)return n===r;var a=typeof e,i=typeof t;return"string"===a||"number"===a?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=r},function(e,t,n){"use strict";var r=(n(3),n(6)),a=(n(1),r);e.exports=a},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=o,this.updater=n||i}var a=n(17),i=n(47),o=(n(77),n(18));n(0),n(1);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&a("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=r},function(e,t,n){"use strict";var r=(n(1),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,t){},enqueueSetState:function(e,t){}});e.exports=r},function(e,t,n){"use strict";e.exports=n(114)},function(e,t,n){"use strict";e.exports=n(15)},function(e,t,n){"use strict";var r=n(6),a={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=a},function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}e.exports=r},function(e,t,n){"use strict";function r(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){b&&p&&(b=!1,p.length?h=p.concat(h):v=-1,h.length&&s())}function s(){if(!b){var e=a(o);b=!0;for(var t=h.length;t;){for(p=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var o,s=v.createElement(F,{child:t});if(e){var c=T.get(e);o=c._processChildContext(c._context)}else o=A;var l=f(n);if(l){var d=l._currentElement,h=d.props.child;if(O(h,t)){var b=l._renderedComponent.getPublicInstance(),g=r&&function(){r.call(b)};return V._updateRootComponent(l,s,o,n,g),b}V.unmountComponentAtNode(n)}var y=a(n),m=y&&!!i(y),_=u(n),w=m&&!l&&!_,E=V._renderNewRootComponent(s,n,w,o)._renderedComponent.getPublicInstance();return r&&r.call(E),E},render:function(e,t,n){return V._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||p("40");var t=f(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(M);return!1}return delete R[t._instance.rootID],S.batchedUpdates(c,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,o){if(l(t)||p("41"),i){var s=a(t);if(E.canReuseMarkup(e,s))return void y.precacheNode(n,s);var c=s.getAttribute(E.CHECKSUM_ATTR_NAME);s.removeAttribute(E.CHECKSUM_ATTR_NAME);var u=s.outerHTML;s.setAttribute(E.CHECKSUM_ATTR_NAME,c);var d=e,f=r(d,u),b=" (client) "+d.substring(f-20,f+20)+"\n (server) "+u.substring(f-20,f+20);t.nodeType===N&&p("42",b)}if(t.nodeType===N&&p("43"),o.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else x(t,e),y.precacheNode(n,t.firstChild)}};e.exports=V},function(e,t,n){"use strict";var r=n(2),a=n(15),i=(n(0),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||!1===e?i.EMPTY:a.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void r("26",e)}});e.exports=i},function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};e.exports=r},function(e,t,n){"use strict";function r(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var a=n(2);n(0);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===a.COMPOSITE;)e=e._renderedComponent;return t===a.HOST?e._renderedComponent:t===a.EMPTY?null:void 0}var a=n(64);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&a.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var a=n(5),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function a(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||!1===e)n=u.create(i);else if("object"==typeof e){var s=e,c=s.type;if("function"!=typeof c&&"string"!=typeof c){var f="";f+=r(s._owner),o("130",null==c?c:typeof c,f)}"string"==typeof s.type?n=l.createInternalComponent(s):a(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(s)}else"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):o("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var o=n(2),s=n(3),c=n(113),u=n(59),l=n(61),d=(n(160),n(0),n(1),function(e){this.construct(e)});s(d.prototype,c,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!a[e.type]:"textarea"===t}var a={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=r},function(e,t,n){"use strict";var r=n(5),a=n(26),i=n(27),o=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(o=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,a(t))})),e.exports=o},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function a(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;var p,h,b=0,v=""===t?l:t+d;if(Array.isArray(e))for(var g=0;g25&&t.length>6)return{sources:[{src:-1!==window.location.href.indexOf("telegraph.co.uk")?e.fields.video_url[0]:e.fields.videos_hd_uri[0],type:"video/mp4"}],poster:-1!==window.location.href.indexOf("telegraph.co.uk")?e.fields.thumbnail_url[0]:e.fields.thumbnails_large_src[0],title:-1!==window.location.href.indexOf("telegraph.co.uk")?e.fields.extra_one[0]:e.fields.title[0]}}),0!==t.filter(Boolean).length?(console.log("videos arr [actual] ",t),this.setState({videos:t,videoss:"semanticsearch"})):(console.log("none of the videos matched enough keywords or have big enough score"),t=this.state.spectator,-1!==window.location.href.indexOf("localhost")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("telegraph")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("telegraph.co.uk")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("londontheinside.com")&&(t=this.state.londontheinside),-1!==window.location.href.indexOf("beautyandthedirt.com")&&(t=this.state.londontheinside),-1!==window.location.href.indexOf("bristol-sport.co.uk")&&(t=this.state.bristolsport),-1!==window.location.href.indexOf("proactiveinvestors.co.uk")&&(t=this.state.itn),console.log("videos arr [default] ",t),this.setState({videos:t,videoss:"defaultplaylist"}))):(t=this.state.spectator,-1!==window.location.href.indexOf("localhost")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("telegraph")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("telegraph.co.uk")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("londontheinside.com")&&(t=this.state.londontheinside),-1!==window.location.href.indexOf("beautyandthedirt.com")&&(t=this.state.londontheinside),-1!==window.location.href.indexOf("bristol-sport.co.uk")&&(t=this.state.bristolsport),-1!==window.location.href.indexOf("proactiveinvestors.co.uk")&&(t=this.state.itn),console.log("videos arr [default] ",t),this.setState({videos:t,videoss:"defaultplaylist"}))}},{key:"plugins",value:function(){var e=this;videojs.plugin("adform",function(t){var n=videojs(document.getElementsByClassName("video-js")[0]),r="https://ad.360yield.com/advast?p=1023878&w=16&h=9";-1!==window.location.href.indexOf("cityam.com")&&(r="https://ad.360yield.com/advast?p=1023878&w=16&h=9"),-1!==window.location.href.indexOf("spectator.co.uk")&&(r="https://ad.360yield.com/advast?p=1021575&w=4&h=3"),-1!==window.location.href.indexOf("prospectmagazine.co.uk")&&(r="https://ad.360yield.com/advast?p=1021574&w=4&h=3"),-1!==window.location.href.indexOf("londontheinside.com")&&(r="https://ad.360yield.com/advast?p=1023718&w=4&h=3"),-1!==window.location.href.indexOf("bristol-sport.co.uk")&&(r="https://ad.360yield.com/advast?p=1024744&w=16&h=9"),-1!==window.location.href.indexOf("beautyandthedirt.com")&&(r="https://ad.360yield.com/advast?p=1026408&w=4&h=3"),-1!==window.location.href.indexOf("proactiveinvestors.co.uk")&&(r="https://ad.360yield.com/advast?p=1026983&w=4&h=3"),-1!==window.location.href.indexOf("advfn.com")&&(r="https://ad.360yield.com/advast?p=1021571&w=4&h=3"),-1!==window.location.href.indexOf("hospitalitytrends.net")&&(r="https://ad.360yield.com/advast?p=1028636&w=4&h=3"),-1!==window.location.href.indexOf("telegraph.co.uk")&&(r=tmgAdsBuildAd?tmgAdsBuildAd("advert_body_vid","","","").fetchUrl():"https://pubads.g.doubleclick.net/gampad/ads?slotname=/6582/tmg.telegraph.culture/culture.gaming.whattoplay&sz=620x415&ciu_szs&cust_params=&ver=4.4.3a&sc=culture-gaming-whattoplay&pt=video&lvl=3&biw=2076&bih=1191&fv=24&protocol=http&rd=www.telegraph.co.uk&cms=aem&kw=guide,playstation,culture,wii%20u,technology,game%20(meat),gaming,pc%20gaming,playstation,xbox%20one,xbox&make=null&model=null&geo=gb&ec=null&mv=null&ms=null&vidsrc=null&pg=AlbSDjqVDL5g&gamp=0&refresh=0&premc=false&premo=false&docdom=www.telegraph.co.uk&gs=ent_gaming,tch_technology,biz_personal_finance&platform=desktop&vp=x&tmgmvc=none&tmgmu=none&tmgsub=none&tmgpid=none&amcv=29231524500639905221307882809031236213&audsci=&kxuid=rgnpdrt0m&kxsid=oy72kt68d,ri7k794nl&test=null&refurl=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&dnt=[object%20Object]&admodel=mpu-680-15000-0&sticky=1&vid=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&vidslot=tmgads_body_vid_7&at=vid&pos=7&adcount=1&url=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&unviewed_position_start=1&output=xml_vast3&env=vp&gdfp_req=1&ad_rule=0&video_url_to_fetch=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&vad_type=linear&vpos=preroll&pod=1&min_ad_duration=0&max_ad_duration=90000&ppos=1&lip=true&adk=391550375&correlator=727700615628041&scor=3563976934677979&ged=ve4_td16_tt6_pd16_la16000_er0.0.0.0_vi0.0.1191.2061_vp0_ts1_eb16491&scp&osd=2&hl=en&frm=0&video_doc_id=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&cmsid=5694&sdkv=h.3.158.1&sdki=3c0d&mpt=Ooyala&mpv=1.0&sdr=1&kfa=0&tfcd=0"),-1!==window.location.href.indexOf("telegraph")&&(r=tmgAdsBuildAd?tmgAdsBuildAd("advert_body_vid","","","").fetchUrl():"https://pubads.g.doubleclick.net/gampad/ads?slotname=/6582/tmg.telegraph.culture/culture.gaming.whattoplay&sz=620x415&ciu_szs&cust_params=&ver=4.4.3a&sc=culture-gaming-whattoplay&pt=video&lvl=3&biw=2076&bih=1191&fv=24&protocol=http&rd=www.telegraph.co.uk&cms=aem&kw=guide,playstation,culture,wii%20u,technology,game%20(meat),gaming,pc%20gaming,playstation,xbox%20one,xbox&make=null&model=null&geo=gb&ec=null&mv=null&ms=null&vidsrc=null&pg=AlbSDjqVDL5g&gamp=0&refresh=0&premc=false&premo=false&docdom=www.telegraph.co.uk&gs=ent_gaming,tch_technology,biz_personal_finance&platform=desktop&vp=x&tmgmvc=none&tmgmu=none&tmgsub=none&tmgpid=none&amcv=29231524500639905221307882809031236213&audsci=&kxuid=rgnpdrt0m&kxsid=oy72kt68d,ri7k794nl&test=null&refurl=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&dnt=[object%20Object]&admodel=mpu-680-15000-0&sticky=1&vid=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&vidslot=tmgads_body_vid_7&at=vid&pos=7&adcount=1&url=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&unviewed_position_start=1&output=xml_vast3&env=vp&gdfp_req=1&ad_rule=0&video_url_to_fetch=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&vad_type=linear&vpos=preroll&pod=1&min_ad_duration=0&max_ad_duration=90000&ppos=1&lip=true&adk=391550375&correlator=727700615628041&scor=3563976934677979&ged=ve4_td16_tt6_pd16_la16000_er0.0.0.0_vi0.0.1191.2061_vp0_ts1_eb16491&scp&osd=2&hl=en&frm=0&video_doc_id=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&cmsid=5694&sdkv=h.3.158.1&sdki=3c0d&mpt=Ooyala&mpv=1.0&sdr=1&kfa=0&tfcd=0"),-1!==window.location.href.indexOf("localhost")&&(r=tmgAdsBuildAd?tmgAdsBuildAd("advert_body_vid","","","").fetchUrl():"https://pubads.g.doubleclick.net/gampad/ads?slotname=/6582/tmg.telegraph.culture/culture.gaming.whattoplay&sz=620x415&ciu_szs&cust_params=&ver=4.4.3a&sc=culture-gaming-whattoplay&pt=video&lvl=3&biw=2076&bih=1191&fv=24&protocol=http&rd=www.telegraph.co.uk&cms=aem&kw=guide,playstation,culture,wii%20u,technology,game%20(meat),gaming,pc%20gaming,playstation,xbox%20one,xbox&make=null&model=null&geo=gb&ec=null&mv=null&ms=null&vidsrc=null&pg=AlbSDjqVDL5g&gamp=0&refresh=0&premc=false&premo=false&docdom=www.telegraph.co.uk&gs=ent_gaming,tch_technology,biz_personal_finance&platform=desktop&vp=x&tmgmvc=none&tmgmu=none&tmgsub=none&tmgpid=none&amcv=29231524500639905221307882809031236213&audsci=&kxuid=rgnpdrt0m&kxsid=oy72kt68d,ri7k794nl&test=null&refurl=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&dnt=[object%20Object]&admodel=mpu-680-15000-0&sticky=1&vid=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&vidslot=tmgads_body_vid_7&at=vid&pos=7&adcount=1&url=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&unviewed_position_start=1&output=xml_vast3&env=vp&gdfp_req=1&ad_rule=0&video_url_to_fetch=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&vad_type=linear&vpos=preroll&pod=1&min_ad_duration=0&max_ad_duration=90000&ppos=1&lip=true&adk=391550375&correlator=727700615628041&scor=3563976934677979&ged=ve4_td16_tt6_pd16_la16000_er0.0.0.0_vi0.0.1191.2061_vp0_ts1_eb16491&scp&osd=2&hl=en&frm=0&video_doc_id=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&cmsid=5694&sdkv=h.3.158.1&sdki=3c0d&mpt=Ooyala&mpv=1.0&sdr=1&kfa=0&tfcd=0");console.log("adTag ",r),e.setState({adTag:r});n.vastClient({adTagUrl:r,playAdAlways:!0,adCancelTimeout:2e4,adsEnabled:!0,vpaidFlashLoaderPath:"https://cdnjs.cloudflare.com/ajax/libs/videojs-vast-vpaid/2.0.2/VPAIDFlash.swf",verbosity:0});n.on("vast.adStart",function(t){e.setState({adStart:e.state.adStart?e.state.adStart+",adStart":"adStart",adError:"N/A",adSrc:0!==n.vast.vastResponse.mediaFiles.length?n.vast.vastResponse.mediaFiles[0].src:"N/A"}),document.querySelectorAll(".delta-overlay").forEach(function(e){e.style.display="none"})}),n.on("vast.adError",function(t){e.setState({adStart:"N/A",adSrc:"N/A",adError:t.error.message})}),n.on("vast.contentStart",function(t){fetch("https://content.sugges.tv",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({adstart:e.state.adStart,aderror:e.state.adError,adsrc:e.state.adSrc,adtag:e.state.adTag,scripttag:"https://delta.sugges.tv/tags/bundle-telegraph.js",player:"delta",player_settings:-1!==window.location.href.indexOf("cityam.com")||-1!==window.location.href.indexOf("telegraph.co.uk")||-1!==window.location.href.indexOf("beautyandthedirt.com")?"muted,click-to-play":"muted,autoplay-in-view",player_type:"article",keywords:e.state.query,videoss:e.state.videoss,player_height:Math.ceil(n.el_.clientHeight),player_width:Math.ceil(n.el_.clientWidth),player_duration:Math.ceil(n.duration()),player_src:n.currentSrc(),player_poster:n.poster(),title:n.playlist()[n.playlist.currentItem()].title,website_url:window.location.href,website_domain:window.location.hostname,useragent:navigator.userAgent,browser_language:navigator.language,browser_languages:navigator.languages.join(","),platform:navigator.platform})}).then(function(e){return e.json()}).then(function(e){console.log("contentStart DATA back",e)})}),n.on("vast.adEnd",function(t){e.setState({adStart:e.state.adStart+",adEnd"})}),n.on("vast.adSkip",function(t){e.setState({adStart:e.state.adStart+",adSkip"})}),n.on("vpaid.AdLoaded",function(t){e.setState({adStart:e.state.adStart+",AdLoaded"})}),n.on("vpaid.AdStarted",function(t){e.setState({adStart:e.state.adStart?e.state.adStart+",AdStarted":"AdStarted"})}),n.on("vpaid.AdStopped",function(t){e.setState({adStart:e.state.adStart+",AdStopped"})}),n.on("vpaid.AdSkipped",function(t){e.setState({adStart:e.state.adStart+",AdSkipped"})}),n.on("vpaid.AdSkippableStateChange",function(t){e.setState({adStart:e.state.adStart+",AdSkippableStateChange"})}),n.on("vpaid.AdSizeChange",function(t){e.setState({adStart:e.state.adStart+",AdSizeChange"})}),n.on("vpaid.AdLinearChange",function(t){e.setState({adStart:e.state.adStart+",AdLinearChange"})}),n.on("vpaid.AdDurationChange",function(t){e.setState({adStart:e.state.adStart+",AdDurationChange"})}),n.on("vpaid.AdExpandedChange",function(t){e.setState({adStart:e.state.adStart+",AdExpandedChange"})}),n.on("vpaid.AdVolumeChange",function(t){e.setState({adStart:e.state.adStart+",AdVolumeChange"})}),n.on("vpaid.AdImpression",function(t){e.setState({adStart:e.state.adStart?e.state.adStart+",AdImpression":"AdImpression"})}),n.on("vpaid.AdVideoStart",function(t){e.setState({adStart:e.state.adStart+",AdVideoStart"})}),n.on("vpaid.AdVideoFirstQuartile",function(t){e.setState({adStart:e.state.adStart+",AdVideoFirstQuartile"})}),n.on("vpaid.AdVideoMidpoint",function(t){e.setState({adStart:e.state.adStart+",AdVideoMidpoint"})}),n.on("vpaid.AdVideoThirdQuartile",function(t){e.setState({adStart:e.state.adStart+",AdVideoThirdQuartile"})}),n.on("vpaid.AdVideoComplete",function(t){e.setState({adStart:e.state.adStart+",AdVideoComplete"})}),n.on("vpaid.AdClickThru",function(t){e.setState({adStart:e.state.adStart+",AdClickThru"})}),n.on("vpaid.AdInteraction",function(t){e.setState({adStart:e.state.adStart+",AdInteraction"})}),n.on("vpaid.AdUserAcceptInvitation",function(t){e.setState({adStart:e.state.adStart+",AdUserAcceptInvitation"})}),n.on("vpaid.AdUserMinimize",function(t){e.setState({adStart:e.state.adStart+",AdUserMinimize"})}),n.on("vpaid.AdUserClose",function(t){e.setState({adStart:e.state.adStart+",AdUserClose"})}),n.on("vpaid.AdPaused",function(t){e.setState({adStart:e.state.adStart+",AdPaused"}),document.querySelectorAll(".delta-overlay").forEach(function(e){e.style.display="none"})}),n.on("vpaid.AdPlaying",function(t){e.setState({adStart:e.state.adStart+",AdPlaying"})}),n.on("vpaid.AdLog",function(t){e.setState({adStart:e.state.adStart+",AdLog"})}),n.on("vpaid.AdError",function(t){e.setState({adStart:e.state.adStart+",AdError"})}),n.on("vast.impression",function(t){e.setState({adStart:e.state.adStart+",impression"}),n.vast.vastResponse.trackingEvents.impression&&fetch(n.vast.vastResponse.trackingEvents.impression[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.impression ",e)})}),n.on("vast.creativeView",function(t){e.setState({adStart:e.state.adStart+",creativeView"}),n.vast.vastResponse.trackingEvents.creativeView&&fetch(n.vast.vastResponse.trackingEvents.creativeView[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.creativeView ",e)})}),n.on("vast.start",function(t){e.setState({adStart:"start"}),n.vast.vastResponse.trackingEvents.start&&fetch(n.vast.vastResponse.trackingEvents.start[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.start ",e)})}),n.on("vast.firstQuartile",function(t){e.setState({adStart:e.state.adStart+",firstQuartile"}),n.vast.vastResponse.trackingEvents.firstQuartile&&fetch(n.vast.vastResponse.trackingEvents.firstQuartile[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.firstQuartile ",e)})}),n.on("vast.midpoint",function(t){e.setState({adStart:e.state.adStart+",midpoint"}),n.vast.vastResponse.trackingEvents.midpoint&&fetch(n.vast.vastResponse.trackingEvents.midpoint[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.midpoint ",e)})}),n.on("vast.thirdQuartile",function(t){e.setState({adStart:e.state.adStart+",thirdQuartile"}),n.vast.vastResponse.trackingEvents.thirdQuartile&&fetch(n.vast.vastResponse.trackingEvents.thirdQuartile[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.thirdQuartile ",e)})}),n.on("vast.complete",function(t){e.setState({adStart:e.state.adStart+",complete"}),n.vast.vastResponse.trackingEvents.complete&&fetch(n.vast.vastResponse.trackingEvents.complete[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.complete ",e)})}),n.on("vast.pause",function(t){e.setState({adStart:e.state.adStart+",pause"}),n.vast.vastResponse.trackingEvents.pause&&fetch(n.vast.vastResponse.trackingEvents.pause[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.pause ",e)})}),n.on("vast.resume",function(t){e.setState({adStart:e.state.adStart+",resume"}),n.vast.vastResponse.trackingEvents.resume&&fetch(n.vast.vastResponse.trackingEvents.resume[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.resume ",e)})}),n.on("vast.fullscreen",function(t){e.setState({adStart:e.state.adStart+",fullscreen"}),n.vast.vastResponse.trackingEvents.fullscreen&&fetch(n.vast.vastResponse.trackingEvents.fullscreen[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.fullscreen ",e)})}),n.on("vast.exitFullscreen",function(t){e.setState({adStart:e.state.adStart+",exitFullscreen"}),n.vast.vastResponse.trackingEvents.exitFullscreen&&fetch(n.vast.vastResponse.trackingEvents.exitFullscreen[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.exitFullscreen ",e)})}),n.on("vast.mute",function(t){e.setState({adStart:e.state.adStart+",mute"}),n.vast.vastResponse.trackingEvents.mute&&fetch(n.vast.vastResponse.trackingEvents.mute[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.mute ",e)})}),n.on("vast.unmute",function(t){e.setState({adStart:e.state.adStart+",unmute"}),n.vast.vastResponse.trackingEvents.unmute&&fetch(n.vast.vastResponse.trackingEvents.unmute[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.unmute ",e)})}),n.on("vast.adclick",function(t){e.setState({adStart:e.state.adStart+",adclick"}),n.vast.vastResponse.trackingEvents.adclick&&fetch(n.vast.vastResponse.trackingEvents.adclick[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("vast.adclick ",e)})}),n.on("vast.contentEnd",function(e){videojs(document.getElementsByClassName("video-js")[0]).playlist.next()})}),videojs(document.getElementsByClassName("video-js")[0]).adform({})}},{key:"playlist",value:function(e){videojs(document.getElementsByClassName("video-js")[0]).playlist(e),videojs(document.getElementsByClassName("video-js")[0]).playlist.autoadvance(0)}},{key:"overlay",value:function(e){videojs(document.getElementsByClassName("video-js")[0]).overlay({content:"Video has been paused",debug:!1,overlays:[{content:"

"+e.substr(0,60)+"...

",showBackground:!1,class:"delta-overlay",start:"loadstart",end:"playing"},{content:"

"+e.substr(0,60)+"...

",showBackground:!1,class:"delta-overlay",start:"pause",end:"playing"}]})}},{key:"videojs",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){var t=this;videojs(document.getElementsByClassName("video-js")[0],{controls:!0,autoplay:!1,preload:"metadata",loop:!1,muted:!0,width:640,height:264,playbackRates:[1,1.5,2,3]},function(){t.setState({videoLoaded:!0}),t.playlist(t.state.videos),t.plugins();var e=videojs(document.getElementsByClassName("video-js")[0]),n=e.playlist()[e.playlist.currentItem()<0?0:e.playlist.currentItem()].title;t.overlay(n)}),videojs(document.getElementsByClassName("video-js")[0]).on("loadstart",function(){console.log("video.js loadstart event!");var e=videojs(document.getElementsByClassName("video-js")[0]),n=e.playlist()[e.playlist.currentItem()<0?0:e.playlist.currentItem()].title;t.overlay(n)})})},{key:"componentDidMount",value:function(){var e=this;this.getVideos(window.location.href).then(function(t){e.setVideos(t),console.log("DATA ",t);var n=[].slice.call(document.body.querySelectorAll("p, span")).filter(function(e){return e.textContent}),r=document.body.querySelectorAll("#suggestvdeltaplayer"),a=document.querySelectorAll("#deltaplayercontainer")[0],i=void 0,o=void 0;t.text&&(i=n.filter(function(e){return-1!==e.textContent.indexOf(t.text.substr(t.text.length/2,20))})[0]),t.description&&(o=n.filter(function(e){return-1!==e.textContent.indexOf(t.description.substr(t.description.length/2,20))})[0]),console.log("lastPText ",i),console.log("lastPDesc ",o),console.log("#suggestvdeltaplayer ",r[0]),0===r.length?i?i.parentNode.appendChild(a):o?o.parentNode.appendChild(a):e.noTextOrDescription():r[0].appendChild(a),(i||o||0!==r.length)&&e.videojs(e.state.videos)}).catch(function(e){console.log("Promise Error: ",e),videojs(document.getElementsByClassName("video-js")[0]).dispose()}),window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("touchmove",this.handleScroll.bind(this))}},{key:"noTextOrDescription",value:function(){console.log("there is no text or description"),videojs(document.getElementsByClassName("video-js")[0]).dispose()}},{key:"isInViewport",value:function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||n.clientHeight)&&t.right<=(window.innerWidth||n.clientWidth)}},{key:"renderECP",value:function(){return s.a.createElement("div",null,s.a.createElement("video",{playsInline:!0,id:"deltaplayer",className:"video-js vjs-default-skin vjs-fluid vjs-big-play-centered"}))}},{key:"render",value:function(){return s.a.createElement("div",null,this.renderECP())}}]),t}(s.a.Component);t.a=f},function(e,t,n){n(28)(n(97))},function(e,t,n){n(28)(n(98))},function(e,t,n){n(28)(n(99))},function(e,t,n){n(28)(n(100))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),a=n.n(r),i=n(48),o=n.n(i),s=n(79),c=document.createElement("div");c.id="deltaplayercontainer",document.body.appendChild(c),n(82),n(81),n(83),n(80),["https://vjs.zencdn.net/5.14.1/video-js.min.css","https://delta.sugges.tv/videojs-overlay.css","https://cdnjs.cloudflare.com/ajax/libs/videojs-vast-vpaid/2.0.2/videojs.vast.vpaid.min.css"].forEach(function(e){var t=document.createElement("link");t.href=e,t.rel="stylesheet",document.head.appendChild(t)}),console.log("running"),o.a.render(a.a.createElement(s.a,null),document.getElementById("deltaplayercontainer"))},function(e,t,n){"use strict";function r(e){return e.replace(a,function(e,t){return t.toUpperCase()})}var a=/-(.)/g;e.exports=r},function(e,t,n){"use strict";function r(e){return a(e.replace(i,"ms-"))}var a=n(85),i=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!a(e)&&(a(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var a=n(95);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&o(!1),"number"!=typeof t&&o(!1),0===t||t-1 in e||o(!1),"function"==typeof e.callee&&o(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r":"<"+e+">",s[e]=!o.firstChild),s[e]?f[e]:null}var a=n(5),i=n(0),o=a.canUseDOM?document.createElement("div"):null,s={},c=[1,'"],u=[1,"","
"],l=[3,"","
"],d=[1,'',""],f={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:c,option:c,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){f[e]=d,s[e]=!0}),e.exports=r},function(e,t,n){"use strict";function r(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=r},function(e,t,n){"use strict";function r(e){return e.replace(a,"-$1").toLowerCase()}var a=/([A-Z])/g;e.exports=r},function(e,t,n){"use strict";function r(e){return a(e).replace(i,"-ms-")}var a=n(92),i=/^ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){return a(e)&&3==e.nodeType}var a=n(94);e.exports=r},function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=r},function(e,t){e.exports='/*** IMPORTS FROM imports-loader ***/\nvar define = false;\n\n/**\n * videojs-overlay\n * @version 1.1.1\n * @copyright 2016 Brightcove, Inc.\n * @license Apache-2.0\n */\n!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.videojsOverlay=e()}}(function(){return function e(t,n,o){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(r)return r(s,!0);var d=new Error("Cannot find module \'"+s+"\'");throw d.code="MODULE_NOT_FOUND",d}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n?n:e)},l,l.exports,e,t,n,o)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s=n:n===t}},{key:"show",value:function(){return d(Object.getPrototypeOf(t.prototype),"show",this).call(this),this.off(this.player(),this.startEvent_,this.startListener_),this.debug("shown"),this.debug(\'unbound `startListener_` from "\'+this.startEvent_+\'"\'),this.endEvent_&&(this.debug(\'bound `endListener_` to "\'+this.endEvent_+\'"\'),this.on(this.player(),this.endEvent_,this.endListener_)),this}},{key:"shouldShow_",value:function(e,t){var n=this.options_.start,o=this.options_.end;return m(n)?m(o)?e>=n&&e=n):n===t}},{key:"startListener_",value:function(e){var t=this.player().currentTime();this.shouldShow_(t,e.type)&&this.show()}},{key:"endListener_",value:function(e){var t=this.player().currentTime();this.shouldHide_(t,e.type)&&this.hide()}},{key:"rewindListener_",value:function(e){var t=this.player().currentTime(),n=this.previousTime_,o=this.options_.start,i=this.options_.end;t=0&&1/0>e},a=function(e){e.playlist.autoadvance_.timeout&&u["default"].clearTimeout(e.playlist.autoadvance_.timeout),e.playlist.autoadvance_.trigger&&e.off("ended",e.playlist.autoadvance_.trigger),e.playlist.autoadvance_.timeout=null,e.playlist.autoadvance_.trigger=null},f=function(e,t){a(e),i(t)&&(e.playlist.autoadvance_.trigger=function(){e.playlist.autoadvance_.timeout=u["default"].setTimeout(function(){a(e),e.playlist.next()},1e3*t)},e.one("ended",e.playlist.autoadvance_.trigger))};n.reset=a,n.setup=f},{"global/window":4}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./auto-advance.js"),o=function(e){for(var t=e.remoteTextTracks(),n=t&&t.length||0;n--;)e.removeRemoteTextTrack(t[n])},u=function(e,t,n){var u=!e.paused()||e.ended();return e.trigger("beforeplaylistitem",n),e.poster(n.poster||""),e.src(n.sources),o(e),(n.textTracks||[]).forEach(e.addRemoteTextTrack.bind(e)),e.trigger("playlistitem",n),u&&e.play(),(0,r.setup)(e,t),e};n["default"]=u,n.clearTracks=o},{"./auto-advance.js":1}],3:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var u=e("global/window"),i=o(u),a=e("./play-item"),f=o(a),l=e("./auto-advance"),d=r(l),c=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},s=function(e,t){var n=e,r=t;return"object"==typeof e&&(n=e.src),"object"==typeof t&&(r=t.src),/^\\/\\//.test(n)&&(r=r.slice(r.indexOf("//"))),/^\\/\\//.test(r)&&(n=n.slice(n.indexOf("//"))),n===r},p=function(e,t){for(var n=0;n=0&&e0&&void 0!==arguments[0]?arguments[0]:"button",b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};b=(0,n.assign)({className:this.buildCSSClass()},b),"button"!==a&&(m["default"].warn("Creating a Button with an HTML element of "+a+" is deprecated; use ClickableComponent instead."),b=(0,n.assign)({tabIndex:0},b),c=(0,n.assign)({role:"button"},c)),c=(0,n.assign)({type:"button","aria-live":"polite"},c);var d=k["default"].prototype.createEl.call(this,a,b,c);return this.createControlTextEl(d),d},b.prototype.addChild=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=this.constructor.name;return m["default"].warn("Adding an actionable (user controllable) child to a Button ("+c+") is not supported; use a ClickableComponent instead."),k["default"].prototype.addChild.call(this,a,b)},b.prototype.enable=function(){a.prototype.enable.call(this),this.el_.removeAttribute("disabled")},b.prototype.disable=function(){a.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},b.prototype.handleKeyPress=function(b){32!==b.which&&13!==b.which&&a.prototype.handleKeyPress.call(this,b)},b}(i["default"]);k["default"].registerComponent("Button",o),c["default"]=o},{3:3,5:5,86:86,88:88}],3:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=a(82),n=d(m),o=a(83),p=d(o),q=a(86),r=e(q),s=a(94),t=e(s),u=a(88),v=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.emitTapEvents(),e.enable(),e}return h(b,a),b.prototype.createEl=function(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c=(0,u.assign)({className:this.buildCSSClass(),tabIndex:0},c),"button"===b&&r["default"].error("Creating a ClickableComponent with an HTML element of "+b+" is not supported; use a Button instead."),d=(0,u.assign)({role:"button","aria-live":"polite"},d),this.tabIndex_=c.tabIndex;var e=a.prototype.createEl.call(this,b,c,d);return this.createControlTextEl(e),e},b.prototype.createControlTextEl=function(a){return this.controlTextEl_=l.createEl("span",{className:"vjs-control-text"}),a&&a.appendChild(this.controlTextEl_),this.controlText(this.controlText_,a),this.controlTextEl_},b.prototype.controlText=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(!a)return this.controlText_||"Need Text";var c=this.localize(a);return this.controlText_=a,this.controlTextEl_.innerHTML=c,b.setAttribute("title",c),this},b.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+a.prototype.buildCSSClass.call(this)},b.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!=typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},b.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!=typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("tap",this.handleClick),this.off("click",this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},b.prototype.handleClick=function(a){},b.prototype.handleFocus=function(a){n.on(t["default"],"keydown",p.bind(this,this.handleKeyPress))},b.prototype.handleKeyPress=function(b){32===b.which||13===b.which?(b.preventDefault(),this.handleClick(b)):a.prototype.handleKeyPress&&a.prototype.handleKeyPress.call(this,b)},b.prototype.handleBlur=function(a){n.off(t["default"],"keydown",p.bind(this,this.handleKeyPress))},b}(j["default"]);j["default"].registerComponent("ClickableComponent",v),c["default"]=v},{5:5,81:81,82:82,83:83,86:86,88:88,94:94}],4:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(2),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.controlText(d&&d.controlText||g.localize("Close")),g}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-close-button "+a.prototype.buildCSSClass.call(this)},b.prototype.handleClick=function(a){this.trigger({type:"close",bubbles:!1})},b}(i["default"]);k["default"].registerComponent("CloseButton",l),c["default"]=l},{2:2,5:5}],5:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var g=a(95),h=e(g),i=a(81),j=d(i),k=a(83),l=d(k),m=a(85),n=d(m),o=a(82),p=d(o),q=a(86),r=e(q),s=a(91),t=e(s),u=a(87),v=e(u),w=function(){function a(b,c,d){if(f(this,a),!b&&this.play?this.player_=b=this:this.player_=b,this.options_=(0,v["default"])({},this.options_),c=this.options_=(0,v["default"])(this.options_,c),this.id_=c.id||c.el&&c.el.id,!this.id_){var e=b&&b.id&&b.id()||"no_player";this.id_=e+"_component_"+n.newGUID()}this.name_=c.name||null,c.el?this.el_=c.el:c.createEl!==!1&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},c.initChildren!==!1&&this.initChildren(),this.ready(d),c.reportTouchActivity!==!1&&this.enableTouchActivity()}return a.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var a=this.children_.length-1;a>=0;a--)this.children_[a].dispose&&this.children_[a].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),j.removeElData(this.el_),this.el_=null},a.prototype.player=function(){return this.player_},a.prototype.options=function(a){return r["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),a?(this.options_=(0,v["default"])(this.options_,a),this.options_):this.options_},a.prototype.el=function(){return this.el_},a.prototype.createEl=function(a,b,c){return j.createEl(a,b,c)},a.prototype.localize=function(a){var b=this.player_.language&&this.player_.language(),c=this.player_.languages&&this.player_.languages();if(!b||!c)return a;var d=c[b];if(d&&d[a])return d[a];var e=b.split("-")[0],f=c[e];return f&&f[a]?f[a]:a},a.prototype.contentEl=function(){return this.contentEl_||this.el_},a.prototype.id=function(){return this.id_},a.prototype.name=function(){return this.name_},a.prototype.children=function(){return this.children_},a.prototype.getChildById=function(a){return this.childIndex_[a]},a.prototype.getChild=function(a){if(a)return a=(0,t["default"])(a),this.childNameIndex_[a]},a.prototype.addChild=function(b){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,e=void 0,f=void 0;if("string"==typeof b){f=(0,t["default"])(b),c||(c={}),c===!0&&(r["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`."),c={});var g=c.componentClass||f;c.name=f;var h=a.getComponent(g);if(!h)throw new Error("Component "+g+" does not exist");if("function"!=typeof h)return null;e=new h(this.player_||this,c)}else e=b;if(this.children_.splice(d,0,e),"function"==typeof e.id&&(this.childIndex_[e.id()]=e),f=f||e.name&&e.name(),f&&(this.childNameIndex_[f]=e),"function"==typeof e.el&&e.el()){var i=this.contentEl().children,j=i[d]||null;this.contentEl().insertBefore(e.el(),j)}return e},a.prototype.removeChild=function(a){if("string"==typeof a&&(a=this.getChild(a)),a&&this.children_){for(var b=!1,c=this.children_.length-1;c>=0;c--)if(this.children_[c]===a){b=!0,this.children_.splice(c,1);break}if(b){this.childIndex_[a.id()]=null,this.childNameIndex_[a.name()]=null;var d=a.el();d&&d.parentNode===this.contentEl()&&this.contentEl().removeChild(a.el())}}},a.prototype.initChildren=function(){var b=this,c=this.options_.children;c&&!function(){var d=b.options_,e=function(a){var c=a.name,e=a.opts;if(void 0!==d[c]&&(e=d[c]),e!==!1){e===!0&&(e={}),e.playerOptions=b.options_.playerOptions;var f=b.addChild(c,e);f&&(b[c]=f)}},f=void 0,g=a.getComponent("Tech");f=Array.isArray(c)?c:Object.keys(c),f.concat(Object.keys(b.options_).filter(function(a){return!f.some(function(b){return"string"==typeof b?a===b:a===b.name})})).map(function(a){var d=void 0,e=void 0;return"string"==typeof a?(d=a,e=c[d]||b.options_[d]||{}):(d=a.name,e=a),{name:d,opts:e}}).filter(function(b){var c=a.getComponent(b.opts.componentClass||(0,t["default"])(b.name));return c&&!g.isTech(c)}).forEach(e)}()},a.prototype.buildCSSClass=function(){return""},a.prototype.on=function(a,b,c){var d=this;return"string"==typeof a||Array.isArray(a)?p.on(this.el_,a,l.bind(this,b)):!function(){var e=a,f=b,g=l.bind(d,c),h=function(){return d.off(e,f,g)};h.guid=g.guid,d.on("dispose",h);var i=function(){return d.off("dispose",h)};i.guid=g.guid,a.nodeName?(p.on(e,f,g),p.on(e,"dispose",i)):"function"==typeof a.on&&(e.on(f,g),e.on("dispose",i))}(),this},a.prototype.off=function(a,b,c){if(!a||"string"==typeof a||Array.isArray(a))p.off(this.el_,a,b);else{var d=a,e=b,f=l.bind(this,c);this.off("dispose",f),a.nodeName?(p.off(d,e,f),p.off(d,"dispose",f)):(d.off(e,f),d.off("dispose",f))}return this},a.prototype.one=function(a,b,c){var d=this,e=arguments;return"string"==typeof a||Array.isArray(a)?p.one(this.el_,a,l.bind(this,b)):!function(){var f=a,g=b,h=l.bind(d,c),i=function j(){d.off(f,g,j),h.apply(null,e)};i.guid=h.guid,d.on(f,g,i)}(),this},a.prototype.trigger=function(a,b){return p.trigger(this.el_,a,b),this},a.prototype.ready=function(a){var b=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a&&(this.isReady_?b?a.call(this):this.setTimeout(a,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(a))),this},a.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var a=this.readyQueue_;this.readyQueue_=[],a&&a.length>0&&a.forEach(function(a){a.call(this)},this),this.trigger("ready")},1)},a.prototype.$=function(a,b){return j.$(a,b||this.contentEl())},a.prototype.$$=function(a,b){return j.$$(a,b||this.contentEl())},a.prototype.hasClass=function(a){return j.hasElClass(this.el_,a)},a.prototype.addClass=function(a){return j.addElClass(this.el_,a),this},a.prototype.removeClass=function(a){return j.removeElClass(this.el_,a),this},a.prototype.toggleClass=function(a,b){return j.toggleElClass(this.el_,a,b),this},a.prototype.show=function(){return this.removeClass("vjs-hidden"),this},a.prototype.hide=function(){return this.addClass("vjs-hidden"),this},a.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},a.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},a.prototype.getAttribute=function(a){return j.getAttribute(this.el_,a)},a.prototype.setAttribute=function(a,b){return j.setAttribute(this.el_,a,b),this},a.prototype.removeAttribute=function(a){return j.removeAttribute(this.el_,a),this},a.prototype.width=function(a,b){return this.dimension("width",a,b)},a.prototype.height=function(a,b){return this.dimension("height",a,b)},a.prototype.dimensions=function(a,b){return this.width(a,!0).height(b)},a.prototype.dimension=function(a,b,c){if(void 0!==b)return null!==b&&b===b||(b=0),(""+b).indexOf("%")!==-1||(""+b).indexOf("px")!==-1?this.el_.style[a]=b:"auto"===b?this.el_.style[a]="":this.el_.style[a]=b+"px",c||this.trigger("resize"),this;if(!this.el_)return 0;var d=this.el_.style[a],e=d.indexOf("px");return e!==-1?parseInt(d.slice(0,e),10):parseInt(this.el_["offset"+(0,t["default"])(a)],10)},a.prototype.currentDimension=function(a){var b=0;if("width"!==a&&"height"!==a)throw new Error("currentDimension only accepts width or height value");if("function"==typeof h["default"].getComputedStyle){var c=h["default"].getComputedStyle(this.el_);b=c.getPropertyValue(a)||c[a]}if(b=parseFloat(b),0===b){var d="offset"+(0,t["default"])(a);b=this.el_[d]}return b},a.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},a.prototype.currentWidth=function(){return this.currentDimension("width")},a.prototype.currentHeight=function(){return this.currentDimension("height")},a.prototype.emitTapEvents=function(){var a=0,b=null,c=10,d=200,e=void 0;this.on("touchstart",function(c){1===c.touches.length&&(b={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY},a=(new Date).getTime(),e=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)e=!1;else if(b){var d=a.touches[0].pageX-b.pageX,f=a.touches[0].pageY-b.pageY,g=Math.sqrt(d*d+f*f);g>c&&(e=!1)}});var f=function(){e=!1};this.on("touchleave",f),this.on("touchcancel",f),this.on("touchend",function(c){if(b=null,e===!0){var f=(new Date).getTime()-a;f0&&Object.keys(c.players).map(function(a){return c.players[a]}).every(Boolean))throw new Error("Can not register Player component after player has been created")}(),a.components_[b]=c,c},a.getComponent=function(b){if(b)return b=(0,t["default"])(b),a.components_&&a.components_[b]?a.components_[b]:h["default"]&&h["default"].videojs&&h["default"].videojs[b]?(r["default"].warn("The "+b+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),h["default"].videojs[b]):void 0},a.extend=function(b){b=b||{},r["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var c=b.init||b.init||this.prototype.init||this.prototype.init||function(){},d=function(){c.apply(this,arguments)};d.prototype=Object.create(this.prototype),d.prototype.constructor=d,d.extend=a.extend;for(var e in b)b.hasOwnProperty(e)&&(d.prototype[e]=b[e]);return d},a}();w.registerComponent("Component",w),c["default"]=w},{81:81,82:82,83:83,85:85,86:86,87:87,91:91,95:95}],6:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(36),i=d(h),j=a(5),k=d(j),l=a(7),m=d(l),n=function(a){function b(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,b),d.tracks=c.audioTracks&&c.audioTracks();var g=f(this,a.call(this,c,d));return g.el_.setAttribute("aria-label","Audio Menu"),g}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-audio-button "+a.prototype.buildCSSClass.call(this)},b.prototype.createItems=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],b=this.player_.audioTracks&&this.player_.audioTracks();if(!b)return a;for(var c=0;c\'+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateShowing=function(a){this.player().duration()===1/0?this.show():this.hide()},b}(j["default"]);j["default"].registerComponent("LiveDisplay",m),c["default"]=m},{5:5,81:81}],11:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(2),j=e(i),k=a(5),l=e(k),m=a(81),n=d(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"volumechange",e.update),c.tech_&&c.tech_.featuresVolumeControl===!1&&e.addClass("vjs-hidden"),e.on(c,"loadstart",function(){this.update(),c.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),e}return h(b,a),b.prototype.buildCSSClass=function(){return"vjs-mute-control "+a.prototype.buildCSSClass.call(this)},b.prototype.handleClick=function(a){this.player_.muted(!this.player_.muted())},b.prototype.update=function(a){var b=this.player_.volume(),c=3;0===b||this.player_.muted()?c=0:b<.33?c=1:b<.67&&(c=2);var d=this.player_.muted()?"Unmute":"Mute";this.controlText()!==d&&this.controlText(d);for(var e=0;e<4;e++)n.removeElClass(this.el_,"vjs-vol-"+e);n.addElClass(this.el_,"vjs-vol-"+c)},b}(j["default"]);o.prototype.controlText_="Mute",l["default"].registerComponent("MuteToggle",o),c["default"]=o},{2:2,5:5,81:81}],12:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(2),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.on(c,"play",g.handlePlay),g.on(c,"pause",g.handlePause),g}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-play-control "+a.prototype.buildCSSClass.call(this)},b.prototype.handleClick=function(a){this.player_.paused()?this.player_.play():this.player_.pause()},b.prototype.handlePlay=function(a){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},b.prototype.handlePause=function(a){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},b}(i["default"]);l.prototype.controlText_="Play",k["default"].registerComponent("PlayToggle",l),c["default"]=l},{2:2,5:5}],13:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(47),j=e(i),k=a(49),l=e(k),m=a(14),n=e(m),o=a(5),p=e(o),q=a(81),r=d(q),s=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.updateVisibility(),e.updateLabel(),e.on(c,"loadstart",e.updateVisibility),e.on(c,"ratechange",e.updateLabel),e}return h(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this);return this.labelEl_=r.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),b.appendChild(this.labelEl_),b},b.prototype.buildCSSClass=function(){return"vjs-playback-rate "+a.prototype.buildCSSClass.call(this)},b.prototype.createMenu=function(){var a=new l["default"](this.player()),b=this.playbackRates();if(b)for(var c=b.length-1;c>=0;c--)a.addChild(new n["default"](this.player(),{rate:b[c]+"x"}));return a},b.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},b.prototype.handleClick=function(a){for(var b=this.player().playbackRate(),c=this.playbackRates(),d=c[0],e=0;eb){\nd=c[e];break}this.player().playbackRate(d)},b.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},b.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},b.prototype.updateVisibility=function(a){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},b.prototype.updateLabel=function(a){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},b}(j["default"]);s.prototype.controlText_="Playback Rate",p["default"].registerComponent("PlaybackRateMenuButton",s),c["default"]=s},{14:14,47:47,49:49,5:5,81:81}],14:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(48),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b);var g=d.rate,h=parseFloat(g,10);d.label=g,d.selected=1===h;var i=f(this,a.call(this,c,d));return i.label=g,i.rate=h,i.on(c,"ratechange",i.update),i}return g(b,a),b.prototype.handleClick=function(b){a.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},b.prototype.update=function(a){this.selected(this.player().playbackRate()===this.rate)},b}(i["default"]);l.prototype.contentElType="button",k["default"].registerComponent("PlaybackRateMenuItem",l),c["default"]=l},{48:48,5:5}],15:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.partEls_=[],e.on(c,"progress",e.update),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:\'\'+this.localize("Loaded")+": 0%"})},b.prototype.update=function(a){var b=this.player_.buffered(),c=this.player_.duration(),d=this.player_.bufferedEnd(),e=this.partEls_,f=function(a,b){var c=a/b||0;return 100*(c>=1?1:c)+"%"};this.el_.style.width=f(d,c);for(var g=0;gb.length;k--)this.el_.removeChild(e[k-1]);e.length=b.length},b}(j["default"]);j["default"].registerComponent("LoadProgressBar",m),c["default"]=m},{5:5,81:81}],16:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=a(83),n=d(m),o=a(84),p=e(o),q=a(80),r=e(q),s=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltip=l.createEl("div",{className:"vjs-time-tooltip"}),e.el().appendChild(e.tooltip),e.addClass("vjs-keep-tooltips-inside")),e.update(0,0),c.on("ready",function(){e.on(c.controlBar.progressControl.el(),"mousemove",n.throttle(n.bind(e,e.handleMouseMove),25))}),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},b.prototype.handleMouseMove=function(a){var b=this.player_.duration(),c=this.calculateDistance(a)*b,d=a.pageX-l.findElPosition(this.el().parentNode).left;this.update(c,d)},b.prototype.update=function(a,b){var c=(0,p["default"])(a,this.player_.duration());if(this.el().style.left=b+"px",this.el().setAttribute("data-current-time",c),this.keepTooltipsInside){var d=this.clampPosition_(b),e=b-d+1,f=parseFloat((0,r["default"])(this.tooltip,"width")),g=f/2;this.tooltip.innerHTML=c,this.tooltip.style.right="-"+(g-e)+"px"}},b.prototype.calculateDistance=function(a){return l.getPointerPosition(this.el().parentNode,a).x},b.prototype.clampPosition_=function(a){if(!this.keepTooltipsInside)return a;var b=parseFloat((0,r["default"])(this.player().el(),"width")),c=parseFloat((0,r["default"])(this.tooltip,"width")),d=c/2,e=a;return ab-d&&(e=Math.floor(b-d)),e},b}(j["default"]);j["default"].registerComponent("MouseTimeDisplay",s),c["default"]=s},{5:5,80:80,81:81,83:83,84:84}],17:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(83),l=d(k),m=a(84),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.updateDataAttr(),e.on(c,"timeupdate",e.updateDataAttr),c.ready(l.bind(e,e.updateDataAttr)),d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&e.addClass("vjs-keep-tooltips-inside"),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:\'\'+this.localize("Progress")+": 0%"})},b.prototype.updateDataAttr=function(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,n["default"])(b,this.player_.duration()))},b}(j["default"]);j["default"].registerComponent("PlayProgressBar",o),c["default"]=o},{5:5,83:83,84:84}],18:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h);a(19),a(16);var j=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},b}(i["default"]);j.prototype.options_={children:["seekBar"]},i["default"].registerComponent("ProgressControl",j),c["default"]=j},{16:16,19:19,5:5}],19:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(57),j=e(i),k=a(5),l=e(k),m=a(83),n=d(m),o=a(84),p=e(o),q=a(80),r=e(q);a(15),a(17),a(20);var s=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"timeupdate",e.updateProgress),e.on(c,"ended",e.updateProgress),c.ready(n.bind(e,e.updateProgress)),d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltipProgressBar=e.addChild("TooltipProgressBar")),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},b.prototype.updateProgress=function(a){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var b=parseFloat((0,r["default"])(this.player().el(),"width")),c=parseFloat((0,r["default"])(this.tooltipProgressBar.tooltip,"width")),d=this.tooltipProgressBar.el().style;d.maxWidth=Math.floor(b-c/2)+"px",d.minWidth=Math.ceil(c/2)+"px",d.right="-"+c/2+"px"}},b.prototype.updateAriaAttributes=function(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();a.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),a.setAttribute("aria-valuetext",(0,p["default"])(b,this.player_.duration()))},b.prototype.getPercent=function(){var a=this.player_.currentTime()/this.player_.duration();return a>=1?1:a},b.prototype.handleMouseDown=function(b){a.prototype.handleMouseDown.call(this,b),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},b.prototype.handleMouseMove=function(a){var b=this.calculateDistance(a)*this.player_.duration();b===this.player_.duration()&&(b-=.1),this.player_.currentTime(b)},b.prototype.handleMouseUp=function(b){a.prototype.handleMouseUp.call(this,b),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},b.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},b.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},b}(j["default"]);s.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},s.prototype.playerEvent="timeupdate",l["default"].registerComponent("SeekBar",s),c["default"]=s},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(83),l=d(k),m=a(84),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.updateDataAttr(),e.on(c,"timeupdate",e.updateDataAttr),c.ready(l.bind(e,e.updateDataAttr)),e}return h(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:\'
\\n \'+this.localize("Progress")+": 0%"});return this.tooltip=b.querySelector(".vjs-time-tooltip"),b},b.prototype.updateDataAttr=function(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),c=(0,n["default"])(b,this.player_.duration());this.el_.setAttribute("data-current-time",c),this.tooltip.innerHTML=c},b}(j["default"]);j["default"].registerComponent("TooltipProgressBar",o),c["default"]=o},{5:5,83:83,84:84}],21:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(22),i=d(h),j=a(5),k=d(j),l=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+a.prototype.buildCSSClass.call(this)},b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,{className:this.buildCSSClass()});return b.innerHTML=" ",b},b}(i["default"]);k["default"].registerComponent("CustomControlSpacer",l),c["default"]=l},{22:22,5:5}],22:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h),j=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-spacer "+a.prototype.buildCSSClass.call(this)},b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},b}(i["default"]);i["default"].registerComponent("Spacer",j),c["default"]=j},{5:5}],23:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(31),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b),d.track={player:c,kind:d.kind,label:d.kind+" settings",selectable:!1,"default":!1,mode:"disabled"},d.selectable=!1;var g=f(this,a.call(this,c,d));return g.addClass("vjs-texttrack-settings"),g.controlText(", opens "+d.kind+" settings dialog"),g}return g(b,a),b.prototype.handleClick=function(a){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},b}(i["default"]);k["default"].registerComponent("CaptionSettingsMenuItem",l),c["default"]=l},{31:31,5:5}],24:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(30),i=d(h),j=a(5),k=d(j),l=a(23),m=d(l),n=function(a){function b(c,d,g){e(this,b);var h=f(this,a.call(this,c,d,g));return h.el_.setAttribute("aria-label","Captions Menu"),h}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-captions-button "+a.prototype.buildCSSClass.call(this)},b.prototype.update=function(b){var c=2;a.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(c=1),this.items&&this.items.length>c?this.show():this.hide()},b.prototype.createItems=function(){var b=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||b.push(new m["default"](this.player_,{kind:this.kind_})),a.prototype.createItems.call(this,b)},b}(i["default"]);n.prototype.kind_="captions",n.prototype.controlText_="Captions",k["default"].registerComponent("CaptionsButton",n),c["default"]=n},{23:23,30:30,5:5}],25:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(30),i=d(h),j=a(5),k=d(j),l=a(26),m=d(l),n=a(91),o=d(n),p=function(a){function b(c,d,g){e(this,b);var h=f(this,a.call(this,c,d,g));return h.el_.setAttribute("aria-label","Chapters Menu"),h}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-chapters-button "+a.prototype.buildCSSClass.call(this)},b.prototype.update=function(b){this.track_&&(!b||"addtrack"!==b.type&&"removetrack"!==b.type)||this.setTrack(this.findChaptersTrack()),a.prototype.update.call(this)},b.prototype.setTrack=function(a){if(this.track_!==a){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var b=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);b&&b.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=a,this.track_){this.track_.mode="hidden";var c=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);c&&c.addEventListener("load",this.updateHandler_)}}},b.prototype.findChaptersTrack=function(){for(var a=this.player_.textTracks()||[],b=a.length-1;b>=0;b--){var c=a[b];if(c.kind===this.kind_)return c}},b.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize((0,o["default"])(this.kind_))},b.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),a.prototype.createMenu.call(this)},b.prototype.createItems=function(){var a=[];if(!this.track_)return a;var b=this.track_.cues;if(!b)return a;for(var c=0,d=b.length;c1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),d.tracks=c.textTracks(),f(this,a.call(this,c,d))}return g(b,a),b.prototype.createItems=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a.push(new o["default"](this.player_,{kind:this.kind_}));var b=this.player_.textTracks();if(!b)return a;for(var c=0;cCurrent Time 0:00\'},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),c=this.localize("Current Time"),d=(0,n["default"])(b,this.player_.duration());d!==this.formattedTime_&&(this.formattedTime_=d,this.contentEl_.innerHTML=\'\'+c+" "+d)},b}(j["default"]);j["default"].registerComponent("CurrentTimeDisplay",o),c["default"]=o},{5:5,81:81,84:84}],33:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=a(84),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"durationchange",e.updateContent),e.on(c,"timeupdate",e.updateContent),e.on(c,"loadedmetadata",e.updateContent),e}return h(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-duration-display",innerHTML:\'\'+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(a){var b=this.player_.duration();if(b&&this.duration_!==b){this.duration_=b;var c=this.localize("Duration Time"),d=(0,n["default"])(b);this.contentEl_.innerHTML=\'\'+c+" "+d}},b}(j["default"]);j["default"].registerComponent("DurationDisplay",o),c["default"]=o},{5:5,81:81,84:84}],34:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=a(84),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"timeupdate",e.updateContent),e.on(c,"durationchange",e.updateContent),e}return h(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-remaining-time-display",innerHTML:\'\'+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(a){if(this.player_.duration()){var b=this.localize("Remaining Time"),c=(0,n["default"])(this.player_.remainingTime());c!==this.formattedTime_&&(this.formattedTime_=c,this.contentEl_.innerHTML=\'\'+b+" -"+c)}},b}(j["default"]);j["default"].registerComponent("RemainingTimeDisplay",o),c["default"]=o},{5:5,81:81,84:84}],35:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h),j=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},b}(i["default"]);i["default"].registerComponent("TimeDivider",j),c["default"]=j},{5:5}],36:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(47),j=e(i),k=a(5),l=e(k),m=a(83),n=d(m),o=function(a){function b(c,d){f(this,b);var e=d.tracks,h=g(this,a.call(this,c,d));if(h.items.length<=1&&h.hide(),!e)return g(h);var i=n.bind(h,h.update);return e.addEventListener("removetrack",i),e.addEventListener("addtrack",i),h.player_.on("dispose",function(){e.removeEventListener("removetrack",i),e.removeEventListener("addtrack",i)}),h}return h(b,a),b}(j["default"]);l["default"].registerComponent("TrackButton",o),c["default"]=o},{47:47,5:5,83:83}],37:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(57),j=e(i),k=a(5),l=e(k),m=a(83),n=d(m);a(39);var o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"volumechange",e.updateARIAAttributes),c.ready(n.bind(e,e.updateARIAAttributes)),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},b.prototype.handleMouseMove=function(a){this.checkMuted(),this.player_.volume(this.calculateDistance(a))},b.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},b.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},b.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},b.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},b.prototype.updateARIAAttributes=function(a){var b=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",b),this.el_.setAttribute("aria-valuetext",b+"%")},b}(j["default"]);o.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},o.prototype.playerEvent="volumechange",l["default"].registerComponent("VolumeBar",o),c["default"]=o},{39:39,5:5,57:57,83:83}],38:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h);a(37);var j=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return c.tech_&&c.tech_.featuresVolumeControl===!1&&g.addClass("vjs-hidden"),g.on(c,"loadstart",function(){c.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),g}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},b}(i["default"]);j.prototype.options_={children:["volumeBar"]},i["default"].registerComponent("VolumeControl",j),c["default"]=j},{37:37,5:5}],39:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h),j=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:\'\'})},b}(i["default"]);i["default"].registerComponent("VolumeLevel",j),c["default"]=j},{5:5}],40:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(83),j=e(i),k=a(5),l=d(k),m=a(54),n=d(m),o=a(53),p=d(o),q=a(11),r=d(q),s=a(37),t=d(s),u=function(a){function b(c){function d(){c.tech_&&c.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,b),void 0===e.inline&&(e.inline=!0),void 0===e.vertical&&(e.inline?e.vertical=!1:e.vertical=!0),e.volumeBar=e.volumeBar||{},e.volumeBar.vertical=!!e.vertical;var h=g(this,a.call(this,c,e));return h.on(c,"volumechange",h.volumeUpdate),h.on(c,"loadstart",h.volumeUpdate),d.call(h),h.on(c,"loadstart",d),h.on(h.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),h.on(h.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),h.on(h.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),h.on(h.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),h}return h(b,a),b.prototype.buildCSSClass=function(){var b="";return b=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+a.prototype.buildCSSClass.call(this)+" "+b},b.prototype.createPopup=function(){var a=new n["default"](this.player_,{contentElType:"div"}),b=new t["default"](this.player_,this.options_.volumeBar);return a.addChild(b),this.menuContent=a,this.volumeBar=b,this.attachVolumeBarEvents(),a},b.prototype.handleClick=function(b){r["default"].prototype.handleClick.call(this),a.prototype.handleClick.call(this)},b.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],j.bind(this,this.handleMouseDown))},b.prototype.handleMouseDown=function(a){this.on(["mousemove","touchmove"],j.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},b.prototype.handleMouseUp=function(a){this.off(["mousemove","touchmove"],j.bind(this.volumeBar,this.volumeBar.handleMouseMove))},b}(p["default"]);u.prototype.volumeUpdate=r["default"].prototype.update,u.prototype.controlText_="Mute",l["default"].registerComponent("VolumeMenuButton",u),c["default"]=u},{11:11,37:37,5:5,53:53,54:54,83:83}],41:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h),j=a(50),k=d(j),l=a(87),m=d(l),n=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.on(c,"error",g.open),g}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-error-display "+a.prototype.buildCSSClass.call(this)},b.prototype.content=function(){var a=this.player().error();return a?this.localize(a.message):""},b}(k["default"]);n.prototype.options_=(0,m["default"])(k["default"].prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),i["default"].registerComponent("ErrorDisplay",n),c["default"]=n},{5:5,50:50,87:87}],42:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a(82),f=d(e),g=function(){};g.prototype.allowedEvents_={},g.prototype.on=function(a,b){var c=this.addEventListener;this.addEventListener=function(){},f.on(this,a,b),this.addEventListener=c},g.prototype.addEventListener=g.prototype.on,g.prototype.off=function(a,b){f.off(this,a,b)},g.prototype.removeEventListener=g.prototype.off,g.prototype.one=function(a,b){var c=this.addEventListener;this.addEventListener=function(){},f.one(this,a,b),this.addEventListener=c},g.prototype.trigger=function(a){var b=a.type||a;"string"==typeof a&&(a={type:b}),a=f.fixEvent(a),this.allowedEvents_[b]&&this["on"+b]&&this["on"+b](a),f.trigger(this,a)},g.prototype.dispatchEvent=g.prototype.trigger,c["default"]=g},{82:82}],43:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(86),g=d(f),h=a(88),i=function(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof b?"undefined":e(b)));a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(a.super_=b)},j=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=function(){a.apply(this,arguments)},d={};(0,h.isObject)(b)?("function"==typeof b.init&&(g["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."),b.constructor=b.init),b.constructor!==Object.prototype.constructor&&(c=b.constructor),d=b):"function"==typeof b&&(c=b),i(c,a);for(var e in d)d.hasOwnProperty(e)&&(c.prototype[e]=d[e]);return c};c["default"]=j},{86:86,88:88}],44:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;for(var e=a(94),f=d(e),g={},h=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=h[0],j=void 0,k=0;k1&&void 0!==arguments[1]?arguments[1]:{};f(this,b);var e=g(this,a.call(this,c,d));return e.update(),e.enabled_=!0,e.el_.setAttribute("aria-haspopup","true"),e.el_.setAttribute("role","menuitem"),e.on("keydown",e.handleSubmenuKeyPress),e}return h(b,a),b.prototype.update=function(){var a=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=a,this.addChild(a),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()},b.prototype.createMenu=function(){var a=new n["default"](this.player_);if(this.options_.title){var b=p.createEl("li",{className:"vjs-menu-title",innerHTML:(0,t["default"])(this.options_.title),tabIndex:-1});a.children_.unshift(b),p.insertElFirst(b,a.contentEl())}if(this.items=this.createItems(),this.items)for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:0,b=this.children().slice(),c=b.length&&b[0].className&&/vjs-menu-title/.test(b[0].className);c&&b.shift(),b.length>0&&(a<0?a=0:a>=b.length&&(a=b.length-1),this.focusedChild_=a,b[a].el_.focus())},b}(j["default"]);j["default"].registerComponent("Menu",q),c["default"]=q},{5:5,81:81,82:82,83:83}],50:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(81),j=e(i),k=a(83),l=e(k),m=a(5),n=d(m),o="vjs-modal-dialog",p=27,q=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.opened_=e.hasBeenOpened_=e.hasBeenFilled_=!1,e.closeable(!e.options_.uncloseable),e.content(e.options_.content),e.contentEl_=j.createEl("div",{className:o+"-content"},{role:"document"}),e.descEl_=j.createEl("p",{className:o+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),j.textContent(e.descEl_,e.description()),e.el_.appendChild(e.descEl_),e.el_.appendChild(e.contentEl_),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},b.prototype.buildCSSClass=function(){return o+" vjs-hidden "+a.prototype.buildCSSClass.call(this)},b.prototype.handleKeyPress=function(a){a.which===p&&this.closeable()&&this.close()},b.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},b.prototype.description=function(){var a=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(a+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),a},b.prototype.open=function(){if(!this.opened_){var a=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!a.paused(),this.wasPlaying_&&a.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",l.bind(this,this.handleKeyPress)),a.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},b.prototype.opened=function(a){return"boolean"==typeof a&&this[a?"open":"close"](),this.opened_},b.prototype.close=function(){if(this.opened_){var a=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&a.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",l.bind(this,this.handleKeyPress)),a.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},b.prototype.closeable=function c(a){if("boolean"==typeof a){var c=this.closeable_=!!a,b=this.getChild("closeButton");if(c&&!b){var d=this.contentEl_;this.contentEl_=this.el_,b=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=d,this.on(b,"close",this.close)}!c&&b&&(this.off(b,"close",this.close),this.removeChild(b),b.dispose())}return this.closeable_},b.prototype.fill=function(){return this.fillWith(this.content())},b.prototype.fillWith=function(a){var b=this.contentEl(),c=b.parentNode,d=b.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,c.removeChild(b),this.empty(),j.insertContent(b,a),this.trigger("modalfill"),d?c.insertBefore(b,d):c.appendChild(b),this},b.prototype.empty=function(){return this.trigger("beforemodalempty"),j.emptyEl(this.contentEl()),this.trigger("modalempty"),\nthis},b.prototype.content=function(a){return"undefined"!=typeof a&&(this.content_=a),this.content_},b}(n["default"]);q.prototype.options_={temporary:!0},n["default"].registerComponent("ModalDialog",q),c["default"]=q},{5:5,81:81,83:83}],51:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(94),l=e(k),m=a(95),n=e(m),o=a(82),p=d(o),q=a(81),r=d(q),s=a(83),t=d(s),u=a(85),v=d(u),w=a(78),x=d(w),y=a(86),z=e(y),A=a(91),B=e(A),C=a(90),D=a(79),E=a(89),F=d(E),G=a(44),H=e(G),I=a(46),J=e(I),K=a(97),L=e(K),M=a(88),N=a(87),O=e(N),P=a(69),Q=e(P),R=a(50),S=e(R),T=a(62),U=e(T),V=a(63),W=e(V),X=a(76),Y=e(X);a(61),a(59),a(55),a(68),a(45),a(1),a(4),a(8),a(41),a(71),a(60);var Z=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],$=function(a){function b(c,d,e){if(f(this,b),c.id=c.id||"vjs_video_"+v.newGUID(),d=(0,M.assign)(b.getTagSettings(c),d),d.initChildren=!1,d.createEl=!1,d.reportTouchActivity=!1,!d.language)if("function"==typeof c.closest){var h=c.closest("[lang]");h&&(d.language=h.getAttribute("lang"))}else for(var i=c;i&&1===i.nodeType;){if(r.getElAttributes(i).hasOwnProperty("lang")){d.language=i.getAttribute("lang");break}i=i.parentNode}var j=g(this,a.call(this,null,d,e));if(!j.options_||!j.options_.techOrder||!j.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");j.tag=c,j.tagAttributes=c&&r.getElAttributes(c),j.language(j.options_.language),d.languages?!function(){var a={};Object.getOwnPropertyNames(d.languages).forEach(function(b){a[b.toLowerCase()]=d.languages[b]}),j.languages_=a}():j.languages_=b.prototype.options_.languages,j.cache_={},j.poster_=d.poster||"",j.controls_=!!d.controls,c.controls=!1,j.scrubbing_=!1,j.el_=j.createEl();var k=(0,O["default"])(j.options_);return d.plugins&&!function(){var a=d.plugins;Object.getOwnPropertyNames(a).forEach(function(b){"function"==typeof this[b]?this[b](a[b]):z["default"].error("Unable to find plugin:",b)},j)}(),j.options_.playerOptions=k,j.initChildren(),j.isAudio("audio"===c.nodeName.toLowerCase()),j.controls()?j.addClass("vjs-controls-enabled"):j.addClass("vjs-controls-disabled"),j.el_.setAttribute("role","region"),j.isAudio()?j.el_.setAttribute("aria-label","audio player"):j.el_.setAttribute("aria-label","video player"),j.isAudio()&&j.addClass("vjs-audio"),j.flexNotSupported_()&&j.addClass("vjs-no-flex"),x.IS_IOS||j.addClass("vjs-workinghover"),b.players[j.id_]=j,j.userActive(!0),j.reportUserActivity(),j.listenForUserActivity_(),j.on("fullscreenchange",j.handleFullscreenChange_),j.on("stageclick",j.handleStageClick_),j}return h(b,a),b.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),b.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(),a.prototype.dispose.call(this)},b.prototype.createEl=function(){var b=this.el_=a.prototype.createEl.call(this,"div"),c=this.tag;c.removeAttribute("width"),c.removeAttribute("height");var d=r.getElAttributes(c);if(Object.getOwnPropertyNames(d).forEach(function(a){"class"===a?b.className=d[a]:b.setAttribute(a,d[a])}),c.playerId=c.id,c.id+="_html5_api",c.className="vjs-tech",c.player=b.player=this,this.addClass("vjs-paused"),n["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=F.createStyleElement("vjs-styles-dimensions");var e=r.$(".vjs-styles-defaults"),f=r.$("head");f.insertBefore(this.styleEl_,e?e.nextSibling:f.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var g=c.getElementsByTagName("a"),h=0;h=0&&(c.width=a),b>=0&&(c.height=b)))}var d=void 0,e=void 0,f=void 0,g=void 0;f=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var h=f.split(":"),i=h[1]/h[0];d=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/i:this.videoWidth()||300,e=void 0!==this.height_?this.height_:d*i,g=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(g),F.setTextContent(this.styleEl_,"\\n ."+g+" {\\n width: "+d+"px;\\n height: "+e+"px;\\n }\\n\\n ."+g+".vjs-fluid {\\n padding-top: "+100*i+"%;\\n }\\n ")},b.prototype.loadTech_=function(a,b){var c=this;this.tech_&&this.unloadTech_(),"Html5"!==a&&this.tag&&(U["default"].getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=a,this.isReady_=!1;var d=(0,M.assign)({source:b,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_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_[a.toLowerCase()]);this.tag&&(d.tag=this.tag),b&&(this.currentType_=b.type,b.src===this.cache_.src&&this.cache_.currentTime>0&&(d.startTime=this.cache_.currentTime),this.cache_.sources=null,this.cache_.source=b,this.cache_.src=b.src);var e=U["default"].getTech(a);e||(e=j["default"].getComponent(a)),this.tech_=new e(d),this.tech_.ready(t.bind(this,this.handleTechReady_),!0),Q["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_),Z.forEach(function(a){c.on(c.tech_,a,c["handleTech"+(0,B["default"])(a)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===a&&this.tag||r.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},b.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=Q["default"].textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},b.prototype.tech=function(a){if(a&&a.IWillNotUseThisInPlugins)return this.tech_;var b="\\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 n["default"].alert(b),new Error(b)},b.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_)},b.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_)},b.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(a){(0,z["default"])("deleting tag.poster throws in some browsers",a)}this.play()}},b.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},b.prototype.hasStarted=function(a){return void 0!==a?(this.hasStarted_!==a&&(this.hasStarted_=a,a?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},b.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},b.prototype.handleTechWaiting_=function(){var a=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return a.removeClass("vjs-waiting")})},b.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},b.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},b.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},b.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},b.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},b.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},b.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},b.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},b.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},b.prototype.handleTechClick_=function(a){0===a.button&&this.controls()&&(this.paused()?this.play():this.pause())},b.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},b.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},b.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},b.prototype.handleTechTouchEnd_=function(a){a.preventDefault()},b.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},b.prototype.handleStageClick_=function(){this.reportUserActivity()},b.prototype.handleTechFullscreenChange_=function(a,b){b&&this.isFullscreen(b.isFullscreen),this.trigger("fullscreenchange")},b.prototype.handleTechError_=function(){var a=this.tech_.error();this.error(a)},b.prototype.handleTechTextData_=function(){var a=null;arguments.length>1&&(a=arguments[1]),this.trigger("textdata",a)},b.prototype.getCache=function(){return this.cache_},b.prototype.techCall_=function(a,b){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[a](b)},!0);else try{this.tech_&&this.tech_[a](b)}catch(c){throw(0,z["default"])(c),c}},b.prototype.techGet_=function(a){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[a]()}catch(b){throw void 0===this.tech_[a]?(0,z["default"])("Video.js: "+a+" method not defined for "+this.techName_+" playback technology.",b):"TypeError"===b.name?((0,z["default"])("Video.js: "+a+" unavailable on "+this.techName_+" playback technology element.",b),this.tech_.isReady_=!1):(0,z["default"])(b),b}},b.prototype.play=function(){return this.src()||this.currentSrc()?this.techCall_("play"):this.tech_.one("loadstart",function(){this.play()}),this},b.prototype.pause=function(){return this.techCall_("pause"),this},b.prototype.paused=function(){return this.techGet_("paused")!==!1},b.prototype.scrubbing=function(a){return void 0!==a?(this.scrubbing_=!!a,a?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},b.prototype.currentTime=function(a){return void 0!==a?(this.techCall_("setCurrentTime",a),this):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},b.prototype.duration=function(a){return void 0===a?this.cache_.duration||0:(a=parseFloat(a)||0,a<0&&(a=1/0),a!==this.cache_.duration&&(this.cache_.duration=a,a===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},b.prototype.remainingTime=function(){return this.duration()-this.currentTime()},b.prototype.buffered=function c(){var c=this.techGet_("buffered");return c&&c.length||(c=(0,C.createTimeRange)(0,0)),c},b.prototype.bufferedPercent=function(){return(0,D.bufferedPercent)(this.buffered(),this.duration())},b.prototype.bufferedEnd=function(){var a=this.buffered(),b=this.duration(),c=a.end(a.length-1);return c>b&&(c=b),c},b.prototype.volume=function(a){var b=void 0;return void 0!==a?(b=Math.max(0,Math.min(1,parseFloat(a))),this.cache_.volume=b,this.techCall_("setVolume",b),this):(b=parseFloat(this.techGet_("volume")),isNaN(b)?1:b)},b.prototype.muted=function(a){return void 0!==a?(this.techCall_("setMuted",a),this):this.techGet_("muted")||!1},b.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},b.prototype.isFullscreen=function(a){return void 0!==a?(this.isFullscreen_=!!a,this):!!this.isFullscreen_},b.prototype.requestFullscreen=function(){var a=H["default"];return this.isFullscreen(!0),a.requestFullscreen?(p.on(l["default"],a.fullscreenchange,t.bind(this,function b(c){this.isFullscreen(l["default"][a.fullscreenElement]),this.isFullscreen()===!1&&p.off(l["default"],a.fullscreenchange,b),this.trigger("fullscreenchange")})),this.el_[a.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},b.prototype.exitFullscreen=function(){var a=H["default"];return this.isFullscreen(!1),a.requestFullscreen?l["default"][a.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},b.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=l["default"].documentElement.style.overflow,p.on(l["default"],"keydown",t.bind(this,this.fullWindowOnEscKey)),l["default"].documentElement.style.overflow="hidden",r.addElClass(l["default"].body,"vjs-full-window"),this.trigger("enterFullWindow")},b.prototype.fullWindowOnEscKey=function(a){27===a.keyCode&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},b.prototype.exitFullWindow=function(){this.isFullWindow=!1,p.off(l["default"],"keydown",this.fullWindowOnEscKey),l["default"].documentElement.style.overflow=this.docOrigOverflow,r.removeElClass(l["default"].body,"vjs-full-window"),this.trigger("exitFullWindow")},b.prototype.canPlayType=function(a){for(var b=void 0,c=0,d=this.options_.techOrder;c0&&(h=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},a))}},250)},b.prototype.playbackRate=function(a){return void 0!==a?(this.techCall_("setPlaybackRate",a),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},b.prototype.isAudio=function(a){return void 0!==a?(this.isAudio_=!!a,this):!!this.isAudio_},b.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new Y["default"],this.videoTracks_)},b.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new W["default"],this.audioTracks_)},b.prototype.textTracks=function(){if(this.tech_)return this.tech_.textTracks()},b.prototype.remoteTextTracks=function(){if(this.tech_)return this.tech_.remoteTextTracks()},b.prototype.remoteTextTrackEls=function(){if(this.tech_)return this.tech_.remoteTextTrackEls()},b.prototype.addTextTrack=function(a,b,c){if(this.tech_)return this.tech_.addTextTrack(a,b,c)},b.prototype.addRemoteTextTrack=function(a,b){if(this.tech_)return this.tech_.addRemoteTextTrack(a,b)},b.prototype.removeRemoteTextTrack=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=a.track,c=void 0===b?arguments[0]:b;if(this.tech_)return this.tech_.removeRemoteTextTrack(c)},b.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},b.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},b.prototype.language=function(a){return void 0===a?this.language_:(this.language_=String(a).toLowerCase(),this)},b.prototype.languages=function(){return(0,O["default"])(b.prototype.options_.languages,this.languages_)},b.prototype.toJSON=function(){var a=(0,O["default"])(this.options_),b=a.tracks;a.tracks=[];for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{};e(this,b);var g=f(this,a.call(this,c,d));return g.update(),g}return g(b,a),b.prototype.update=function(){var a=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=a,this.addChild(a),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},b.prototype.createPopup=function(){},b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},b.prototype.buildCSSClass=function(){var b="vjs-menu-button";return b+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+b+" "+a.prototype.buildCSSClass.call(this)},b}(i["default"]);k["default"].registerComponent("PopupButton",l),c["default"]=l},{3:3,5:5}],54:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=a(83),n=d(m),o=a(82),p=d(o),q=function(a){function b(){return f(this,b),g(this,a.apply(this,arguments))}return h(b,a),b.prototype.addItem=function(a){this.addChild(a),a.on("click",n.bind(this,function(){this.unlockShowing()}))},b.prototype.createEl=function(){var b=this.options_.contentElType||"ul";this.contentEl_=l.createEl(b,{className:"vjs-menu-content"});var c=a.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return c.appendChild(this.contentEl_),p.on(c,"click",function(a){a.preventDefault(),a.stopImmediatePropagation()}),c},b}(j["default"]);j["default"].registerComponent("Popup",q),c["default"]=q},{5:5,81:81,82:82,83:83}],55:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(3),j=e(i),k=a(5),l=e(k),m=a(83),n=d(m),o=a(81),p=d(o),q=a(78),r=d(q),s=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.update(),c.on("posterchange",n.bind(e,e.update)),e}return h(b,a),b.prototype.dispose=function(){this.player().off("posterchange",this.update),a.prototype.dispose.call(this)},b.prototype.createEl=function(){var a=p.createEl("div",{className:"vjs-poster",tabIndex:-1});return r.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=p.createEl("img"),a.appendChild(this.fallbackImg_)),a},b.prototype.update=function(a){var b=this.player().poster();this.setSrc(b),b?this.show():this.hide()},b.prototype.setSrc=function(a){if(this.fallbackImg_)this.fallbackImg_.src=a;else{var b="";a&&(b=\'url("\'+a+\'")\'),this.el_.style.backgroundImage=b}},b.prototype.handleClick=function(a){this.player_.paused()?this.player_.play():this.player_.pause();\n},b}(j["default"]);l["default"].registerComponent("PosterImage",s),c["default"]=s},{3:3,5:5,78:78,81:81,83:83}],56:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){b&&(n=b),setTimeout(o,a)}c.__esModule=!0,c.hasLoaded=c.autoSetupTimeout=c.autoSetup=void 0;var g=a(82),h=e(g),i=a(94),j=d(i),k=a(95),l=d(k),m=!1,n=void 0,o=function(){var a=j["default"].getElementsByTagName("video"),b=j["default"].getElementsByTagName("audio"),c=[];if(a&&a.length>0)for(var d=0,e=a.length;d0)for(var g=0,h=b.length;g0)for(var i=0,k=c.length;i1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c.className=c.className+" vjs-slider",c=(0,m.assign)({tabIndex:0},c),d=(0,m.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},d),a.prototype.createEl.call(this,b,c,d)},b.prototype.handleMouseDown=function(a){var b=this.bar.el_.ownerDocument;a.preventDefault(),l.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(b,"mousemove",this.handleMouseMove),this.on(b,"mouseup",this.handleMouseUp),this.on(b,"touchmove",this.handleMouseMove),this.on(b,"touchend",this.handleMouseUp),this.handleMouseMove(a)},b.prototype.handleMouseMove=function(a){},b.prototype.handleMouseUp=function(){var a=this.bar.el_.ownerDocument;l.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(a,"mousemove",this.handleMouseMove),this.off(a,"mouseup",this.handleMouseUp),this.off(a,"touchmove",this.handleMouseMove),this.off(a,"touchend",this.handleMouseUp),this.update()},b.prototype.update=function(){if(this.el_){var a=this.getPercent(),b=this.bar;if(b){("number"!=typeof a||a!==a||a<0||a===1/0)&&(a=0);var c=(100*a).toFixed(2)+"%";this.vertical()?b.el().style.height=c:b.el().style.width=c}}},b.prototype.calculateDistance=function(a){var b=l.getPointerPosition(this.el_,a);return this.vertical()?b.y:b.x},b.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},b.prototype.handleKeyPress=function(a){37===a.which||40===a.which?(a.preventDefault(),this.stepBack()):38!==a.which&&39!==a.which||(a.preventDefault(),this.stepForward())},b.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},b.prototype.handleClick=function(a){a.stopImmediatePropagation(),a.preventDefault()},b.prototype.vertical=function(a){return void 0===a?this.vertical_||!1:(this.vertical_=!!a,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},b}(j["default"]);j["default"].registerComponent("Slider",n),c["default"]=n},{5:5,81:81,88:88}],58:[function(a,b,c){"use strict";function d(a){return a.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},a.streamFromParts=function(a,b){return a+"&"+b},a.streamToParts=function(a){var b={connection:"",stream:""};if(!a)return b;var c=a.search(/&(?!\\w+=)/),d=void 0;return c!==-1?d=c+1:(c=d=a.lastIndexOf("/")+1,0===c&&(c=d=a.length)),b.connection=a.substring(0,c),b.stream=a.substring(d,a.length),b},a.isStreamingType=function(b){return b in a.streamingFormats},a.RTMP_RE=/^rtmp[set]?:\\/\\//i,a.isStreamingSrc=function(b){return a.RTMP_RE.test(b)},a.rtmpSourceHandler={},a.rtmpSourceHandler.canPlayType=function(b){return a.isStreamingType(b)?"maybe":""},a.rtmpSourceHandler.canHandleSource=function(b,c){var d=a.rtmpSourceHandler.canPlayType(b.type);return d?d:a.isStreamingSrc(b.src)?"maybe":""},a.rtmpSourceHandler.handleSource=function(b,c,d){var e=a.streamToParts(b.src);c.setRtmpConnection(e.connection),c.setRtmpStream(e.stream)},a.registerSourceHandler(a.rtmpSourceHandler),a}c.__esModule=!0,c["default"]=d},{}],59:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function i(a){var b=a.charAt(0).toUpperCase()+a.slice(1);A["set"+b]=function(b){return this.el_.vjs_setProperty(a,b)}}function j(a){A[a]=function(){return this.el_.vjs_getProperty(a)}}c.__esModule=!0;for(var k=a(62),l=e(k),m=a(81),n=d(m),o=a(92),p=d(o),q=a(90),r=a(58),s=e(r),t=a(5),u=e(t),v=a(95),w=e(v),x=a(88),y=w["default"].navigator,z=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return c.source&&e.ready(function(){this.setSource(c.source)},!0),c.startTime&&e.ready(function(){this.load(),this.play(),this.currentTime(c.startTime)},!0),w["default"].videojs=w["default"].videojs||{},w["default"].videojs.Flash=w["default"].videojs.Flash||{},w["default"].videojs.Flash.onReady=b.onReady,w["default"].videojs.Flash.onEvent=b.onEvent,w["default"].videojs.Flash.onError=b.onError,e.on("seeked",function(){this.lastSeekTarget_=void 0}),e}return h(b,a),b.prototype.createEl=function(){var a=this.options_;if(!a.swf){var c="5.1.0";a.swf="//vjs.zencdn.net/swf/"+c+"/video-js.swf"}var d=a.techId,e=(0,x.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:a.autoplay,preload:a.preload,loop:a.loop,muted:a.muted},a.flashVars),f=(0,x.assign)({wmode:"opaque",bgcolor:"#000000"},a.params),g=(0,x.assign)({id:d,name:d,"class":"vjs-tech"},a.attributes);return this.el_=b.embed(a.swf,e,f,g),this.el_.tech=this,this.el_},b.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},b.prototype.pause=function(){this.el_.vjs_pause()},b.prototype.src=function(a){return void 0===a?this.currentSrc():this.setSrc(a)},b.prototype.setSrc=function(a){var b=this;a=p.getAbsoluteURL(a),this.el_.vjs_src(a),this.autoplay()&&this.setTimeout(function(){return b.play()},0)},b.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},b.prototype.setCurrentTime=function(b){var c=this.seekable();c.length&&(b=b>c.start(0)?b:c.start(0),b=b=0?c:1/0},b.prototype.load=function(){this.el_.vjs_load()},b.prototype.poster=function(){this.el_.vjs_getProperty("poster")},b.prototype.setPoster=function(){},b.prototype.seekable=function(){var a=this.duration();return 0===a?(0,q.createTimeRange)():(0,q.createTimeRange)(0,a)},b.prototype.buffered=function(){var a=this.el_.vjs_getProperty("buffered");return 0===a.length?(0,q.createTimeRange)():(0,q.createTimeRange)(a[0][0],a[0][1])},b.prototype.supportsFullScreen=function(){return!1},b.prototype.enterFullScreen=function(){return!1},b}(l["default"]),A=z.prototype,B="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),C="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","),D=0;D=10},l["default"].withSourceHandlers(z),z.nativeSourceHandler={},z.nativeSourceHandler.canPlayType=function(a){return a in z.formats?"maybe":""},z.nativeSourceHandler.canHandleSource=function(a,b){function c(a){var b=p.getFileExtension(a);return b?"video/"+b:""}var d=void 0;return d=a.type?a.type.replace(/;.*/,"").toLowerCase():c(a.src),z.nativeSourceHandler.canPlayType(d)},z.nativeSourceHandler.handleSource=function(a,b,c){b.setSrc(a.src)},z.nativeSourceHandler.dispose=function(){},z.registerSourceHandler(z.nativeSourceHandler),z.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},z.onReady=function(a){var b=n.getEl(a),c=b&&b.tech;c&&c.el()&&z.checkReady(c)},z.checkReady=function(a){a.el()&&(a.el().vjs_getProperty?a.triggerReady():this.setTimeout(function(){z.checkReady(a)},50))},z.onEvent=function(a,b){var c=n.getEl(a).tech,d=Array.prototype.slice.call(arguments,2);c.setTimeout(function(){c.trigger(b,d)},1)},z.onError=function(a,b){var c=n.getEl(a).tech;return"srcnotfound"===b?c.error(4):void c.error("FLASH: "+b)},z.version=function(){var a="0,0,0";try{a=new w["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\\D+/g,",").match(/^,?(.+),?$/)[1]}catch(b){try{y.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(a=(y.plugins["Shockwave Flash 2.0"]||y.plugins["Shockwave Flash"]).description.replace(/\\D+/g,",").match(/^,?(.+),?$/)[1])}catch(c){}}return a.split(",")},z.embed=function(a,b,c,d){var e=z.getEmbedCode(a,b,c,d),f=n.createEl("div",{innerHTML:e}).childNodes[0];return f},z.getEmbedCode=function(a,b,c,d){var e=\'\'}),d=(0,x.assign)({data:a,width:"100%",height:"100%"},d),Object.getOwnPropertyNames(d).forEach(function(a){h+=a+\'="\'+d[a]+\'" \'}),""+e+h+">"+g+""},(0,s["default"])(z),u["default"].registerComponent("Flash",z),l["default"].registerTech("Flash",z),c["default"]=z},{5:5,58:58,62:62,81:81,88:88,90:90,92:92,95:95}],60:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){return a.raw=b,a}function g(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function h(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function i(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=f(["Text Tracks are being loaded from another origin but the crossorigin attribute isn\'t used.\\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn\'t used.\\n This may prevent text tracks from loading."]),l=a(62),m=e(l),n=a(5),o=e(n),p=a(81),q=d(p),r=a(92),s=d(r),t=a(83),u=d(t),v=a(86),w=e(v),x=a(98),y=e(x),z=a(78),A=d(z),B=a(94),C=e(B),D=a(95),E=e(D),F=a(88),G=a(87),H=e(G),I=a(91),J=e(I),K=function(a){function b(c,d){g(this,b);var e=h(this,a.call(this,c,d)),f=c.source,i=!1;if(f&&(e.el_.currentSrc!==f.src||c.tag&&3===c.tag.initNetworkState_)?e.setSource(f):e.handleLateInit_(e.el_),e.el_.hasChildNodes()){for(var j=e.el_.childNodes,l=j.length,m=[];l--;){var n=j[l],o=n.nodeName.toLowerCase();"track"===o&&(e.featuresNativeTextTracks?(e.remoteTextTrackEls().addTrackElement_(n),e.remoteTextTracks().addTrack_(n.track),i||e.el_.hasAttribute("crossorigin")||!s.isCrossOrigin(n.src)||(i=!0)):m.push(n))}for(var p=0;p=0;g--){var h=f[g],i={};"undefined"!=typeof this.options_[h]&&(i[h]=this.options_[h]),q.setElAttributes(a,i)}return a},b.prototype.handleLateInit_=function(a){var b=this;if(0!==a.networkState&&3!==a.networkState){if(0===a.readyState){var c=function(){var a=!1,c=function(){a=!0};b.on("loadstart",c);var d=function(){a||this.trigger("loadstart")};return b.on("loadedmetadata",d),b.ready(function(){this.off("loadstart",c),this.off("loadedmetadata",d),a||this.trigger("loadstart")}),{v:void 0}}();if("object"===("undefined"==typeof c?"undefined":j(c)))return c.v}var d=["loadstart"];d.push("loadedmetadata"),a.readyState>=2&&d.push("loadeddata"),a.readyState>=3&&d.push("canplay"),a.readyState>=4&&d.push("canplaythrough"),this.ready(function(){d.forEach(function(a){this.trigger(a)},this)})}},b.prototype.proxyNativeTextTracks_=function(){var a=this.el().textTracks;if(a){for(var b=0;b0&&(a.el_.duration===1/0&&a.trigger("durationchange"),a.off("timeupdate",c))};return a.on("timeupdate",b),{v:NaN}}();if("object"===("undefined"==typeof b?"undefined":j(b)))return b.v}return this.el_.duration||NaN},b.prototype.width=function(){return this.el_.offsetWidth},b.prototype.height=function(){return this.el_.offsetHeight},b.prototype.proxyWebkitFullscreen_=function(){var a=this;if("webkitDisplayingFullscreen"in this.el_){var b=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},c=function(){this.one("webkitendfullscreen",b),this.trigger("fullscreenchange",{isFullscreen:!0})};this.on("webkitbeginfullscreen",c),this.on("dispose",function(){a.off("webkitbeginfullscreen",c),a.off("webkitendfullscreen",b)})}},b.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var a=E["default"].navigator&&E["default"].navigator.userAgent||"";if(/Android/.test(a)||!/Chrome|Mac OS X 10.5/.test(a))return!0}return!1},b.prototype.enterFullScreen=function(){var a=this.el_;a.paused&&a.networkState<=a.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){a.pause(),a.webkitEnterFullScreen()},0)):a.webkitEnterFullScreen()},b.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},b.prototype.src=function(a){return void 0===a?this.el_.src:void this.setSrc(a)},b.prototype.reset=function(){b.resetMediaElement(this.el_)},b.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},b.prototype.setControls=function(a){this.el_.controls=!!a},b.prototype.addTextTrack=function(b,c,d){return this.featuresNativeTextTracks?this.el_.addTextTrack(b,c,d):a.prototype.addTextTrack.call(this,b,c,d)},b.prototype.createRemoteTextTrack=function(b){if(!this.featuresNativeTextTracks)return a.prototype.createRemoteTextTrack.call(this,b);var c=C["default"].createElement("track");return b.kind&&(c.kind=b.kind),b.label&&(c.label=b.label),(b.language||b.srclang)&&(c.srclang=b.language||b.srclang),b["default"]&&(c["default"]=b["default"]),b.id&&(c.id=b.id),b.src&&(c.src=b.src),c},b.prototype.addRemoteTextTrack=function(b,c){var d=a.prototype.addRemoteTextTrack.call(this,b,c);return this.featuresNativeTextTracks&&this.el().appendChild(d),d},b.prototype.removeRemoteTextTrack=function(b){if(a.prototype.removeRemoteTextTrack.call(this,b),this.featuresNativeTextTracks)for(var c=this.$$("track"),d=c.length;d--;)b!==c[d]&&b!==c[d].track||this.el().removeChild(c[d])},b}(m["default"]);K.TEST_VID=C["default"].createElement("video");var L=C["default"].createElement("track");L.kind="captions",L.srclang="en",L.label="English",K.TEST_VID.appendChild(L),K.isSupported=function(){try{K.TEST_VID.volume=.5}catch(a){return!1}return!!K.TEST_VID.canPlayType},K.canControlVolume=function(){try{var a=K.TEST_VID.volume;return K.TEST_VID.volume=a/2+.1,a!==K.TEST_VID.volume}catch(b){return!1}},K.canControlPlaybackRate=function(){if(A.IS_ANDROID&&A.IS_CHROME)return!1;try{var a=K.TEST_VID.playbackRate;return K.TEST_VID.playbackRate=a/2+.1,a!==K.TEST_VID.playbackRate}catch(b){return!1}},K.supportsNativeTextTracks=function(){return A.IS_ANY_SAFARI},K.supportsNativeVideoTracks=function(){var a=!!K.TEST_VID.videoTracks;return a},K.supportsNativeAudioTracks=function(){var a=!!K.TEST_VID.audioTracks;return a},K.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],K.prototype.featuresVolumeControl=K.canControlVolume(),K.prototype.featuresPlaybackRate=K.canControlPlaybackRate(),K.prototype.movingMediaElementInDOM=!A.IS_IOS,K.prototype.featuresFullscreenResize=!0,K.prototype.featuresProgressEvents=!0,K.prototype.featuresTimeupdateEvents=!0,K.prototype.featuresNativeTextTracks=K.supportsNativeTextTracks(),K.prototype.featuresNativeVideoTracks=K.supportsNativeVideoTracks(),K.prototype.featuresNativeAudioTracks=K.supportsNativeAudioTracks();var M=void 0,N=/^application\\/(?:x-|vnd\\.apple\\.)mpegurl/i,O=/^video\\/mp4/i;K.patchCanPlayType=function(){A.ANDROID_VERSION>=4&&!A.IS_FIREFOX&&(M||(M=K.TEST_VID.constructor.prototype.canPlayType),K.TEST_VID.constructor.prototype.canPlayType=function(a){return a&&N.test(a)?"maybe":M.call(this,a)}),A.IS_OLD_ANDROID&&(M||(M=K.TEST_VID.constructor.prototype.canPlayType),K.TEST_VID.constructor.prototype.canPlayType=function(a){return a&&O.test(a)?"maybe":M.call(this,a)})},K.unpatchCanPlayType=function(){var a=K.TEST_VID.constructor.prototype.canPlayType;return K.TEST_VID.constructor.prototype.canPlayType=M,M=null,a},K.patchCanPlayType(),K.disposeMediaElement=function(a){if(a){for(a.parentNode&&a.parentNode.removeChild(a);a.hasChildNodes();)a.removeChild(a.firstChild);a.removeAttribute("src"),"function"==typeof a.load&&!function(){try{a.load()}catch(b){}}()}},K.resetMediaElement=function(a){if(a){for(var b=a.querySelectorAll("source"),c=b.length;c--;)a.removeChild(b[c]);a.removeAttribute("src"),"function"==typeof a.load&&!function(){try{a.load()}catch(b){}}()}},["paused","currentTime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultMuted","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(a){K.prototype[a]=function(){return this.el_[a]}}),["volume","muted","src","poster","preload","autoplay","loop","playbackRate"].forEach(function(a){K.prototype["set"+(0,J["default"])(a)]=function(b){this.el_[a]=b}}),["pause","load"].forEach(function(a){K.prototype[a]=function(){return this.el_[a]()}}),m["default"].withSourceHandlers(K),K.nativeSourceHandler={},K.nativeSourceHandler.canPlayType=function(a){try{return K.TEST_VID.canPlayType(a)}catch(b){return""}},K.nativeSourceHandler.canHandleSource=function(a,b){if(a.type)return K.nativeSourceHandler.canPlayType(a.type);if(a.src){var c=s.getFileExtension(a.src);return K.nativeSourceHandler.canPlayType("video/"+c)}return""},K.nativeSourceHandler.handleSource=function(a,b,c){b.setSrc(a.src)},K.nativeSourceHandler.dispose=function(){},K.registerSourceHandler(K.nativeSourceHandler),o["default"].registerComponent("Html5",K),m["default"].registerTech("Html5",K),c["default"]=K},{5:5,62:62,78:78,81:81,83:83,86:86,87:87,88:88,91:91,92:92,94:94,95:95,98:98}],61:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h),j=a(62),k=d(j),l=a(91),m=d(l),n=function(a){function b(c,d,g){e(this,b);var h=f(this,a.call(this,c,d,g));if(d.playerOptions.sources&&0!==d.playerOptions.sources.length)c.src(d.playerOptions.sources);else for(var j=0,l=d.playerOptions.techOrder;j4&&void 0!==arguments[4]?arguments[4]:{},f=a.textTracks();e.kind=b,c&&(e.label=c),d&&(e.language=d),e.tech=a;var g=new s["default"](e);return f.addTrack_(g),g}c.__esModule=!0;var j=a(5),k=e(j),l=a(66),m=e(l),n=a(65),o=e(n),p=a(87),q=e(p),r=a(72),s=e(r),t=a(70),u=e(t),v=a(76),w=e(v),x=a(63),y=e(x),z=a(83),A=d(z),B=a(86),C=e(B),D=a(90),E=a(79),F=a(46),G=e(F),H=a(95),I=e(H),J=a(94),K=e(J),L=function(a){function b(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};f(this,b),c.reportTouchActivity=!1;var e=g(this,a.call(this,null,c,d));return e.hasStarted_=!1,e.on("playing",function(){this.hasStarted_=!0}),e.on("loadstart",function(){this.hasStarted_=!1}),e.textTracks_=c.textTracks,e.videoTracks_=c.videoTracks,e.audioTracks_=c.audioTracks,e.featuresProgressEvents||e.manualProgressOn(),e.featuresTimeupdateEvents||e.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(a){c["native"+a+"Tracks"]===!1&&(e["featuresNative"+a+"Tracks"]=!1)}),c.nativeCaptions===!1&&(e.featuresNativeTextTracks=!1),e.featuresNativeTextTracks||e.emulateTextTracks(),e.autoRemoteTextTracks_=new u["default"],e.initTextTrackListeners(),e.initTrackListeners(),e.emitTapEvents(),e}return h(b,a),b.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},b.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},b.prototype.trackProgress=function(a){this.stopTrackingProgress(),this.progressInterval=this.setInterval(A.bind(this,function(){var a=this.bufferedPercent();this.bufferedPercent_!==a&&this.trigger("progress"),this.bufferedPercent_=a,1===a&&this.stopTrackingProgress()}),500)},b.prototype.onDurationChange=function(a){this.duration_=this.duration()},b.prototype.buffered=function(){return(0,D.createTimeRange)(0,0)},b.prototype.bufferedPercent=function(){return(0,E.bufferedPercent)(this.buffered(),this.duration_)},b.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},b.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},b.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},b.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},b.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},b.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),a.prototype.dispose.call(this)},b.prototype.clearTracks=function(a){var b=this;a=[].concat(a),a.forEach(function(a){for(var c=b[a+"Tracks"]()||[],d=c.length;d--;){var e=c[d];"text"===a&&b.removeRemoteTextTrack(e),c.removeTrack_(e)}})},b.prototype.cleanupAutoTextTracks=function(){for(var a=this.autoRemoteTextTracks_||[],b=a.length;b--;){var c=a[b];this.removeRemoteTextTrack(c)}},b.prototype.reset=function(){},b.prototype.error=function(a){return void 0!==a&&(this.error_=new G["default"](a),this.trigger("error")),this.error_},b.prototype.played=function(){return this.hasStarted_?(0,D.createTimeRange)(0,0):(0,D.createTimeRange)()},b.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},b.prototype.initTextTrackListeners=function(){var a=A.bind(this,function(){this.trigger("texttrackchange")}),b=this.textTracks();b&&(b.addEventListener("removetrack",a),b.addEventListener("addtrack",a),this.on("dispose",A.bind(this,function(){b.removeEventListener("removetrack",a),b.removeEventListener("addtrack",a)})))},b.prototype.initTrackListeners=function(){var a=this,b=["video","audio"];b.forEach(function(b){var c=function(){a.trigger(b+"trackchange")},d=a[b+"Tracks"]();d.addEventListener("removetrack",c),d.addEventListener("addtrack",c),a.on("dispose",function(){d.removeEventListener("removetrack",c),d.removeEventListener("addtrack",c)})})},b.prototype.addWebVttScript_=function(){var a=this;I["default"].WebVTT||null===this.el().parentNode||void 0===this.el().parentNode||!function(){var b=K["default"].createElement("script");b.src=a.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js",b.onload=function(){a.trigger("vttjsloaded")},b.onerror=function(){a.trigger("vttjserror");\n},a.on("dispose",function(){b.onload=null,b.onerror=null}),I["default"].WebVTT=!0,a.el().parentNode.appendChild(b)}()},b.prototype.emulateTextTracks=function(){var a=this,b=this.textTracks();if(b){this.remoteTextTracks().on("addtrack",function(b){a.textTracks().addTrack_(b.track)}),this.remoteTextTracks().on("removetrack",function(b){a.textTracks().removeTrack_(b.track)}),this.on("ready",this.addWebVttScript_);var c=function(){return a.trigger("texttrackchange")},d=function(){c();for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},b=arguments[1],c=this.createRemoteTextTrack(a);return b!==!0&&b!==!1&&(C["default"].warn(\'Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js\'),b=!0),this.remoteTextTrackEls().addTrackElement_(c),this.remoteTextTracks().addTrack_(c.track),b!==!0&&this.autoRemoteTextTracks_.addTrack_(c.track),c},b.prototype.removeRemoteTextTrack=function(a){var b=this.remoteTextTrackEls().getTrackElementByTrack_(a);this.remoteTextTrackEls().removeTrackElement_(b),this.remoteTextTracks().removeTrack_(a),this.autoRemoteTextTracks_.removeTrack_(a)},b.prototype.setPoster=function(){},b.prototype.canPlayType=function(){return""},b.isTech=function(a){return a.prototype instanceof b||a instanceof b||a===b},b.registerTech=function(a,c){if(b.techs_||(b.techs_={}),!b.isTech(c))throw new Error("Tech "+a+" must be a Tech");return b.techs_[a]=c,c},b.getTech=function(a){return b.techs_&&b.techs_[a]?b.techs_[a]:I["default"]&&I["default"].videojs&&I["default"].videojs[a]?(C["default"].warn("The "+a+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),I["default"].videojs[a]):void 0},b}(k["default"]);L.prototype.textTracks_,L.prototype.audioTracks_,L.prototype.videoTracks_,L.prototype.featuresVolumeControl=!0,L.prototype.featuresFullscreenResize=!1,L.prototype.featuresPlaybackRate=!1,L.prototype.featuresProgressEvents=!1,L.prototype.featuresTimeupdateEvents=!1,L.prototype.featuresNativeTextTracks=!1,L.withSourceHandlers=function(a){a.registerSourceHandler=function(b,c){var d=a.sourceHandlers;d||(d=a.sourceHandlers=[]),void 0===c&&(c=d.length),d.splice(c,0,b)},a.canPlayType=function(b){for(var c=a.sourceHandlers||[],d=void 0,e=0;e0&&void 0!==arguments[0]?arguments[0]:[];f(this,b);for(var h=void 0,i=e.length-1;i>=0;i--)if(e[i].enabled){o(e,e[i]);break}if(l.IS_IE8){h=n["default"].createElement("custom");for(var k in j["default"].prototype)"constructor"!==k&&(h[k]=j["default"].prototype[k]);for(var m in b.prototype)"constructor"!==m&&(h[m]=b.prototype[m])}return h=c=g(this,a.call(this,e,h)),h.changing_=!1,d=h,g(c,d)}return h(b,a),b.prototype.addTrack_=function(b){var c=this;b.enabled&&o(this,b),a.prototype.addTrack_.call(this,b),b.addEventListener&&b.addEventListener("enabledchange",function(){c.changing_||(c.changing_=!0,o(c,b),c.changing_=!1,c.trigger("change"))})},b.prototype.addTrack=function(a){this.addTrack_(a)},b.prototype.removeTrack=function(b){a.prototype.removeTrack_.call(this,b)},b}(j["default"]);c["default"]=p},{74:74,78:78,94:94}],64:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(73),j=a(75),k=e(j),l=a(87),m=e(l),n=a(78),o=d(n),p=function(a){function b(){var c,d,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,b);var h=(0,m["default"])(e,{kind:i.AudioTrackKind[e.kind]||""}),j=c=g(this,a.call(this,h)),k=!1;if(o.IS_IE8)for(var l in b.prototype)"constructor"!==l&&(j[l]=b.prototype[l]);return Object.defineProperty(j,"enabled",{get:function(){return k},set:function(a){"boolean"==typeof a&&a!==k&&(k=a,this.trigger("enabledchange"))}}),h.enabled&&(j.enabled=h.enabled),j.loaded_=!0,d=j,g(c,d)}return h(b,a),b}(k["default"]);c["default"]=p},{73:73,75:75,78:78,87:87}],65:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var g=a(78),h=e(g),i=a(94),j=d(i),k=function(){function a(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];f(this,a);var c=this;if(h.IS_IE8){c=j["default"].createElement("custom");for(var d in a.prototype)"constructor"!==d&&(c[d]=a.prototype[d])}c.trackElements_=[],Object.defineProperty(c,"length",{get:function(){return this.trackElements_.length}});for(var e=0,g=b.length;e0&&void 0!==arguments[0]?arguments[0]:{};f(this,b);var d=g(this,a.call(this)),e=void 0,h=d;if(j.IS_IE8){h=l["default"].createElement("custom");for(var i in b.prototype)"constructor"!==i&&(h[i]=b.prototype[i])}var k=new p["default"](c);if(h.kind=k.kind,h.src=k.src,h.srclang=k.language,h.label=k.label,h["default"]=k["default"],Object.defineProperty(h,"readyState",{get:function(){return e}}),Object.defineProperty(h,"track",{get:function(){return k}}),e=q,k.addEventListener("loadeddata",function(){e=s,h.trigger({type:"load",target:h})}),j.IS_IE8){var m;return m=h,g(d,m)}return d}return h(b,a),b}(n["default"]);u.prototype.allowedEvents_={load:"load"},u.NONE=q,u.LOADING=r,u.LOADED=s,u.ERROR=t,c["default"]=u},{42:42,72:72,78:78,94:94}],67:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var g=a(78),h=e(g),i=a(94),j=d(i),k=function(){function a(b){f(this,a);var c=this;if(h.IS_IE8){c=j["default"].createElement("custom");for(var d in a.prototype)"constructor"!==d&&(c[d]=a.prototype[d])}if(a.prototype.setCues_.call(c,b),Object.defineProperty(c,"length",{get:function(){return this.length_}}),h.IS_IE8)return c}return a.prototype.setCues_=function(a){var b=this.length||0,c=0,d=a.length;this.cues_=a,this.length_=a.length;var e=function(a){""+a in this||Object.defineProperty(this,""+a,{get:function(){return this.cues_[a]}})};if(b0&&void 0!==arguments[0]?arguments[0]:[];f(this,b);var h=void 0;if(n.IS_IE8){h=p["default"].createElement("custom");for(var i in j["default"].prototype)"constructor"!==i&&(h[i]=j["default"].prototype[i]);for(var k in b.prototype)"constructor"!==k&&(h[k]=b.prototype[k])}return h=c=g(this,a.call(this,e,h)),d=h,g(c,d)}return h(b,a),b.prototype.addTrack_=function(b){a.prototype.addTrack_.call(this,b),b.addEventListener("modechange",l.bind(this,function(){this.trigger("change")}))},b}(j["default"]);c["default"]=q},{74:74,78:78,83:83,94:94}],71:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function i(a,b){if(b&&(a=b(a)),a&&"none"!==a)return a}function j(a,b){var c=a.options[a.options.selectedIndex].value;return i(c,b)}function k(a,b,c){if(b)for(var d=0;d select",id:"captions-background-color-%s",label:"Color",options:[x,D,C,A,y,E,B,z]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[F,G,H]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[D,x,C,A,y,E,B,z]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],"default":2,parser:function(a){return"1.00"===a?null:Number(a)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[F,G]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[H,G,F]}};I.windowColor.options=I.backgroundColor.options;var J=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.setDefaults(),e.hide(),e.updateDisplay=r.bind(e,e.updateDisplay),void 0===d.persistTextTrackSettings&&(e.options_.persistTextTrackSettings=e.options_.playerOptions.persistTextTrackSettings),e.on(e.$(".vjs-done-button"),"click",function(){e.saveSettings(),e.hide()}),e.on(e.$(".vjs-default-button"),"click",function(){e.setDefaults(),e.updateDisplay()}),t.each(I,function(a){e.on(e.$(a.selector),"change",e.updateDisplay)}),e.options_.persistTextTrackSettings&&e.restoreSettings(),e}return h(b,a),b.prototype.createElSelect_=function(a){var b=this,c=I[a],d=c.id.replace("%s",this.id_);return[(0,p.createEl)("label",{className:"vjs-label",textContent:c.label},{"for":d}),(0,p.createEl)("select",{id:d},void 0,c.options.map(function(a){return(0,p.createEl)("option",{textContent:b.localize(a[1]),value:a[0]})}))]},b.prototype.createElFgColor_=function(){var a=(0,p.createEl)("legend",{textContent:this.localize("Text")}),b=this.createElSelect_("color"),c=(0,p.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.createElSelect_("textOpacity"));return(0,p.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[a].concat(b,c))},b.prototype.createElBgColor_=function(){var a=(0,p.createEl)("legend",{textContent:this.localize("Background")}),b=this.createElSelect_("backgroundColor"),c=(0,p.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.createElSelect_("backgroundOpacity"));return(0,p.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[a].concat(b,c))},b.prototype.createElWinColor_=function(){var a=(0,p.createEl)("legend",{textContent:this.localize("Window")}),b=this.createElSelect_("windowColor"),c=(0,p.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.createElSelect_("windowOpacity"));return(0,p.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[a].concat(b,c))},b.prototype.createElColors_=function(){return(0,p.createEl)("div",{className:"vjs-tracksettings-colors"},void 0,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])},b.prototype.createElFont_=function(){var a=(0,p.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.createElSelect_("fontPercent")),b=(0,p.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.createElSelect_("edgeStyle")),c=(0,p.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.createElSelect_("fontFamily"));return(0,p.createEl)("div",{className:"vjs-tracksettings-font"},void 0,[a,b,c])},b.prototype.createElControls_=function(){var a=(0,p.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),b=(0,p.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,p.createEl)("div",{className:"vjs-tracksettings-controls"},void 0,[a,b])},b.prototype.createEl=function(){var a=(0,p.createEl)("div",{className:"vjs-tracksettings"},void 0,[this.createElColors_(),this.createElFont_(),this.createElControls_()]),b=(0,p.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),c=(0,p.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),d=(0,p.createEl)("div",void 0,{role:"document"},[b,c,a]);return(0,p.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":b.id,"aria-describedby":c.id},d)},b.prototype.getValues=function(){var a=this;return t.reduce(I,function(b,c,d){var e=j(a.$(c.selector),c.parser);return void 0!==e&&(b[d]=e),b},{})},b.prototype.setValues=function(a){var b=this;t.each(I,function(c,d){k(b.$(c.selector),a[d],c.parser)})},b.prototype.setDefaults=function(){var a=this;t.each(I,function(b){var c=b.hasOwnProperty("default")?b["default"]:0;a.$(b.selector).selectedIndex=c})},b.prototype.restoreSettings=function(){var a=void 0;try{a=JSON.parse(m["default"].localStorage.getItem(w))}catch(b){v["default"].warn(b)}a&&this.setValues(a)},b.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var a=this.getValues();try{Object.keys(a).length?m["default"].localStorage.setItem(w,JSON.stringify(a)):m["default"].localStorage.removeItem(w)}catch(b){v["default"].warn(b)}}},b.prototype.updateDisplay=function(){var a=this.player_.getChild("textTrackDisplay");a&&a.updateDisplay()},b}(o["default"]);o["default"].registerComponent("TextTrackSettings",J),c["default"]=J},{5:5,81:81,83:83,86:86,88:88,95:95}],72:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(67),j=e(i),k=a(83),l=d(k),m=a(73),n=a(86),o=e(n),p=a(95),q=e(p),r=a(75),s=e(r),t=a(92),u=a(99),v=e(u),w=a(87),x=e(w),y=a(78),z=d(y),A=function(a,b){var c=new q["default"].WebVTT.Parser(q["default"],q["default"].vttjs,q["default"].WebVTT.StringDecoder()),d=[];c.oncue=function(a){b.addCue(a)},c.onparsingerror=function(a){d.push(a)},c.onflush=function(){b.trigger({type:"loadeddata",target:b})},c.parse(a),d.length>0&&(q["default"].console&&q["default"].console.groupCollapsed&&q["default"].console.groupCollapsed("Text Track parsing errors for "+b.src),d.forEach(function(a){return o["default"].error(a)}),q["default"].console&&q["default"].console.groupEnd&&q["default"].console.groupEnd()),c.flush()},B=function(a,b){var c={uri:a},d=(0,t.isCrossOrigin)(a);d&&(c.cors=d),(0,v["default"])(c,l.bind(this,function(a,c,d){return a?o["default"].error(a,c):(b.loaded_=!0,void("function"!=typeof q["default"].WebVTT?b.tech_&&!function(){var a=function(){return A(d,b)};b.tech_.on("vttjsloaded",a),b.tech_.on("vttjserror",function(){o["default"].error("vttjs failed to load, stopping trying to process "+b.src),b.tech_.off("vttjsloaded",a)})}():A(d,b)))}))},C=function(a){function b(){var c,d,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(f(this,b),!e.tech)throw new Error("A tech was not provided.");var h=(0,x["default"])(e,{kind:m.TextTrackKind[e.kind]||"subtitles",language:e.language||e.srclang||""}),i=m.TextTrackMode[h.mode]||"disabled",k=h["default"];"metadata"!==h.kind&&"chapters"!==h.kind||(i="hidden");var n=c=g(this,a.call(this,h));if(n.tech_=h.tech,z.IS_IE8)for(var o in b.prototype)"constructor"!==o&&(n[o]=b.prototype[o]);n.cues_=[],n.activeCues_=[];var p=new j["default"](n.cues_),q=new j["default"](n.activeCues_),r=!1,s=l.bind(n,function(){this.activeCues,r&&(this.trigger("cuechange"),r=!1)});return"disabled"!==i&&n.tech_.on("timeupdate",s),Object.defineProperty(n,"default",{get:function(){return k},set:function(){}}),Object.defineProperty(n,"mode",{get:function(){return i},set:function(a){m.TextTrackMode[a]&&(i=a,"showing"===i&&this.tech_.on("timeupdate",s),this.trigger("modechange"))}}),Object.defineProperty(n,"cues",{get:function(){return this.loaded_?p:null},set:function(){}}),Object.defineProperty(n,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return q;for(var a=this.tech_.currentTime(),b=[],c=0,d=this.cues.length;c=a?b.push(e):e.startTime===e.endTime&&e.startTime<=a&&e.startTime+.5>=a&&b.push(e)}if(r=!1,b.length!==this.activeCues_.length)r=!0;else for(var f=0;f0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;f(this,b);var h=g(this,a.call(this));if(!e&&(e=h,l.IS_IE8)){e=n["default"].createElement("custom");for(var i in b.prototype)"constructor"!==i&&(e[i]=b.prototype[i])}e.tracks_=[],Object.defineProperty(e,"length",{get:function(){return this.tracks_.length}});for(var j=0;j0&&void 0!==arguments[0]?arguments[0]:{};f(this,b);var e=g(this,a.call(this)),h=e;if(j.IS_IE8){h=l["default"].createElement("custom");for(var i in b.prototype)"constructor"!==i&&(h[i]=b.prototype[i])}var k={id:d.id||"vjs_track_"+n.newGUID(),kind:d.kind||"",label:d.label||"",language:d.language||""},m=function(a){Object.defineProperty(h,a,{get:function(){return k[a]},set:function(){}})};for(var o in k)m(o);return c=h,g(e,c)}return h(b,a),b}(p["default"]);c["default"]=q},{42:42,78:78,85:85,94:94}],76:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(74),j=e(i),k=a(78),l=d(k),m=a(94),n=e(m),o=function(a,b){for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:[];f(this,b);for(var h=void 0,i=e.length-1;i>=0;i--)if(e[i].selected){o(e,e[i]);break}if(l.IS_IE8){h=n["default"].createElement("custom");for(var k in j["default"].prototype)"constructor"!==k&&(h[k]=j["default"].prototype[k]);for(var m in b.prototype)"constructor"!==m&&(h[m]=b.prototype[m])}return h=c=g(this,a.call(this,e,h)),h.changing_=!1,Object.defineProperty(h,"selectedIndex",{get:function(){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{};f(this,b);var h=(0,m["default"])(e,{kind:i.VideoTrackKind[e.kind]||""}),j=c=g(this,a.call(this,h)),k=!1;if(o.IS_IE8)for(var l in b.prototype)"constructor"!==l&&(j[l]=b.prototype[l]);return Object.defineProperty(j,"selected",{get:function(){return k},set:function(a){"boolean"==typeof a&&a!==k&&(k=a,this.trigger("selectedchange"))}}),h.selected&&(j.selected=h.selected),d=j,g(c,d)}return h(b,a),b}(k["default"]);c["default"]=p},{73:73,75:75,78:78,87:87}],78:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0,c.BACKGROUND_SIZE_SUPPORTED=c.TOUCH_ENABLED=c.IS_ANY_SAFARI=c.IS_SAFARI=c.IE_VERSION=c.IS_IE8=c.IS_CHROME=c.IS_EDGE=c.IS_FIREFOX=c.IS_NATIVE_ANDROID=c.IS_OLD_ANDROID=c.ANDROID_VERSION=c.IS_ANDROID=c.IOS_VERSION=c.IS_IOS=c.IS_IPOD=c.IS_IPHONE=c.IS_IPAD=void 0;var e=a(94),f=d(e),g=a(95),h=d(g),i=h["default"].navigator&&h["default"].navigator.userAgent||"",j=/AppleWebKit\\/([\\d.]+)/i.exec(i),k=j?parseFloat(j.pop()):null,l=c.IS_IPAD=/iPad/i.test(i),m=c.IS_IPHONE=/iPhone/i.test(i)&&!l,n=c.IS_IPOD=/iPod/i.test(i),o=c.IS_IOS=m||l||n,p=(c.IOS_VERSION=function(){var a=i.match(/OS (\\d+)_/i);return a&&a[1]?a[1]:null}(),c.IS_ANDROID=/Android/i.test(i)),q=c.ANDROID_VERSION=function(){var a=i.match(/Android (\\d+)(?:\\.(\\d+))?(?:\\.(\\d+))*/i);if(!a)return null;var b=a[1]&&parseFloat(a[1]),c=a[2]&&parseFloat(a[2]);return b&&c?parseFloat(a[1]+"."+a[2]):b?b:null}(),r=(c.IS_OLD_ANDROID=p&&/webkit/i.test(i)&&q<2.3,c.IS_NATIVE_ANDROID=p&&q<5&&k<537,c.IS_FIREFOX=/Firefox/i.test(i),c.IS_EDGE=/Edge/i.test(i)),s=c.IS_CHROME=!r&&/Chrome/i.test(i),t=(c.IS_IE8=/MSIE\\s8\\.0/.test(i),c.IE_VERSION=function(a){return a&&parseFloat(a[1])}(/MSIE\\s(\\d+)\\.\\d/.exec(i)),c.IS_SAFARI=/Safari/i.test(i)&&!s&&!p&&!r);c.IS_ANY_SAFARI=t||o,c.TOUCH_ENABLED=!!("ontouchstart"in h["default"]||h["default"].DocumentTouch&&f["default"]instanceof h["default"].DocumentTouch),c.BACKGROUND_SIZE_SUPPORTED="backgroundSize"in f["default"].createElement("video").style},{94:94,95:95}],79:[function(a,b,c){"use strict";function d(a,b){var c=0,d=void 0,f=void 0;if(!b)return 0;a&&a.length||(a=(0,e.createTimeRange)(0,0));for(var g=0;gb&&(f=b),c+=f-d;return c/b}c.__esModule=!0,c.bufferedPercent=d;var e=a(90)},{90:90}],80:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!a||!b)return"";if("function"==typeof g["default"].getComputedStyle){var c=g["default"].getComputedStyle(a);return c?c[b]:""}return a.currentStyle[b]||""}c.__esModule=!0,c["default"]=e;var f=a(95),g=d(f)},{95:95}],81:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){return a.raw=b,a}function g(a){return"string"==typeof a&&/\\S/.test(a)}function h(a){if(/\\s/.test(a))throw new Error("class has illegal whitespace characters")}function i(a){return new RegExp("(^|\\\\s)"+a+"($|\\\\s)")}function j(a){return(0,V.isObject)(a)&&1===a.nodeType}function k(a){return function(b,c){if(!g(b))return M["default"][a](null);g(c)&&(c=M["default"].querySelector(c));var d=j(c)?c:M["default"];return d[a]&&d[a](b)}}function l(a){return 0===a.indexOf("#")&&(a=a.slice(1)),M["default"].getElementById(a)}function m(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=arguments[3],e=M["default"].createElement(a);return Object.getOwnPropertyNames(b).forEach(function(a){var c=b[a];a.indexOf("aria-")!==-1||"role"===a||"type"===a?(S["default"].warn((0,U["default"])(K,a,c)),e.setAttribute(a,c)):"textContent"===a?n(e,c):e[a]=c}),Object.getOwnPropertyNames(c).forEach(function(a){e.setAttribute(a,c[a])}),d&&I(e,d),e}function n(a,b){return"undefined"==typeof a.textContent?a.innerText=b:a.textContent=b,a}function o(a,b){b.firstChild?b.insertBefore(a,b.firstChild):b.appendChild(a)}function p(a){var b=a[X];return b||(b=a[X]=Q.newGUID()),W[b]||(W[b]={}),W[b]}function q(a){var b=a[X];return!!b&&!!Object.getOwnPropertyNames(W[b]).length}function r(a){var b=a[X];if(b){delete W[b];try{delete a[X]}catch(c){a.removeAttribute?a.removeAttribute(X):a[X]=null}}}function s(a,b){return h(b),a.classList?a.classList.contains(b):i(b).test(a.className)}function t(a,b){return a.classList?a.classList.add(b):s(a,b)||(a.className=(a.className+" "+b).trim()),a}function u(a,b){return a.classList?a.classList.remove(b):(h(b),a.className=a.className.split(/\\s+/).filter(function(a){return a!==b}).join(" ")),a}function v(a,b,c){var d=s(a,b);if("function"==typeof c&&(c=c(a,b)),"boolean"!=typeof c&&(c=!d),c!==d)return c?t(a,b):u(a,b),a}function w(a,b){Object.getOwnPropertyNames(b).forEach(function(c){var d=b[c];null===d||"undefined"==typeof d||d===!1?a.removeAttribute(c):a.setAttribute(c,d===!0?"":d)})}function x(a){var b={},c=",autoplay,controls,loop,muted,default,";if(a&&a.attributes&&a.attributes.length>0)for(var d=a.attributes,e=d.length-1;e>=0;e--){var f=d[e].name,g=d[e].value;"boolean"!=typeof a[f]&&c.indexOf(","+f+",")===-1||(g=null!==g),b[f]=g}return b}function y(a,b){return a.getAttribute(b)}function z(a,b,c){a.setAttribute(b,c)}function A(a,b){a.removeAttribute(b)}function B(){M["default"].body.focus(),M["default"].onselectstart=function(){return!1}}function C(){M["default"].onselectstart=function(){return!0}}function D(a){var b=void 0;if(a.getBoundingClientRect&&a.parentNode&&(b=a.getBoundingClientRect()),!b)return{left:0,top:0};var c=M["default"].documentElement,d=M["default"].body,e=c.clientLeft||d.clientLeft||0,f=O["default"].pageXOffset||d.scrollLeft,g=b.left+f-e,h=c.clientTop||d.clientTop||0,i=O["default"].pageYOffset||d.scrollTop,j=b.top+i-h;return{left:Math.round(g),top:Math.round(j)}}function E(a,b){var c={},d=D(a),e=a.offsetWidth,f=a.offsetHeight,g=d.top,h=d.left,i=b.pageY,j=b.pageX;return b.changedTouches&&(j=b.changedTouches[0].pageX,i=b.changedTouches[0].pageY),c.y=Math.max(0,Math.min(1,(g-i+f)/f)),c.x=Math.max(0,Math.min(1,(j-h)/e)),c}function F(a){return(0,V.isObject)(a)&&3===a.nodeType}function G(a){for(;a.firstChild;)a.removeChild(a.firstChild);return a}function H(a){return"function"==typeof a&&(a=a()),(Array.isArray(a)?a:[a]).map(function(a){return"function"==typeof a&&(a=a()),j(a)||F(a)?a:"string"==typeof a&&/\\S/.test(a)?M["default"].createTextNode(a):void 0}).filter(function(a){return a})}function I(a,b){return H(b).forEach(function(b){return a.appendChild(b)}),a}function J(a,b){return I(G(a),b)}c.__esModule=!0,c.$$=c.$=void 0;var K=f(["Setting attributes in the second argument of createEl()\\n has been deprecated. Use the third argument instead.\\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\\n has been deprecated. Use the third argument instead.\\n createEl(type, properties, attributes). Attempting to set "," to ","."]);c.isEl=j,c.getEl=l,c.createEl=m,c.textContent=n,c.insertElFirst=o,c.getElData=p,c.hasElData=q,c.removeElData=r,c.hasElClass=s,c.addElClass=t,c.removeElClass=u,c.toggleElClass=v,c.setElAttributes=w,c.getElAttributes=x,c.getAttribute=y,c.setAttribute=z,c.removeAttribute=A,c.blockTextSelection=B,c.unblockTextSelection=C,c.findElPosition=D,c.getPointerPosition=E,c.isTextNode=F,c.emptyEl=G,c.normalizeContent=H,c.appendContent=I,c.insertContent=J;var L=a(94),M=e(L),N=a(95),O=e(N),P=a(85),Q=d(P),R=a(86),S=e(R),T=a(98),U=e(T),V=a(88),W={},X="vdata"+(new Date).getTime();c.$=k("querySelector"),c.$$=k("querySelectorAll")},{85:85,86:86,88:88,94:94,95:95,98:98}],82:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){var c=n.getElData(a);0===c.handlers[b].length&&(delete c.handlers[b],a.removeEventListener?a.removeEventListener(b,c.dispatcher,!1):a.detachEvent&&a.detachEvent("on"+b,c.dispatcher)),Object.getOwnPropertyNames(c.handlers).length<=0&&(delete c.handlers,delete c.dispatcher,delete c.disabled),0===Object.getOwnPropertyNames(c).length&&n.removeElData(a)}function g(a,b,c,d){c.forEach(function(c){a(b,c,d)})}function h(a){function b(){return!0}function c(){return!1}return a&&a.isPropagationStopped||!function(){var d=a||t["default"].event;a={};for(var e in d)"layerX"!==e&&"layerY"!==e&&"keyLocation"!==e&&"webkitMovementX"!==e&&"webkitMovementY"!==e&&("returnValue"===e&&d.preventDefault||(a[e]=d[e]));if(a.target||(a.target=a.srcElement||v["default"]),a.relatedTarget||(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement),a.preventDefault=function(){d.preventDefault&&d.preventDefault(),a.returnValue=!1,d.returnValue=!1,a.defaultPrevented=!0},a.defaultPrevented=!1,a.stopPropagation=function(){d.stopPropagation&&d.stopPropagation(),a.cancelBubble=!0,d.cancelBubble=!0,a.isPropagationStopped=b},a.isPropagationStopped=c,a.stopImmediatePropagation=function(){d.stopImmediatePropagation&&d.stopImmediatePropagation(),a.isImmediatePropagationStopped=b,a.stopPropagation()},a.isImmediatePropagationStopped=c,null!==a.clientX&&void 0!==a.clientX){var f=v["default"].documentElement,g=v["default"].body;a.pageX=a.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=a.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)}a.which=a.charCode||a.keyCode,null!==a.button&&void 0!==a.button&&(a.button=1&a.button?0:4&a.button?1:2&a.button?2:0)}(),a}function i(a,b,c){if(Array.isArray(b))return g(i,a,b,c);var d=n.getElData(a);d.handlers||(d.handlers={}),d.handlers[b]||(d.handlers[b]=[]),c.guid||(c.guid=p.newGUID()),d.handlers[b].push(c),d.dispatcher||(d.disabled=!1,d.dispatcher=function(b,c){if(!d.disabled){b=h(b);var e=d.handlers[b.type];if(e)for(var f=e.slice(0),g=0,i=f.length;g=b&&(a.apply(void 0,arguments),c=d)};return d}},{85:85}],84:[function(a,b,c){"use strict";function d(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;a=a<0?0:a;var c=Math.floor(a%60),d=Math.floor(a/60%60),e=Math.floor(a/3600),f=Math.floor(b/60%60),g=Math.floor(b/3600);return(isNaN(a)||a===1/0)&&(e=d=c="-"),e=e>0||g>0?e+":":"",d=((e||f>=10)&&d<10?"0"+d:d)+":",c=c<10?"0"+c:c,e+d+c}c.__esModule=!0,c["default"]=d},{}],85:[function(a,b,c){"use strict";function d(){return e++}c.__esModule=!0,c.newGUID=d;var e=1},{}],86:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0,c.logByType=void 0;var e=a(95),f=d(e),g=a(78),h=a(88),i=void 0,j=c.logByType=function(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!g.IE_VERSION&&g.IE_VERSION<11;"log"!==a&&b.unshift(a.toUpperCase()+":"),i.history.push(b),b.unshift("VIDEOJS:");var d=f["default"].console&&f["default"].console[a];d&&(c&&(b=b.map(function(a){if((0,h.isObject)(a)||Array.isArray(a))try{return JSON.stringify(a)}catch(b){return String(a)}return String(a)}).join(" ")),d.apply?d[Array.isArray(b)?"apply":"call"](f["default"].console,b):d(b))};i=function(){for(var a=arguments.length,b=Array(a),c=0;c2&&void 0!==arguments[2]?arguments[2]:0;return Object.keys(a).reduce(function(c,d){return b(c,a[d],d)},c)}function f(a){for(var b=arguments.length,c=Array(b>1?b-1:0),e=1;ec)throw new Error("Failed to execute \'"+a+"\' on \'TimeRanges\': The index provided ("+b+") is greater than or equal to the maximum bound ("+c+").")}function f(a,b,c,d){return void 0===d&&(j["default"].warn("DEPRECATED: Function \'"+a+"\' on \'TimeRanges\' called without an index argument."),d=0),e(a,d,c.length-1),c[d][b]}function g(a){return void 0===a||0===a.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:a.length,start:f.bind(null,"start",0,a),end:f.bind(null,"end",1,a)}}function h(a,b){return Array.isArray(a)?g(a):void 0===a||void 0===b?g():g([[a,b]])}c.__esModule=!0,c.createTimeRange=void 0,c.createTimeRanges=h;var i=a(86),j=d(i);c.createTimeRange=h},{86:86}],91:[function(a,b,c){"use strict";function d(a){return"string"!=typeof a?a:a.charAt(0).toUpperCase()+a.slice(1)}c.__esModule=!0,c["default"]=d},{}],92:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0,c.isCrossOrigin=c.getFileExtension=c.getAbsoluteURL=c.parseUrl=void 0;var e=a(94),f=d(e),g=a(95),h=d(g),i=c.parseUrl=function(a){var b=["protocol","hostname","port","pathname","search","hash","host"],c=f["default"].createElement("a");c.href=a;var d=""===c.host&&"file:"!==c.protocol,e=void 0;d&&(e=f["default"].createElement("div"),e.innerHTML=\'\',c=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),f["default"].body.appendChild(e));for(var g={},h=0;hx\',a=b.firstChild.href}return a},c.getFileExtension=function(a){if("string"==typeof a){var b=/^(\\/?)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?)(\\.([^\\.\\/\\?]+)))(?:[\\/]*|[\\?].*)$/i,c=b.exec(a);if(c)return c.pop().toLowerCase()}return""},c.isCrossOrigin=function(a){var b=h["default"].location,c=i(a),d=":"===c.protocol?b.protocol:c.protocol,e=d+c.host!==b.protocol+b.host;return e}},{94:94,95:95}],93:[function(b,c,d){"use strict";function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b,c){var d=void 0;if(b=b||{},"string"==typeof a){if(0===a.indexOf("#")&&(a=a.slice(1)),g.getPlayers()[a])return b&&O["default"].warn(\'Player "\'+a+\'" is already initialised. Options will not be applied.\'),c&&g.getPlayers()[a].ready(c),g.getPlayers()[a];d=Q.getEl(a)}else d=a;if(!d||!d.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(d.player||x["default"].players[d.playerId])return d.player||x["default"].players[d.playerId];g.hooks("beforesetup").forEach(function(a){var c=a(d,(0,B["default"])(b));return!(0,V.isObject)(c)||Array.isArray(c)?void g.log.error("please return an object in beforesetup hooks"):void(b=(0,B["default"])(b,c))});var e=r["default"].getComponent("Player"),f=new e(d,b,c);return g.hooks("setup").forEach(function(a){return a(f)}),f}d.__esModule=!0;var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},i=b(95),j=f(i),k=b(94),l=f(k),m=b(56),n=e(m),o=b(89),p=e(o),q=b(5),r=f(q),s=b(42),t=f(s),u=b(82),v=e(u),w=b(51),x=f(w),y=b(52),z=f(y),A=b(87),B=f(A),C=b(83),D=e(C),E=b(72),F=f(E),G=b(64),H=f(G),I=b(77),J=f(I),K=b(90),L=b(84),M=f(L),N=b(86),O=f(N),P=b(81),Q=e(P),R=b(78),S=e(R),T=b(92),U=e(T),V=b(88),W=b(80),X=f(W),Y=b(43),Z=f(Y),$=b(99),_=f($),aa=b(62),ba=f(aa);if("undefined"==typeof HTMLVideoElement&&j["default"].document&&j["default"].document.createElement&&(l["default"].createElement("video"),l["default"].createElement("audio"),l["default"].createElement("track")),g.hooks_={},g.hooks=function(a,b){return g.hooks_[a]=g.hooks_[a]||[],b&&(g.hooks_[a]=g.hooks_[a].concat(b)),g.hooks_[a]},g.hook=function(a,b){g.hooks(a,b)},g.removeHook=function(a,b){var c=g.hooks(a).indexOf(b);return!(c<=-1)&&(g.hooks_[a]=g.hooks_[a].slice(),g.hooks_[a].splice(c,1),!0)},j["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0){var ca=Q.$(".vjs-styles-defaults");if(!ca){ca=p.createStyleElement("vjs-styles-defaults");var da=Q.$("head");da&&da.insertBefore(ca,da.firstChild),p.setTextContent(ca,"\\n .video-js {\\n width: 300px;\\n height: 150px;\\n }\\n\\n .vjs-fluid {\\n padding-top: 56.25%\\n }\\n ")}}n.autoSetupTimeout(1,g),g.VERSION="5.14.1",g.options=x["default"].prototype.options_,g.getPlayers=function(){return x["default"].players},g.players=x["default"].players,g.getComponent=r["default"].getComponent,g.registerComponent=function(a,b){ba["default"].isTech(b)&&O["default"].warn("The "+a+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),r["default"].registerComponent.call(r["default"],a,b)},g.getTech=ba["default"].getTech,g.registerTech=ba["default"].registerTech,g.browser=S,g.TOUCH_ENABLED=S.TOUCH_ENABLED,g.extend=Z["default"],g.mergeOptions=B["default"],g.bind=D.bind,g.plugin=z["default"],g.addLanguage=function(a,b){var c;return a=(""+a).toLowerCase(),g.options.languages=(0,B["default"])(g.options.languages,(c={},c[a]=b,c)),g.options.languages[a]},g.log=O["default"],g.createTimeRange=g.createTimeRanges=K.createTimeRanges,g.formatTime=M["default"],g.parseUrl=U.parseUrl,g.isCrossOrigin=U.isCrossOrigin,g.EventTarget=t["default"],g.on=v.on,g.one=v.one,g.off=v.off,g.trigger=v.trigger,g.xhr=_["default"],g.TextTrack=F["default"],g.AudioTrack=H["default"],g.VideoTrack=J["default"],g.isEl=Q.isEl,g.isTextNode=Q.isTextNode,g.createEl=Q.createEl,g.hasClass=Q.hasElClass,g.addClass=Q.addElClass,g.removeClass=Q.removeElClass,g.toggleClass=Q.toggleElClass,g.setAttributes=Q.setElAttributes,g.getAttributes=Q.getElAttributes,g.emptyEl=Q.emptyEl,g.appendContent=Q.appendContent,g.insertContent=Q.insertContent,g.computedStyle=X["default"],"function"==typeof a&&a.amd?a("videojs",[],function(){return g}):"object"===("undefined"==typeof d?"undefined":h(d))&&"object"===("undefined"==typeof c?"undefined":h(c))&&(c.exports=g),d["default"]=g},{42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,86:86,87:87,88:88,89:89,90:90,92:92,94:94,95:95,99:99}],94:[function(a,b,c){(function(c){var d="undefined"!=typeof c?c:"undefined"!=typeof window?window:{},e=a(96);if("undefined"!=typeof document)b.exports=document;else{var f=d["__GLOBAL_DOCUMENT_CACHE@4"];f||(f=d["__GLOBAL_DOCUMENT_CACHE@4"]=e),b.exports=f}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{96:96}],95:[function(a,b,c){(function(a){"undefined"!=typeof window?b.exports=window:"undefined"!=typeof a?b.exports=a:"undefined"!=typeof self?b.exports=self:b.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],96:[function(a,b,c){},{}],97:[function(a,b,c){function d(a,b){var c,d=null;try{c=JSON.parse(a,b)}catch(e){d=e}return[d,c]}b.exports=d},{}],98:[function(a,b,c){function d(a){return a.replace(/\\n\\r?\\s*/g,"")}b.exports=function(a){for(var b="",c=0;c0&&(o=setTimeout(function(){n=!0,j.abort("timeout");var a=new Error("XMLHttpRequest timeout");a.code="ETIMEDOUT",d(a)},a.timeout)),j.setRequestHeader)for(l in s)s.hasOwnProperty(l)&&j.setRequestHeader(l,s[l]);else if(a.headers&&!e(a.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in a&&(j.responseType=a.responseType),"beforeSend"in a&&"function"==typeof a.beforeSend&&a.beforeSend(j),j.send(r),j}function i(){}var j=a(95),k=a(101),l=a(100),m=a(104),n=a(105);b.exports=g,g.XMLHttpRequest=j.XMLHttpRequest||i,g.XDomainRequest="withCredentials"in new g.XMLHttpRequest?g.XMLHttpRequest:j.XDomainRequest,d(["get","put","post","patch","head","delete"],function(a){\ng["delete"===a?"del":a]=function(b,c,d){return c=f(b,c,d),c.method=a.toUpperCase(),h(c)}})},{100:100,101:101,104:104,105:105,95:95}],100:[function(a,b,c){function d(a){var b=e.call(a);return"[object Function]"===b||"function"==typeof a&&"[object RegExp]"!==b||"undefined"!=typeof window&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}b.exports=d;var e=Object.prototype.toString},{}],101:[function(a,b,c){function d(a){var b=!1;return function(){if(!b)return b=!0,a.apply(this,arguments)}}b.exports=d,d.proto=d(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return d(this)},configurable:!0})})},{}],102:[function(a,b,c){function d(a,b,c){if(!h(b))throw new TypeError("iterator must be a function");arguments.length<3&&(c=this),"[object Array]"===i.call(a)?e(a,b,c):"string"==typeof a?f(a,b,c):g(a,b,c)}function e(a,b,c){for(var d=0,e=a.length;d100)throw new Error("Position must be between 0 and 100.");u=a,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",e({},j,{get:function(){return v},set:function(a){var b=d(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");v=b,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",e({},j,{get:function(){return w},set:function(a){if(a<0||a>100)throw new Error("Size must be between 0 and 100.");w=a,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",e({},j,{get:function(){return x},set:function(a){var b=d(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");x=b,this.hasBeenReset=!0}})),h.displayState=void 0,i)return h}var g="auto",h={"":!0,lr:!0,rl:!0},i={start:!0,middle:!0,end:!0,left:!0,right:!0};f.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},a.VTTCue=a.VTTCue||f,b.VTTCue=f}(this,this.vttjs||{}),function(a,b){function c(a){if("string"!=typeof a)return!1;var b=f[a.toLowerCase()];return!!b&&a.toLowerCase()}function d(a){return"number"==typeof a&&a>=0&&a<=100}function e(){var a=100,b=3,e=0,f=100,g=0,h=100,i="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return a},set:function(b){if(!d(b))throw new Error("Width must be between 0 and 100.");a=b}},lines:{enumerable:!0,get:function(){return b},set:function(a){if("number"!=typeof a)throw new TypeError("Lines must be set to a number.");b=a}},regionAnchorY:{enumerable:!0,get:function(){return f},set:function(a){if(!d(a))throw new Error("RegionAnchorX must be between 0 and 100.");f=a}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(a){if(!d(a))throw new Error("RegionAnchorY must be between 0 and 100.");e=a}},viewportAnchorY:{enumerable:!0,get:function(){return h},set:function(a){if(!d(a))throw new Error("ViewportAnchorY must be between 0 and 100.");h=a}},viewportAnchorX:{enumerable:!0,get:function(){return g},set:function(a){if(!d(a))throw new Error("ViewportAnchorX must be between 0 and 100.");g=a}},scroll:{enumerable:!0,get:function(){return i},set:function(a){var b=c(a);if(b===!1)throw new SyntaxError("An invalid or illegal string was specified.");i=b}}})}var f={"":!0,up:!0};a.VTTRegion=a.VTTRegion||e,b.VTTRegion=e}(this,this.vttjs||{}),function(a){function b(a,b){this.name="ParsingError",this.code=a.code,this.message=b||a.message}function c(a){function b(a,b,c,d){return 3600*(0|a)+60*(0|b)+(0|c)+(0|d)/1e3}var c=a.match(/^(\\d+):(\\d{2})(:\\d{2})?\\.(\\d{3})/);return c?c[3]?b(c[1],c[2],c[3].replace(":",""),c[4]):c[1]>59?b(c[1],c[2],0,c[4]):b(0,c[1],c[2],c[4]):null}function d(){this.values=o(null)}function e(a,b,c,d){var e=d?a.split(d):[a];for(var f in e)if("string"==typeof e[f]){var g=e[f].split(c);if(2===g.length){var h=g[0],i=g[1];b(h,i)}}}function f(a,f,g){function h(){var d=c(a);if(null===d)throw new b(b.Errors.BadTimeStamp,"Malformed timestamp: "+k);return a=a.replace(/^[^\\sa-zA-Z-]+/,""),d}function i(a,b){var c=new d;e(a,function(a,b){switch(a){case"region":for(var d=g.length-1;d>=0;d--)if(g[d].id===b){c.set(a,g[d].region);break}break;case"vertical":c.alt(a,b,["rl","lr"]);break;case"line":var e=b.split(","),f=e[0];c.integer(a,f),c.percent(a,f)?c.set("snapToLines",!1):null,c.alt(a,f,["auto"]),2===e.length&&c.alt("lineAlign",e[1],["start","middle","end"]);break;case"position":e=b.split(","),c.percent(a,e[0]),2===e.length&&c.alt("positionAlign",e[1],["start","middle","end"]);break;case"size":c.percent(a,b);break;case"align":c.alt(a,b,["start","middle","end","left","right"])}},/:/,/\\s/),b.region=c.get("region",null),b.vertical=c.get("vertical",""),b.line=c.get("line","auto"),b.lineAlign=c.get("lineAlign","start"),b.snapToLines=c.get("snapToLines",!0),b.size=c.get("size",100),b.align=c.get("align","middle"),b.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},b.align),b.positionAlign=c.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},b.align)}function j(){a=a.replace(/^\\s+/,"")}var k=a;if(j(),f.startTime=h(),j(),"-->"!==a.substr(0,3))throw new b(b.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by \'-->\'): "+k);a=a.substr(3),j(),f.endTime=h(),j(),i(a,f)}function g(a,b){function d(){function a(a){return b=b.substr(a.length),a}if(!b)return null;var c=b.match(/^([^<]*)(<[^>]+>?)?/);return a(c[1]?c[1]:c[2])}function e(a){return p[a]}function f(a){for(;o=a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)a=a.replace(o[0],e);return a}function g(a,b){return!s[b.localName]||s[b.localName]===a.localName}function h(b,c){var d=q[b];if(!d)return null;var e=a.document.createElement(d);e.localName=d;var f=r[b];return f&&c&&(e[f]=c.trim()),e}for(var i,j=a.document.createElement("div"),k=j,l=[];null!==(i=d());)if("<"!==i[0])k.appendChild(a.document.createTextNode(f(i)));else{if("/"===i[1]){l.length&&l[l.length-1]===i.substr(2).replace(">","")&&(l.pop(),k=k.parentNode);continue}var m,n=c(i.substr(1,i.length-2));if(n){m=a.document.createProcessingInstruction("timestamp",n),k.appendChild(m);continue}var o=i.match(/^<([^.\\s\\/0-9>]+)(\\.[^\\s\\\\>]+)?([^>\\\\]+)?(\\\\?)>?$/);if(!o)continue;if(m=h(o[1],o[3]),!m)continue;if(!g(k,m))continue;o[2]&&(m.className=o[2].substr(1).replace("."," ")),l.push(o[1]),k.appendChild(m),k=m}return j}function h(a){function b(a,b){for(var c=b.childNodes.length-1;c>=0;c--)a.push(b.childNodes[c])}function c(a){if(!a||!a.length)return null;var d=a.pop(),e=d.textContent||d.innerText;if(e){var f=e.match(/^.*(\\n|\\r)/);return f?(a.length=0,f[0]):e}return"ruby"===d.tagName?c(a):d.childNodes?(b(a,d),c(a)):void 0}var d,e=[],f="";if(!a||!a.childNodes)return"ltr";for(b(e,a);f=c(e);)for(var g=0;g=0&&a.line<=100))return a.line;if(!a.track||!a.track.textTrackList||!a.track.textTrackList.mediaElement)return-1;for(var b=a.track,c=b.textTrackList,d=0,e=0;ei&&(e=new l(a),g=i),a=new l(f)}return e||f}var f=new l(b),g=b.cue,h=i(g),j=[];if(g.snapToLines){var k;switch(g.vertical){case"":j=["+y","-y"],k="height";break;case"rl":j=["+x","-x"],k="width";break;case"lr":j=["-x","+x"],k="width"}var m=f.lineHeight,n=m*Math.round(h),o=c[k]+m,p=j[0];Math.abs(n)>o&&(n=n<0?-1:1,n*=Math.ceil(o/m)*m),h<0&&(n+=""===g.vertical?c.height:c.width,j=j.reverse()),f.move(p,n)}else{var q=f.lineHeight/c.height*100;switch(g.lineAlign){case"middle":h-=q/2;break;case"end":h-=q}switch(g.vertical){case"":b.applyStyles({top:b.formatStyle(h,"%")});break;case"rl":b.applyStyles({left:b.formatStyle(h,"%")});break;case"lr":b.applyStyles({right:b.formatStyle(h,"%")})}j=["+y","-x","+x","-y"],f=new l(b)}var r=e(f,j);b.move(r.toCSSCompatValues(c))}function n(){}var o=Object.create||function(){function a(){}return function(b){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return a.prototype=b,new a}}();b.prototype=o(Error.prototype),b.prototype.constructor=b,b.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},d.prototype={set:function(a,b){this.get(a)||""===b||(this.values[a]=b)},get:function(a,b,c){return c?this.has(a)?this.values[a]:b[c]:this.has(a)?this.values[a]:b},has:function(a){return a in this.values},alt:function(a,b,c){for(var d=0;d=0&&b<=100))&&(this.set(a,b),!0)}};var p={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},q={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},r={v:"title",lang:"lang"},s={rt:"ruby"},t=[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];j.prototype.applyStyles=function(a,b){b=b||this.div;for(var c in a)a.hasOwnProperty(c)&&(b.style[c]=a[c])},j.prototype.formatStyle=function(a,b){return 0===a?0:a+b},k.prototype=o(j.prototype),k.prototype.constructor=k,l.prototype.move=function(a,b){switch(b=void 0!==b?b:this.lineHeight,a){case"+x":this.left+=b,this.right+=b;break;case"-x":this.left-=b,this.right-=b;break;case"+y":this.top+=b,this.bottom+=b;break;case"-y":this.top-=b,this.bottom-=b}},l.prototype.overlaps=function(a){return this.lefta.left&&this.topa.top},l.prototype.overlapsAny=function(a){for(var b=0;b=a.top&&this.bottom<=a.bottom&&this.left>=a.left&&this.right<=a.right},l.prototype.overlapsOppositeAxis=function(a,b){switch(b){case"+x":return this.lefta.right;case"+y":return this.topa.bottom}},l.prototype.intersectPercentage=function(a){var b=Math.max(0,Math.min(this.right,a.right)-Math.max(this.left,a.left)),c=Math.max(0,Math.min(this.bottom,a.bottom)-Math.max(this.top,a.top)),d=b*c;return d/(this.height*this.width)},l.prototype.toCSSCompatValues=function(a){return{top:this.top-a.top,bottom:a.bottom-this.bottom,left:this.left-a.left,right:a.right-this.right,height:this.height,width:this.width}},l.getSimpleBoxPosition=function(a){var b=a.div?a.div.offsetHeight:a.tagName?a.offsetHeight:0,c=a.div?a.div.offsetWidth:a.tagName?a.offsetWidth:0,d=a.div?a.div.offsetTop:a.tagName?a.offsetTop:0;a=a.div?a.div.getBoundingClientRect():a.tagName?a.getBoundingClientRect():a;var e={left:a.left,right:a.right,top:a.top||d,height:a.height||b,bottom:a.bottom||d+(a.height||b),width:a.width||c};return e},n.StringDecoder=function(){return{decode:function(a){if(!a)return"";if("string"!=typeof a)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))}}},n.convertCueToDOMTree=function(a,b){return a&&b?g(a,b):null};var u=.05,v="sans-serif",w="1.5%";n.processCues=function(a,b,c){function d(a){for(var b=0;b")===-1){i.cue.id=j;continue}case"CUE":try{f(j,i.cue,i.regionList)}catch(m){i.reportOrThrowError(m),i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var n=j.indexOf("-->")!==-1;if(!j||n&&(l=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\\n"),i.cue.text+=j;continue;case"BADCUE":j||(i.state="ID");continue}}}catch(m){i.reportOrThrowError(m),"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var a=this;try{if(a.buffer+=a.decoder.decode(),(a.cue||"HEADER"===a.state)&&(a.buffer+="\\n\\n",a.parse()),"INITIAL"===a.state)throw new b(b.Errors.BadSignature)}catch(c){a.reportOrThrowError(c)}return a.onflush&&a.onflush(),this}},a.WebVTT=n}(this,this.vttjs||{});\n!function(){!function(a){var b=a&&a.videojs;if(b){b.CDN_VERSION="5.14.1";var c="https:"===a.location.protocol?"https://":"http://";b.options.flash.swf=c+"vjs.zencdn.net/swf/5.1.0/video-js.swf"}}(window),function(a,b,c,d,e,f,g){b&&b.HELP_IMPROVE_VIDEOJS!==!1&&(e.random()>.01||(f=b.location,g=b.videojs||{},a.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-3&utmn=1&utmhn="+d(f.hostname)+"&utmsr="+b.screen.availWidth+"x"+b.screen.availHeight+"&utmul="+(c.language||c.userLanguage||"").toLowerCase()+"&utmr="+d(f.href)+"&utmp="+d(f.hostname+f.pathname)+"&utmcc=__utma%3D1."+e.floor(1e10*e.random())+".1.1.1.1%3B&utme=8(vjsv*cdnv)9("+g.VERSION+"*"+g.CDN_VERSION+")"))}(new Image,window,navigator,encodeURIComponent,Math)}();\n'},function(e,t){e.exports='/*** IMPORTS FROM imports-loader ***/\nvar define = false;\n\n(function t(e,i,n){function r(s,o){if(!i[s]){if(!e[s]){var u=typeof require=="function"&&require;if(!o&&u)return u(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module \'"+s+"\'");throw l.code="MODULE_NOT_FOUND",l}var c=i[s]={exports:{}};e[s][0].call(c.exports,function(t){var i=e[s][1][t];return r(i?i:t)},c,c.exports,t,e,i,n)}return i[s].exports}var a=typeof require=="function"&&require;for(var s=0;s0&&arguments[0]!==undefined?arguments[0]:"2.0";var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined}},{key:"initAd",value:function i(t,e,n,r){var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{AdParameters:""};var s=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{flashVars:""};var o=arguments.length>6&&arguments[6]!==undefined?arguments[6]:undefined}},{key:"resizeAd",value:function a(t,e,i){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:undefined}},{key:"startAd",value:function s(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"stopAd",value:function o(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"pauseAd",value:function u(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"resumeAd",value:function l(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"expandAd",value:function c(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"collapseAd",value:function d(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"skipAd",value:function f(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"getAdLinear",value:function h(t){}},{key:"getAdWidth",value:function p(t){}},{key:"getAdHeight",value:function v(t){}},{key:"getAdExpanded",value:function g(t){}},{key:"getAdSkippableState",value:function y(t){}},{key:"getAdRemainingTime",value:function m(t){}},{key:"getAdDuration",value:function A(t){}},{key:"setAdVolume",value:function k(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined}},{key:"getAdVolume",value:function _(t){}},{key:"getAdCompanions",value:function b(t){}},{key:"getAdIcons",value:function w(t){}}]);return t}();Object.defineProperty(a,"EVENTS",{writable:false,configurable:false,value:["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdError"]})},{}],2:[function(t,e,i){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(i,"__esModule",{value:true});var r=function(){function t(t,e){for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:"2.0";var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;this._flash.callFlashMethod("handshakeVersion",[t],e)}},{key:"initAd",value:function h(t,e,i,n){var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{AdParameters:""};var a=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{flashVars:""};var s=arguments.length>6&&arguments[6]!==undefined?arguments[6]:undefined;this._flash.setSize(t,e);r=r||{AdParameters:""};a=a||{flashVars:""};this._flash.callFlashMethod("initAd",[this._flash.getWidth(),this._flash.getHeight(),i,n,r.AdParameters||"",a.flashVars||""],s)}},{key:"resizeAd",value:function p(t,e,i){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:undefined;this._flash.setSize(t,e);this._flash.callFlashMethod("resizeAd",[this._flash.getWidth(),this._flash.getHeight(),i],n)}},{key:"startAd",value:function v(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("startAd",[],t)}},{key:"stopAd",value:function g(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("stopAd",[],t)}},{key:"pauseAd",value:function y(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("pauseAd",[],t)}},{key:"resumeAd",value:function m(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("resumeAd",[],t)}},{key:"expandAd",value:function A(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("expandAd",[],t)}},{key:"collapseAd",value:function k(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("collapseAd",[],t)}},{key:"skipAd",value:function _(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("skipAd",[],t)}},{key:"getAdLinear",value:function b(t){this._flash.callFlashMethod("getAdLinear",[],t)}},{key:"getAdWidth",value:function w(t){this._flash.callFlashMethod("getAdWidth",[],t)}},{key:"getAdHeight",value:function T(t){this._flash.callFlashMethod("getAdHeight",[],t)}},{key:"getAdExpanded",value:function E(t){this._flash.callFlashMethod("getAdExpanded",[],t)}},{key:"getAdSkippableState",value:function S(t){this._flash.callFlashMethod("getAdSkippableState",[],t)}},{key:"getAdRemainingTime",value:function V(t){this._flash.callFlashMethod("getAdRemainingTime",[],t)}},{key:"getAdDuration",value:function C(t){this._flash.callFlashMethod("getAdDuration",[],t)}},{key:"setAdVolume",value:function I(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;this._flash.callFlashMethod("setAdVolume",[t],e)}},{key:"getAdVolume",value:function F(t){this._flash.callFlashMethod("getAdVolume",[],t)}},{key:"getAdCompanions",value:function L(t){this._flash.callFlashMethod("getAdCompanions",[],t)}},{key:"getAdIcons",value:function U(t){this._flash.callFlashMethod("getAdIcons",[],t)}}]);return e}(u)},{"./IVPAIDAdUnit":1}],3:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i2&&arguments[2]!==undefined?arguments[2]:{data:"VPAIDFlash.swf",width:800,height:400};var o=this;var h=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{wmode:"transparent",salign:"tl",align:"left",allowScriptAccess:"always",scale:"noScale",allowFullScreen:"true",quality:"high"};var p=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{debug:false,timeout:1e4};r(this,t);var g=this;this._vpaidParentEl=e;this._flashID=f();this._destroyed=false;i=i||u;n.width=c(n.width,800);n.height=c(n.height,400);d(e,this._flashID,true);h.movie=n.data;h.FlashVars="flashid="+this._flashID+"&handler="+s.VPAID_FLASH_HANDLER+"&debug="+p.debug+"&salign="+h.salign;if(!t.isSupported()){return m("user don\'t support flash or doesn\'t have the minimum required version of flash "+v)}this.el=a.createSWF(n,h,this._flashID);if(!this.el){return m("swfobject failed to create object in element")}var y=l(p.timeout,function(t,e){A.call(o);i(t,e)},function(){i("vpaid flash load timeout "+p.timeout)});this._flash=new s(this.el,n.data,this._flashID,n.width,n.height,y);function m(t){setTimeout(function(){i(new Error(t))},0);return g}}n(t,[{key:"destroy",value:function e(){this._destroyAdUnit();if(this._flash){this._flash.destroy();this._flash=null}this.el=null;this._destroyed=true}},{key:"isDestroyed",value:function i(){return this._destroyed}},{key:"_destroyAdUnit",value:function h(){delete this._loadLater;if(this._adUnitLoad){this._adUnitLoad=null;this._flash.removeCallback(this._adUnitLoad)}if(this._adUnit){this._adUnit._destroy();this._adUnit=null}}},{key:"loadAdUnit",value:function p(t,e){var i=this;m.call(this);if(this._adUnit){this._destroyAdUnit()}if(this._flash.isReady()){this._adUnitLoad=function(t,n){if(!t){i._adUnit=new o(i._flash)}i._adUnitLoad=null;e(t,i._adUnit)};this._flash.callFlashMethod("loadAdUnit",[t],this._adUnitLoad)}else{this._loadLater={url:t,callback:e}}}},{key:"unloadAdUnit",value:function g(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;m.call(this);this._destroyAdUnit();this._flash.callFlashMethod("unloadAdUnit",[],t)}},{key:"getFlashID",value:function y(){m.call(this);return this._flash.getFlashID()}},{key:"getFlashURL",value:function k(){m.call(this);return this._flash.getFlashURL()}}]);return t}();k("isSupported",function(){return a.hasFlashPlayerVersion(v)&&g.isSupported()},true);k("runFlashTest",function(t){g=h(document.body,t)});function m(){if(this._destroyed){throw new Error("VPAIDFlashToJS is destroyed!")}}function A(){if(this._loadLater){this.loadAdUnit(this._loadLater.url,this._loadLater.callback);delete this._loadLater}}function k(t,e){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;Object.defineProperty(y,t,{writable:i,configurable:false,value:e})}y.swfobject=a;e.exports=y},{"./VPAIDAdUnit":2,"./flashTester.js":4,"./jsFlashBridge":5,"./utils":8,swfobject:14}],4:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:true});var n=function(){function t(t,e){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{data:"VPAIDFlash.swf",width:800,height:400};r(this,t);this.parentEl=l.createElementWithID(e,o);l.hideFlashEl(this.parentEl);var s={};s.movie=n.data;s.FlashVars="flashid="+o+"&handler="+u.VPAID_FLASH_HANDLER;s.allowScriptAccess="always";this.el=a.createSWF(n,s,o);this._handlers=new c;this._isSupported=false;if(this.el){l.hideFlashEl(this.el);this._flash=new u(this.el,n.data,o,n.width,n.height,function(){var t=true;i._isSupported=t;i._handlers.get("change").forEach(function(e){setTimeout(function(){e("change",t)},0)})})}}n(t,[{key:"isSupported",value:function e(){return this._isSupported}},{key:"on",value:function i(t,e){this._handlers.add(t,e)}}]);return t}();var f=i.createFlashTester=function h(t,e){if(!window[s]){window[s]=new d(t,e)}return window[s]}},{"./jsFlashBridge":5,"./registry":7,"./utils":8,swfobject:14}],5:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:true});var n=function(){function t(t,e){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:[];var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;var n="";if(i){n=this._uniqueMethodIdentifier()+"_"+t;this._callbacks.add(n,i)}try{this._el[t]([n].concat(e))}catch(r){if(i){p.call(this,n,r)}else{this._trigger(f,r)}}}},{key:"removeCallback",value:function g(t){return this._callbacks.removeByValue(t)}},{key:"removeCallbackByMethodName",value:function y(t){var e=this;this._callbacks.filterKeys(function(e){return o(e,t)}).forEach(function(t){e._callbacks.remove(t)})}},{key:"removeAllCallbacks",value:function m(){return this._callbacks.removeAll()}},{key:"_trigger",value:function A(t,e){var i=this;this._handlers.get(t).forEach(function(n){if(t==="AdClickThru"){n(e)}else{setTimeout(function(){if(i._handlers.get(t).length>0){n(e)}},0)}})}},{key:"_callCallback",value:function k(t,e,i,n){var r=this._callbacks.get(e);if(!r){if(i&&e===""){this.trigger(f,i)}return}p.call(this,e,i,n)}},{key:"_handShake",value:function _(t,e){this._ready=true;if(this._handShakeHandler){this._handShakeHandler(t,e);delete this._handShakeHandler}}},{key:"getSize",value:function b(){return{width:this._width,height:this._height}}},{key:"setSize",value:function w(t,e){this._width=s(t,this._width);this._height=s(e,this._height);this._el.setAttribute("width",this._width);this._el.setAttribute("height",this._height)}},{key:"getWidth",value:function T(){return this._width}},{key:"setWidth",value:function E(t){this.setSize(t,this._height)}},{key:"getHeight",value:function S(){return this._height}},{key:"setHeight",value:function V(t){this.setSize(this._width,t)}},{key:"getFlashID",value:function C(){return this._flashID}},{key:"getFlashURL",value:function I(){return this._flashURL}},{key:"isReady",value:function F(){return this._ready}},{key:"destroy",value:function L(){this.offAll();this.removeAllCallbacks();c.removeInstanceByID(this._flashID);if(this._el.parentElement){this._el.parentElement.removeChild(this._el)}}}]);return t}();function p(t,e,i){var n=this;setTimeout(function(){var r=n._callbacks.get(t);if(r){n._callbacks.remove(t);r(e,i)}},0)}Object.defineProperty(h,"VPAID_FLASH_HANDLER",{writable:false,configurable:false,value:d});window[d]=function(t,e,i,n,r,a){var s=c.getInstanceByID(t);if(!s)return;if(i==="handShake"){s._handShake(r,a)}else{if(e!=="event"){s._callCallback(i,n,r,a)}else{s._trigger(i,a)}}}},{"./jsFlashBridgeRegistry":6,"./registry":7,"./utils":8}],6:[function(t,e,i){"use strict";var n=t("./registry").SingleValueRegistry;var r=new n;var a={};Object.defineProperty(a,"addInstance",{writable:false,configurable:false,value:function s(t,e){r.add(t,e)}});Object.defineProperty(a,"getInstanceByID",{writable:false,configurable:false,value:function o(t){return r.get(t)}});Object.defineProperty(a,"removeInstanceByID",{writable:false,configurable:false,value:function u(t){return r.remove(t)}});e.exports=a},{"./registry":7}],7:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:true});var n=function(){function t(t,e){for(var i=0;i2&&arguments[2]!==undefined?arguments[2]:false;var n=document.createElement("div");n.id=e;if(i){t.innerHTML=""}t.appendChild(n);return n}function o(t,e){return!isNaN(parseFloat(t))&&isFinite(t)&&t>0?t:e}var u=function(){if(String.prototype.endsWith)return String.prototype.endsWith;return function t(e,i){var n=this.toString();if(i===undefined||i>n.length){i=n.length}i-=e.length;var r=n.indexOf(e,i);return r!==-1&&r===i}}();function l(t,e){return u.call(t,e)}function c(t){t.style.position="absolute";t.style.left="-1px";t.style.top="-1px";t.style.width="1px";t.style.height="1px"}},{}],9:[function(t,e,i){"use strict";var n=["handshakeVersion","initAd","startAd","stopAd","skipAd","resizeAd","pauseAd","resumeAd","expandAd","collapseAd","subscribe","unsubscribe"];var r=["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdError"];var a=["getAdLinear","getAdWidth","getAdHeight","getAdExpanded","getAdSkippableState","getAdRemainingTime","getAdDuration","getAdVolume","getAdCompanions","getAdIcons"];var s=["setAdVolume"];function o(t,e,i){}o.prototype.handshakeVersion=function(t,e){};o.prototype.initAd=function(t,e,i,n,r,a,s){};o.prototype.startAd=function(t){};o.prototype.stopAd=function(t){};o.prototype.skipAd=function(t){};o.prototype.resizeAd=function(t,e,i,n){};o.prototype.pauseAd=function(t){};o.prototype.resumeAd=function(t){};o.prototype.expandAd=function(t){};o.prototype.collapseAd=function(t){};o.prototype.subscribe=function(t,e,i){};o.prototype.unsubscribe=function(t,e){};o.prototype.getAdLinear=function(t){};o.prototype.getAdWidth=function(t){};o.prototype.getAdHeight=function(t){};o.prototype.getAdExpanded=function(t){};o.prototype.getAdSkippableState=function(t){};o.prototype.getAdRemainingTime=function(t){};o.prototype.getAdDuration=function(t){};o.prototype.getAdVolume=function(t){};o.prototype.getAdCompanions=function(t){};o.prototype.getAdIcons=function(t){};o.prototype.setAdVolume=function(t,e){};l(o,"METHODS",n);l(o,"GETTERS",a);l(o,"SETTERS",s);l(o,"EVENTS",r);var u=n.filter(function(t){return["skipAd"].indexOf(t)===-1});l(o,"checkVPAIDInterface",function c(t){var e=u.every(function(e){return typeof t[e]==="function"});return e});e.exports=o;function l(t,e,i){Object.defineProperty(t,e,{writable:false,configurable:false,value:i})}},{}],10:[function(t,e,i){"use strict";var n=t("./IVPAIDAdUnit");var r=t("./subscriber");var a=n.checkVPAIDInterface;var s=t("./utils");var o=n.METHODS;var u="AdError";var l="AdClickThru";var c=n.EVENTS.filter(function(t){return t!=l});function d(t,e,i,n){this._isValid=a(t);if(this._isValid){this._creative=t;this._el=e;this._videoEl=i;this._iframe=n;this._subscribers=new r;s.setFullSizeStyle(e);f.call(this)}}d.prototype=Object.create(n.prototype);d.prototype.isValidVPAIDAd=function g(){return this._isValid};n.METHODS.forEach(function(t){var e=["subscribe","unsubscribe","initAd"];if(e.indexOf(t)!==-1)return;d.prototype[t]=function(){var e=n.prototype[t].length;var i=Array.prototype.slice.call(arguments);var r=e===i.length?i.pop():undefined;setTimeout(function(){var e,n=null;try{e=this._creative[t].apply(this._creative,i)}catch(a){n=a}v(r,this._subscribers,n,e)}.bind(this),0)}});d.prototype.initAd=function y(t,e,i,n,r,a,o){r=r||{};a=s.extend({slot:this._el,videoSlot:this._videoEl},a||{});setTimeout(function(){var s;try{this._creative.initAd(t,e,i,n,r,a)}catch(u){s=u}v(o,this._subscribers,s)}.bind(this),0)};d.prototype.subscribe=function m(t,e,i){this._subscribers.subscribe(e,t,i)};d.prototype.unsubscribe=function A(t,e){this._subscribers.unsubscribe(e,t)};d.prototype.on=d.prototype.subscribe;d.prototype.off=d.prototype.unsubscribe;n.GETTERS.forEach(function(t){d.prototype[t]=function(e){setTimeout(function(){var i,n=null;try{i=this._creative[t]()}catch(r){n=r}v(e,this._subscribers,n,i)}.bind(this),0)}});d.prototype.setAdVolume=function k(t,e){setTimeout(function(){var i,n=null;try{this._creative.setAdVolume(t);i=this._creative.getAdVolume()}catch(r){n=r}if(!n){n=s.validate(i===t,"failed to apply volume: "+t)}v(e,this._subscribers,n,i)}.bind(this),0)};d.prototype._destroy=function _(){this.stopAd();this._subscribers.unsubscribeAll()};function f(){c.forEach(function(t){this._creative.subscribe(p.bind(this,t),t)}.bind(this));this._creative.subscribe(h.bind(this),l);if(this._videoEl){var t=this._iframe.contentDocument.documentElement;var e=this._videoEl;t.addEventListener("click",function(i){if(i.target===t){e.click()}})}}function h(t,e,i){this._subscribers.triggerSync(l,{url:t,id:e,playerHandles:i})}function p(t){this._subscribers.trigger(t,Array.prototype.slice(arguments,1))}function v(t,e,i,n){if(t){t(i,n)}else if(i){e.trigger(u,i)}}e.exports=d},{"./IVPAIDAdUnit":9,"./subscriber":12,"./utils":13}],11:[function(t,e,i){"use strict";var n=t("./utils");var r=n.unique("vpaidIframe");var a=t("./VPAIDAdUnit");var s=""+\'\'+\'\'+\'
\'+\'\'+\'"+""+"";var o="AdStopped";function u(t,e,i,a){i=i||{};this._id=r();this._destroyed=false;this._frameContainer=n.createElementInEl(t,"div");this._videoEl=e;this._vpaidOptions=a||{timeout:1e4};this._templateConfig={template:i.template||s,extraOptions:i.extraOptions||{}}}u.prototype.destroy=function y(){if(this._destroyed){return}this._destroyed=true;d.call(this)};u.prototype.isDestroyed=function m(){return this._destroyed};u.prototype.loadAdUnit=function A(t,e){v.call(this);d.call(this);var i=this;var r=n.createIframeWithContent(this._frameContainer,this._templateConfig.template,n.extend({iframeURL_JS:t,iframeID:this.getID(),origin:g()},this._templateConfig.extraOptions));this._frame=r;this._onLoad=n.callbackTimeout(this._vpaidOptions.timeout,s.bind(this),u.bind(this));window.addEventListener("message",this._onLoad);function s(t){if(t.origin!==g())return;var r=JSON.parse(t.data);if(r.id!==i.getID())return;var s,u,l;if(!i._frame.contentWindow){u="the iframe is not anymore in the DOM tree"}else{l=i._frame.contentWindow.getVPAIDAd;u=n.validate(typeof l==="function","the ad didn\'t return a function to create an ad")}if(!u){var d=i._frame.contentWindow.document.querySelector(".ad-element");s=new a(l(),d,i._videoEl,i._frame);s.subscribe(o,c.bind(i));u=n.validate(s.isValidVPAIDAd(),"the add is not fully complaint with VPAID specification")}i._adUnit=s;h.call(i);e(u,u?null:s);return true}function u(){e("timeout",null)}};u.prototype.unloadAdUnit=function k(){d.call(this)};u.prototype.getID=function(){return this._id};function l(t){var e=this[t];if(e){e.remove();delete this[t]}}function c(){f.call(this);delete this._adUnit}function d(){f.call(this);p.call(this)}function f(){l.call(this,"_frame");h.call(this)}function h(){if(this._onLoad){window.removeEventListener("message",this._onLoad);n.clearCallbackTimeout(this._onLoad);delete this._onLoad}}function p(){if(this._adUnit){this._adUnit.stopAd();delete this._adUnit}}function v(){if(this._destroyed){throw new Error("VPAIDHTML5Client already destroyed!")}}function g(){if(window.location.origin){return window.location.origin}else{return window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}}e.exports=u},{"./VPAIDAdUnit":10,"./utils":13}],12:[function(t,e,i){"use strict";function n(){this._subscribers={}}n.prototype.subscribe=function r(t,e,i){if(!this.isHandlerAttached(t,e)){this.get(e).push({handler:t,context:i,eventName:e})}};n.prototype.unsubscribe=function a(t,e){this._subscribers[e]=this.get(e).filter(function(e){return t!==e.handler})};n.prototype.unsubscribeAll=function s(){this._subscribers={}};n.prototype.trigger=function(t,e){var i=this;var n=this.get(t).concat(this.get("*"));n.forEach(function(t){setTimeout(function(){if(i.isHandlerAttached(t.handler,t.eventName)){t.handler.call(t.context,e)}},0)})};n.prototype.triggerSync=function(t,e){var i=this.get(t).concat(this.get("*"));i.forEach(function(t){t.handler.call(t.context,e)})};n.prototype.get=function o(t){if(!this._subscribers[t]){this._subscribers[t]=[]}return this._subscribers[t]};n.prototype.isHandlerAttached=function u(t,e){return this.get(e).some(function(e){return t===e.handler})};e.exports=n},{}],13:[function(t,e,i){"use strict";function n(){}function r(t,e){return t?null:new Error(e)}var a={};function s(t){var e=a[t];if(e){clearTimeout(e);delete a[t]}}function o(t,e,i){var r,o;o=setTimeout(function(){e=n;delete o[r];i()},t);r=function(){if(e.apply(this,arguments)){s(r)}};a[r]=o;return r}function u(t,e,i){var n=document.createElement(e);if(i)n.id=i;t.appendChild(n);return n}function l(t,e,i){var n=c(t,null,i.zIndex);if(!h(n,f(e,i)))return;return n}function c(t,e,i){var n=document.createElement("iframe");n.src=e||"about:blank";n.marginWidth="0";n.marginHeight="0";n.frameBorder="0";n.width="100%";n.height="100%";d(n);if(i){n.style.zIndex=i}n.setAttribute("SCROLLING","NO");t.innerHTML="";t.appendChild(n);return n}function d(t){t.style.position="absolute";t.style.left="0";t.style.top="0";t.style.margin="0px";t.style.padding="0px";t.style.border="none";t.style.width="100%";t.style.height="100%"}function f(t,e){Object.keys(e).forEach(function(i){var n=typeof n==="object"?JSON.stringify(e[i]):e[i];t=t.replace(new RegExp("{{"+i+"}}","g"),n)});return t}function h(t,e){var i=t.contentWindow&&t.contentWindow.document;if(!i)return false;i.write(e);return true}function p(t,e){Object.keys(e).forEach(function(i){t[i]=e[i]});return t}function v(t){var e=-1;return function(){return t+"_"+ ++e}}e.exports={noop:n,validate:r,clearCallbackTimeout:s,callbackTimeout:o,createElementInEl:u,createIframeWithContent:l,createIframe:c,setFullSizeStyle:d,simpleTemplate:f,setIframeContent:h,extend:p,unique:v}},{}],14:[function(t,e,i){(function(t,i){if(typeof define==="function"&&define.amd){define(i)}else if(typeof e==="object"&&e.exports){e.exports=i()}else{t.swfobject=i()}})(this,function(){var t="undefined",e="object",i="Shockwave Flash",n="ShockwaveFlash.ShockwaveFlash",r="application/x-shockwave-flash",a="SWFObjectExprInst",s="onreadystatechange",o=window,u=document,l=navigator,c=false,d=[],f=[],h=[],p=[],v,g,y,m,A=false,k=false,_,b,w=true,T=false,E=function(){var a=typeof u.getElementById!==t&&typeof u.getElementsByTagName!==t&&typeof u.createElement!==t,s=l.userAgent.toLowerCase(),d=l.platform.toLowerCase(),f=d?/win/.test(d):/win/.test(s),h=d?/mac/.test(d):/mac/.test(s),p=/webkit/.test(s)?parseFloat(s.replace(/^.*webkit\\/(\\d+(\\.\\d+)?).*$/,"$1")):false,v=l.appName==="Microsoft Internet Explorer",g=[0,0,0],y=null;if(typeof l.plugins!==t&&typeof l.plugins[i]===e){y=l.plugins[i].description;if(y&&(typeof l.mimeTypes!==t&&l.mimeTypes[r]&&l.mimeTypes[r].enabledPlugin)){\nc=true;v=false;y=y.replace(/^.*\\s+(\\S+\\s+\\S+$)/,"$1");g[0]=q(y.replace(/^(.*)\\..*$/,"$1"));g[1]=q(y.replace(/^.*\\.(.*)\\s.*$/,"$1"));g[2]=/[a-zA-Z]/.test(y)?q(y.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0}}else if(typeof o.ActiveXObject!==t){try{var m=new ActiveXObject(n);if(m){y=m.GetVariable("$version");if(y){v=true;y=y.split(" ")[1].split(",");g=[q(y[0]),q(y[1]),q(y[2])]}}}catch(A){}}return{w3:a,pv:g,wk:p,ie:v,win:f,mac:h}}(),S=function(){if(!E.w3){return}if(typeof u.readyState!==t&&(u.readyState==="complete"||u.readyState==="interactive")||typeof u.readyState===t&&(u.getElementsByTagName("body")[0]||u.body)){V()}if(!A){if(typeof u.addEventListener!==t){u.addEventListener("DOMContentLoaded",V,false)}if(E.ie){u.attachEvent(s,function e(){if(u.readyState==="complete"){u.detachEvent(s,e);V()}});if(o==top){(function i(){if(A){return}try{u.documentElement.doScroll("left")}catch(t){setTimeout(i,0);return}V()})()}}if(E.wk){(function n(){if(A){return}if(!/loaded|complete/.test(u.readyState)){setTimeout(n,0);return}V()})()}}}();function V(){if(A||!document.getElementsByTagName("body")[0]){return}try{var t,e=z("span");e.style.display="none";t=u.getElementsByTagName("body")[0].appendChild(e);t.parentNode.removeChild(t);t=null;e=null}catch(i){return}A=true;var n=d.length;for(var r=0;r0){for(var i=0;i0){var s=W(n);if(s){if(J(f[i].swfVersion)&&!(E.wk&&E.wk<312)){Q(n,true);if(r){a.success=true;a.ref=U(n);a.id=n;r(a)}}else if(f[i].expressInstall&&P()){var o={};o.data=f[i].expressInstall;o.width=s.getAttribute("width")||"0";o.height=s.getAttribute("height")||"0";if(s.getAttribute("class")){o.styleclass=s.getAttribute("class")}if(s.getAttribute("align")){o.align=s.getAttribute("align")}var u={};var l=s.getElementsByTagName("param");var c=l.length;for(var d=0;d"+e+"";return i.firstChild}function O(i,n,a){var s,o=W(a);a=B(a);if(E.wk&&E.wk<312){return s}if(o){var u=E.ie?z("div"):z(e),l,c,d;if(typeof i.id===t){i.id=a}for(d in n){if(n.hasOwnProperty(d)&&d.toLowerCase()!=="movie"){N(u,d,n[d])}}if(E.ie){u=R(i.data,u.innerHTML)}for(l in i){if(i.hasOwnProperty(l)){c=l.toLowerCase();if(c==="styleclass"){u.setAttribute("class",i[l])}else if(c!=="classid"&&c!=="data"){u.setAttribute(l,i[l])}}}if(E.ie){h[h.length]=i.id}else{u.setAttribute("type",r);u.setAttribute("data",i.data)}o.parentNode.replaceChild(u,o);s=u}return s}function N(t,e,i){var n=z("param");n.setAttribute("name",e);n.setAttribute("value",i);t.appendChild(n)}function j(t){var e=W(t);if(e&&e.nodeName.toUpperCase()==="OBJECT"){if(E.ie){e.style.display="none";(function i(){if(e.readyState==4){for(var t in e){if(typeof e[t]==="function"){e[t]=null}}e.parentNode.removeChild(e)}else{setTimeout(i,10)}})()}else{e.parentNode.removeChild(e)}}}function H(t){return t&&t.nodeType&&t.nodeType===1}function B(t){return H(t)?t.id:t}function W(t){if(H(t)){return t}var e=null;try{e=u.getElementById(t)}catch(i){}return e}function z(t){return u.createElement(t)}function q(t){return parseInt(t,10)}function X(t,e,i){t.attachEvent(e,i);p[p.length]=[t,e,i]}function J(t){t+="";var e=E.pv,i=t.split(".");i[0]=q(i[0]);i[1]=q(i[1])||0;i[2]=q(i[2])||0;return e[0]>i[0]||e[0]==i[0]&&e[1]>i[1]||e[0]==i[0]&&e[1]==i[1]&&e[2]>=i[2]?true:false}function $(e,i,n,r){var a=u.getElementsByTagName("head")[0];if(!a){return}var s=typeof n==="string"?n:"screen";if(r){_=null;b=null}if(!_||b!=s){var o=z("style");o.setAttribute("type","text/css");o.setAttribute("media",s);_=a.appendChild(o);if(E.ie&&typeof u.styleSheets!==t&&u.styleSheets.length>0){_=u.styleSheets[u.styleSheets.length-1]}b=s}if(_){if(typeof _.addRule!==t){_.addRule(e,i)}else if(typeof u.createTextNode!==t){_.appendChild(u.createTextNode(e+" {"+i+"}"))}}}function Q(t,e){if(!w){return}var i=e?"visible":"hidden",n=W(t);if(A&&n){n.style.visibility=i}else if(typeof t==="string"){$("#"+t,"visibility:"+i)}}function G(e){var i=/[\\\\\\"<>\\.;]/;var n=i.exec(e)!==null;return n&&typeof encodeURIComponent!==t?encodeURIComponent(e):e}var K=function(){if(E.ie){window.attachEvent("onunload",function(){var t=p.length;for(var e=0;e found companion ad");s.debug(" companionJTree:",t);this.creativeType=a.attr(t.staticResource,"creativeType");this.staticResource=a.keyValue(t.staticResource);s.info(" creativeType: "+this.creativeType);s.info(" staticResource: "+this.staticResource);var e=null;if(a.keyValue(t.HTMLResource)){e=a.keyValue(t.HTMLResource)}else if(a.keyValue(t.hTMLResource)){e=a.keyValue(t.hTMLResource)}if(e!==null){s.info(" found html resource",e)}this.htmlResource=e;var i=null;if(a.keyValue(t.IFrameResource)){i=a.keyValue(t.IFrameResource)}else if(a.keyValue(t.iFrameresource)){i=a.keyValue(t.iFrameresource)}if(i!==null){s.info(" found iframe resource",i)}this.iframeResource=i;this.id=a.attr(t,"id");this.width=a.attr(t,"width");this.height=a.attr(t,"height");this.expandedWidth=a.attr(t,"expandedWidth");this.expandedHeight=a.attr(t,"expandedHeight");this.scalable=a.attr(t,"scalable");this.maintainAspectRatio=a.attr(t,"maintainAspectRatio");this.minSuggestedDuration=a.attr(t,"minSuggestedDuration");this.apiFramework=a.attr(t,"apiFramework");this.companionClickThrough=a.keyValue(t.companionClickThrough);this.trackingEvents=u(t.trackingEvents&&t.trackingEvents.tracking);s.info(" companionClickThrough: "+this.companionClickThrough);function u(t){var e=[];if(r.isDefined(t)){t=r.isArray(t)?t:[t];t.forEach(function(t){e.push(new n(t))})}return e}}e.exports=o},{"../../utils/consoleLogger":41,"../../utils/utilityFunctions":47,"../../utils/xml":48,"./TrackingEvent":21}],17:[function(t,e,i){"use strict";var n=t("./Linear");var r=t("./Companion");var a=t("../../utils/utilityFunctions");function s(t){if(!(this instanceof s)){return new s(t)}this.id=t.attr("id");this.sequence=t.attr("sequence");this.adId=t.attr("adId");this.apiFramework=t.attr("apiFramework");if(t.linear){this.linear=new n(t.linear)}if(t.companionAds){var e=[];var i=t.companionAds&&t.companionAds.companion;if(a.isDefined(i)){i=a.isArray(i)?i:[i];i.forEach(function(t){e.push(new r(t))})}this.companionAds=e}}s.prototype.isSupported=function(){if(this.linear){return this.linear.isSupported()}return true};s.parseCreatives=function o(t){var e=[];var i;if(a.isDefined(t)&&a.isDefined(t.creative)){i=a.isArray(t.creative)?t.creative:[t.creative];i.forEach(function(t){e.push(new s(t))})}return e};e.exports=s},{"../../utils/utilityFunctions":47,"./Companion":16,"./Linear":19}],18:[function(t,e,i){"use strict";var n=t("./vastUtil");var r=t("./Creative");var a=t("../../utils/utilityFunctions");var s=t("../../utils/xml");function o(t){if(!(this instanceof o)){return new o(t)}this.adTitle=s.keyValue(t.adTitle);this.adSystem=s.keyValue(t.adSystem);this.impressions=n.parseImpressions(t.impression);this.creatives=r.parseCreatives(t.creatives);this.description=s.keyValue(t.description);this.advertiser=s.keyValue(t.advertiser);this.surveys=e(t.survey);this.error=s.keyValue(t.error);this.pricing=s.keyValue(t.pricing);this.extensions=t.extensions;function e(t){if(t){return a.transformArray(a.isArray(t)?t:[t],function(t){if(a.isNotEmptyString(t.keyValue)){return{uri:t.keyValue,type:t.attr("type")}}return undefined})}return[]}}o.prototype.isSupported=function(){var t,e;if(this.creatives.length===0){return false}for(t=0,e=this.creatives.length;t0){f(r.shift(),[],a)}else{e(t,n)}}else{e(null,n)}}});function a(t,e){var n=i._requestVASTXml.bind(i,t);o.waterfall([n,s],e)}function s(t,e){var i;try{i=c.toJXONTree(t);d.debug("built JXONTree from VAST response:",i);if(l.isArray(i.ad)){i.ads=i.ad}else if(i.ad){i.ads=[i.ad]}else{i.ads=[]}e(u(i),i)}catch(n){e(new r("on VASTClient.getVASTAd.buildVastWaterfall, error parsing xml",100),null)}}function u(t){var e=c.attr(t,"version");if(!t.ad){return new r("on VASTClient.getVASTAd.validateVASTTree, no Ad in VAST tree",303)}if(e&&(e!=3&&e!=2)){return new r(\'on VASTClient.getVASTAd.validateVASTTree, not supported VAST version "\'+e+\'"\',102)}return null}function f(t,e,n){if(e.length>=i.WRAPPER_LIMIT){return n(new r("on VASTClient.getVASTAd.getAd, players wrapper limit reached (the limit is "+i.WRAPPER_LIMIT+")",302),e)}o.waterfall([function(e){if(l.isString(t)){v(t,e)}else{e(null,t)}},h],function(t,i){if(i){e.push(i)}if(t){return n(t,e)}if(i.wrapper){return f(i.wrapper.VASTAdTagURI,e,n)}return n(null,e)})}function h(t,e){try{var i=new n(t);e(p(i),i)}catch(a){e(new r("on VASTClient.getVASTAd.buildAd, error parsing xml",100),null)}}function p(t){var e=t.wrapper;var i=t.inLine;var n="on VASTClient.getVASTAd.validateAd, ";if(i&&e){return new r(n+"InLine and Wrapper both found on the same Ad",101)}if(!i&&!e){return new r(n+"nor wrapper nor inline elements found on the Ad",101)}if(i&&!i.isSupported()){return new r(n+"could not find MediaFile that is supported by this video player",403)}if(e&&!e.VASTAdTagURI){return new r(n+"missing \'VASTAdTagURI\' in wrapper",101)}return null}function v(t,e){i._requestVASTXml(t,function(t,i){if(t){return e(t)}try{var n=c.toJXONTree(i);e(u(n),n.ad)}catch(a){e(new r("on VASTClient.getVASTAd.requestVASTAd, error parsing xml",100))}})}};f.prototype._requestVASTXml=function p(t,e){try{if(l.isFunction(t)){t(n)}else{d.info("requesting adTagUrl: "+t);u.get(t,n,{withCredentials:true})}}catch(i){e(i)}function n(t,i,n){if(t){var a=l.isDefined(n)?"on VASTClient.requestVastXML, HTTP request error with status \'"+n+"\'":"on VASTClient.requestVastXML, Error getting the the VAST XML with he passed adTagXML fn";return e(new r(a,301),null)}e(null,i)}};f.prototype._buildVASTResponse=function v(t){var e=new a;i(e,t);n(e);return e;function i(t,e){e.forEach(function(e){t.addAd(e)})}function n(t){var e=t.trackingEvents.progress;if(!t.hasLinear()){throw new r("on VASTClient._buildVASTResponse, Received an Ad type that is not supported",200)}if(t.duration===undefined){throw new r("on VASTClient._buildVASTResponse, Missing duration field in VAST response",101)}if(e){e.forEach(function(t){if(!l.isNumber(t.offset)){throw new r("on VASTClient._buildVASTResponse, missing or wrong offset attribute on progress tracking event",101)}})}}};f.prototype._trackError=function(t,e){if(!l.isArray(e)||e.length===0){return}var i=[];e.forEach(n);s.track(i,{ERRORCODE:t.code||900});function n(t){if(t.wrapper&&t.wrapper.error){i.push(t.wrapper.error)}if(t.inLine&&t.inLine.error){i.push(t.inLine.error)}}};e.exports=f},{"../../utils/async":40,"../../utils/consoleLogger":41,"../../utils/http":43,"../../utils/utilityFunctions":47,"../../utils/xml":48,"./Ad":15,"./VASTError":23,"./VASTResponse":25,"./vastUtil":30}],23:[function(t,e,i){"use strict";function n(t,e){this.message="VAST Error: "+(t||"");if(e){this.code=e}}n.prototype=new Error;n.prototype.name="VAST Error";e.exports=n},{}],24:[function(t,e,i){"use strict";var n=t("./VASTResponse");var r=t("./VASTError");var a=t("./VASTTracker");var s=t("./vastUtil");var o=t("../../utils/async");var u=t("../../utils/dom");var l=t("../../utils/playerUtils");var c=t("../../utils/utilityFunctions");var d=t("../../utils/consoleLogger");function f(t){if(!(this instanceof f)){return new f(t)}this.player=t}f.prototype.playAd=function h(t,e){var i=this;e=e||c.noop;if(!(t instanceof n)){return e(new r("On VASTIntegrator, missing required VASTResponse"))}o.waterfall([function(e){e(null,t)},this._selectAdSource.bind(this),this._createVASTTracker.bind(this),this._addClickThrough.bind(this),this._addSkipButton.bind(this),this._setupEvents.bind(this),this._playSelectedAd.bind(this)],function(t,n){if(t&&n){i._trackError(t,n)}e(t,n)});this._adUnit={_src:null,type:"VAST",pauseAd:function(){i.player.pause(true)},resumeAd:function(){i.player.play(true)},isPaused:function(){return i.player.paused(true)},getSrc:function(){return this._src}};return this._adUnit};f.prototype._selectAdSource=function p(t,e){var i;var n=u.getDimension(this.player.el()).width;t.mediaFiles.sort(function a(t,e){var i=Math.abs(n-t.width);var r=Math.abs(n-e.width);return i-r});i=this.player.selectSource(t.mediaFiles).source;if(i){d.info("selected source: ",i);if(this._adUnit){this._adUnit._src=i}return e(null,i,t)}e(new r("Could not find Ad mediafile supported by this player",403),t)};f.prototype._createVASTTracker=function v(t,e,i){var n=this.player;try{i(null,t,new a(t.src,e,n),e)}catch(r){i(r,e)}};f.prototype._setupEvents=function g(t,e,i,n){var r;var a=this.player;a.on("fullscreenchange",o);a.on("vast.adStart",d);a.on("pause",u);a.on("timeupdate",c);a.on("volumechange",f);l.once(a,["vast.adEnd","vast.adsCancel"],s);l.once(a,["vast.adEnd","vast.adsCancel","vast.adSkip"],function(t){if(t.type==="vast.adEnd"){e.trackComplete();a.trigger("vast.complete")}});return n(null,t,i);function s(){a.off("fullscreenchange",o);a.off("vast.adStart",d);a.off("pause",u);a.off("timeupdate",c);a.off("volumechange",f)}function o(){if(a.isFullscreen()){e.trackFullscreen();a.trigger("vast.exitFullscreen")}else{e.trackExitFullscreen();a.trigger("vast.fullscreen")}}function u(){if(Math.abs(a.duration()-a.currentTime())<2){return}e.trackPause();a.trigger("vast.pause");l.once(a,["play","vast.adEnd","vast.adsCancel"],function(t){if(t.type==="play"){e.trackResume();a.trigger("vast.resume")}})}function c(){var t=a.currentTime()*1e3;e.trackProgress(t)}function d(){e.trackImpressions();a.trigger("vast.impression");e.trackCreativeView();a.trigger("vast.creativeView")}function f(){var t=a.muted();if(t){e.trackMute();a.trigger("vast.mute")}else if(r){e.trackUnmute();a.trigger("vast.unmute")}r=t}};f.prototype._addSkipButton=function y(t,e,i,n){var r;var a=this;if(c.isNumber(i.skipoffset)){r=i.skipoffset/1e3;s(this.player,r)}n(null,t,e,i);function s(t,e){var i=o(t);var n=d.bind(a,i,e,t);t.el().appendChild(i);t.on("timeupdate",n);l.once(t,["vast.adEnd","vast.adsCancel"],r);function r(){t.off("timeupdate",n);u.remove(i)}}function o(t){var i=window.document.createElement("div");u.addClass(i,"vast-skip-button");i.onclick=function(n){if(u.hasClass(i,"enabled")){e.trackSkip();t.trigger("vast.adSkip")}if(window.Event.prototype.stopPropagation!==undefined){n.stopPropagation()}else{return false}};return i}function d(t,e,i){var n=Math.ceil(e-i.currentTime());if(n>0){t.innerHTML="Skip in "+c.toFixedDigits(n,2)+"..."}else{if(!u.hasClass(t,"enabled")){u.addClass(t,"enabled");t.innerHTML="Skip ad"}}}};f.prototype._addClickThrough=function m(t,e,i,n){var r=this.player;var a=d(r,e,i);var o=f.bind(this,a,i,r);r.el().insertBefore(a,r.controlBar.el());r.on("timeupdate",o);l.once(r,["vast.adEnd","vast.adsCancel"],p);return n(null,t,e,i);function d(t,e,i){var n=window.document.createElement("a");var r=i.clickThrough;u.addClass(n,"vast-blocker");n.href=h(r,t);if(c.isString(r)){n.target="_blank"}n.onclick=function(i){if(t.paused()){t.play();if(window.Event.prototype.stopPropagation!==undefined){i.stopPropagation()}return false}t.pause();t.trigger("vast.adclick");e.trackClick()};return n}function f(t,e,i){t.href=h(e.clickThrough,i)}function h(e,i){var n={ASSETURI:t.src,CONTENTPLAYHEAD:s.formatProgress(i.currentTime()*1e3)};return e?s.parseURLMacro(e,n):"#"}function p(){r.off("timeupdate",o);u.remove(a)}};f.prototype._playSelectedAd=function A(t,e,i){var n=this.player;n.preload("auto");n.src(t);d.debug(" waiting for durationchange to play the ad...");l.once(n,["durationchange","error","vast.adsCancel"],function(t){if(t.type==="durationchange"){d.debug(" got durationchange; calling playAd()");a()}else if(t.type==="error"){i(new r("on VASTIntegrator, Player is unable to play the Ad",400),e)}});function a(){l.once(n,["playing","vast.adsCancel"],function(t){if(t.type==="vast.adsCancel"){return}d.debug(" got playing event; triggering vast.adStart...");n.trigger("vast.adStart");n.on("ended",r);n.on("vast.adsCancel",r);n.on("vast.adSkip",r);function r(t){if(t.type==="ended"&&n.duration()-n.currentTime()>3){return}n.off("ended",r);n.off("vast.adsCancel",r);n.off("vast.adSkip",r);if(t.type==="ended"||t.type==="vast.adSkip"){i(null,e)}}});d.debug(" calling player.play()...");n.play()}};f.prototype._trackError=function k(t,e){s.track(e.errorURLMacros,{ERRORCODE:t.code||900})};e.exports=f},{"../../utils/async":40,"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/playerUtils":45,"../../utils/utilityFunctions":47,"./VASTError":23,"./VASTResponse":25,"./VASTTracker":26,"./vastUtil":30}],25:[function(t,e,i){"use strict";var n=t("./Ad");var r=t("./VideoClicks");var a=t("./Linear");var s=t("./InLine");var o=t("./Wrapper");var u=t("../../utils/utilityFunctions");var l=t("../../utils/xml");window.InLine__A=s;function c(){if(!(this instanceof c)){return new c}this._linearAdded=false;this.ads=[];this.errorURLMacros=[];this.impressions=[];this.clickTrackings=[];this.customClicks=[];this.trackingEvents={};this.mediaFiles=[];this.clickThrough=undefined;this.adTitle="";this.duration=undefined;this.skipoffset=undefined}c.prototype.addAd=function(t){var e,i;if(t instanceof n){e=t.inLine;i=t.wrapper;this.ads.push(t);if(e){this._addInLine(e)}if(i){this._addWrapper(i)}}};c.prototype._addErrorTrackUrl=function(t){var e=t instanceof l.JXONTree?l.keyValue(t):t;if(e){this.errorURLMacros.push(e)}};c.prototype._addImpressions=function(t){u.isArray(t)&&d(this.impressions,t)};c.prototype._addClickThrough=function(t){if(u.isNotEmptyString(t)){this.clickThrough=t}};c.prototype._addClickTrackings=function(t){u.isArray(t)&&d(this.clickTrackings,t)};c.prototype._addCustomClicks=function(t){u.isArray(t)&&d(this.customClicks,t)};c.prototype._addTrackingEvents=function(t){var e=this.trackingEvents;if(t){t=u.isArray(t)?t:[t];t.forEach(function(t){if(!e[t.name]){e[t.name]=[]}e[t.name].push(t)})}};c.prototype._addTitle=function(t){if(u.isNotEmptyString(t)){this.adTitle=t}};c.prototype._addDuration=function(t){if(u.isNumber(t)){this.duration=t}};c.prototype._addVideoClicks=function(t){if(t instanceof r){this._addClickThrough(t.clickThrough);this._addClickTrackings(t.clickTrackings);this._addCustomClicks(t.customClicks)}};c.prototype._addMediaFiles=function(t){u.isArray(t)&&d(this.mediaFiles,t)};c.prototype._addSkipoffset=function(t){if(t){this.skipoffset=t}};c.prototype._addAdParameters=function(t){if(t){this.adParameters=t}};c.prototype._addLinear=function(t){if(t instanceof a){this._addDuration(t.duration);this._addTrackingEvents(t.trackingEvents);this._addVideoClicks(t.videoClicks);this._addMediaFiles(t.mediaFiles);this._addSkipoffset(t.skipoffset);this._addAdParameters(t.adParameters);this._linearAdded=true}};c.prototype._addInLine=function(t){var e=this;if(t instanceof s){this._addTitle(t.adTitle);this._addErrorTrackUrl(t.error);this._addImpressions(t.impressions);t.creatives.forEach(function(t){if(t.linear){e._addLinear(t.linear)}})}};c.prototype._addWrapper=function(t){var e=this;if(t instanceof o){this._addErrorTrackUrl(t.error);this._addImpressions(t.impressions);t.creatives.forEach(function(t){var i=t.linear;if(i){e._addVideoClicks(i.videoClicks);e.clickThrough=undefined;e._addTrackingEvents(i.trackingEvents)}})}};c.prototype.hasLinear=function(){return this._linearAdded};function d(t,e){e.forEach(function(e){t.push(e)})}e.exports=c},{"../../utils/utilityFunctions":47,"../../utils/xml":48,"./Ad":15,"./InLine":18,"./Linear":19,"./VideoClicks":27,"./Wrapper":28}],26:[function(t,e,i){"use strict";var n=t("./VASTError");var r=t("./VASTResponse");var a=t("./vastUtil");var s=t("../../utils/utilityFunctions");function o(t,e,i){if(!(this instanceof o)){return new o(t,e,i)}if(s.isUndefined(i)){i={trigger:s.noop}}this.sanityCheck(t,e,i);this.initialize(t,e,i)}o.prototype.initialize=function(t,e,i){this.response=e;this.assetURI=t;this.progress=0;this.quartiles={start:{tracked:false,time:0},firstQuartile:{tracked:false,time:Math.round(25*e.duration)/100},midpoint:{tracked:false,time:Math.round(50*e.duration)/100},thirdQuartile:{tracked:false,time:Math.round(75*e.duration)/100}};this.triggerable=i};o.prototype.sanityCheck=function(t,e,i){if(!s.isString(t)||s.isEmptyString(t)){throw new n("on VASTTracker constructor, missing required the URI of the ad asset being played")}if(!(e instanceof r)){throw new n("on VASTTracker constructor, missing required VAST response")}if(!s.isFunction(i.trigger)){throw new n("on VASTTracker constructor, missing triggerable")}};o.prototype.trackURLs=function u(t,e){if(s.isArray(t)&&t.length>0){e=s.extend({ASSETURI:this.assetURI,CONTENTPLAYHEAD:a.formatProgress(this.progress)},e||{});a.track(t,e)}};o.prototype.trackEvent=function l(t,e){this.trackURLs(i(this.response.trackingEvents[t]));if(e){this.response.trackingEvents[t]=undefined}function i(t){var e;if(t){e=[];t.forEach(function(t){if(!t.uri){return}e.push(t.uri)})}return e}};o.prototype.trackProgress=function c(t){var e=this;var i=[];var n=true;var r=false;var a=this.response.trackingEvents;var o=this.triggerable;if(s.isNumber(t)){l("rewind",r,u(this.progress,t));c(t);f(t);h();this.progress=t}function u(e,i){var n=3e3;return e>t&&Math.abs(i-e)>n}function l(t,e,n){if(n){o.trigger("vast."+t)}if(a[t]&&n){i.push({name:t,trackOnce:!!e})}}function c(t){var i=e.quartiles;var r=e.quartiles.start;var a=e.quartiles.firstQuartile;var s=e.quartiles.midpoint;var o=e.quartiles.thirdQuartile;if(!r.tracked){u("start",t)}else if(!a.tracked){u("firstQuartile",t)}else if(!s.tracked){u("midpoint",t)}else if(!o.tracked){u("thirdQuartile",t)}function u(t,e){var r=i[t];if(d(r,e)){r.tracked=true;l(t,n,true)}}}function d(t,e){var i=t.time;return e>=i&&e<=i+5e3}function f(t){if(!s.isArray(a.progress)){return}var i=[];a.progress.forEach(function(n){if(n.offset<=t){e.trackURLs([n.uri])}else{i.push(n)}});a.progress=i}function h(){i.forEach(function(t){e.trackEvent(t.name,t.trackOnce)})}};["rewind","fullscreen","exitFullscreen","pause","resume","mute","unmute","acceptInvitation","acceptInvitationLinear","collapse","expand"].forEach(function(t){o.prototype["track"+s.capitalize(t)]=function(){this.trackEvent(t)}});["skip","close","closeLinear"].forEach(function(t){o.prototype["track"+s.capitalize(t)]=function(){this.trackEvent(t,true)}});["start","firstQuartile","midpoint","thirdQuartile"].forEach(function(t){o.prototype["track"+s.capitalize(t)]=function(){this.quartiles[t].tracked=true;this.trackEvent(t,true)}});o.prototype.trackComplete=function(){if(this.quartiles.thirdQuartile.tracked){this.trackEvent("complete",true)}};o.prototype.trackErrorWithCode=function d(t){if(s.isNumber(t)){this.trackURLs(this.response.errorURLMacros,{ERRORCODE:t})}};o.prototype.trackImpressions=function f(){this.trackURLs(this.response.impressions)};o.prototype.trackCreativeView=function h(){this.trackEvent("creativeView")};o.prototype.trackClick=function p(){this.trackURLs(this.response.clickTrackings)};e.exports=o},{"../../utils/utilityFunctions":47,"./VASTError":23,"./VASTResponse":25,"./vastUtil":30}],27:[function(t,e,i){"use strict";var n=t("../../utils/utilityFunctions");var r=t("../../utils/xml");function a(t){if(!(this instanceof a)){return new a(t)}this.clickThrough=r.keyValue(t.clickThrough);this.clickTrackings=e(t.clickTracking);this.customClicks=e(t.customClick);function e(t){var e=[];if(t){t=n.isArray(t)?t:[t];t.forEach(function(t){e.push(r.keyValue(t));\n})}return e}}e.exports=a},{"../../utils/utilityFunctions":47,"../../utils/xml":48}],28:[function(t,e,i){"use strict";var n=t("./vastUtil");var r=t("./Creative");var a=t("../../utils/utilityFunctions");var s=t("../../utils/xml");function o(t){if(!(this instanceof o)){return new o(t)}this.adSystem=s.keyValue(t.adSystem);this.impressions=n.parseImpressions(t.impression);this.VASTAdTagURI=s.keyValue(t.vASTAdTagURI);this.creatives=r.parseCreatives(t.creatives);this.error=s.keyValue(t.error);this.extensions=t.extensions;this.followAdditionalWrappers=a.isDefined(s.attr(t,"followAdditionalWrappers"))?s.attr(t,"followAdditionalWrappers"):true;this.allowMultipleAds=s.attr(t,"allowMultipleAds");this.fallbackOnNoAd=s.attr(t,"fallbackOnNoAd")}e.exports=o},{"../../utils/utilityFunctions":47,"../../utils/xml":48,"./Creative":17,"./vastUtil":30}],29:[function(t,e,i){"use strict";var n=t("../../utils/utilityFunctions");var r=/(\\d\\d):(\\d\\d):(\\d\\d)(\\.(\\d\\d\\d))?/;var a={duration:function s(t){var e,i;if(n.isString(t)){e=t.match(r);if(e){i=a(e[1])+s(e[2])+o(e[3])+parseInt(e[5]||0)}}return isNaN(i)?null:i;function a(t){return parseInt(t,10)*60*60*1e3}function s(t){return parseInt(t,10)*60*1e3}function o(t){return parseInt(t,10)*1e3}},offset:function o(t,e){if(i(t)){return n(t,e)}return a.duration(t);function i(t){var e=/^\\d+(\\.\\d+)?%$/g;return e.test(t)}function n(t,e){if(e){return r(e,parseFloat(t.replace("%","")))}return null}function r(t,e){return t*e/100}}};e.exports=a},{"../../utils/utilityFunctions":47}],30:[function(t,e,i){"use strict";var n=t("../../utils/utilityFunctions");var r=t("../vpaid/VPAIDHTML5Tech");var a=t("../vpaid/VPAIDFlashTech");var s=t("VPAIDFLASHClient/js/VPAIDFLASHClient");var o={track:function u(t,e){var i=o.parseURLMacros(t,e);var n=[];i.forEach(function(t){var e=new Image;e.src=t;n.push(e)});return n},parseURLMacros:function l(t,e){var i=[];e=e||{};if(!e["CACHEBUSTING"]){e["CACHEBUSTING"]=Math.round(Math.random()*1e10)}t.forEach(function(t){i.push(o._parseURLMacro(t,e))});return i},parseURLMacro:function c(t,e){e=e||{};if(!e["CACHEBUSTING"]){e["CACHEBUSTING"]=Math.round(Math.random()*1e10)}return o._parseURLMacro(t,e)},_parseURLMacro:function d(t,e){e=e||{};n.forEach(e,function(e,i){t=t.replace(new RegExp("\\\\["+i+"\\\\]","gm"),e)});return t},parseDuration:function f(t){var e=/(\\d\\d):(\\d\\d):(\\d\\d)(\\.(\\d\\d\\d))?/;var i,r;if(n.isString(t)){i=t.match(e);if(i){r=a(i[1])+s(i[2])+o(i[3])+parseInt(i[5]||0)}}return isNaN(r)?null:r;function a(t){return parseInt(t,10)*60*60*1e3}function s(t){return parseInt(t,10)*60*1e3}function o(t){return parseInt(t,10)*1e3}},parseImpressions:function h(t){if(t){t=n.isArray(t)?t:[t];return n.transformArray(t,function(t){if(n.isNotEmptyString(t.keyValue)){return t.keyValue}return undefined})}return[]},formatProgress:function p(t){var e,i,r,a;e=t/(60*60*1e3);e=Math.floor(e);i=t/(60*1e3)%60;i=Math.floor(i);r=t/1e3%60;r=Math.floor(r);a=t%1e3;return n.toFixedDigits(e,2)+":"+n.toFixedDigits(i,2)+":"+n.toFixedDigits(r,2)+"."+n.toFixedDigits(a,3)},parseOffset:function v(t,e){if(i(t)){return n(t,e)}return o.parseDuration(t);function i(t){var e=/^\\d+(\\.\\d+)?%$/g;return e.test(t)}function n(t,e){if(e){return r(e,parseFloat(t.replace("%","")))}return null}function r(t,e){return t*e/100}},VPAID_techs:[a,r],isVPAID:function g(t){return!!t&&t.apiFramework==="VPAID"},findSupportedVPAIDTech:function y(t){var e,i,n;for(e=0,i=this.VPAID_techs.length;e-1&&l.VPAIDFLASHClient.isSupported()};l.prototype.loadAdUnit=function c(t,e,i){var n=this;var a=this.settings&&this.settings.vpaidFlashLoaderPath?{data:this.settings.vpaidFlashLoaderPath}:undefined;c(t,i);this.containerEl=t;u.debug(" loading VPAIDFLASHClient with opts:",a);this.vpaidFlashClient=new l.VPAIDFLASHClient(t,function(t){if(t){return i(t)}u.info(" calling VPAIDFLASHClient.loadAdUnit(); that.mediaFile:",n.mediaFile);n.vpaidFlashClient.loadAdUnit(n.mediaFile.src,i)},a);function c(t,e){if(!o.isDomElement(t)){throw new r("on VPAIDFlashTech.loadAdUnit, invalid dom container element")}if(!s.isFunction(e)){throw new r("on VPAIDFlashTech.loadAdUnit, missing valid callback")}}};l.prototype.unloadAdUnit=function(){if(this.vpaidFlashClient){try{this.vpaidFlashClient.destroy()}catch(t){u.error("VAST ERROR: trying to unload the VPAID adunit")}this.vpaidFlashClient=null}if(this.containerEl){o.remove(this.containerEl);this.containerEl=null}};e.exports=l},{"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/mimetypes":44,"../../utils/utilityFunctions":47,"../vast/VASTError":23,"VPAIDFLASHClient/js/VPAIDFLASHClient":3}],33:[function(t,e,i){"use strict";var n=t("../../utils/mimetypes");var r=t("../vast/VASTError");var a=t("VPAIDHTML5Client/js/VPAIDHTML5Client");var s=t("../../utils/utilityFunctions");var o=t("../../utils/dom");var u=t("../../utils/consoleLogger");function l(t){if(!(this instanceof l)){return new l(t)}e(t);this.name="vpaid-html5";this.containerEl=null;this.videoEl=null;this.vpaidHTMLClient=null;this.mediaFile=t;function e(t){if(!t||!s.isString(t.src)){throw new r(l.INVALID_MEDIA_FILE)}}}l.VPAIDHTML5Client=a;l.supports=function(t){return!s.isOldIE()&&n.html5.indexOf(t)>-1};l.prototype.loadAdUnit=function d(t,e,i){n(t,e,i);this.containerEl=t;this.videoEl=e;this.vpaidHTMLClient=new l.VPAIDHTML5Client(t,e,{});this.vpaidHTMLClient.loadAdUnit(this.mediaFile.src,i);function n(t,e,i){if(!o.isDomElement(t)){throw new r(l.INVALID_DOM_CONTAINER_EL)}if(!o.isDomElement(e)||e.tagName.toLowerCase()!=="video"){throw new r(l.INVALID_DOM_CONTAINER_EL)}if(!s.isFunction(i)){throw new r(l.MISSING_CALLBACK)}}};l.prototype.unloadAdUnit=function f(){if(this.vpaidHTMLClient){try{this.vpaidHTMLClient.destroy()}catch(t){u.error("VAST ERROR: trying to unload the VPAID adunit")}this.vpaidHTMLClient=null}if(this.containerEl){o.remove(this.containerEl);this.containerEl=null}};var c="on VPAIDHTML5Tech";l.INVALID_MEDIA_FILE=c+", invalid MediaFile";l.INVALID_DOM_CONTAINER_EL=c+", invalid container HtmlElement";l.INVALID_DOM_VIDEO_EL=c+", invalid HTMLVideoElement";l.MISSING_CALLBACK=c+", missing valid callback";e.exports=l},{"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/mimetypes":44,"../../utils/utilityFunctions":47,"../vast/VASTError":23,"VPAIDHTML5Client/js/VPAIDHTML5Client":11}],34:[function(t,e,i){"use strict";var n=t("../../utils/mimetypes");var r=t("../vast/VASTError");var a=t("../vast/VASTResponse");var s=t("../vast/VASTTracker");var o=t("../vast/vastUtil");var u=t("./VPAIDAdUnitWrapper");var l=t("../../utils/async");var c=t("../../utils/dom");var d=t("../../utils/playerUtils");var f=t("../../utils/utilityFunctions");var h=t("../../utils/consoleLogger");function p(t,e){if(!(this instanceof p)){return new p(t)}this.VIEW_MODE={NORMAL:"normal",FULLSCREEN:"fullscreen",THUMBNAIL:"thumbnail"};this.player=t;this.containerEl=i(t);this.options={responseTimeout:5e3,VPAID_VERSION:"2.0"};this.settings=e;function i(){var e=document.createElement("div");c.addClass(e,"VPAID-container");t.el().insertBefore(e,t.controlBar.el());return e}}p.prototype.playAd=function y(t,e){if(!(t instanceof a)){return e(new r("on VASTIntegrator.playAd, missing required VASTResponse"))}var i=this;var n=this.player;h.debug(" looking for supported tech...");var s=this._findSupportedTech(t,this.settings);e=e||f.noop;this._adUnit=null;c.addClass(n.el(),"vjs-vpaid-ad");n.on("vast.adsCancel",d);n.one("vpaid.adEnd",function(){n.off("vast.adsCancel",d);p()});if(s){h.info(" found tech: ",s);l.waterfall([function(e){e(null,s,t)},this._loadAdUnit.bind(this),this._playAdUnit.bind(this),this._finishPlaying.bind(this)],u);this._adUnit={_paused:true,type:"VPAID",pauseAd:function(){n.trigger("vpaid.pauseAd");n.pause(true)},resumeAd:function(){n.trigger("vpaid.resumeAd")},isPaused:function(){return this._paused},getSrc:function(){return s.mediaFile}}}else{h.debug(" could not find suitable tech");var o=new r("on VPAIDIntegrator.playAd, could not find a supported mediaFile",403);u(o,this._adUnit,t)}return this._adUnit;function u(t,r,a){if(t&&a){i._trackError(a,t.code)}n.trigger("vpaid.adEnd");e(t,a)}function d(){n.trigger("vpaid.adEnd")}function p(){if(s){s.unloadAdUnit()}c.removeClass(n.el(),"vjs-vpaid-ad")}};p.prototype._findSupportedTech=function(t,e){if(!(t instanceof a)){return null}var i=t.mediaFiles.filter(o.isVPAID);var r=e&&e.preferredTech;var s=[];var u,l,c,d,f;for(u=0,l=i.length;u-1:false;if(f){return new d(c,e)}s.push({mediaFile:c,tech:d})}if(s.length){var h=s[0];return new h.tech(h.mediaFile,e)}return null};p.prototype._createVPAIDAdUnitWrapper=function(t,e,i){return new u(t,{src:e,responseTimeout:i})};p.prototype._loadAdUnit=function(t,e,i){var n=this;var r=this.player;var a=r.el().querySelector(".vjs-tech");var s=this.settings.responseTimeout||this.options.responseTimeout;t.loadAdUnit(this.containerEl,a,function(a,o){if(a){return i(a,o,e)}try{var u=n._createVPAIDAdUnitWrapper(o,t.mediaFile.src,s);var l="vjs-"+t.name+"-ad";c.addClass(r.el(),l);r.one("vpaid.adEnd",function(){c.removeClass(r.el(),l)});i(null,u,e)}catch(d){i(d,o,e)}})};p.prototype._playAdUnit=function(t,e,i){l.waterfall([function(i){i(null,t,e)},this._handshake.bind(this),this._initAd.bind(this),this._setupEvents.bind(this),this._addSkipButton.bind(this),this._linkPlayerControls.bind(this),this._startAd.bind(this)],i)};p.prototype._handshake=function m(t,e,i){t.handshakeVersion(this.options.VPAID_VERSION,function(a,s){if(a){return i(a,t,e)}if(s&&n(s)){return i(null,t,e)}return i(new r(\'on VPAIDIntegrator._handshake, unsupported version "\'+s+\'"\'),t,e)});function n(t){var e=a(t);return e>=1&&e<=2}function a(t){var e=t.split(".");return parseInt(e[0],10)}};p.prototype._initAd=function(t,e,i){var n=this.player.el().querySelector(".vjs-tech");var r=c.getDimension(n);t.initAd(r.width,r.height,this.VIEW_MODE.NORMAL,-1,{AdParameters:e.adParameters||""},function(n){i(n,t,e)})};p.prototype._createVASTTracker=function(t,e){return new s(t,e)};p.prototype._setupEvents=function(t,e,i){var n=t.options.src;var r=this._createVASTTracker(n,e);var a=this.player;var s=this;t.on("AdSkipped",function(){a.trigger("vpaid.AdSkipped");r.trackSkip()});t.on("AdImpression",function(){a.trigger("vpaid.AdImpression");r.trackImpressions()});t.on("AdStarted",function(){a.trigger("vpaid.AdStarted");r.trackCreativeView();u()});t.on("AdVideoStart",function(){a.trigger("vpaid.AdVideoStart");r.trackStart();u()});t.on("AdPlaying",function(){a.trigger("vpaid.AdPlaying");r.trackResume();u()});t.on("AdPaused",function(){a.trigger("vpaid.AdPaused");r.trackPause();l()});function u(){if(s._adUnit&&s._adUnit.isPaused()){s._adUnit._paused=false}a.trigger("play")}function l(){if(s._adUnit){s._adUnit._paused=true}a.trigger("pause")}t.on("AdVideoFirstQuartile",function(){a.trigger("vpaid.AdVideoFirstQuartile");r.trackFirstQuartile()});t.on("AdVideoMidpoint",function(){a.trigger("vpaid.AdVideoMidpoint");r.trackMidpoint()});t.on("AdVideoThirdQuartile",function(){a.trigger("vpaid.AdVideoThirdQuartile");r.trackThirdQuartile()});t.on("AdVideoComplete",function(){a.trigger("vpaid.AdVideoComplete");r.trackComplete()});t.on("AdClickThru",function(i){a.trigger("vpaid.AdClickThru");var n=i.url;var s=i.playerHandles;var u=f.isNotEmptyString(n)?n:l(e.clickThrough);r.trackClick();if(s&&u){window.open(u,"_blank")}function l(e){var i={ASSETURI:t.options.src,CONTENTPLAYHEAD:0};return e?o.parseURLMacro(e,i):null}});t.on("AdUserAcceptInvitation",function(){a.trigger("vpaid.AdUserAcceptInvitation");r.trackAcceptInvitation();r.trackAcceptInvitationLinear()});t.on("AdUserClose",function(){a.trigger("vpaid.AdUserClose");r.trackClose();r.trackCloseLinear()});t.on("AdUserMinimize",function(){a.trigger("vpaid.AdUserMinimize");r.trackCollapse()});t.on("AdError",function(){a.trigger("vpaid.AdError");r.trackErrorWithCode(901)});t.on("AdVolumeChange",function(){a.trigger("vpaid.AdVolumeChange");var e=a.volume();t.getAdVolume(function(t,i){if(e!==i){if(i===0&&e>0){r.trackMute()}if(i>0&&e===0){r.trackUnmute()}a.volume(i)}})});var d=v.bind(this,a,t,this.VIEW_MODE);var h=f.throttle(d,100);var p=this.settings.autoResize;if(p){c.addEventListener(window,"resize",h);c.addEventListener(window,"orientationchange",h)}a.on("vast.resize",d);a.on("vpaid.pauseAd",g);a.on("vpaid.resumeAd",y);a.one("vpaid.adEnd",function(){a.off("vast.resize",d);a.off("vpaid.pauseAd",g);a.off("vpaid.resumeAd",y);if(p){c.removeEventListener(window,"resize",h);c.removeEventListener(window,"orientationchange",h)}});i(null,t,e);function g(){t.pauseAd(f.noop)}function y(){t.resumeAd(f.noop)}};p.prototype._addSkipButton=function(t,e,i){var n;var r=this.player;t.on("AdSkippableStateChange",a);d.once(r,["vast.adEnd","vast.adsCancel"],o);i(null,t,e);function a(){r.trigger("vpaid.AdSkippableStateChange");t.getAdSkippableState(function(t,e){if(e){if(!n){s(r)}}else{o(r)}})}function s(t){n=u(t);t.el().appendChild(n)}function o(){c.remove(n);n=null}function u(){var e=window.document.createElement("div");c.addClass(e,"vast-skip-button");c.addClass(e,"enabled");e.innerHTML="Skip ad";e.onclick=function(e){t.skipAd(f.noop);if(window.Event.prototype.stopPropagation!==undefined){e.stopPropagation()}else{return false}};return e}};p.prototype._linkPlayerControls=function(t,e,i){var n=this;r(this.player,t);a(this.player,t,this.VIEW_MODE);i(null,t,e);function r(t,e){t.on("volumechange",i);e.on("AdVolumeChange",n);t.one("vpaid.adEnd",function(){t.off("volumechange",i)});function i(){var i=t.muted()?0:t.volume();e.setAdVolume(i,g)}function n(){t.trigger("vpaid.AdVolumeChange");var i=t.volume();e.getAdVolume(function(e,n){if(e){g(e)}else{if(i!==n){t.volume(n)}}})}}function a(t,e,i){var r=v.bind(n,t,e,i);t.on("fullscreenchange",r);t.one("vpaid.adEnd",function(){t.off("fullscreenchange",r)})}};p.prototype._startAd=function(t,e,i){var n=this.player;t.startAd(function(r){if(!r){n.trigger("vast.adStart")}i(r,t,e)})};p.prototype._finishPlaying=function(t,e,i){var n=this.player;t.on("AdStopped",function(){n.trigger("vpaid.AdStopped");a(null)});t.on("AdError",function(t){var e=t?t.message:"on VPAIDIntegrator, error while waiting for the adUnit to finish playing";a(new r(e))});function a(n){i(n,t,e)}};p.prototype._trackError=function A(t,e){o.track(t.errorURLMacros,{ERRORCODE:e||901})};function v(t,e,i){var n=t.el().querySelector(".vjs-tech");var r=c.getDimension(n);var a=t.isFullscreen()?i.FULLSCREEN:i.NORMAL;e.resizeAd(r.width,r.height,a,g)}function g(t){if(t){h.error("ERROR: "+t.message,t)}}e.exports=p},{"../../utils/async":40,"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/mimetypes":44,"../../utils/playerUtils":45,"../../utils/utilityFunctions":47,"../vast/VASTError":23,"../vast/VASTResponse":25,"../vast/VASTTracker":26,"../vast/vastUtil":30,"./VPAIDAdUnitWrapper":31}],35:[function(t,e,i){"use strict";var n=t("../../utils/dom");var r=document.createElement("div");r.className="vjs-ads-label vjs-control vjs-label-hidden";r.innerHTML="Advertisement";var a=function(t){return{init:function e(i,a){a.el=r;t.call(this,i,a);setTimeout(function(){var t=i.controlBar&&(i.controlBar.getChild("timerControls")||i.controlBar.getChild("currentTimeDisplay"));if(t){i.controlBar.el().insertBefore(r,t.el())}n.removeClass(r,"vjs-label-hidden")},0)},el:function i(){return r}}};e.exports=a},{"../../utils/dom":42}],36:[function(t,e,i){"use strict";var n=videojs.getComponent("Component");var r=t("./ads-label")(n);videojs.registerComponent("AdsLabel",videojs.extend(n,r))},{"./ads-label":35}],37:[function(t,e,i){"use strict";var n=document.createElement("div");var r=function(t){return{init:function e(i,r){r.el=n;n.className="vjs-black-poster";t.call(this,i,r);var a=i.getChild("posterImage");setTimeout(function(){if(a&&i&&i.el()){i.el().insertBefore(n,a.el())}},0)},el:function i(){return n}}};e.exports=r},{}],38:[function(t,e,i){"use strict";var n=videojs.getComponent("Component");var r=t("./black-poster")(n);videojs.registerComponent("BlackPoster",videojs.extend(n,r))},{"./black-poster":37}],39:[function(t,e,i){"use strict";var n=t("../ads/vast/VASTClient");var r=t("../ads/vast/VASTError");var a=t("../ads/vast/vastUtil");var s=t("../ads/vast/VASTIntegrator");var o=t("../ads/vpaid/VPAIDIntegrator");var u=t("../utils/async");var l=t("../utils/dom");var c=t("../utils/playerUtils");var d=t("../utils/utilityFunctions");var f=t("../utils/consoleLogger");e.exports=function h(t){var e;var i=this;var h=new n;var p=false;var v={timeout:500,iosPrerollCancelTimeout:2e3,adCancelTimeout:3e3,playAdAlways:false,adsEnabled:true,autoResize:true,vpaidFlashLoaderPath:"/VPAIDFlash.swf",verbosity:0};var g=d.extend({},v,t||{});if(d.isUndefined(g.adTagUrl)&&d.isDefined(g.url)){g.adTagUrl=g.url}if(d.isString(g.adTagUrl)){g.adTagUrl=d.echoFn(g.adTagUrl)}if(d.isDefined(g.adTagXML)&&!d.isFunction(g.adTagXML)){return b(new r("on VideoJS VAST plugin, the passed adTagXML option does not contain a function"))}if(!d.isDefined(g.adTagUrl)&&!d.isFunction(g.adTagXML)){return b(new r("on VideoJS VAST plugin, missing adTagUrl on options object"))}f.setVerbosity(g.verbosity);a.runFlashSupportCheck(g.vpaidFlashLoaderPath);c.prepareForAds(i);if(g.playAdAlways){i.on("vast.contentEnd",function(){setTimeout(function(){i.trigger("vast.reset")},0)})}i.on("vast.firstPlay",y);i.on("vast.reset",function(){e=null;m()});i.vast={isEnabled:function(){return g.adsEnabled},enable:function(){g.adsEnabled=true},disable:function(){g.adsEnabled=false}};return i.vast;function y(){c.removeNativePoster(i);c.once(i,["vast.adsCancel","vast.adEnd"],function(){t();n()});u.waterfall([s,o,h,A],function(t,e){if(t){b(t,e)}else{i.trigger("vast.adEnd")}});function t(){if(i.vast&&i.vast.adUnit){i.vast.adUnit=null}}function n(){a();if(e){c.restorePlayerSnapshot(i,e);e=null}}function a(){c.once(i,["playing","vast.reset","vast.firstPlay"],function(t){if(t.type!=="playing"){return}i.trigger("vast.contentStart");c.once(i,["ended","vast.reset","vast.firstPlay"],function(t){if(t.type==="ended"){i.trigger("vast.contentEnd")}})})}function s(t){if(g.adsEnabled){return t(null)}t(new r("Ads are not enabled"))}function o(t){if(f()){e=c.getPlayerSnapshot(i);i.pause();v();if(i.paused()){t(null)}else{c.once(i,["playing"],function(){i.pause();t(null)})}}else{t(new r("video content has been playing before preroll ad"))}}function f(){return!d.isIPhone()||i.currentTime()<=g.iosPrerollCancelTimeout}function h(t){var e;p=false;e=setTimeout(function(){b(new r("timeout while waiting for the video to start playing",402))},g.adCancelTimeout);c.once(i,["vast.adStart","vast.adsCancel"],n);function n(){if(e){clearTimeout(e);e=null}}t(null)}function v(){l.addClass(i.el(),"vjs-vast-ad-loading");c.once(i,["vast.adStart","vast.adsCancel"],y)}function y(){setTimeout(function(){l.removeClass(i.el(),"vjs-vast-ad-loading")},100)}}function m(){i.trigger("vast.adsCancel");p=true}function A(t){u.waterfall([k,_],t)}function k(t){h.getVASTResponse(g.adTagUrl?g.adTagUrl():g.adTagXML,t)}function _(t,e){if(p){return}var n=w(t)?new o(i,g):new s(i);var r=false;c.once(i,["vast.adStart","vast.adsCancel"],function(t){if(t.type==="vast.adStart"){a()}});c.once(i,["vast.adEnd","vast.adsCancel"],u);if(d.isIDevice()){l()}i.vast.vastResponse=t;f.debug("calling adIntegrator.playAd() with vastResponse:",t);i.vast.adUnit=n.playAd(t,e);function a(){if(r||i.controlBar.getChild("AdsLabel")){return}i.controlBar.addChild("AdsLabel")}function u(){i.controlBar.removeChild("AdsLabel");r=true}function l(){var t=3;var e=0;var n=0;i.on("timeupdate",a);i.on("ended",r);c.once(i,["vast.adEnd","vast.adsCancel","vast.adError"],s);function r(){if(i.duration()-e>t){i.pause(true);i.play(true);i.currentTime(e)}}function a(){var r=i.currentTime();var a=Math.abs(r-e);if(a>t){n+=1;if(n>=2){i.pause(true)}i.currentTime(e)}else{e=r}}function s(){i.off("timeupdate",a);i.off("ended",r)}}}function b(t,e){i.trigger({type:"vast.adError",error:t});m();f.error("AD ERROR:",t.message,t,e)}function w(t){var e,i;var n=t.mediaFiles;for(e=0,i=n.length;e0&&typeof e[0]==="string"){e[0]=r+e[0]}if(t.apply){t.apply(console,Array.prototype.slice.call(e))}else{t(Array.prototype.slice.call(e))}}function o(){if(n<4){return}if(typeof console.debug==="undefined"){s(console.log,arguments)}else{s(console.debug,arguments)}}function u(){if(n<3){return}s(console.log,arguments)}function l(){if(n<2){return}s(console.info,arguments)}function c(){if(n<1){return}s(console.warn,arguments)}function d(){s(console.error,arguments)}var f={setVerbosity:a,debug:o,log:u,info:l,warn:c,error:d};if(typeof console==="undefined"||!console.log){f.debug=function(){};f.log=function(){};f.info=function(){};f.warn=function(){};f.error=function(){}}e.exports=f},{}],42:[function(t,e,i){"use strict";var n=t("./utilityFunctions");var r={};r.isVisible=function a(t){var e=window.getComputedStyle(t);return e.visibility!=="hidden"};r.isHidden=function s(t){var e=window.getComputedStyle(t);return e.display==="none"};r.isShown=function o(t){return!r.isHidden(t)};r.hide=function u(t){t.__prev_style_display_=t.style.display;t.style.display="none"};r.show=function l(t){if(r.isHidden(t)){t.style.display=t.__prev_style_display_}t.__prev_style_display_=undefined};r.hasClass=function c(t,e){var i,r,a;if(n.isNotEmptyString(e)){if(t.classList){return t.classList.contains(e)}i=n.isString(t.getAttribute("class"))?t.getAttribute("class").split(/\\s+/):[];e=e||"";for(r=0,a=i.length;r0){u=setTimeout(function(){l&&l.abort()},o)}function c(t,e,i){if(!r.isString(t)||r.isEmptyString(t)){throw new a("Invalid url \'"+t+"\'")}if(!r.isFunction(e)){throw new a("Invalid handler \'"+e+"\' for the http request")}if(r.isDefined(i)&&!r.isObject(i)){throw new a("Invalid options map \'"+i+"\'")}}function d(t,e){r.forEach(e,function(e,i){if(r.isDefined(e)){t.setRequestHeader(i,e)}})}function f(){i(-1,null,null,"")}};s.prototype.get=function(t,e,i){this.run("GET",t,n,i);function n(t,i,n,s){if(r(t)){e(null,i,t,n,s)}else{e(new a(s),i,t,n,s)}}function r(t){return 200<=t&&t<300}};function o(){var t=new XMLHttpRequest;if(!("withCredentials"in t)){t=new XDomainRequest}return t}var u=new s(o);e.exports={http:u,HttpRequest:s,HttpRequestError:a,createXhr:o}},{"./urlUtils":46,"./utilityFunctions":47}],44:[function(t,e,i){"use strict";e.exports={html5:["text/javascript","text/javascript1.0","text/javascript1.2","text/javascript1.4","text/jscript","application/javascript","application/x-javascript","text/ecmascript","text/ecmascript1.0","text/ecmascript1.2","text/ecmascript1.4","text/livescript","application/ecmascript","application/x-ecmascript"],\nflash:["application/x-shockwave-flash"]}},{}],45:[function(t,e,i){"use strict";var n=t("./dom");var r=t("./utilityFunctions");var a={};a.getPlayerSnapshot=function s(t){var e=t.el().querySelector(".vjs-tech");var i={ended:t.ended(),src:t.currentSrc(),currentTime:t.currentTime(),type:t.currentType(),playing:!t.paused(),suppressedTracks:n(t)};if(e){i.nativePoster=e.poster;i.style=e.getAttribute("style")}return i;function n(t){var e=t.remoteTextTracks?t.remoteTextTracks():[];if(e&&r.isArray(e.tracks_)){e=e.tracks_}if(!r.isArray(e)){e=[]}var i=[];e.forEach(function(t){i.push({track:t,mode:t.mode});t.mode="disabled"});return i}};a.restorePlayerSnapshot=function o(t,e){var i=t.el().querySelector(".vjs-tech");var n=20;if(e.nativePoster){i.poster=e.nativePoster}if("style"in e){i.setAttribute("style",e.style||"")}if(s(t,e)){t.one("contentloadedmetadata",o);t.one("canplay",u);r();t.src({src:e.src,type:e.type});t.load()}else{o();if(e.playing){t.play()}}function r(){var e=setTimeout(function(){t.trigger("canplay")},1e3);t.one("canplay",function(){clearTimeout(e)})}function s(t,e){if(t.src()){return t.src()!==e.src}return t.currentSrc()!==e.src}function o(){var t=e.suppressedTracks;t.forEach(function(t){t.track.mode=t.mode})}function u(){if(!a.isReadyToResume(t)&&n--){setTimeout(u,50)}else{try{if(t.currentTime()!==e.currentTime){if(e.playing){t.one("seeked",function(){t.play()})}t.currentTime(e.currentTime)}else if(e.playing){t.play()}}catch(i){videojs.log.warn("Failed to resume the content after an advertisement",i)}}}};a.isReadyToResume=function(t){if(t.readyState()>1){return true}if(t.seekable()===undefined){return true}if(t.seekable().length>0){return true}return false};a.prepareForAds=function(t){var e=t.addChild("blackPoster");var i=true;var a;s();t.on("play",u);t.on("vast.reset",l);t.on("vast.firstPlay",f);t.on("error",p);t.on("vast.adStart",p);t.on("vast.adsCancel",p);t.on("vast.adError",p);t.on("vast.adStart",v);t.on("vast.adEnd",g);t.on("vast.adsCancel",g);function s(){var e=t.play;t.play=function(i){var n=this;if(c()){s()}else{u(i)}return this;function s(){if(!r.isIPhone()){a=d();t.muted(true)}e.apply(n,arguments)}function u(i){if(o()&&!i){t.vast.adUnit.resumeAd()}else{e.apply(n,arguments)}}};var i=t.pause;t.pause=function(e){if(o()&&!e){t.vast.adUnit.pauseAd()}else{i.apply(this,arguments)}return this};var n=t.paused;t.paused=function(e){if(o()&&!e){return t.vast.adUnit.isPaused()}return n.apply(this,arguments)}}function o(){return t.vast&&t.vast.adUnit}function u(){if(c()){i=false;t.trigger("vast.firstPlay")}}function l(){i=true;e.show();f()}function c(){return i}function d(){return{muted:t.muted(),volume:t.volume()}}function f(){if(a){t.currentTime(0);h(a);a=null}}function h(e){if(r.isObject(e)){t.volume(e.volume);t.muted(e.muted)}}function p(){if(!n.hasClass(e.el(),"vjs-hidden")){e.hide()}}function v(){n.addClass(t.el(),"vjs-ad-playing")}function g(){n.removeClass(t.el(),"vjs-ad-playing")}};a.removeNativePoster=function(t){var e=t.el().querySelector(".vjs-tech");if(e){e.removeAttribute("poster")}};a.once=function u(t,e,i){function n(){i.apply(null,arguments);e.forEach(function(e){t.off(e,n)})}e.forEach(function(e){t.on(e,n)})};e.exports=a},{"./dom":42,"./utilityFunctions":47}],46:[function(t,e,i){"use strict";var n=t("./utilityFunctions");var r=document.createElement("a");var a=document.documentMode;function s(t){var e=t;if(a){r.setAttribute("href",e);e=r.href}r.setAttribute("href",e);return{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:n.isNotEmptyString(r.port)?r.port:80,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}function o(t,e){var i,r;e=n.isFunction(e)?e:function(){return true};t=t.trim().replace(/^\\?/,"");i=t.split("&");r={};n.forEach(i,function(t){var i,n,a;if(t!==""){i=t.split("=");n=i[0];a=i[1];if(e(n,a)){r[n]=a}}});return r}function u(t){var e=[];n.forEach(t,function(t,i){e.push(i+"="+t)});return e.join("&")}e.exports={urlParts:s,queryStringToObj:o,objToQueryString:u}},{"./utilityFunctions":47}],47:[function(t,e,i){"use strict";var n=1;var r=/[A-Z]/g;var a=/^[a-z0-9!#$%&\'*+\\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/i;var s=/^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$/;function o(){}function u(t){return t===null}function l(t){return t!==undefined}function c(t){return t===undefined}function d(t){return typeof t==="object"}function f(t){return typeof t==="function"}function h(t){return typeof t==="number"}function p(t){return j.isObject(t)&&t.window===t}function v(t){return Object.prototype.toString.call(t)==="[object Array]"}function g(t){if(t===null||j.isWindow(t)||j.isFunction(t)||j.isUndefined(t)){return false}var e=t.length;if(t.nodeType===n&&e){return true}return j.isString(t)||j.isArray(t)||e===0||typeof e==="number"&&e>0&&e-1 in t}function y(t){return typeof t==="string"}function m(t){return j.isString(t)&&t.length===0}function A(t){return j.isString(t)&&t.length!==0}function k(t){return Array.prototype.slice.call(t)}function _(t,e,i){var n,r;if(t){if(f(t)){for(n in t){if(n!=="prototype"&&n!=="length"&&n!=="name"&&(!t.hasOwnProperty||t.hasOwnProperty(n))){e.call(i,t[n],n,t)}}}else if(v(t)){var a=typeof t!=="object";for(n=0,r=t.length;n=e){i=n;t.apply(this,arguments)}}}function F(t,e){var i;return function(){if(i){clearTimeout(i)}i=setTimeout(function(){t.apply(this,arguments);i=undefined},e)}}function L(t,e,i){var n=e(t);for(var r=0;r0}return t.getElementsByTagNameNS(n,"parsererror").length>0}catch(r){}}};r.parseText=function s(t){if(/^\\s*$/.test(t)){return null}if(/^(?:true|false)$/i.test(t)){return t.toLowerCase()==="true"}if(isFinite(t)){return parseFloat(t)}if(n.isISO8601(t)){return new Date(t)}return t.trim()};r.JXONTree=function o(t){var e=r.parseText;if(t.documentElement){return new r.JXONTree(t.documentElement)}if(t.hasChildNodes()){var i="";for(var a,s,o,u=0;u0:t.hasAttributes();if(l){var c;for(var d=0;d/g,">").replace(/"/g,""").replace(/\'/g,"'")};r.decode=function f(t){if(!n.isString(t))return undefined;return t.replace(/'/g,"\'").replace(/"/g,\'"\').replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")};e.exports=r},{"./utilityFunctions":47}],49:[function(t,e,i){"use strict";t("./plugin/components/ads-label_5");t("./plugin/components/black-poster_5");var n=t("./plugin/videojs.vast.vpaid");videojs.plugin("vastClient",n)},{"./plugin/components/ads-label_5":36,"./plugin/components/black-poster_5":38,"./plugin/videojs.vast.vpaid":39}]},{},[49]);\n//# sourceMappingURL=videojs_5.vast.vpaid.min.js.map\n'},function(e,t,n){"use strict";var r={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=r},function(e,t,n){"use strict";var r=n(4),a=n(51),i={focusDOMComponent:function(){a(r.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function a(e){switch(e){case"topCompositionStart":return C.compositionStart;case"topCompositionEnd":return C.compositionEnd;case"topCompositionUpdate":return C.compositionUpdate}}function i(e,t){return"topKeyDown"===e&&t.keyCode===y}function o(e,t){switch(e){case"topKeyUp":return-1!==g.indexOf(t.keyCode);case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r){var c,u;if(m?c=a(e):A?o(e,n)&&(c=C.compositionEnd):i(e,n)&&(c=C.compositionStart),!c)return null;T&&(A||c!==C.compositionStart?c===C.compositionEnd&&A&&(u=A.getData()):A=h.getPooled(r));var l=b.getPooled(c,t,n,r);if(u)l.data=u;else{var d=s(n);null!==d&&(l.data=d)}return f.accumulateTwoPhaseDispatches(l),l}function u(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==E?null:(S=!0,k);case"topTextInput":var n=t.data;return n===k&&S?null:n;default:return null}}function l(e,t){if(A){if("topCompositionEnd"===e||!m&&o(e,t)){var n=A.getData();return h.release(A),A=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return T?null:t.data;default:return null}}function d(e,t,n,r){var a;if(!(a=w?u(e,n):l(e,n)))return null;var i=v.getPooled(C.beforeInput,t,n,r);return i.data=a,f.accumulateTwoPhaseDispatches(i),i}var f=n(20),p=n(5),h=n(109),b=n(146),v=n(149),g=[9,13,27,32],y=229,m=p.canUseDOM&&"CompositionEvent"in window,_=null;p.canUseDOM&&"documentMode"in document&&(_=document.documentMode);var w=p.canUseDOM&&"TextEvent"in window&&!_&&!function(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}(),T=p.canUseDOM&&(!m||_&&_>8&&_<=11),E=32,k=String.fromCharCode(E),C={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},S=!1,A=null,j={eventTypes:C,extractEvents:function(e,t,n,r){return[c(e,t,n,r),d(e,t,n,r)]}};e.exports=j},function(e,t,n){"use strict";var r=n(54),a=n(5),i=(n(7),n(86),n(155)),o=n(93),s=n(96),c=(n(1),s(function(e){return o(e)})),u=!1,l="cssFloat";if(a.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(l="styleFloat")}var f={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];null!=a&&(n+=c(r)+":",n+=i(r,a,t)+";")}return n||null},setValueForStyles:function(e,t,n){var a=e.style;for(var o in t)if(t.hasOwnProperty(o)){var s=i(o,t[o],n);if("float"!==o&&"cssFloat"!==o||(o=l),s)a[o]=s;else{var c=u&&r.shorthandPropertyExpansions[o];if(c)for(var d in c)a[d]="";else a[o]=""}}}};e.exports=f},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function a(e){var t=E.getPooled(A.change,x,e,k(e));m.accumulateTwoPhaseDispatches(t),T.batchedUpdates(i,t)}function i(e){y.enqueueEvents(e),y.processEventQueue(!1)}function o(e,t){j=e,x=t,j.attachEvent("onchange",a)}function s(){j&&(j.detachEvent("onchange",a),j=null,x=null)}function c(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(s(),o(t,n)):"topBlur"===e&&s()}function l(e,t){j=e,x=t,O=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(j,"value",N),j.attachEvent?j.attachEvent("onpropertychange",f):j.addEventListener("propertychange",f,!1)}function d(){j&&(delete j.value,j.detachEvent?j.detachEvent("onpropertychange",f):j.removeEventListener("propertychange",f,!1),j=null,x=null,O=null,P=null)}function f(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==O&&(O=t,a(e))}}function p(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),l(t,n)):"topBlur"===e&&d()}function b(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&j&&j.value!==O)return O=j.value,x}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var y=n(19),m=n(20),_=n(5),w=n(4),T=n(8),E=n(9),k=n(42),C=n(43),S=n(71),A={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},j=null,x=null,O=null,P=null,M=!1;_.canUseDOM&&(M=C("change")&&(!document.documentMode||document.documentMode>8));var I=!1;_.canUseDOM&&(I=C("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){O=""+e,P.set.call(this,e)}},D={eventTypes:A,extractEvents:function(e,t,n,a){var i,o,s=t?w.getNodeFromInstance(t):window;if(r(s)?M?i=c:o=u:S(s)?I?i=p:(i=b,o=h):v(s)&&(i=g),i){var l=i(e,t);if(l){var d=E.getPooled(A.change,l,n,a);return d.type="change",m.accumulateTwoPhaseDispatches(d),d}}o&&o(e,s,t)}};e.exports=D},function(e,t,n){"use strict";var r=n(2),a=n(12),i=n(5),o=n(89),s=n(6),c=(n(0),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||r("56"),t||r("57"),"HTML"===e.nodeName&&r("58"),"string"==typeof t){var n=o(t,s)[0];e.parentNode.replaceChild(n,e)}else a.replaceChildWithTree(e,t)}});e.exports=c},function(e,t,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=r},function(e,t,n){"use strict";var r=n(20),a=n(4),i=n(24),o={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:o,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var c;if(s.window===s)c=s;else{var u=s.ownerDocument;c=u?u.defaultView||u.parentWindow:window}var l,d;if("topMouseOut"===e){l=t;var f=n.relatedTarget||n.toElement;d=f?a.getClosestInstanceFromNode(f):null}else l=null,d=t;if(l===d)return null;var p=null==l?c:a.getNodeFromInstance(l),h=null==d?c:a.getNodeFromInstance(d),b=i.getPooled(o.mouseLeave,l,n,s);b.type="mouseleave",b.target=p,b.relatedTarget=h;var v=i.getPooled(o.mouseEnter,d,n,s);return v.type="mouseenter",v.target=h,v.relatedTarget=p,r.accumulateEnterLeaveDispatches(b,v,l,d),[b,v]}};e.exports=s},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var a=n(3),i=n(11),o=n(69);a(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[o()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,a=this.getText(),i=a.length;for(e=0;e1?1-t:void 0;return this._fallbackText=a.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(13),a=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,o=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,c=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:a|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:c,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:a|i,muted:a|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:o,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:a|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:o,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function r(e,t,n,r){var a=void 0===e[n];null!=t&&a&&(e[n]=i(t,!0))}var a=n(14),i=n(70),o=(n(34),n(44)),s=n(73);n(1);void 0!==t&&t.env;var c={instantiateChildren:function(e,t,n,a){if(null==e)return null;var i={};return s(e,r,i),i},updateChildren:function(e,t,n,r,s,c,u,l,d){if(t||e){var f,p;for(f in t)if(t.hasOwnProperty(f)){p=e&&e[f];var h=p&&p._currentElement,b=t[f];if(null!=p&&o(h,b))a.receiveComponent(p,b,s,l),t[f]=p;else{p&&(r[f]=a.getHostNode(p),a.unmountComponent(p,!1));var v=i(b,!0);t[f]=v;var g=a.mountComponent(v,s,c,u,l,d);n.push(g)}}for(f in e)!e.hasOwnProperty(f)||t&&t.hasOwnProperty(f)||(p=e[f],r[f]=a.getHostNode(p),a.unmountComponent(p,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];a.unmountComponent(r,t)}}};e.exports=c}).call(t,n(53))},function(e,t,n){"use strict";var r=n(30),a=n(119),i={processChildrenUpdates:a.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function r(e){}function a(e){return!(!e.prototype||!e.prototype.isReactComponent)}function i(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var o=n(2),s=n(3),c=n(15),u=n(36),l=n(10),d=n(37),f=n(21),p=(n(7),n(64)),h=n(14),b=n(18),v=(n(0),n(29)),g=n(44),y=(n(1),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return t};var m=1,_={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=m++,this._hostParent=t,this._hostContainerInfo=n;var u,l=this._currentElement.props,d=this._processContext(s),p=this._currentElement.type,h=e.getUpdateQueue(),v=a(p),g=this._constructComponent(v,l,d,h);v||null!=g&&null!=g.render?i(p)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(u=g,null===g||!1===g||c.isValidElement(g)||o("105",p.displayName||p.name||"Component"),g=new r(p),this._compositeType=y.StatelessFunctional);g.props=l,g.context=d,g.refs=b,g.updater=h,this._instance=g,f.set(g,this);var _=g.state;void 0===_&&(g.state=_=null),("object"!=typeof _||Array.isArray(_))&&o("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=g.unstable_handleError?this.performInitialMountWithErrorHandling(u,t,n,e,s):this.performInitialMount(u,t,n,e,s),g.componentDidMount&&e.getReactMountReady().enqueue(g.componentDidMount,g),w},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var a=this._currentElement.type;return e?new a(t,n,r):a(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,a){var i,o=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,a)}catch(s){r.rollback(o),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),o=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(o),i=this.performInitialMount(e,t,n,r,a)}return i},performInitialMount:function(e,t,n,r,a){var i=this._instance,o=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var s=p.getType(e);this._renderedNodeType=s;var c=this._instantiateReactComponent(e,s!==p.EMPTY);this._renderedComponent=c;var u=h.mountComponent(c,r,t,n,this._processChildContext(a),o);return u},getHostNode:function(){return h.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";d.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(h.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return b;var r={};for(var a in n)r[a]=e[a];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(t=r.getChildContext()),t){"object"!=typeof n.childContextTypes&&o("107",this.getName()||"ReactCompositeComponent");for(var a in t)a in n.childContextTypes||o("108",this.getName()||"ReactCompositeComponent",a);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var r=this._currentElement,a=this._context;this._pendingElement=null,this.updateComponent(t,r,e,a,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?h.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,a){var i=this._instance;null==i&&o("136",this.getName()||"ReactCompositeComponent");var s,c=!1;this._context===a?s=i.context:(s=this._processContext(a),c=!0);var u=t.props,l=n.props;t!==n&&(c=!0),c&&i.componentWillReceiveProps&&i.componentWillReceiveProps(l,s);var d=this._processPendingState(l,s),f=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?f=i.shouldComponentUpdate(l,d,s):this._compositeType===y.PureClass&&(f=!v(u,l)||!v(i.state,d))),this._updateBatchNumber=null,f?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,l,d,s,e,a)):(this._currentElement=n,this._context=a,i.props=l,i.state=d,i.context=s)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,a=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(a&&1===r.length)return r[0];for(var i=s({},a?r[0]:n.state),o=a?1:0;o=0||null!=t.is}function h(e){var t=e.type;f(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var b=n(2),v=n(3),g=n(102),y=n(104),m=n(12),_=n(31),w=n(13),T=n(56),E=n(19),k=n(32),C=n(23),S=n(57),A=n(4),j=n(120),x=n(121),O=n(58),P=n(124),M=(n(7),n(133)),I=n(138),N=(n(6),n(26)),D=(n(0),n(43),n(29),n(45),n(1),S),R=E.deleteListener,L=A.getNodeFromInstance,F=C.listenTo,V=k.registrationNameModules,U={string:!0,number:!0},B="__html",H={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},q=11,z={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},W={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},W),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,G={},Q={}.hasOwnProperty,$=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=$++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(l,this);break;case"input":j.mountWrapper(this,i,t),i=j.getHostProps(this,i),e.getReactMountReady().enqueue(l,this);break;case"option":x.mountWrapper(this,i,t),i=x.getHostProps(this,i);break;case"select":O.mountWrapper(this,i,t),i=O.getHostProps(this,i),e.getReactMountReady().enqueue(l,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(l,this)}a(this,i);var o,d;null!=t?(o=t._namespaceURI,d=t._tag):n._tag&&(o=n._namespaceURI,d=n._tag),(null==o||o===_.svg&&"foreignobject"===d)&&(o=_.html),o===_.html&&("svg"===this._tag?o=_.svg:"math"===this._tag&&(o=_.mathml)),this._namespaceURI=o;var f;if(e.useCreateElement){var p,h=n._ownerDocument;if(o===_.html)if("script"===this._tag){var b=h.createElement("div"),v=this._currentElement.type;b.innerHTML="<"+v+">",p=b.removeChild(b.firstChild)}else p=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else p=h.createElementNS(o,this._currentElement.type);A.precacheNode(this,p),this._flags|=D.hasCachedChildNodes,this._hostParent||T.setAttributeForRoot(p),this._updateDOMProperties(null,i,e);var y=m(p);this._createInitialChildren(e,i,r,y),f=y}else{var w=this._createOpenTagMarkupAndPutListeners(e,i),E=this._createContentMarkup(e,i,r);f=!E&&W[this._tag]?w+"/>":w+">"+E+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(c,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return f},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(null!=a)if(V.hasOwnProperty(r))a&&i(this,r,a,e);else{"style"===r&&(a&&(a=this._previousStyleCopy=v({},t.style)),a=y.createMarkupForStyles(a,this));var o=null;null!=this._tag&&p(this._tag,t)?H.hasOwnProperty(r)||(o=T.createMarkupForCustomAttribute(r,a)):o=T.createMarkupForProperty(r,a),o&&(n+=" "+o)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+T.createMarkupForRoot()),n+=" "+T.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",a=t.dangerouslySetInnerHTML;if(null!=a)null!=a.__html&&(r=a.__html);else{var i=U[typeof t.children]?t.children:null,o=null!=i?null:t.children;if(null!=i)r=N(i);else if(null!=o){var s=this.mountChildren(o,e,n);r=s.join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var a=t.dangerouslySetInnerHTML;if(null!=a)null!=a.__html&&m.queueHTML(r,a.__html);else{var i=U[typeof t.children]?t.children:null,o=null!=i?null:t.children;if(null!=i)""!==i&&m.queueText(r,i);else if(null!=o)for(var s=this.mountChildren(o,e,n),c=0;c"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=o},function(e,t,n){"use strict";var r={useCreateElement:!0,useFiber:!1};e.exports=r},function(e,t,n){"use strict";var r=n(30),a=n(4),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=a.getNodeFromInstance(e);r.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function r(){this._rootNodeID&&d.updateWrapper(this)}function a(e){var t=this._currentElement.props,n=c.executeOnChange(t,e);l.asap(r,this);var a=t.name;if("radio"===t.type&&null!=a){for(var o=u.getNodeFromInstance(this),s=o;s.parentNode;)s=s.parentNode;for(var d=s.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),f=0;ft.end?(n=t.end,r=t.start):(n=t.start,r=t.end),a.moveToElementText(e),a.moveStart("character",n),a.setEndPoint("EndToStart",a),a.moveEnd("character",r-n),a.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,a=Math.min(t.start,r),i=void 0===t.end?a:Math.min(t.end,r);if(!n.extend&&a>i){var o=i;i=a,a=o}var s=u(e,a),c=u(e,i);if(s&&c){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),a>i?(n.addRange(d),n.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),n.addRange(d))}}}var c=n(5),u=n(161),l=n(69),d=c.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:d?a:i,setOffsets:d?o:s};e.exports=f},function(e,t,n){"use strict";var r=n(2),a=n(3),i=n(30),o=n(12),s=n(4),c=n(26),u=(n(0),n(45),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});a(u.prototype,{mountComponent:function(e,t,n,r){var a=n._idCounter++,i=" react-text: "+a+" ";if(this._domID=a,this._hostParent=t,e.useCreateElement){var u=n._ownerDocument,l=u.createComment(i),d=u.createComment(" /react-text "),f=o(u.createDocumentFragment());return o.queueChild(f,o(l)),this._stringText&&o.queueChild(f,o(u.createTextNode(this._stringText))),o.queueChild(f,o(d)),s.precacheNode(this,l),this._closingComment=d,f}var p=c(this._stringText);return e.renderToStaticMarkup?p:""+p+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function a(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return u.asap(r,this),n}var i=n(2),o=n(3),s=n(35),c=n(4),u=n(8),l=(n(0),n(1),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=s.getValue(t),r=n;if(null==n){var o=t.defaultValue,c=t.children;null!=c&&(null!=o&&i("92"),Array.isArray(c)&&(c.length<=1||i("93"),c=c[0]),o=""+c),null==o&&(o=""),r=o}e._wrapperState={initialValue:""+r,listeners:null,onChange:a.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=c.getNodeFromInstance(e),r=s.getValue(t);if(null!=r){var a=""+r;a!==n.value&&(n.value=a),null==t.defaultValue&&(n.defaultValue=a)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=c.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){"_hostNode"in e||c("33"),"_hostNode"in t||c("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var a=0,i=t;i;i=i._hostParent)a++;for(;n-a>0;)e=e._hostParent,n--;for(;a-n>0;)t=t._hostParent,a--;for(var o=n;o--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function a(e,t){"_hostNode"in e||c("35"),"_hostNode"in t||c("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||c("36"),e._hostParent}function o(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var a;for(a=r.length;a-- >0;)t(r[a],"captured",n);for(a=0;a0;)n(c[u],"captured",i)}var c=n(2);n(0);e.exports={isAncestor:a,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:o,traverseEnterLeave:s}},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var a=n(3),i=n(8),o=n(25),s=n(6),c={initialize:s,close:function(){f.isBatchingUpdates=!1}},u={initialize:s,close:i.flushBatchedUpdates.bind(i)},l=[u,c];a(r.prototype,o,{getTransactionWrappers:function(){return l}});var d=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,a,i){var o=f.isBatchingUpdates;return f.isBatchingUpdates=!0,o?e(t,n,r,a,i):d.perform(e,null,t,n,r,a,i)}};e.exports=f},function(e,t,n){"use strict";function r(){E||(E=!0,y.EventEmitter.injectReactEventListener(g),y.EventPluginHub.injectEventPluginOrder(s),y.EventPluginUtils.injectComponentTree(f),y.EventPluginUtils.injectTreeTraversal(h),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:T,EnterLeaveEventPlugin:c,ChangeEventPlugin:o,SelectEventPlugin:w,BeforeInputEventPlugin:i}),y.HostComponent.injectGenericComponentClass(d),y.HostComponent.injectTextComponentClass(b),y.DOMProperty.injectDOMPropertyConfig(a),y.DOMProperty.injectDOMPropertyConfig(u),y.DOMProperty.injectDOMPropertyConfig(_),y.EmptyComponent.injectEmptyComponentFactory(function(e){return new p(e)}),y.Updates.injectReconcileTransaction(m),y.Updates.injectBatchingStrategy(v),y.Component.injectEnvironment(l))}var a=n(101),i=n(103),o=n(105),s=n(107),c=n(108),u=n(110),l=n(112),d=n(115),f=n(4),p=n(117),h=n(125),b=n(123),v=n(126),g=n(130),y=n(131),m=n(136),_=n(141),w=n(142),T=n(143),E=!1;e.exports={inject:r}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";function r(e){a.enqueueEvents(e),a.processEventQueue(!1)}var a=n(19),i={handleTopLevel:function(e,t,n,i){r(a.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function a(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=p(e.nativeEvent),n=d.getClosestInstanceFromNode(t),a=n;do{e.ancestors.push(a),a=a&&r(a)}while(a);for(var i=0;i/," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function a(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:f.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function o(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function c(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var l=n(2),d=n(36),f=(n(21),n(7),n(10),n(14)),p=n(111),h=(n(6),n(157)),b=(n(0),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return p.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,a,i){var o,s=0;return o=h(t,s),p.updateChildren(e,o,n,r,a,this,this._hostContainerInfo,i,s),o},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var a=[],i=0;for(var o in r)if(r.hasOwnProperty(o)){var s=r[o],c=0,u=f.mountComponent(s,t,this,this._hostContainerInfo,n,c);s._mountIndex=i++,a.push(u)}return a},updateTextContent:function(e){var t=this._renderedChildren;p.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");u(this,[s(e)])},updateMarkup:function(e){var t=this._renderedChildren;p.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");u(this,[o(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,a={},i=[],o=this._reconcilerUpdateChildren(r,e,i,a,t,n);if(o||r){var s,l=null,d=0,p=0,h=0,b=null;for(s in o)if(o.hasOwnProperty(s)){var v=r&&r[s],g=o[s];v===g?(l=c(l,this.moveChild(v,b,d,p)),p=Math.max(v._mountIndex,p),v._mountIndex=d):(v&&(p=Math.max(v._mountIndex,p)),l=c(l,this._mountChildAtIndex(g,i[h],b,d,t,n)),h++),d++,b=f.getHostNode(g)}for(s in a)a.hasOwnProperty(s)&&(l=c(l,this._unmountChild(r[s],a[s])));l&&u(this,l),this._renderedChildren=o}},unmountChildren:function(e){var t=this._renderedChildren;p.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex=t)return{node:n,offset:t-i};i=o}n=r(a(n))}}e.exports=i},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function a(e){if(s[e])return s[e];if(!o[e])return e;var t=o[e];for(var n in t)if(t.hasOwnProperty(n)&&n in c)return s[e]=t[n];return""}var i=n(5),o={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},c={};i.canUseDOM&&(c=document.createElement("div").style,"AnimationEvent"in window||(delete o.animationend.animation,delete o.animationiteration.animation,delete o.animationstart.animation),"TransitionEvent"in window||delete o.transitionend.transition),e.exports=a},function(e,t,n){"use strict";function r(e){return'"'+a(e)+'"'}var a=n(26);e.exports=r},function(e,t,n){"use strict";var r=n(63);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function a(e){var t={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(/(=0|=2)/g,function(e){return t[e]})}var i={escape:r,unescape:a};e.exports=i},function(e,t,n){"use strict";var r=n(17),a=(n(0),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},o=function(e,t,n){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n),a}return new r(e,t,n)},s=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},c=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length>"),k={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),symbol:o("symbol"),any:function(){return i(w.thatReturns(null))}(),arrayOf:s,element:function(){function e(e,t,n,r,i){var o=e[t];if(!y.isValidElement(o)){return new a("Invalid "+m[r]+" `"+i+"` of type `"+b(o)+"` supplied to `"+n+"`, expected a single ReactElement.")}return null}return i(e)}(),instanceOf:c,node:function(){function e(e,t,n,r,i){if(!p(e[t])){return new a("Invalid "+m[r]+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")}return null}return i(e)}(),objectOf:l,oneOf:u,oneOfType:d,shape:f};a.prototype=Error.prototype,e.exports=k},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||s}function a(){}var i=n(3),o=n(46),s=n(47),c=n(18);a.prototype=o.prototype,r.prototype=new a,r.prototype.constructor=r,i(r.prototype,o.prototype),r.prototype.isPureReactComponent=!0,e.exports=r},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function r(e){return i.isValidElement(e)||a("143"),e}var a=n(17),i=n(16);n(0);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function a(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;var p,h,b=0,v=""===t?l:t+d;if(Array.isArray(e))for(var g=0;g-1?t:e}function p(e,t){t=t||{};var n=t.body;if("string"==typeof e)this.url=e;else{if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new a(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new a(t.headers)),this.method=f(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}}),t}function b(e){var t=new a;return e.split("\r\n").forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}}),t}function v(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new a(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=function(e){return e&&DataView.prototype.isPrototypeOf(e)},_=ArrayBuffer.isView||function(e){return e&&y.indexOf(Object.prototype.toString.call(e))>-1};a.prototype.append=function(e,r){e=t(e),r=n(r);var a=this.map[e];a||(a=[],this.map[e]=a),a.push(r)},a.prototype.delete=function(e){delete this.map[t(e)]},a.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},a.prototype.getAll=function(e){return this.map[t(e)]||[]},a.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},a.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},a.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)},a.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},a.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},a.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},g.iterable&&(a.prototype[Symbol.iterator]=a.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},d.call(p.prototype),d.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var T=[301,302,303,307,308];v.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=a,e.Request=p,e.Response=v,e.fetch=function(e,t){return new Promise(function(n,r){var a=new p(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:b(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;n(new v(t,e))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(a.method,a.url,!0),"include"===a.credentials&&(i.withCredentials=!0),"responseType"in i&&g.blob&&(i.responseType="blob"),a.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send(void 0===a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)}]); \ No newline at end of file +function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&a&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var a,i=n(5);i.canUseDOM&&(a=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=null===e||!1===e,r=null===t||!1===t;if(n||r)return n===r;var a=typeof e,i=typeof t;return"string"===a||"number"===a?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=r},function(e,t,n){"use strict";var r=(n(3),n(6)),a=(n(1),r);e.exports=a},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=o,this.updater=n||i}var a=n(17),i=n(47),o=(n(77),n(18));n(0),n(1);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&a("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=r},function(e,t,n){"use strict";var r=(n(1),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,t){},enqueueSetState:function(e,t){}});e.exports=r},function(e,t,n){"use strict";e.exports=n(115)},function(e,t,n){"use strict";e.exports=n(15)},function(e,t,n){"use strict";var r=n(6),a={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=a},function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}e.exports=r},function(e,t,n){"use strict";function r(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){b&&p&&(b=!1,p.length?h=p.concat(h):v=-1,h.length&&s())}function s(){if(!b){var e=a(o);b=!0;for(var t=h.length;t;){for(p=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var o,s=v.createElement(F,{child:t});if(e){var c=T.get(e);o=c._processChildContext(c._context)}else o=A;var l=f(n);if(l){var d=l._currentElement,h=d.props.child;if(O(h,t)){var b=l._renderedComponent.getPublicInstance(),g=r&&function(){r.call(b)};return V._updateRootComponent(l,s,o,n,g),b}V.unmountComponentAtNode(n)}var y=a(n),m=y&&!!i(y),_=u(n),w=m&&!l&&!_,E=V._renderNewRootComponent(s,n,w,o)._renderedComponent.getPublicInstance();return r&&r.call(E),E},render:function(e,t,n){return V._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||p("40");var t=f(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(M);return!1}return delete R[t._instance.rootID],S.batchedUpdates(c,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,o){if(l(t)||p("41"),i){var s=a(t);if(E.canReuseMarkup(e,s))return void y.precacheNode(n,s);var c=s.getAttribute(E.CHECKSUM_ATTR_NAME);s.removeAttribute(E.CHECKSUM_ATTR_NAME);var u=s.outerHTML;s.setAttribute(E.CHECKSUM_ATTR_NAME,c);var d=e,f=r(d,u),b=" (client) "+d.substring(f-20,f+20)+"\n (server) "+u.substring(f-20,f+20);t.nodeType===D&&p("42",b)}if(t.nodeType===D&&p("43"),o.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else x(t,e),y.precacheNode(n,t.firstChild)}};e.exports=V},function(e,t,n){"use strict";var r=n(2),a=n(15),i=(n(0),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||!1===e?i.EMPTY:a.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void r("26",e)}});e.exports=i},function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};e.exports=r},function(e,t,n){"use strict";function r(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var a=n(2);n(0);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===a.COMPOSITE;)e=e._renderedComponent;return t===a.HOST?e._renderedComponent:t===a.EMPTY?null:void 0}var a=n(64);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&a.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var a=n(5),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function a(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||!1===e)n=u.create(i);else if("object"==typeof e){var s=e,c=s.type;if("function"!=typeof c&&"string"!=typeof c){var f="";f+=r(s._owner),o("130",null==c?c:typeof c,f)}"string"==typeof s.type?n=l.createInternalComponent(s):a(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(s)}else"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):o("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var o=n(2),s=n(3),c=n(114),u=n(59),l=n(61),d=(n(161),n(0),n(1),function(e){this.construct(e)});s(d.prototype,c,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!a[e.type]:"textarea"===t}var a={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=r},function(e,t,n){"use strict";var r=n(5),a=n(26),i=n(27),o=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(o=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,a(t))})),e.exports=o},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function a(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;var p,h,b=0,v=""===t?l:t+d;if(Array.isArray(e))for(var g=0;g25&&t.length>1)return{sources:[{src:e.fields.videos_hd_uri[0],type:"video/mp4"}],poster:e.fields.thumbnails_large_src[0],title:e.fields.title[0]}}),0!==t.filter(Boolean).length?(console.log("DELTASTV: videos arr [actual] ",t),this.setState({videos:t,videoss:"semanticsearch"})):(console.log("DELTASTV: none of the videos matched enough keywords or have big enough score"),t=this.state.spectator,-1!==window.location.href.indexOf("localhost")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("telegraph")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("telegraph.co.uk")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("londontheinside.com")&&(t=this.state.londontheinside),-1!==window.location.href.indexOf("beautyandthedirt.com")&&(t=this.state.londontheinside),-1!==window.location.href.indexOf("bristol-sport.co.uk")&&(t=this.state.bristolsport),-1!==window.location.href.indexOf("proactiveinvestors.co.uk")&&(t=this.state.itn),console.log("DELTASTV: videos arr [default] ",t),this.setState({videos:t,videoss:"defaultplaylist"}))):(t=this.state.spectator,-1!==window.location.href.indexOf("localhost")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("telegraph")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("telegraph.co.uk")&&(t=this.state.telegraph),-1!==window.location.href.indexOf("londontheinside.com")&&(t=this.state.londontheinside),-1!==window.location.href.indexOf("beautyandthedirt.com")&&(t=this.state.londontheinside),-1!==window.location.href.indexOf("bristol-sport.co.uk")&&(t=this.state.bristolsport),-1!==window.location.href.indexOf("proactiveinvestors.co.uk")&&(t=this.state.itn),console.log("DELTASTV: videos arr [default] ",t),this.setState({videos:t,videoss:"defaultplaylist"}))}},{key:"plugins",value:function(){var e=this;videojs.plugin("adform",function(t){function n(e,t){fetch(e).then(function(e){return e.text()}).then(function(e){return e.match(/CDATA\[(.*)]]>/)[1]}).then(function(e){return fetch(e)}).then(function(e){return e.text()}).then(function(e){return t(null,e)}).catch(t)}var r=videojs(document.getElementById("deltaplayer")),a="https://ad.360yield.com/advast?p=1023878&w=16&h=9",i=null;-1!==window.location.href.indexOf("cityam.com")&&(a="https://ad.360yield.com/advast?p=1023878&w=16&h=9"),-1!==window.location.href.indexOf("spectator.co.uk")&&(a="https://ad.360yield.com/advast?p=1021575&w=4&h=3"),-1!==window.location.href.indexOf("prospectmagazine.co.uk")&&(a="https://ad.360yield.com/advast?p=1021574&w=4&h=3"),-1!==window.location.href.indexOf("londontheinside.com")&&(a="https://ad.360yield.com/advast?p=1023718&w=4&h=3"),-1!==window.location.href.indexOf("bristol-sport.co.uk")&&(a="https://ad.360yield.com/advast?p=1024744&w=16&h=9"),-1!==window.location.href.indexOf("beautyandthedirt.com")&&(a="https://ad.360yield.com/advast?p=1026408&w=4&h=3"),-1!==window.location.href.indexOf("proactiveinvestors.co.uk")&&(a="https://ad.360yield.com/advast?p=1026983&w=4&h=3"),-1!==window.location.href.indexOf("advfn.com")&&(a="https://ad.360yield.com/advast?p=1021571&w=4&h=3"),-1!==window.location.href.indexOf("hospitalitytrends.net")&&(a="https://ad.360yield.com/advast?p=1028636&w=4&h=3"),-1!==window.location.href.indexOf("localhost")&&(a="https://pubads.g.doubleclick.net/gampad/ads?slotname=/6582/tmg.telegraph.culture/culture.gaming.whattoplay&sz=620x415&ciu_szs&cust_params=&ver=4.4.3a&sc=culture-gaming-whattoplay&pt=video&lvl=3&biw=2076&bih=1191&fv=24&protocol=http&rd=www.telegraph.co.uk&cms=aem&kw=guide,playstation,culture,wii%20u,technology,game%20(meat),gaming,pc%20gaming,playstation,xbox%20one,xbox&make=null&model=null&geo=gb&ec=null&mv=null&ms=null&vidsrc=null&pg=AlbSDjqVDL5g&gamp=0&refresh=0&premc=false&premo=false&docdom=www.telegraph.co.uk&gs=ent_gaming,tch_technology,biz_personal_finance&platform=desktop&vp=x&tmgmvc=none&tmgmu=none&tmgsub=none&tmgpid=none&amcv=29231524500639905221307882809031236213&audsci=&kxuid=rgnpdrt0m&kxsid=oy72kt68d,ri7k794nl&test=null&refurl=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&dnt=[object%20Object]&admodel=mpu-680-15000-0&sticky=1&vid=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&vidslot=tmgads_body_vid_7&at=vid&pos=7&adcount=1&url=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&unviewed_position_start=1&output=xml_vast3&env=vp&gdfp_req=1&ad_rule=0&video_url_to_fetch=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&vad_type=linear&vpos=preroll&pod=1&min_ad_duration=0&max_ad_duration=90000&ppos=1&lip=true&adk=391550375&correlator=727700615628041&scor=3563976934677979&ged=ve4_td16_tt6_pd16_la16000_er0.0.0.0_vi0.0.1191.2061_vp0_ts1_eb16491&scp&osd=2&hl=en&frm=0&video_doc_id=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&cmsid=5694&sdkv=h.3.158.1&sdki=3c0d&mpt=Ooyala&mpv=1.0&sdr=1&kfa=0&tfcd=0"),-1!==window.location.href.indexOf("telegraph")&&(i=tmgAdsBuildAd?n.bind(null,tmgAdsBuildAd("advert_body_vid","","","").fetchUrl()):null,a=null);console.log("DELTASTV: adTag ",a),e.setState({adTag:a});r.vastClient({adTagUrl:a,adTagXML:i,playAdAlways:!0,adCancelTimeout:2e4,adsEnabled:!0,vpaidFlashLoaderPath:"https://cdnjs.cloudflare.com/ajax/libs/videojs-vast-vpaid/2.0.2/VPAIDFlash.swf",verbosity:0});r.on("vast.adStart",function(t){console.log("DELTASTV: start ad"),e.setState({adStart:e.state.adStart?e.state.adStart+",adStart":"adStart",adError:"N/A",adSrc:0!==r.vast.vastResponse.mediaFiles.length?r.vast.vastResponse.mediaFiles[0].src:"N/A"}),document.querySelectorAll(".delta-overlay").forEach(function(e){e.style.display="none"})}),r.on("vast.adError",function(t){console.log("DELTASTV: error ad",t),e.setState({adStart:"N/A",adSrc:"N/A",adError:t.error.message})}),r.on("vast.contentStart",function(t){fetch("https://content.sugges.tv",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({adstart:e.state.adStart,aderror:e.state.adError,adsrc:e.state.adSrc,adtag:e.state.adTag,scripttag:"https://delta.sugges.tv/test/bundle.js",player:"delta",player_settings:-1!==window.location.href.indexOf("cityam.com")||-1!==window.location.href.indexOf("beautyandthedirt.com")?"muted,click-to-play":"muted,autoplay-in-view",player_type:"article",keywords:e.state.query,videoss:e.state.videoss,player_height:Math.ceil(r.el_.clientHeight),player_width:Math.ceil(r.el_.clientWidth),player_duration:Math.ceil(r.duration()),player_src:r.currentSrc(),player_poster:r.poster(),title:r.playlist()[r.playlist.currentItem()].title,website_url:window.location.href,website_domain:window.location.hostname,useragent:navigator.userAgent,browser_language:navigator.language,browser_languages:navigator.languages.join(","),platform:navigator.platform})}).then(function(e){return e.json()}).then(function(e){console.log("DELTASTV: contentStart DATA back",e)})}),r.on("vast.adEnd",function(t){e.setState({adStart:e.state.adStart+",adEnd"})}),r.on("vast.adSkip",function(t){e.setState({adStart:e.state.adStart+",adSkip"})}),r.on("vpaid.AdLoaded",function(t){e.setState({adStart:e.state.adStart+",AdLoaded"})}),r.on("vpaid.AdStarted",function(t){e.setState({adStart:e.state.adStart?e.state.adStart+",AdStarted":"AdStarted"})}),r.on("vpaid.AdStopped",function(t){e.setState({adStart:e.state.adStart+",AdStopped"})}),r.on("vpaid.AdSkipped",function(t){e.setState({adStart:e.state.adStart+",AdSkipped"})}),r.on("vpaid.AdSkippableStateChange",function(t){e.setState({adStart:e.state.adStart+",AdSkippableStateChange"})}),r.on("vpaid.AdSizeChange",function(t){e.setState({adStart:e.state.adStart+",AdSizeChange"})}),r.on("vpaid.AdLinearChange",function(t){e.setState({adStart:e.state.adStart+",AdLinearChange"})}),r.on("vpaid.AdDurationChange",function(t){e.setState({adStart:e.state.adStart+",AdDurationChange"})}),r.on("vpaid.AdExpandedChange",function(t){e.setState({adStart:e.state.adStart+",AdExpandedChange"})}),r.on("vpaid.AdVolumeChange",function(t){e.setState({adStart:e.state.adStart+",AdVolumeChange"})}),r.on("vpaid.AdImpression",function(t){e.setState({adStart:e.state.adStart?e.state.adStart+",AdImpression":"AdImpression"})}),r.on("vpaid.AdVideoStart",function(t){e.setState({adStart:e.state.adStart+",AdVideoStart"})}),r.on("vpaid.AdVideoFirstQuartile",function(t){e.setState({adStart:e.state.adStart+",AdVideoFirstQuartile"})}),r.on("vpaid.AdVideoMidpoint",function(t){e.setState({adStart:e.state.adStart+",AdVideoMidpoint"})}),r.on("vpaid.AdVideoThirdQuartile",function(t){e.setState({adStart:e.state.adStart+",AdVideoThirdQuartile"})}),r.on("vpaid.AdVideoComplete",function(t){e.setState({adStart:e.state.adStart+",AdVideoComplete"})}),r.on("vpaid.AdClickThru",function(t){e.setState({adStart:e.state.adStart+",AdClickThru"})}),r.on("vpaid.AdInteraction",function(t){e.setState({adStart:e.state.adStart+",AdInteraction"})}),r.on("vpaid.AdUserAcceptInvitation",function(t){e.setState({adStart:e.state.adStart+",AdUserAcceptInvitation"})}),r.on("vpaid.AdUserMinimize",function(t){e.setState({adStart:e.state.adStart+",AdUserMinimize"})}),r.on("vpaid.AdUserClose",function(t){e.setState({adStart:e.state.adStart+",AdUserClose"})}),r.on("vpaid.AdPaused",function(t){e.setState({adStart:e.state.adStart+",AdPaused"}),document.querySelectorAll(".delta-overlay").forEach(function(e){e.style.display="none"})}),r.on("vpaid.AdPlaying",function(t){e.setState({adStart:e.state.adStart+",AdPlaying"})}),r.on("vpaid.AdLog",function(t){e.setState({adStart:e.state.adStart+",AdLog"})}),r.on("vpaid.AdError",function(t){e.setState({adStart:e.state.adStart+",AdError"})}),r.on("vast.impression",function(t){e.setState({adStart:e.state.adStart+",impression"}),r.vast.vastResponse.trackingEvents.impression&&fetch(r.vast.vastResponse.trackingEvents.impression[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.impression ",e)})}),r.on("vast.creativeView",function(t){e.setState({adStart:e.state.adStart+",creativeView"}),r.vast.vastResponse.trackingEvents.creativeView&&fetch(r.vast.vastResponse.trackingEvents.creativeView[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.creativeView ",e)})}),r.on("vast.start",function(t){e.setState({adStart:"start"}),r.vast.vastResponse.trackingEvents.start&&fetch(r.vast.vastResponse.trackingEvents.start[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.start ",e)})}),r.on("vast.firstQuartile",function(t){e.setState({adStart:e.state.adStart+",firstQuartile"}),r.vast.vastResponse.trackingEvents.firstQuartile&&fetch(r.vast.vastResponse.trackingEvents.firstQuartile[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.firstQuartile ",e)})}),r.on("vast.midpoint",function(t){e.setState({adStart:e.state.adStart+",midpoint"}),r.vast.vastResponse.trackingEvents.midpoint&&fetch(r.vast.vastResponse.trackingEvents.midpoint[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.midpoint ",e)})}),r.on("vast.thirdQuartile",function(t){e.setState({adStart:e.state.adStart+",thirdQuartile"}),r.vast.vastResponse.trackingEvents.thirdQuartile&&fetch(r.vast.vastResponse.trackingEvents.thirdQuartile[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.thirdQuartile ",e)})}),r.on("vast.complete",function(t){e.setState({adStart:e.state.adStart+",complete"}),r.vast.vastResponse.trackingEvents.complete&&fetch(r.vast.vastResponse.trackingEvents.complete[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.complete ",e)})}),r.on("vast.pause",function(t){e.setState({adStart:e.state.adStart+",pause"}),r.vast.vastResponse.trackingEvents.pause&&fetch(r.vast.vastResponse.trackingEvents.pause[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.pause ",e)})}),r.on("vast.resume",function(t){e.setState({adStart:e.state.adStart+",resume"}),r.vast.vastResponse.trackingEvents.resume&&fetch(r.vast.vastResponse.trackingEvents.resume[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.resume ",e)})}),r.on("vast.fullscreen",function(t){e.setState({adStart:e.state.adStart+",fullscreen"}),r.vast.vastResponse.trackingEvents.fullscreen&&fetch(r.vast.vastResponse.trackingEvents.fullscreen[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.fullscreen ",e)})}),r.on("vast.exitFullscreen",function(t){e.setState({adStart:e.state.adStart+",exitFullscreen"}),r.vast.vastResponse.trackingEvents.exitFullscreen&&fetch(r.vast.vastResponse.trackingEvents.exitFullscreen[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.exitFullscreen ",e)})}),r.on("vast.mute",function(t){e.setState({adStart:e.state.adStart+",mute"}),r.vast.vastResponse.trackingEvents.mute&&fetch(r.vast.vastResponse.trackingEvents.mute[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.mute ",e)})}),r.on("vast.unmute",function(t){e.setState({adStart:e.state.adStart+",unmute"}),r.vast.vastResponse.trackingEvents.unmute&&fetch(r.vast.vastResponse.trackingEvents.unmute[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.unmute ",e)})}),r.on("vast.adclick",function(t){e.setState({adStart:e.state.adStart+",adclick"}),r.vast.vastResponse.trackingEvents.adclick&&fetch(r.vast.vastResponse.trackingEvents.adclick[0].uri).then(function(e){return e.json()}).then(function(e){return console.log("DELTASTV: vast.adclick ",e)})}),r.on("vast.contentEnd",function(e){videojs(document.getElementById("deltaplayer")).playlist.next()})}),videojs(document.getElementById("deltaplayer")).adform({})}},{key:"playlist",value:function(e){console.log("DELTASTV: Do playlist -",e),videojs(document.getElementById("deltaplayer")).playlist(e),videojs(document.getElementById("deltaplayer")).playlist.autoadvance(0)}},{key:"overlay",value:function(e){videojs(document.getElementById("deltaplayer")).overlay({content:"Video has been paused",debug:!1,overlays:[{content:"

"+e.substr(0,60)+"...

",showBackground:!1,class:"delta-overlay",start:"loadstart",end:"playing"},{content:"

"+e.substr(0,60)+"...

",showBackground:!1,class:"delta-overlay",start:"pause",end:"playing"}]})}},{key:"videojs",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){var t=this;videojs(document.getElementById("deltaplayer"),{controls:!0,autoplay:!1,preload:"metadata",loop:!1,muted:!0,width:640,height:264,playbackRates:[1,1.5,2,3]},function(){t.setState({videoLoaded:!0}),console.log("DELTASTV: Do videojs",e),console.log("DELTASTV: Do videojs",t.state),t.playlist(t.state.videos),t.plugins();var n=videojs(document.getElementById("deltaplayer")),r=n.playlist()[n.playlist.currentItem()<0?0:n.playlist.currentItem()].title;t.overlay(r)}),videojs(document.getElementById("deltaplayer")).on("loadstart",function(){var e=videojs(document.getElementById("deltaplayer")),n=e.playlist()[e.playlist.currentItem()<0?0:e.playlist.currentItem()].title;t.overlay(n)})})},{key:"componentDidMount",value:function(){var e=this;this.getVideos(window.location.href).then(function(t){e.setVideos(t),console.log("DELTASTV: DATA",t);var n=[].slice.call(document.body.querySelectorAll("p, span")).filter(function(e){return e.textContent}),r=document.body.querySelectorAll("#suggestvdeltaplayer"),a=document.querySelectorAll("#deltaplayercontainer")[0],i=void 0,o=void 0;t.text&&(i=n.filter(function(e){return-1!==e.textContent.indexOf(t.text.substr(t.text.length/2,20))})[0]),t.description&&(o=n.filter(function(e){return-1!==e.textContent.indexOf(t.description.substr(t.description.length/2,20))})[0]),console.log("lastPText ",i),console.log("lastPDesc ",o),console.log("#suggestvdeltaplayer ",r[0]),0===r.length?i?i.parentNode.appendChild(a):o?o.parentNode.appendChild(a):e.noTextOrDescription():r[0].appendChild(a),(i||o||0!==r.length)&&e.videojs(e.state.videos)}).catch(function(e){console.log("DELTASTV: Promise Error",e),videojs(document.getElementById("deltaplayer")).dispose()}),window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("touchmove",this.handleScroll.bind(this))}},{key:"noTextOrDescription",value:function(){console.log("DELTASTV: there is no text or description"),videojs(document.getElementById("deltaplayer")).dispose()}},{key:"isInViewport",value:function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||n.clientHeight)&&t.right<=(window.innerWidth||n.clientWidth)}},{key:"renderECP",value:function(){return s.a.createElement("div",null,s.a.createElement("video",{playsInline:!0,id:"deltaplayer",className:"video-js vjs-default-skin vjs-fluid vjs-big-play-centered"}))}},{key:"render",value:function(){return s.a.createElement("div",null,this.renderECP())}}]),t}(s.a.Component);t.a=p},function(e,t,n){n(28)(n(98))},function(e,t,n){n(28)(n(99))},function(e,t,n){n(28)(n(100))},function(e,t,n){n(28)(n(101))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),a=n.n(r),i=n(48),o=n.n(i),s=n(79),c=document.createElement("div");c.id="deltaplayercontainer",document.body.appendChild(c),n(82),n(81),n(83),n(80),["https://vjs.zencdn.net/5.14.1/video-js.min.css","https://delta.sugges.tv/videojs-overlay.css","https://cdnjs.cloudflare.com/ajax/libs/videojs-vast-vpaid/2.0.2/videojs.vast.vpaid.min.css"].forEach(function(e){var t=document.createElement("link");t.href=e,t.rel="stylesheet",document.head.appendChild(t)}),console.log("running"),o.a.render(a.a.createElement(s.a,null),document.getElementById("deltaplayercontainer"))},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return s});var r=[{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/c648b1b9-1056-4893-a052-5bcc35f2f38d/27255151b3ba0ca44840000cb112d9d3.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/c648b1b9-1056-4893-a052-5bcc35f2f38d/aeb2a6436072a5961007183dd2ddcd5a-1280x720.png ",title:"ITV and ITN celebrate 60 years on air"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/1e78393e-7f52-4933-87b6-d5d609c831c0/901f4496855cf8db8d91b7f96d093f60.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/1e78393e-7f52-4933-87b6-d5d609c831c0/7123a2ae5dbb578049617d7df8964459-1280x720.png",title:"Amateur video captures tornado touching down in Ohio"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/f8ca127e-6002-47a3-92b5-c5c56d5578dc/f1cc13cb0f47d37d94e5f5d938aaa7af.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/f8ca127e-6002-47a3-92b5-c5c56d5578dc/965644cbcdb577138bfbb4d2d9505e75-1280x720.png",title:"Time-lapse video of the Aurora Borealis in Minnesota"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/e34e6fe7-442e-4f76-b5fb-e81803953f46/77f948bf561b33a50ee2d688f2fdccad.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/e34e6fe7-442e-4f76-b5fb-e81803953f46/cb128c8e24c9c2cca9e3d41f5312125c-1280x720.png",title:"Video of racoon riding a scooter goes viral"}],a=[{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/3d890945-9f28-472a-b568-4c349991638a/21fcf8b8165d4a480087b4d156b7c7af.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/3d890945-9f28-472a-b568-4c349991638a/a683b5206fd45c94d78546e0901b9cc4-1280x720.png",title:"Nickelodeon Kids' Choice 2015 Sports Awards"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/0bb3f3c3-8f1f-4256-8ca3-812ed74d436e/3d33b409fe58f842d364546b1d4dc089.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/0bb3f3c3-8f1f-4256-8ca3-812ed74d436e/3afcd7b07cd8a72c6d5e7820dc9ba778-1280x720.png",title:"10 Pretty Weird Sports"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/bec309ef-d345-4af3-865c-a65462de6434/bc97e402f5ee3fb09dfa600113d3253d.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/bec309ef-d345-4af3-865c-a65462de6434/67a03c0657df7bdc15473e6c8a6851d3_1.jpg",title:"10 Biggest Sporting Rivalries"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/36c38533-6ea3-4c4c-9e2f-98cf0e1f6f0f/1b8b322350ea41caad3f4059c3727538.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/36c38533-6ea3-4c4c-9e2f-98cf0e1f6f0f/31b868ba73e9f72827c4e3c6325efcf5_1.jpg",title:"10 Brutal Ancient Sports"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/4c7e375f-710b-43fe-8978-0e032d77cc58/985aa6d28873952f9643de9c82954a5f.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/4c7e375f-710b-43fe-8978-0e032d77cc58/0d42b23193b84c4f1b5da6c67fd77ba6-1280x720.png",title:"Famous Sporting Wives & Girlfriends"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/15e93e94-b88f-4f2f-a6b4-8b65c027ed4c/0fb4839b91a85f75fe10845bbf0b0bdb.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/15e93e94-b88f-4f2f-a6b4-8b65c027ed4c/36d8a00a46a65d26b05d68174264c0c3-1280x720.png",title:"China's gruelling sports schools"}],i=[{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/100715ce-44d2-48dd-bd25-4234c434f7a8/58b6261f76a9822a08a617de6be56260.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/100715ce-44d2-48dd-bd25-4234c434f7a8/1a6ba68aa83927bb4f22438ff29a7479-1280x720.png",title:"The beauty and the pigs: An unconditional love story"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/4b5be471-4665-4d06-acb6-a902525ecc81/8941b5cf87104a67bf469d85094e6f25.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/4b5be471-4665-4d06-acb6-a902525ecc81/b8a0fd8dac6a2fe12ffbae8deb2e4b8c-1280x720.png",title:"Brazilian beauty Adriana Lima covers Vogue Olympics"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/deb54697-e356-4a37-bbce-1b5605634727/e7bb5c43c460f0d74aa172ab6dd889de.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/deb54697-e356-4a37-bbce-1b5605634727/b811e19b0f1c70b6f61ffab82b1d4f56_1.jpg",title:"The new beauty consumers"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/025d7a48-8106-4328-a1f8-abe6172a05f6/69a5c1dd1beececaf9804cfe052e1362.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/025d7a48-8106-4328-a1f8-abe6172a05f6/8ac6b39b6a8de0b42102d1f6940db82c_1.jpg",title:"#Hashtag: Instagram comes to life in NYC beauty store"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/96f86069-8db0-4bad-ade4-4738ac606f0b/098b60d15529b8784441f70d93ea2c13.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/96f86069-8db0-4bad-ade4-4738ac606f0b/b598fd21b0f7b81d12378c21723d65ff_1.jpg",title:"Miss Undertaker: World's most bizarre beauty title?"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MTk5NQ/MjM2NjkzNg/Marchionne0307d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/idKnV8f7YxQ8/v5/640x-1.jpg",title:"Ferrari's Marchionne Hopes for U.S. Border Tax Exemption"}],o=[{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA2MTk1MQ/MjM3MDE4OQ/bmKirkpatrick031717d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iLTNElrqdVZ0/v5/640x-1.jpg",title:"Apple Plans to Expand in China as iPhone Sales Slow"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA2MTkwNA/MjM3MDE1NQ/intvkenny0317d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iij3ER5mSADc/v5/640x-1.jpg",title:"Irish PM Kenny on Trump Meeting, Brexit Talks and Trade"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MTkzMA/MjM2NjkyMg/Zellmer0307d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iPeY2kz8.bKg/v5/640x-1.jpg",title:"Porsche Pushing Toward Electric and Driverless Cars"},{sources:[{src:"https://dh85o37ztyzo0.cloudfront.net/m/NzA2MDg0MA/MjM2OTgyNQ/intvreiss0316d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iZXr_PfeXgB8/v5/640x-1.jpg",title:"Canada Goose CEO Sees Opportunities in Europe and China"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA2MDcyMg/MjM2OTc3NQ/barinka14550316d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iA6E_g6FtawU/v5/640x-1.jpg",title:"Canada Goose Shares Soar in Trading Debut"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MTgxOQ/MjM2Njg0Mw/Fiotakisx0307d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/ii0swWho50RM/v5/640x-1.jpg",title:"UBS's Fiotakis Says Greek, IMF Incentives Have Changed"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MTcxNA/MjM2Njc5OA/intvkirsten0306d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/i0JniPATs15A/v5/640x-1.jpg",title:"Vonovia's CFO Says Berlin Is Not a Cheap Market Anymore"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MjEwNQ/MjM2Njk5OA/intvzetsche0307d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iRZ3gr1XgdLI/v5/640x-1.jpg",title:"Daimler CEO Dieter Zetsche Is Bullish on Global Sales"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MTk5NQ/MjM2NjkzNg/Marchionne0307d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/idKnV8f7YxQ8/v5/640x-1.jpg",title:"Ferrari's Marchionne Hopes for U.S. Border Tax Exemption"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1NDE5MQ/MjM2NzY0NA/intvzeybekci0309d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iP4r1U0k4o1s/v5/640x-1.jpg",title:"Turkey's Zeybekci Says Economy Must Grow at Least 5.5%"}],s=[{sources:[{src:"http://17909.cdx.c.ooyala.com/dwNmdoYTE61D6obD2E3SqRuchixJHj4R/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/dwNmdoYTE61D6obD2E3SqRuchixJHj4R/promo314626431",title:"Three-year-old 'actress' can cry on demand"},{sources:[{src:"http://17909.cdx.c.ooyala.com/VlYmdoYTE6gHpb2W6IZ0MKSSCPtFNG7N/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/VlYmdoYTE6gHpb2W6IZ0MKSSCPtFNG7N/promo314626998",title:"Lost student survives for five days alone in desert"},{sources:[{src:"http://17909.cdx.c.ooyala.com/VxN2doYTE6_T_c61xo7MleGDK6Wbh9_M/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/VxN2doYTE6_T_c61xo7MleGDK6Wbh9_M/promo314627996",title:"Transforming KYC compliance through process automation"},{sources:[{src:"http://17909.cdx.c.ooyala.com/JsMGVoYTE6Zyro4dbErrr7jE5n7XU8ak/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/JsMGVoYTE6Zyro4dbErrr7jE5n7XU8ak/promo314613444",title:"Father draws moustache and eyebrows on baby while mum is away"},{sources:[{src:"http://17909.cdx.c.ooyala.com/BrZWRoYTE6Io_soFShiukBn1ELK_1pAr/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/BrZWRoYTE6Io_soFShiukBn1ELK_1pAr/promo314611399",title:"Man Creates His Own Tiny World in Melbourne"},{sources:[{src:"http://17909.cdx.c.ooyala.com/JteGNoYTE6azt-zbmshw-Vg6iOhH6ilX/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/JteGNoYTE6azt-zbmshw-Vg6iOhH6ilX/promo314609716",title:"Boyfriend's Drone Records Romantic Proposal"},{sources:[{src:"http://17909.cdx.c.ooyala.com/l1ZDhoYTE6nEnaYIOEqYSo4KFbqc9Ds7/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/l1ZDhoYTE6nEnaYIOEqYSo4KFbqc9Ds7/promo314589151",title:"Dogs On Dates Video Compilation 2017"},{sources:[{src:"http://17909.cdx.c.ooyala.com/RnNzhoYTE6BiB6HZHAEx0E0G4fqIrddL/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/RnNzhoYTE6BiB6HZHAEx0E0G4fqIrddL/promo314588588",title:"Guy Juggles Golf Ball Before Making Hole in One"},{sources:[{src:"http://17909.cdx.c.ooyala.com/5nNzZoYTE6VfIaJ9BSgx2f3-iqhSVP7-/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/5nNzZoYTE6VfIaJ9BSgx2f3-iqhSVP7-/promo314581288",title:"Paralyzed Guy Performs Backflip on Motorbike"},{sources:[{src:"http://17909.cdx.c.ooyala.com/ZvNzJoYTE66kM65rNTbn4nFYfOQ9_0eu/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/ZvNzJoYTE66kM65rNTbn4nFYfOQ9_0eu/promo314569620",title:"Fitness Enthusiast Falls Off Box"},{sources:[{src:"http://17909.cdx.c.ooyala.com/htNzJoYTE62Td7VRYkHGbHT_eiPaRhQy/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/htNzJoYTE62Td7VRYkHGbHT_eiPaRhQy/promo314569613",title:"Guy Catches Fish With Bare Hands"}]},function(e,t,n){"use strict";function r(e){return e.replace(a,function(e,t){return t.toUpperCase()})}var a=/-(.)/g;e.exports=r},function(e,t,n){"use strict";function r(e){return a(e.replace(i,"ms-"))}var a=n(86),i=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!a(e)&&(a(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var a=n(96);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&o(!1),"number"!=typeof t&&o(!1),0===t||t-1 in e||o(!1),"function"==typeof e.callee&&o(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r":"<"+e+">",s[e]=!o.firstChild),s[e]?f[e]:null}var a=n(5),i=n(0),o=a.canUseDOM?document.createElement("div"):null,s={},c=[1,'"],u=[1,"","
"],l=[3,"","
"],d=[1,'',""],f={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:c,option:c,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){f[e]=d,s[e]=!0}),e.exports=r},function(e,t,n){"use strict";function r(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=r},function(e,t,n){"use strict";function r(e){return e.replace(a,"-$1").toLowerCase()}var a=/([A-Z])/g;e.exports=r},function(e,t,n){"use strict";function r(e){return a(e).replace(i,"-ms-")}var a=n(93),i=/^ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){return a(e)&&3==e.nodeType}var a=n(95);e.exports=r},function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=r},function(e,t){e.exports='/*** IMPORTS FROM imports-loader ***/\nvar define = false;\n\n/**\n * videojs-overlay\n * @version 1.1.1\n * @copyright 2016 Brightcove, Inc.\n * @license Apache-2.0\n */\n!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.videojsOverlay=e()}}(function(){return function e(t,n,o){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(r)return r(s,!0);var d=new Error("Cannot find module \'"+s+"\'");throw d.code="MODULE_NOT_FOUND",d}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n?n:e)},l,l.exports,e,t,n,o)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s=n:n===t}},{key:"show",value:function(){return d(Object.getPrototypeOf(t.prototype),"show",this).call(this),this.off(this.player(),this.startEvent_,this.startListener_),this.debug("shown"),this.debug(\'unbound `startListener_` from "\'+this.startEvent_+\'"\'),this.endEvent_&&(this.debug(\'bound `endListener_` to "\'+this.endEvent_+\'"\'),this.on(this.player(),this.endEvent_,this.endListener_)),this}},{key:"shouldShow_",value:function(e,t){var n=this.options_.start,o=this.options_.end;return m(n)?m(o)?e>=n&&e=n):n===t}},{key:"startListener_",value:function(e){var t=this.player().currentTime();this.shouldShow_(t,e.type)&&this.show()}},{key:"endListener_",value:function(e){var t=this.player().currentTime();this.shouldHide_(t,e.type)&&this.hide()}},{key:"rewindListener_",value:function(e){var t=this.player().currentTime(),n=this.previousTime_,o=this.options_.start,i=this.options_.end;t=0&&1/0>e},a=function(e){e.playlist.autoadvance_.timeout&&u["default"].clearTimeout(e.playlist.autoadvance_.timeout),e.playlist.autoadvance_.trigger&&e.off("ended",e.playlist.autoadvance_.trigger),e.playlist.autoadvance_.timeout=null,e.playlist.autoadvance_.trigger=null},f=function(e,t){a(e),i(t)&&(e.playlist.autoadvance_.trigger=function(){e.playlist.autoadvance_.timeout=u["default"].setTimeout(function(){a(e),e.playlist.next()},1e3*t)},e.one("ended",e.playlist.autoadvance_.trigger))};n.reset=a,n.setup=f},{"global/window":4}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./auto-advance.js"),o=function(e){for(var t=e.remoteTextTracks(),n=t&&t.length||0;n--;)e.removeRemoteTextTrack(t[n])},u=function(e,t,n){var u=!e.paused()||e.ended();return e.trigger("beforeplaylistitem",n),e.poster(n.poster||""),e.src(n.sources),o(e),(n.textTracks||[]).forEach(e.addRemoteTextTrack.bind(e)),e.trigger("playlistitem",n),u&&e.play(),(0,r.setup)(e,t),e};n["default"]=u,n.clearTracks=o},{"./auto-advance.js":1}],3:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var u=e("global/window"),i=o(u),a=e("./play-item"),f=o(a),l=e("./auto-advance"),d=r(l),c=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},s=function(e,t){var n=e,r=t;return"object"==typeof e&&(n=e.src),"object"==typeof t&&(r=t.src),/^\\/\\//.test(n)&&(r=r.slice(r.indexOf("//"))),/^\\/\\//.test(r)&&(n=n.slice(n.indexOf("//"))),n===r},p=function(e,t){for(var n=0;n=0&&e0&&void 0!==arguments[0]?arguments[0]:"button",b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};b=(0,n.assign)({className:this.buildCSSClass()},b),"button"!==a&&(m["default"].warn("Creating a Button with an HTML element of "+a+" is deprecated; use ClickableComponent instead."),b=(0,n.assign)({tabIndex:0},b),c=(0,n.assign)({role:"button"},c)),c=(0,n.assign)({type:"button","aria-live":"polite"},c);var d=k["default"].prototype.createEl.call(this,a,b,c);return this.createControlTextEl(d),d},b.prototype.addChild=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=this.constructor.name;return m["default"].warn("Adding an actionable (user controllable) child to a Button ("+c+") is not supported; use a ClickableComponent instead."),k["default"].prototype.addChild.call(this,a,b)},b.prototype.enable=function(){a.prototype.enable.call(this),this.el_.removeAttribute("disabled")},b.prototype.disable=function(){a.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},b.prototype.handleKeyPress=function(b){32!==b.which&&13!==b.which&&a.prototype.handleKeyPress.call(this,b)},b}(i["default"]);k["default"].registerComponent("Button",o),c["default"]=o},{3:3,5:5,86:86,88:88}],3:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=a(82),n=d(m),o=a(83),p=d(o),q=a(86),r=e(q),s=a(94),t=e(s),u=a(88),v=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.emitTapEvents(),e.enable(),e}return h(b,a),b.prototype.createEl=function(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c=(0,u.assign)({className:this.buildCSSClass(),tabIndex:0},c),"button"===b&&r["default"].error("Creating a ClickableComponent with an HTML element of "+b+" is not supported; use a Button instead."),d=(0,u.assign)({role:"button","aria-live":"polite"},d),this.tabIndex_=c.tabIndex;var e=a.prototype.createEl.call(this,b,c,d);return this.createControlTextEl(e),e},b.prototype.createControlTextEl=function(a){return this.controlTextEl_=l.createEl("span",{className:"vjs-control-text"}),a&&a.appendChild(this.controlTextEl_),this.controlText(this.controlText_,a),this.controlTextEl_},b.prototype.controlText=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(!a)return this.controlText_||"Need Text";var c=this.localize(a);return this.controlText_=a,this.controlTextEl_.innerHTML=c,b.setAttribute("title",c),this},b.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+a.prototype.buildCSSClass.call(this)},b.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!=typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},b.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!=typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("tap",this.handleClick),this.off("click",this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},b.prototype.handleClick=function(a){},b.prototype.handleFocus=function(a){n.on(t["default"],"keydown",p.bind(this,this.handleKeyPress))},b.prototype.handleKeyPress=function(b){32===b.which||13===b.which?(b.preventDefault(),this.handleClick(b)):a.prototype.handleKeyPress&&a.prototype.handleKeyPress.call(this,b)},b.prototype.handleBlur=function(a){n.off(t["default"],"keydown",p.bind(this,this.handleKeyPress))},b}(j["default"]);j["default"].registerComponent("ClickableComponent",v),c["default"]=v},{5:5,81:81,82:82,83:83,86:86,88:88,94:94}],4:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(2),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.controlText(d&&d.controlText||g.localize("Close")),g}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-close-button "+a.prototype.buildCSSClass.call(this)},b.prototype.handleClick=function(a){this.trigger({type:"close",bubbles:!1})},b}(i["default"]);k["default"].registerComponent("CloseButton",l),c["default"]=l},{2:2,5:5}],5:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var g=a(95),h=e(g),i=a(81),j=d(i),k=a(83),l=d(k),m=a(85),n=d(m),o=a(82),p=d(o),q=a(86),r=e(q),s=a(91),t=e(s),u=a(87),v=e(u),w=function(){function a(b,c,d){if(f(this,a),!b&&this.play?this.player_=b=this:this.player_=b,this.options_=(0,v["default"])({},this.options_),c=this.options_=(0,v["default"])(this.options_,c),this.id_=c.id||c.el&&c.el.id,!this.id_){var e=b&&b.id&&b.id()||"no_player";this.id_=e+"_component_"+n.newGUID()}this.name_=c.name||null,c.el?this.el_=c.el:c.createEl!==!1&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},c.initChildren!==!1&&this.initChildren(),this.ready(d),c.reportTouchActivity!==!1&&this.enableTouchActivity()}return a.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var a=this.children_.length-1;a>=0;a--)this.children_[a].dispose&&this.children_[a].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),j.removeElData(this.el_),this.el_=null},a.prototype.player=function(){return this.player_},a.prototype.options=function(a){return r["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),a?(this.options_=(0,v["default"])(this.options_,a),this.options_):this.options_},a.prototype.el=function(){return this.el_},a.prototype.createEl=function(a,b,c){return j.createEl(a,b,c)},a.prototype.localize=function(a){var b=this.player_.language&&this.player_.language(),c=this.player_.languages&&this.player_.languages();if(!b||!c)return a;var d=c[b];if(d&&d[a])return d[a];var e=b.split("-")[0],f=c[e];return f&&f[a]?f[a]:a},a.prototype.contentEl=function(){return this.contentEl_||this.el_},a.prototype.id=function(){return this.id_},a.prototype.name=function(){return this.name_},a.prototype.children=function(){return this.children_},a.prototype.getChildById=function(a){return this.childIndex_[a]},a.prototype.getChild=function(a){if(a)return a=(0,t["default"])(a),this.childNameIndex_[a]},a.prototype.addChild=function(b){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,e=void 0,f=void 0;if("string"==typeof b){f=(0,t["default"])(b),c||(c={}),c===!0&&(r["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`."),c={});var g=c.componentClass||f;c.name=f;var h=a.getComponent(g);if(!h)throw new Error("Component "+g+" does not exist");if("function"!=typeof h)return null;e=new h(this.player_||this,c)}else e=b;if(this.children_.splice(d,0,e),"function"==typeof e.id&&(this.childIndex_[e.id()]=e),f=f||e.name&&e.name(),f&&(this.childNameIndex_[f]=e),"function"==typeof e.el&&e.el()){var i=this.contentEl().children,j=i[d]||null;this.contentEl().insertBefore(e.el(),j)}return e},a.prototype.removeChild=function(a){if("string"==typeof a&&(a=this.getChild(a)),a&&this.children_){for(var b=!1,c=this.children_.length-1;c>=0;c--)if(this.children_[c]===a){b=!0,this.children_.splice(c,1);break}if(b){this.childIndex_[a.id()]=null,this.childNameIndex_[a.name()]=null;var d=a.el();d&&d.parentNode===this.contentEl()&&this.contentEl().removeChild(a.el())}}},a.prototype.initChildren=function(){var b=this,c=this.options_.children;c&&!function(){var d=b.options_,e=function(a){var c=a.name,e=a.opts;if(void 0!==d[c]&&(e=d[c]),e!==!1){e===!0&&(e={}),e.playerOptions=b.options_.playerOptions;var f=b.addChild(c,e);f&&(b[c]=f)}},f=void 0,g=a.getComponent("Tech");f=Array.isArray(c)?c:Object.keys(c),f.concat(Object.keys(b.options_).filter(function(a){return!f.some(function(b){return"string"==typeof b?a===b:a===b.name})})).map(function(a){var d=void 0,e=void 0;return"string"==typeof a?(d=a,e=c[d]||b.options_[d]||{}):(d=a.name,e=a),{name:d,opts:e}}).filter(function(b){var c=a.getComponent(b.opts.componentClass||(0,t["default"])(b.name));return c&&!g.isTech(c)}).forEach(e)}()},a.prototype.buildCSSClass=function(){return""},a.prototype.on=function(a,b,c){var d=this;return"string"==typeof a||Array.isArray(a)?p.on(this.el_,a,l.bind(this,b)):!function(){var e=a,f=b,g=l.bind(d,c),h=function(){return d.off(e,f,g)};h.guid=g.guid,d.on("dispose",h);var i=function(){return d.off("dispose",h)};i.guid=g.guid,a.nodeName?(p.on(e,f,g),p.on(e,"dispose",i)):"function"==typeof a.on&&(e.on(f,g),e.on("dispose",i))}(),this},a.prototype.off=function(a,b,c){if(!a||"string"==typeof a||Array.isArray(a))p.off(this.el_,a,b);else{var d=a,e=b,f=l.bind(this,c);this.off("dispose",f),a.nodeName?(p.off(d,e,f),p.off(d,"dispose",f)):(d.off(e,f),d.off("dispose",f))}return this},a.prototype.one=function(a,b,c){var d=this,e=arguments;return"string"==typeof a||Array.isArray(a)?p.one(this.el_,a,l.bind(this,b)):!function(){var f=a,g=b,h=l.bind(d,c),i=function j(){d.off(f,g,j),h.apply(null,e)};i.guid=h.guid,d.on(f,g,i)}(),this},a.prototype.trigger=function(a,b){return p.trigger(this.el_,a,b),this},a.prototype.ready=function(a){var b=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a&&(this.isReady_?b?a.call(this):this.setTimeout(a,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(a))),this},a.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var a=this.readyQueue_;this.readyQueue_=[],a&&a.length>0&&a.forEach(function(a){a.call(this)},this),this.trigger("ready")},1)},a.prototype.$=function(a,b){return j.$(a,b||this.contentEl())},a.prototype.$$=function(a,b){return j.$$(a,b||this.contentEl())},a.prototype.hasClass=function(a){return j.hasElClass(this.el_,a)},a.prototype.addClass=function(a){return j.addElClass(this.el_,a),this},a.prototype.removeClass=function(a){return j.removeElClass(this.el_,a),this},a.prototype.toggleClass=function(a,b){return j.toggleElClass(this.el_,a,b),this},a.prototype.show=function(){return this.removeClass("vjs-hidden"),this},a.prototype.hide=function(){return this.addClass("vjs-hidden"),this},a.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},a.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},a.prototype.getAttribute=function(a){return j.getAttribute(this.el_,a)},a.prototype.setAttribute=function(a,b){return j.setAttribute(this.el_,a,b),this},a.prototype.removeAttribute=function(a){return j.removeAttribute(this.el_,a),this},a.prototype.width=function(a,b){return this.dimension("width",a,b)},a.prototype.height=function(a,b){return this.dimension("height",a,b)},a.prototype.dimensions=function(a,b){return this.width(a,!0).height(b)},a.prototype.dimension=function(a,b,c){if(void 0!==b)return null!==b&&b===b||(b=0),(""+b).indexOf("%")!==-1||(""+b).indexOf("px")!==-1?this.el_.style[a]=b:"auto"===b?this.el_.style[a]="":this.el_.style[a]=b+"px",c||this.trigger("resize"),this;if(!this.el_)return 0;var d=this.el_.style[a],e=d.indexOf("px");return e!==-1?parseInt(d.slice(0,e),10):parseInt(this.el_["offset"+(0,t["default"])(a)],10)},a.prototype.currentDimension=function(a){var b=0;if("width"!==a&&"height"!==a)throw new Error("currentDimension only accepts width or height value");if("function"==typeof h["default"].getComputedStyle){var c=h["default"].getComputedStyle(this.el_);b=c.getPropertyValue(a)||c[a]}if(b=parseFloat(b),0===b){var d="offset"+(0,t["default"])(a);b=this.el_[d]}return b},a.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},a.prototype.currentWidth=function(){return this.currentDimension("width")},a.prototype.currentHeight=function(){return this.currentDimension("height")},a.prototype.emitTapEvents=function(){var a=0,b=null,c=10,d=200,e=void 0;this.on("touchstart",function(c){1===c.touches.length&&(b={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY},a=(new Date).getTime(),e=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)e=!1;else if(b){var d=a.touches[0].pageX-b.pageX,f=a.touches[0].pageY-b.pageY,g=Math.sqrt(d*d+f*f);g>c&&(e=!1)}});var f=function(){e=!1};this.on("touchleave",f),this.on("touchcancel",f),this.on("touchend",function(c){if(b=null,e===!0){var f=(new Date).getTime()-a;f0&&Object.keys(c.players).map(function(a){return c.players[a]}).every(Boolean))throw new Error("Can not register Player component after player has been created")}(),a.components_[b]=c,c},a.getComponent=function(b){if(b)return b=(0,t["default"])(b),a.components_&&a.components_[b]?a.components_[b]:h["default"]&&h["default"].videojs&&h["default"].videojs[b]?(r["default"].warn("The "+b+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),h["default"].videojs[b]):void 0},a.extend=function(b){b=b||{},r["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var c=b.init||b.init||this.prototype.init||this.prototype.init||function(){},d=function(){c.apply(this,arguments)};d.prototype=Object.create(this.prototype),d.prototype.constructor=d,d.extend=a.extend;for(var e in b)b.hasOwnProperty(e)&&(d.prototype[e]=b[e]);return d},a}();w.registerComponent("Component",w),c["default"]=w},{81:81,82:82,83:83,85:85,86:86,87:87,91:91,95:95}],6:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(36),i=d(h),j=a(5),k=d(j),l=a(7),m=d(l),n=function(a){function b(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,b),d.tracks=c.audioTracks&&c.audioTracks();var g=f(this,a.call(this,c,d));return g.el_.setAttribute("aria-label","Audio Menu"),g}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-audio-button "+a.prototype.buildCSSClass.call(this)},b.prototype.createItems=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],b=this.player_.audioTracks&&this.player_.audioTracks();if(!b)return a;for(var c=0;c\'+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateShowing=function(a){this.player().duration()===1/0?this.show():this.hide()},b}(j["default"]);j["default"].registerComponent("LiveDisplay",m),c["default"]=m},{5:5,81:81}],11:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(2),j=e(i),k=a(5),l=e(k),m=a(81),n=d(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"volumechange",e.update),c.tech_&&c.tech_.featuresVolumeControl===!1&&e.addClass("vjs-hidden"),e.on(c,"loadstart",function(){this.update(),c.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),e}return h(b,a),b.prototype.buildCSSClass=function(){return"vjs-mute-control "+a.prototype.buildCSSClass.call(this)},b.prototype.handleClick=function(a){this.player_.muted(!this.player_.muted())},b.prototype.update=function(a){var b=this.player_.volume(),c=3;0===b||this.player_.muted()?c=0:b<.33?c=1:b<.67&&(c=2);var d=this.player_.muted()?"Unmute":"Mute";this.controlText()!==d&&this.controlText(d);for(var e=0;e<4;e++)n.removeElClass(this.el_,"vjs-vol-"+e);n.addElClass(this.el_,"vjs-vol-"+c)},b}(j["default"]);o.prototype.controlText_="Mute",l["default"].registerComponent("MuteToggle",o),c["default"]=o},{2:2,5:5,81:81}],12:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(2),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.on(c,"play",g.handlePlay),g.on(c,"pause",g.handlePause),g}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-play-control "+a.prototype.buildCSSClass.call(this)},b.prototype.handleClick=function(a){this.player_.paused()?this.player_.play():this.player_.pause()},b.prototype.handlePlay=function(a){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},b.prototype.handlePause=function(a){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},b}(i["default"]);l.prototype.controlText_="Play",k["default"].registerComponent("PlayToggle",l),c["default"]=l},{2:2,5:5}],13:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(47),j=e(i),k=a(49),l=e(k),m=a(14),n=e(m),o=a(5),p=e(o),q=a(81),r=d(q),s=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.updateVisibility(),e.updateLabel(),e.on(c,"loadstart",e.updateVisibility),e.on(c,"ratechange",e.updateLabel),e}return h(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this);return this.labelEl_=r.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),b.appendChild(this.labelEl_),b},b.prototype.buildCSSClass=function(){return"vjs-playback-rate "+a.prototype.buildCSSClass.call(this)},b.prototype.createMenu=function(){var a=new l["default"](this.player()),b=this.playbackRates();if(b)for(var c=b.length-1;c>=0;c--)a.addChild(new n["default"](this.player(),{rate:b[c]+"x"}));return a},b.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},b.prototype.handleClick=function(a){for(var b=this.player().playbackRate(),c=this.playbackRates(),d=c[0],e=0;eb){\nd=c[e];break}this.player().playbackRate(d)},b.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},b.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},b.prototype.updateVisibility=function(a){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},b.prototype.updateLabel=function(a){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},b}(j["default"]);s.prototype.controlText_="Playback Rate",p["default"].registerComponent("PlaybackRateMenuButton",s),c["default"]=s},{14:14,47:47,49:49,5:5,81:81}],14:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(48),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b);var g=d.rate,h=parseFloat(g,10);d.label=g,d.selected=1===h;var i=f(this,a.call(this,c,d));return i.label=g,i.rate=h,i.on(c,"ratechange",i.update),i}return g(b,a),b.prototype.handleClick=function(b){a.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},b.prototype.update=function(a){this.selected(this.player().playbackRate()===this.rate)},b}(i["default"]);l.prototype.contentElType="button",k["default"].registerComponent("PlaybackRateMenuItem",l),c["default"]=l},{48:48,5:5}],15:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.partEls_=[],e.on(c,"progress",e.update),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:\'\'+this.localize("Loaded")+": 0%"})},b.prototype.update=function(a){var b=this.player_.buffered(),c=this.player_.duration(),d=this.player_.bufferedEnd(),e=this.partEls_,f=function(a,b){var c=a/b||0;return 100*(c>=1?1:c)+"%"};this.el_.style.width=f(d,c);for(var g=0;gb.length;k--)this.el_.removeChild(e[k-1]);e.length=b.length},b}(j["default"]);j["default"].registerComponent("LoadProgressBar",m),c["default"]=m},{5:5,81:81}],16:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=a(83),n=d(m),o=a(84),p=e(o),q=a(80),r=e(q),s=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltip=l.createEl("div",{className:"vjs-time-tooltip"}),e.el().appendChild(e.tooltip),e.addClass("vjs-keep-tooltips-inside")),e.update(0,0),c.on("ready",function(){e.on(c.controlBar.progressControl.el(),"mousemove",n.throttle(n.bind(e,e.handleMouseMove),25))}),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},b.prototype.handleMouseMove=function(a){var b=this.player_.duration(),c=this.calculateDistance(a)*b,d=a.pageX-l.findElPosition(this.el().parentNode).left;this.update(c,d)},b.prototype.update=function(a,b){var c=(0,p["default"])(a,this.player_.duration());if(this.el().style.left=b+"px",this.el().setAttribute("data-current-time",c),this.keepTooltipsInside){var d=this.clampPosition_(b),e=b-d+1,f=parseFloat((0,r["default"])(this.tooltip,"width")),g=f/2;this.tooltip.innerHTML=c,this.tooltip.style.right="-"+(g-e)+"px"}},b.prototype.calculateDistance=function(a){return l.getPointerPosition(this.el().parentNode,a).x},b.prototype.clampPosition_=function(a){if(!this.keepTooltipsInside)return a;var b=parseFloat((0,r["default"])(this.player().el(),"width")),c=parseFloat((0,r["default"])(this.tooltip,"width")),d=c/2,e=a;return ab-d&&(e=Math.floor(b-d)),e},b}(j["default"]);j["default"].registerComponent("MouseTimeDisplay",s),c["default"]=s},{5:5,80:80,81:81,83:83,84:84}],17:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(83),l=d(k),m=a(84),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.updateDataAttr(),e.on(c,"timeupdate",e.updateDataAttr),c.ready(l.bind(e,e.updateDataAttr)),d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&e.addClass("vjs-keep-tooltips-inside"),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:\'\'+this.localize("Progress")+": 0%"})},b.prototype.updateDataAttr=function(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,n["default"])(b,this.player_.duration()))},b}(j["default"]);j["default"].registerComponent("PlayProgressBar",o),c["default"]=o},{5:5,83:83,84:84}],18:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h);a(19),a(16);var j=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},b}(i["default"]);j.prototype.options_={children:["seekBar"]},i["default"].registerComponent("ProgressControl",j),c["default"]=j},{16:16,19:19,5:5}],19:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(57),j=e(i),k=a(5),l=e(k),m=a(83),n=d(m),o=a(84),p=e(o),q=a(80),r=e(q);a(15),a(17),a(20);var s=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"timeupdate",e.updateProgress),e.on(c,"ended",e.updateProgress),c.ready(n.bind(e,e.updateProgress)),d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltipProgressBar=e.addChild("TooltipProgressBar")),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},b.prototype.updateProgress=function(a){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var b=parseFloat((0,r["default"])(this.player().el(),"width")),c=parseFloat((0,r["default"])(this.tooltipProgressBar.tooltip,"width")),d=this.tooltipProgressBar.el().style;d.maxWidth=Math.floor(b-c/2)+"px",d.minWidth=Math.ceil(c/2)+"px",d.right="-"+c/2+"px"}},b.prototype.updateAriaAttributes=function(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();a.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),a.setAttribute("aria-valuetext",(0,p["default"])(b,this.player_.duration()))},b.prototype.getPercent=function(){var a=this.player_.currentTime()/this.player_.duration();return a>=1?1:a},b.prototype.handleMouseDown=function(b){a.prototype.handleMouseDown.call(this,b),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},b.prototype.handleMouseMove=function(a){var b=this.calculateDistance(a)*this.player_.duration();b===this.player_.duration()&&(b-=.1),this.player_.currentTime(b)},b.prototype.handleMouseUp=function(b){a.prototype.handleMouseUp.call(this,b),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},b.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},b.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},b}(j["default"]);s.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},s.prototype.playerEvent="timeupdate",l["default"].registerComponent("SeekBar",s),c["default"]=s},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(83),l=d(k),m=a(84),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.updateDataAttr(),e.on(c,"timeupdate",e.updateDataAttr),c.ready(l.bind(e,e.updateDataAttr)),e}return h(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:\'
\\n \'+this.localize("Progress")+": 0%"});return this.tooltip=b.querySelector(".vjs-time-tooltip"),b},b.prototype.updateDataAttr=function(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),c=(0,n["default"])(b,this.player_.duration());this.el_.setAttribute("data-current-time",c),this.tooltip.innerHTML=c},b}(j["default"]);j["default"].registerComponent("TooltipProgressBar",o),c["default"]=o},{5:5,83:83,84:84}],21:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(22),i=d(h),j=a(5),k=d(j),l=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+a.prototype.buildCSSClass.call(this)},b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,{className:this.buildCSSClass()});return b.innerHTML=" ",b},b}(i["default"]);k["default"].registerComponent("CustomControlSpacer",l),c["default"]=l},{22:22,5:5}],22:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h),j=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-spacer "+a.prototype.buildCSSClass.call(this)},b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},b}(i["default"]);i["default"].registerComponent("Spacer",j),c["default"]=j},{5:5}],23:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(31),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b),d.track={player:c,kind:d.kind,label:d.kind+" settings",selectable:!1,"default":!1,mode:"disabled"},d.selectable=!1;var g=f(this,a.call(this,c,d));return g.addClass("vjs-texttrack-settings"),g.controlText(", opens "+d.kind+" settings dialog"),g}return g(b,a),b.prototype.handleClick=function(a){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},b}(i["default"]);k["default"].registerComponent("CaptionSettingsMenuItem",l),c["default"]=l},{31:31,5:5}],24:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(30),i=d(h),j=a(5),k=d(j),l=a(23),m=d(l),n=function(a){function b(c,d,g){e(this,b);var h=f(this,a.call(this,c,d,g));return h.el_.setAttribute("aria-label","Captions Menu"),h}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-captions-button "+a.prototype.buildCSSClass.call(this)},b.prototype.update=function(b){var c=2;a.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(c=1),this.items&&this.items.length>c?this.show():this.hide()},b.prototype.createItems=function(){var b=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||b.push(new m["default"](this.player_,{kind:this.kind_})),a.prototype.createItems.call(this,b)},b}(i["default"]);n.prototype.kind_="captions",n.prototype.controlText_="Captions",k["default"].registerComponent("CaptionsButton",n),c["default"]=n},{23:23,30:30,5:5}],25:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(30),i=d(h),j=a(5),k=d(j),l=a(26),m=d(l),n=a(91),o=d(n),p=function(a){function b(c,d,g){e(this,b);var h=f(this,a.call(this,c,d,g));return h.el_.setAttribute("aria-label","Chapters Menu"),h}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-chapters-button "+a.prototype.buildCSSClass.call(this)},b.prototype.update=function(b){this.track_&&(!b||"addtrack"!==b.type&&"removetrack"!==b.type)||this.setTrack(this.findChaptersTrack()),a.prototype.update.call(this)},b.prototype.setTrack=function(a){if(this.track_!==a){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var b=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);b&&b.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=a,this.track_){this.track_.mode="hidden";var c=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);c&&c.addEventListener("load",this.updateHandler_)}}},b.prototype.findChaptersTrack=function(){for(var a=this.player_.textTracks()||[],b=a.length-1;b>=0;b--){var c=a[b];if(c.kind===this.kind_)return c}},b.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize((0,o["default"])(this.kind_))},b.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),a.prototype.createMenu.call(this)},b.prototype.createItems=function(){var a=[];if(!this.track_)return a;var b=this.track_.cues;if(!b)return a;for(var c=0,d=b.length;c1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),d.tracks=c.textTracks(),f(this,a.call(this,c,d))}return g(b,a),b.prototype.createItems=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a.push(new o["default"](this.player_,{kind:this.kind_}));var b=this.player_.textTracks();if(!b)return a;for(var c=0;cCurrent Time 0:00\'},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),c=this.localize("Current Time"),d=(0,n["default"])(b,this.player_.duration());d!==this.formattedTime_&&(this.formattedTime_=d,this.contentEl_.innerHTML=\'\'+c+" "+d)},b}(j["default"]);j["default"].registerComponent("CurrentTimeDisplay",o),c["default"]=o},{5:5,81:81,84:84}],33:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=a(84),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"durationchange",e.updateContent),e.on(c,"timeupdate",e.updateContent),e.on(c,"loadedmetadata",e.updateContent),e}return h(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-duration-display",innerHTML:\'\'+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(a){var b=this.player_.duration();if(b&&this.duration_!==b){this.duration_=b;var c=this.localize("Duration Time"),d=(0,n["default"])(b);this.contentEl_.innerHTML=\'\'+c+" "+d}},b}(j["default"]);j["default"].registerComponent("DurationDisplay",o),c["default"]=o},{5:5,81:81,84:84}],34:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=a(84),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"timeupdate",e.updateContent),e.on(c,"durationchange",e.updateContent),e}return h(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-remaining-time-display",innerHTML:\'\'+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(a){if(this.player_.duration()){var b=this.localize("Remaining Time"),c=(0,n["default"])(this.player_.remainingTime());c!==this.formattedTime_&&(this.formattedTime_=c,this.contentEl_.innerHTML=\'\'+b+" -"+c)}},b}(j["default"]);j["default"].registerComponent("RemainingTimeDisplay",o),c["default"]=o},{5:5,81:81,84:84}],35:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h),j=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},b}(i["default"]);i["default"].registerComponent("TimeDivider",j),c["default"]=j},{5:5}],36:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(47),j=e(i),k=a(5),l=e(k),m=a(83),n=d(m),o=function(a){function b(c,d){f(this,b);var e=d.tracks,h=g(this,a.call(this,c,d));if(h.items.length<=1&&h.hide(),!e)return g(h);var i=n.bind(h,h.update);return e.addEventListener("removetrack",i),e.addEventListener("addtrack",i),h.player_.on("dispose",function(){e.removeEventListener("removetrack",i),e.removeEventListener("addtrack",i)}),h}return h(b,a),b}(j["default"]);l["default"].registerComponent("TrackButton",o),c["default"]=o},{47:47,5:5,83:83}],37:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(57),j=e(i),k=a(5),l=e(k),m=a(83),n=d(m);a(39);var o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"volumechange",e.updateARIAAttributes),c.ready(n.bind(e,e.updateARIAAttributes)),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},b.prototype.handleMouseMove=function(a){this.checkMuted(),this.player_.volume(this.calculateDistance(a))},b.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},b.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},b.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},b.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},b.prototype.updateARIAAttributes=function(a){var b=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",b),this.el_.setAttribute("aria-valuetext",b+"%")},b}(j["default"]);o.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},o.prototype.playerEvent="volumechange",l["default"].registerComponent("VolumeBar",o),c["default"]=o},{39:39,5:5,57:57,83:83}],38:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h);a(37);var j=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return c.tech_&&c.tech_.featuresVolumeControl===!1&&g.addClass("vjs-hidden"),g.on(c,"loadstart",function(){c.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),g}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},b}(i["default"]);j.prototype.options_={children:["volumeBar"]},i["default"].registerComponent("VolumeControl",j),c["default"]=j},{37:37,5:5}],39:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h),j=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:\'\'})},b}(i["default"]);i["default"].registerComponent("VolumeLevel",j),c["default"]=j},{5:5}],40:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(83),j=e(i),k=a(5),l=d(k),m=a(54),n=d(m),o=a(53),p=d(o),q=a(11),r=d(q),s=a(37),t=d(s),u=function(a){function b(c){function d(){c.tech_&&c.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,b),void 0===e.inline&&(e.inline=!0),void 0===e.vertical&&(e.inline?e.vertical=!1:e.vertical=!0),e.volumeBar=e.volumeBar||{},e.volumeBar.vertical=!!e.vertical;var h=g(this,a.call(this,c,e));return h.on(c,"volumechange",h.volumeUpdate),h.on(c,"loadstart",h.volumeUpdate),d.call(h),h.on(c,"loadstart",d),h.on(h.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),h.on(h.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),h.on(h.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),h.on(h.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),h}return h(b,a),b.prototype.buildCSSClass=function(){var b="";return b=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+a.prototype.buildCSSClass.call(this)+" "+b},b.prototype.createPopup=function(){var a=new n["default"](this.player_,{contentElType:"div"}),b=new t["default"](this.player_,this.options_.volumeBar);return a.addChild(b),this.menuContent=a,this.volumeBar=b,this.attachVolumeBarEvents(),a},b.prototype.handleClick=function(b){r["default"].prototype.handleClick.call(this),a.prototype.handleClick.call(this)},b.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],j.bind(this,this.handleMouseDown))},b.prototype.handleMouseDown=function(a){this.on(["mousemove","touchmove"],j.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},b.prototype.handleMouseUp=function(a){this.off(["mousemove","touchmove"],j.bind(this.volumeBar,this.volumeBar.handleMouseMove))},b}(p["default"]);u.prototype.volumeUpdate=r["default"].prototype.update,u.prototype.controlText_="Mute",l["default"].registerComponent("VolumeMenuButton",u),c["default"]=u},{11:11,37:37,5:5,53:53,54:54,83:83}],41:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h),j=a(50),k=d(j),l=a(87),m=d(l),n=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.on(c,"error",g.open),g}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-error-display "+a.prototype.buildCSSClass.call(this)},b.prototype.content=function(){var a=this.player().error();return a?this.localize(a.message):""},b}(k["default"]);n.prototype.options_=(0,m["default"])(k["default"].prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),i["default"].registerComponent("ErrorDisplay",n),c["default"]=n},{5:5,50:50,87:87}],42:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a(82),f=d(e),g=function(){};g.prototype.allowedEvents_={},g.prototype.on=function(a,b){var c=this.addEventListener;this.addEventListener=function(){},f.on(this,a,b),this.addEventListener=c},g.prototype.addEventListener=g.prototype.on,g.prototype.off=function(a,b){f.off(this,a,b)},g.prototype.removeEventListener=g.prototype.off,g.prototype.one=function(a,b){var c=this.addEventListener;this.addEventListener=function(){},f.one(this,a,b),this.addEventListener=c},g.prototype.trigger=function(a){var b=a.type||a;"string"==typeof a&&(a={type:b}),a=f.fixEvent(a),this.allowedEvents_[b]&&this["on"+b]&&this["on"+b](a),f.trigger(this,a)},g.prototype.dispatchEvent=g.prototype.trigger,c["default"]=g},{82:82}],43:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(86),g=d(f),h=a(88),i=function(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof b?"undefined":e(b)));a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(a.super_=b)},j=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=function(){a.apply(this,arguments)},d={};(0,h.isObject)(b)?("function"==typeof b.init&&(g["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."),b.constructor=b.init),b.constructor!==Object.prototype.constructor&&(c=b.constructor),d=b):"function"==typeof b&&(c=b),i(c,a);for(var e in d)d.hasOwnProperty(e)&&(c.prototype[e]=d[e]);return c};c["default"]=j},{86:86,88:88}],44:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;for(var e=a(94),f=d(e),g={},h=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=h[0],j=void 0,k=0;k1&&void 0!==arguments[1]?arguments[1]:{};f(this,b);var e=g(this,a.call(this,c,d));return e.update(),e.enabled_=!0,e.el_.setAttribute("aria-haspopup","true"),e.el_.setAttribute("role","menuitem"),e.on("keydown",e.handleSubmenuKeyPress),e}return h(b,a),b.prototype.update=function(){var a=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=a,this.addChild(a),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()},b.prototype.createMenu=function(){var a=new n["default"](this.player_);if(this.options_.title){var b=p.createEl("li",{className:"vjs-menu-title",innerHTML:(0,t["default"])(this.options_.title),tabIndex:-1});a.children_.unshift(b),p.insertElFirst(b,a.contentEl())}if(this.items=this.createItems(),this.items)for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:0,b=this.children().slice(),c=b.length&&b[0].className&&/vjs-menu-title/.test(b[0].className);c&&b.shift(),b.length>0&&(a<0?a=0:a>=b.length&&(a=b.length-1),this.focusedChild_=a,b[a].el_.focus())},b}(j["default"]);j["default"].registerComponent("Menu",q),c["default"]=q},{5:5,81:81,82:82,83:83}],50:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(81),j=e(i),k=a(83),l=e(k),m=a(5),n=d(m),o="vjs-modal-dialog",p=27,q=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.opened_=e.hasBeenOpened_=e.hasBeenFilled_=!1,e.closeable(!e.options_.uncloseable),e.content(e.options_.content),e.contentEl_=j.createEl("div",{className:o+"-content"},{role:"document"}),e.descEl_=j.createEl("p",{className:o+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),j.textContent(e.descEl_,e.description()),e.el_.appendChild(e.descEl_),e.el_.appendChild(e.contentEl_),e}return h(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},b.prototype.buildCSSClass=function(){return o+" vjs-hidden "+a.prototype.buildCSSClass.call(this)},b.prototype.handleKeyPress=function(a){a.which===p&&this.closeable()&&this.close()},b.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},b.prototype.description=function(){var a=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(a+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),a},b.prototype.open=function(){if(!this.opened_){var a=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!a.paused(),this.wasPlaying_&&a.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",l.bind(this,this.handleKeyPress)),a.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},b.prototype.opened=function(a){return"boolean"==typeof a&&this[a?"open":"close"](),this.opened_},b.prototype.close=function(){if(this.opened_){var a=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&a.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",l.bind(this,this.handleKeyPress)),a.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},b.prototype.closeable=function c(a){if("boolean"==typeof a){var c=this.closeable_=!!a,b=this.getChild("closeButton");if(c&&!b){var d=this.contentEl_;this.contentEl_=this.el_,b=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=d,this.on(b,"close",this.close)}!c&&b&&(this.off(b,"close",this.close),this.removeChild(b),b.dispose())}return this.closeable_},b.prototype.fill=function(){return this.fillWith(this.content())},b.prototype.fillWith=function(a){var b=this.contentEl(),c=b.parentNode,d=b.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,c.removeChild(b),this.empty(),j.insertContent(b,a),this.trigger("modalfill"),d?c.insertBefore(b,d):c.appendChild(b),this},b.prototype.empty=function(){return this.trigger("beforemodalempty"),j.emptyEl(this.contentEl()),this.trigger("modalempty"),\nthis},b.prototype.content=function(a){return"undefined"!=typeof a&&(this.content_=a),this.content_},b}(n["default"]);q.prototype.options_={temporary:!0},n["default"].registerComponent("ModalDialog",q),c["default"]=q},{5:5,81:81,83:83}],51:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(94),l=e(k),m=a(95),n=e(m),o=a(82),p=d(o),q=a(81),r=d(q),s=a(83),t=d(s),u=a(85),v=d(u),w=a(78),x=d(w),y=a(86),z=e(y),A=a(91),B=e(A),C=a(90),D=a(79),E=a(89),F=d(E),G=a(44),H=e(G),I=a(46),J=e(I),K=a(97),L=e(K),M=a(88),N=a(87),O=e(N),P=a(69),Q=e(P),R=a(50),S=e(R),T=a(62),U=e(T),V=a(63),W=e(V),X=a(76),Y=e(X);a(61),a(59),a(55),a(68),a(45),a(1),a(4),a(8),a(41),a(71),a(60);var Z=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],$=function(a){function b(c,d,e){if(f(this,b),c.id=c.id||"vjs_video_"+v.newGUID(),d=(0,M.assign)(b.getTagSettings(c),d),d.initChildren=!1,d.createEl=!1,d.reportTouchActivity=!1,!d.language)if("function"==typeof c.closest){var h=c.closest("[lang]");h&&(d.language=h.getAttribute("lang"))}else for(var i=c;i&&1===i.nodeType;){if(r.getElAttributes(i).hasOwnProperty("lang")){d.language=i.getAttribute("lang");break}i=i.parentNode}var j=g(this,a.call(this,null,d,e));if(!j.options_||!j.options_.techOrder||!j.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");j.tag=c,j.tagAttributes=c&&r.getElAttributes(c),j.language(j.options_.language),d.languages?!function(){var a={};Object.getOwnPropertyNames(d.languages).forEach(function(b){a[b.toLowerCase()]=d.languages[b]}),j.languages_=a}():j.languages_=b.prototype.options_.languages,j.cache_={},j.poster_=d.poster||"",j.controls_=!!d.controls,c.controls=!1,j.scrubbing_=!1,j.el_=j.createEl();var k=(0,O["default"])(j.options_);return d.plugins&&!function(){var a=d.plugins;Object.getOwnPropertyNames(a).forEach(function(b){"function"==typeof this[b]?this[b](a[b]):z["default"].error("Unable to find plugin:",b)},j)}(),j.options_.playerOptions=k,j.initChildren(),j.isAudio("audio"===c.nodeName.toLowerCase()),j.controls()?j.addClass("vjs-controls-enabled"):j.addClass("vjs-controls-disabled"),j.el_.setAttribute("role","region"),j.isAudio()?j.el_.setAttribute("aria-label","audio player"):j.el_.setAttribute("aria-label","video player"),j.isAudio()&&j.addClass("vjs-audio"),j.flexNotSupported_()&&j.addClass("vjs-no-flex"),x.IS_IOS||j.addClass("vjs-workinghover"),b.players[j.id_]=j,j.userActive(!0),j.reportUserActivity(),j.listenForUserActivity_(),j.on("fullscreenchange",j.handleFullscreenChange_),j.on("stageclick",j.handleStageClick_),j}return h(b,a),b.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),b.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(),a.prototype.dispose.call(this)},b.prototype.createEl=function(){var b=this.el_=a.prototype.createEl.call(this,"div"),c=this.tag;c.removeAttribute("width"),c.removeAttribute("height");var d=r.getElAttributes(c);if(Object.getOwnPropertyNames(d).forEach(function(a){"class"===a?b.className=d[a]:b.setAttribute(a,d[a])}),c.playerId=c.id,c.id+="_html5_api",c.className="vjs-tech",c.player=b.player=this,this.addClass("vjs-paused"),n["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=F.createStyleElement("vjs-styles-dimensions");var e=r.$(".vjs-styles-defaults"),f=r.$("head");f.insertBefore(this.styleEl_,e?e.nextSibling:f.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var g=c.getElementsByTagName("a"),h=0;h=0&&(c.width=a),b>=0&&(c.height=b)))}var d=void 0,e=void 0,f=void 0,g=void 0;f=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var h=f.split(":"),i=h[1]/h[0];d=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/i:this.videoWidth()||300,e=void 0!==this.height_?this.height_:d*i,g=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(g),F.setTextContent(this.styleEl_,"\\n ."+g+" {\\n width: "+d+"px;\\n height: "+e+"px;\\n }\\n\\n ."+g+".vjs-fluid {\\n padding-top: "+100*i+"%;\\n }\\n ")},b.prototype.loadTech_=function(a,b){var c=this;this.tech_&&this.unloadTech_(),"Html5"!==a&&this.tag&&(U["default"].getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=a,this.isReady_=!1;var d=(0,M.assign)({source:b,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_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_[a.toLowerCase()]);this.tag&&(d.tag=this.tag),b&&(this.currentType_=b.type,b.src===this.cache_.src&&this.cache_.currentTime>0&&(d.startTime=this.cache_.currentTime),this.cache_.sources=null,this.cache_.source=b,this.cache_.src=b.src);var e=U["default"].getTech(a);e||(e=j["default"].getComponent(a)),this.tech_=new e(d),this.tech_.ready(t.bind(this,this.handleTechReady_),!0),Q["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_),Z.forEach(function(a){c.on(c.tech_,a,c["handleTech"+(0,B["default"])(a)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===a&&this.tag||r.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},b.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=Q["default"].textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},b.prototype.tech=function(a){if(a&&a.IWillNotUseThisInPlugins)return this.tech_;var b="\\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 n["default"].alert(b),new Error(b)},b.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_)},b.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_)},b.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(a){(0,z["default"])("deleting tag.poster throws in some browsers",a)}this.play()}},b.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},b.prototype.hasStarted=function(a){return void 0!==a?(this.hasStarted_!==a&&(this.hasStarted_=a,a?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},b.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},b.prototype.handleTechWaiting_=function(){var a=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return a.removeClass("vjs-waiting")})},b.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},b.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},b.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},b.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},b.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},b.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},b.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},b.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},b.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},b.prototype.handleTechClick_=function(a){0===a.button&&this.controls()&&(this.paused()?this.play():this.pause())},b.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},b.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},b.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},b.prototype.handleTechTouchEnd_=function(a){a.preventDefault()},b.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},b.prototype.handleStageClick_=function(){this.reportUserActivity()},b.prototype.handleTechFullscreenChange_=function(a,b){b&&this.isFullscreen(b.isFullscreen),this.trigger("fullscreenchange")},b.prototype.handleTechError_=function(){var a=this.tech_.error();this.error(a)},b.prototype.handleTechTextData_=function(){var a=null;arguments.length>1&&(a=arguments[1]),this.trigger("textdata",a)},b.prototype.getCache=function(){return this.cache_},b.prototype.techCall_=function(a,b){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[a](b)},!0);else try{this.tech_&&this.tech_[a](b)}catch(c){throw(0,z["default"])(c),c}},b.prototype.techGet_=function(a){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[a]()}catch(b){throw void 0===this.tech_[a]?(0,z["default"])("Video.js: "+a+" method not defined for "+this.techName_+" playback technology.",b):"TypeError"===b.name?((0,z["default"])("Video.js: "+a+" unavailable on "+this.techName_+" playback technology element.",b),this.tech_.isReady_=!1):(0,z["default"])(b),b}},b.prototype.play=function(){return this.src()||this.currentSrc()?this.techCall_("play"):this.tech_.one("loadstart",function(){this.play()}),this},b.prototype.pause=function(){return this.techCall_("pause"),this},b.prototype.paused=function(){return this.techGet_("paused")!==!1},b.prototype.scrubbing=function(a){return void 0!==a?(this.scrubbing_=!!a,a?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},b.prototype.currentTime=function(a){return void 0!==a?(this.techCall_("setCurrentTime",a),this):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},b.prototype.duration=function(a){return void 0===a?this.cache_.duration||0:(a=parseFloat(a)||0,a<0&&(a=1/0),a!==this.cache_.duration&&(this.cache_.duration=a,a===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},b.prototype.remainingTime=function(){return this.duration()-this.currentTime()},b.prototype.buffered=function c(){var c=this.techGet_("buffered");return c&&c.length||(c=(0,C.createTimeRange)(0,0)),c},b.prototype.bufferedPercent=function(){return(0,D.bufferedPercent)(this.buffered(),this.duration())},b.prototype.bufferedEnd=function(){var a=this.buffered(),b=this.duration(),c=a.end(a.length-1);return c>b&&(c=b),c},b.prototype.volume=function(a){var b=void 0;return void 0!==a?(b=Math.max(0,Math.min(1,parseFloat(a))),this.cache_.volume=b,this.techCall_("setVolume",b),this):(b=parseFloat(this.techGet_("volume")),isNaN(b)?1:b)},b.prototype.muted=function(a){return void 0!==a?(this.techCall_("setMuted",a),this):this.techGet_("muted")||!1},b.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},b.prototype.isFullscreen=function(a){return void 0!==a?(this.isFullscreen_=!!a,this):!!this.isFullscreen_},b.prototype.requestFullscreen=function(){var a=H["default"];return this.isFullscreen(!0),a.requestFullscreen?(p.on(l["default"],a.fullscreenchange,t.bind(this,function b(c){this.isFullscreen(l["default"][a.fullscreenElement]),this.isFullscreen()===!1&&p.off(l["default"],a.fullscreenchange,b),this.trigger("fullscreenchange")})),this.el_[a.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},b.prototype.exitFullscreen=function(){var a=H["default"];return this.isFullscreen(!1),a.requestFullscreen?l["default"][a.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},b.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=l["default"].documentElement.style.overflow,p.on(l["default"],"keydown",t.bind(this,this.fullWindowOnEscKey)),l["default"].documentElement.style.overflow="hidden",r.addElClass(l["default"].body,"vjs-full-window"),this.trigger("enterFullWindow")},b.prototype.fullWindowOnEscKey=function(a){27===a.keyCode&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},b.prototype.exitFullWindow=function(){this.isFullWindow=!1,p.off(l["default"],"keydown",this.fullWindowOnEscKey),l["default"].documentElement.style.overflow=this.docOrigOverflow,r.removeElClass(l["default"].body,"vjs-full-window"),this.trigger("exitFullWindow")},b.prototype.canPlayType=function(a){for(var b=void 0,c=0,d=this.options_.techOrder;c0&&(h=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},a))}},250)},b.prototype.playbackRate=function(a){return void 0!==a?(this.techCall_("setPlaybackRate",a),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},b.prototype.isAudio=function(a){return void 0!==a?(this.isAudio_=!!a,this):!!this.isAudio_},b.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new Y["default"],this.videoTracks_)},b.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new W["default"],this.audioTracks_)},b.prototype.textTracks=function(){if(this.tech_)return this.tech_.textTracks()},b.prototype.remoteTextTracks=function(){if(this.tech_)return this.tech_.remoteTextTracks()},b.prototype.remoteTextTrackEls=function(){if(this.tech_)return this.tech_.remoteTextTrackEls()},b.prototype.addTextTrack=function(a,b,c){if(this.tech_)return this.tech_.addTextTrack(a,b,c)},b.prototype.addRemoteTextTrack=function(a,b){if(this.tech_)return this.tech_.addRemoteTextTrack(a,b)},b.prototype.removeRemoteTextTrack=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=a.track,c=void 0===b?arguments[0]:b;if(this.tech_)return this.tech_.removeRemoteTextTrack(c)},b.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},b.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},b.prototype.language=function(a){return void 0===a?this.language_:(this.language_=String(a).toLowerCase(),this)},b.prototype.languages=function(){return(0,O["default"])(b.prototype.options_.languages,this.languages_)},b.prototype.toJSON=function(){var a=(0,O["default"])(this.options_),b=a.tracks;a.tracks=[];for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{};e(this,b);var g=f(this,a.call(this,c,d));return g.update(),g}return g(b,a),b.prototype.update=function(){var a=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=a,this.addChild(a),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},b.prototype.createPopup=function(){},b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},b.prototype.buildCSSClass=function(){var b="vjs-menu-button";return b+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+b+" "+a.prototype.buildCSSClass.call(this)},b}(i["default"]);k["default"].registerComponent("PopupButton",l),c["default"]=l},{3:3,5:5}],54:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(81),l=d(k),m=a(83),n=d(m),o=a(82),p=d(o),q=function(a){function b(){return f(this,b),g(this,a.apply(this,arguments))}return h(b,a),b.prototype.addItem=function(a){this.addChild(a),a.on("click",n.bind(this,function(){this.unlockShowing()}))},b.prototype.createEl=function(){var b=this.options_.contentElType||"ul";this.contentEl_=l.createEl(b,{className:"vjs-menu-content"});var c=a.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return c.appendChild(this.contentEl_),p.on(c,"click",function(a){a.preventDefault(),a.stopImmediatePropagation()}),c},b}(j["default"]);j["default"].registerComponent("Popup",q),c["default"]=q},{5:5,81:81,82:82,83:83}],55:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(3),j=e(i),k=a(5),l=e(k),m=a(83),n=d(m),o=a(81),p=d(o),q=a(78),r=d(q),s=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.update(),c.on("posterchange",n.bind(e,e.update)),e}return h(b,a),b.prototype.dispose=function(){this.player().off("posterchange",this.update),a.prototype.dispose.call(this)},b.prototype.createEl=function(){var a=p.createEl("div",{className:"vjs-poster",tabIndex:-1});return r.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=p.createEl("img"),a.appendChild(this.fallbackImg_)),a},b.prototype.update=function(a){var b=this.player().poster();this.setSrc(b),b?this.show():this.hide()},b.prototype.setSrc=function(a){if(this.fallbackImg_)this.fallbackImg_.src=a;else{var b="";a&&(b=\'url("\'+a+\'")\'),this.el_.style.backgroundImage=b}},b.prototype.handleClick=function(a){this.player_.paused()?this.player_.play():this.player_.pause();\n},b}(j["default"]);l["default"].registerComponent("PosterImage",s),c["default"]=s},{3:3,5:5,78:78,81:81,83:83}],56:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){b&&(n=b),setTimeout(o,a)}c.__esModule=!0,c.hasLoaded=c.autoSetupTimeout=c.autoSetup=void 0;var g=a(82),h=e(g),i=a(94),j=d(i),k=a(95),l=d(k),m=!1,n=void 0,o=function(){var a=j["default"].getElementsByTagName("video"),b=j["default"].getElementsByTagName("audio"),c=[];if(a&&a.length>0)for(var d=0,e=a.length;d0)for(var g=0,h=b.length;g0)for(var i=0,k=c.length;i1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c.className=c.className+" vjs-slider",c=(0,m.assign)({tabIndex:0},c),d=(0,m.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},d),a.prototype.createEl.call(this,b,c,d)},b.prototype.handleMouseDown=function(a){var b=this.bar.el_.ownerDocument;a.preventDefault(),l.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(b,"mousemove",this.handleMouseMove),this.on(b,"mouseup",this.handleMouseUp),this.on(b,"touchmove",this.handleMouseMove),this.on(b,"touchend",this.handleMouseUp),this.handleMouseMove(a)},b.prototype.handleMouseMove=function(a){},b.prototype.handleMouseUp=function(){var a=this.bar.el_.ownerDocument;l.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(a,"mousemove",this.handleMouseMove),this.off(a,"mouseup",this.handleMouseUp),this.off(a,"touchmove",this.handleMouseMove),this.off(a,"touchend",this.handleMouseUp),this.update()},b.prototype.update=function(){if(this.el_){var a=this.getPercent(),b=this.bar;if(b){("number"!=typeof a||a!==a||a<0||a===1/0)&&(a=0);var c=(100*a).toFixed(2)+"%";this.vertical()?b.el().style.height=c:b.el().style.width=c}}},b.prototype.calculateDistance=function(a){var b=l.getPointerPosition(this.el_,a);return this.vertical()?b.y:b.x},b.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},b.prototype.handleKeyPress=function(a){37===a.which||40===a.which?(a.preventDefault(),this.stepBack()):38!==a.which&&39!==a.which||(a.preventDefault(),this.stepForward())},b.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},b.prototype.handleClick=function(a){a.stopImmediatePropagation(),a.preventDefault()},b.prototype.vertical=function(a){return void 0===a?this.vertical_||!1:(this.vertical_=!!a,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},b}(j["default"]);j["default"].registerComponent("Slider",n),c["default"]=n},{5:5,81:81,88:88}],58:[function(a,b,c){"use strict";function d(a){return a.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},a.streamFromParts=function(a,b){return a+"&"+b},a.streamToParts=function(a){var b={connection:"",stream:""};if(!a)return b;var c=a.search(/&(?!\\w+=)/),d=void 0;return c!==-1?d=c+1:(c=d=a.lastIndexOf("/")+1,0===c&&(c=d=a.length)),b.connection=a.substring(0,c),b.stream=a.substring(d,a.length),b},a.isStreamingType=function(b){return b in a.streamingFormats},a.RTMP_RE=/^rtmp[set]?:\\/\\//i,a.isStreamingSrc=function(b){return a.RTMP_RE.test(b)},a.rtmpSourceHandler={},a.rtmpSourceHandler.canPlayType=function(b){return a.isStreamingType(b)?"maybe":""},a.rtmpSourceHandler.canHandleSource=function(b,c){var d=a.rtmpSourceHandler.canPlayType(b.type);return d?d:a.isStreamingSrc(b.src)?"maybe":""},a.rtmpSourceHandler.handleSource=function(b,c,d){var e=a.streamToParts(b.src);c.setRtmpConnection(e.connection),c.setRtmpStream(e.stream)},a.registerSourceHandler(a.rtmpSourceHandler),a}c.__esModule=!0,c["default"]=d},{}],59:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function i(a){var b=a.charAt(0).toUpperCase()+a.slice(1);A["set"+b]=function(b){return this.el_.vjs_setProperty(a,b)}}function j(a){A[a]=function(){return this.el_.vjs_getProperty(a)}}c.__esModule=!0;for(var k=a(62),l=e(k),m=a(81),n=d(m),o=a(92),p=d(o),q=a(90),r=a(58),s=e(r),t=a(5),u=e(t),v=a(95),w=e(v),x=a(88),y=w["default"].navigator,z=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return c.source&&e.ready(function(){this.setSource(c.source)},!0),c.startTime&&e.ready(function(){this.load(),this.play(),this.currentTime(c.startTime)},!0),w["default"].videojs=w["default"].videojs||{},w["default"].videojs.Flash=w["default"].videojs.Flash||{},w["default"].videojs.Flash.onReady=b.onReady,w["default"].videojs.Flash.onEvent=b.onEvent,w["default"].videojs.Flash.onError=b.onError,e.on("seeked",function(){this.lastSeekTarget_=void 0}),e}return h(b,a),b.prototype.createEl=function(){var a=this.options_;if(!a.swf){var c="5.1.0";a.swf="//vjs.zencdn.net/swf/"+c+"/video-js.swf"}var d=a.techId,e=(0,x.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:a.autoplay,preload:a.preload,loop:a.loop,muted:a.muted},a.flashVars),f=(0,x.assign)({wmode:"opaque",bgcolor:"#000000"},a.params),g=(0,x.assign)({id:d,name:d,"class":"vjs-tech"},a.attributes);return this.el_=b.embed(a.swf,e,f,g),this.el_.tech=this,this.el_},b.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},b.prototype.pause=function(){this.el_.vjs_pause()},b.prototype.src=function(a){return void 0===a?this.currentSrc():this.setSrc(a)},b.prototype.setSrc=function(a){var b=this;a=p.getAbsoluteURL(a),this.el_.vjs_src(a),this.autoplay()&&this.setTimeout(function(){return b.play()},0)},b.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},b.prototype.setCurrentTime=function(b){var c=this.seekable();c.length&&(b=b>c.start(0)?b:c.start(0),b=b=0?c:1/0},b.prototype.load=function(){this.el_.vjs_load()},b.prototype.poster=function(){this.el_.vjs_getProperty("poster")},b.prototype.setPoster=function(){},b.prototype.seekable=function(){var a=this.duration();return 0===a?(0,q.createTimeRange)():(0,q.createTimeRange)(0,a)},b.prototype.buffered=function(){var a=this.el_.vjs_getProperty("buffered");return 0===a.length?(0,q.createTimeRange)():(0,q.createTimeRange)(a[0][0],a[0][1])},b.prototype.supportsFullScreen=function(){return!1},b.prototype.enterFullScreen=function(){return!1},b}(l["default"]),A=z.prototype,B="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),C="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","),D=0;D=10},l["default"].withSourceHandlers(z),z.nativeSourceHandler={},z.nativeSourceHandler.canPlayType=function(a){return a in z.formats?"maybe":""},z.nativeSourceHandler.canHandleSource=function(a,b){function c(a){var b=p.getFileExtension(a);return b?"video/"+b:""}var d=void 0;return d=a.type?a.type.replace(/;.*/,"").toLowerCase():c(a.src),z.nativeSourceHandler.canPlayType(d)},z.nativeSourceHandler.handleSource=function(a,b,c){b.setSrc(a.src)},z.nativeSourceHandler.dispose=function(){},z.registerSourceHandler(z.nativeSourceHandler),z.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},z.onReady=function(a){var b=n.getEl(a),c=b&&b.tech;c&&c.el()&&z.checkReady(c)},z.checkReady=function(a){a.el()&&(a.el().vjs_getProperty?a.triggerReady():this.setTimeout(function(){z.checkReady(a)},50))},z.onEvent=function(a,b){var c=n.getEl(a).tech,d=Array.prototype.slice.call(arguments,2);c.setTimeout(function(){c.trigger(b,d)},1)},z.onError=function(a,b){var c=n.getEl(a).tech;return"srcnotfound"===b?c.error(4):void c.error("FLASH: "+b)},z.version=function(){var a="0,0,0";try{a=new w["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\\D+/g,",").match(/^,?(.+),?$/)[1]}catch(b){try{y.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(a=(y.plugins["Shockwave Flash 2.0"]||y.plugins["Shockwave Flash"]).description.replace(/\\D+/g,",").match(/^,?(.+),?$/)[1])}catch(c){}}return a.split(",")},z.embed=function(a,b,c,d){var e=z.getEmbedCode(a,b,c,d),f=n.createEl("div",{innerHTML:e}).childNodes[0];return f},z.getEmbedCode=function(a,b,c,d){var e=\'\'}),d=(0,x.assign)({data:a,width:"100%",height:"100%"},d),Object.getOwnPropertyNames(d).forEach(function(a){h+=a+\'="\'+d[a]+\'" \'}),""+e+h+">"+g+""},(0,s["default"])(z),u["default"].registerComponent("Flash",z),l["default"].registerTech("Flash",z),c["default"]=z},{5:5,58:58,62:62,81:81,88:88,90:90,92:92,95:95}],60:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){return a.raw=b,a}function g(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function h(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function i(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=f(["Text Tracks are being loaded from another origin but the crossorigin attribute isn\'t used.\\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn\'t used.\\n This may prevent text tracks from loading."]),l=a(62),m=e(l),n=a(5),o=e(n),p=a(81),q=d(p),r=a(92),s=d(r),t=a(83),u=d(t),v=a(86),w=e(v),x=a(98),y=e(x),z=a(78),A=d(z),B=a(94),C=e(B),D=a(95),E=e(D),F=a(88),G=a(87),H=e(G),I=a(91),J=e(I),K=function(a){function b(c,d){g(this,b);var e=h(this,a.call(this,c,d)),f=c.source,i=!1;if(f&&(e.el_.currentSrc!==f.src||c.tag&&3===c.tag.initNetworkState_)?e.setSource(f):e.handleLateInit_(e.el_),e.el_.hasChildNodes()){for(var j=e.el_.childNodes,l=j.length,m=[];l--;){var n=j[l],o=n.nodeName.toLowerCase();"track"===o&&(e.featuresNativeTextTracks?(e.remoteTextTrackEls().addTrackElement_(n),e.remoteTextTracks().addTrack_(n.track),i||e.el_.hasAttribute("crossorigin")||!s.isCrossOrigin(n.src)||(i=!0)):m.push(n))}for(var p=0;p=0;g--){var h=f[g],i={};"undefined"!=typeof this.options_[h]&&(i[h]=this.options_[h]),q.setElAttributes(a,i)}return a},b.prototype.handleLateInit_=function(a){var b=this;if(0!==a.networkState&&3!==a.networkState){if(0===a.readyState){var c=function(){var a=!1,c=function(){a=!0};b.on("loadstart",c);var d=function(){a||this.trigger("loadstart")};return b.on("loadedmetadata",d),b.ready(function(){this.off("loadstart",c),this.off("loadedmetadata",d),a||this.trigger("loadstart")}),{v:void 0}}();if("object"===("undefined"==typeof c?"undefined":j(c)))return c.v}var d=["loadstart"];d.push("loadedmetadata"),a.readyState>=2&&d.push("loadeddata"),a.readyState>=3&&d.push("canplay"),a.readyState>=4&&d.push("canplaythrough"),this.ready(function(){d.forEach(function(a){this.trigger(a)},this)})}},b.prototype.proxyNativeTextTracks_=function(){var a=this.el().textTracks;if(a){for(var b=0;b0&&(a.el_.duration===1/0&&a.trigger("durationchange"),a.off("timeupdate",c))};return a.on("timeupdate",b),{v:NaN}}();if("object"===("undefined"==typeof b?"undefined":j(b)))return b.v}return this.el_.duration||NaN},b.prototype.width=function(){return this.el_.offsetWidth},b.prototype.height=function(){return this.el_.offsetHeight},b.prototype.proxyWebkitFullscreen_=function(){var a=this;if("webkitDisplayingFullscreen"in this.el_){var b=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},c=function(){this.one("webkitendfullscreen",b),this.trigger("fullscreenchange",{isFullscreen:!0})};this.on("webkitbeginfullscreen",c),this.on("dispose",function(){a.off("webkitbeginfullscreen",c),a.off("webkitendfullscreen",b)})}},b.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var a=E["default"].navigator&&E["default"].navigator.userAgent||"";if(/Android/.test(a)||!/Chrome|Mac OS X 10.5/.test(a))return!0}return!1},b.prototype.enterFullScreen=function(){var a=this.el_;a.paused&&a.networkState<=a.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){a.pause(),a.webkitEnterFullScreen()},0)):a.webkitEnterFullScreen()},b.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},b.prototype.src=function(a){return void 0===a?this.el_.src:void this.setSrc(a)},b.prototype.reset=function(){b.resetMediaElement(this.el_)},b.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},b.prototype.setControls=function(a){this.el_.controls=!!a},b.prototype.addTextTrack=function(b,c,d){return this.featuresNativeTextTracks?this.el_.addTextTrack(b,c,d):a.prototype.addTextTrack.call(this,b,c,d)},b.prototype.createRemoteTextTrack=function(b){if(!this.featuresNativeTextTracks)return a.prototype.createRemoteTextTrack.call(this,b);var c=C["default"].createElement("track");return b.kind&&(c.kind=b.kind),b.label&&(c.label=b.label),(b.language||b.srclang)&&(c.srclang=b.language||b.srclang),b["default"]&&(c["default"]=b["default"]),b.id&&(c.id=b.id),b.src&&(c.src=b.src),c},b.prototype.addRemoteTextTrack=function(b,c){var d=a.prototype.addRemoteTextTrack.call(this,b,c);return this.featuresNativeTextTracks&&this.el().appendChild(d),d},b.prototype.removeRemoteTextTrack=function(b){if(a.prototype.removeRemoteTextTrack.call(this,b),this.featuresNativeTextTracks)for(var c=this.$$("track"),d=c.length;d--;)b!==c[d]&&b!==c[d].track||this.el().removeChild(c[d])},b}(m["default"]);K.TEST_VID=C["default"].createElement("video");var L=C["default"].createElement("track");L.kind="captions",L.srclang="en",L.label="English",K.TEST_VID.appendChild(L),K.isSupported=function(){try{K.TEST_VID.volume=.5}catch(a){return!1}return!!K.TEST_VID.canPlayType},K.canControlVolume=function(){try{var a=K.TEST_VID.volume;return K.TEST_VID.volume=a/2+.1,a!==K.TEST_VID.volume}catch(b){return!1}},K.canControlPlaybackRate=function(){if(A.IS_ANDROID&&A.IS_CHROME)return!1;try{var a=K.TEST_VID.playbackRate;return K.TEST_VID.playbackRate=a/2+.1,a!==K.TEST_VID.playbackRate}catch(b){return!1}},K.supportsNativeTextTracks=function(){return A.IS_ANY_SAFARI},K.supportsNativeVideoTracks=function(){var a=!!K.TEST_VID.videoTracks;return a},K.supportsNativeAudioTracks=function(){var a=!!K.TEST_VID.audioTracks;return a},K.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],K.prototype.featuresVolumeControl=K.canControlVolume(),K.prototype.featuresPlaybackRate=K.canControlPlaybackRate(),K.prototype.movingMediaElementInDOM=!A.IS_IOS,K.prototype.featuresFullscreenResize=!0,K.prototype.featuresProgressEvents=!0,K.prototype.featuresTimeupdateEvents=!0,K.prototype.featuresNativeTextTracks=K.supportsNativeTextTracks(),K.prototype.featuresNativeVideoTracks=K.supportsNativeVideoTracks(),K.prototype.featuresNativeAudioTracks=K.supportsNativeAudioTracks();var M=void 0,N=/^application\\/(?:x-|vnd\\.apple\\.)mpegurl/i,O=/^video\\/mp4/i;K.patchCanPlayType=function(){A.ANDROID_VERSION>=4&&!A.IS_FIREFOX&&(M||(M=K.TEST_VID.constructor.prototype.canPlayType),K.TEST_VID.constructor.prototype.canPlayType=function(a){return a&&N.test(a)?"maybe":M.call(this,a)}),A.IS_OLD_ANDROID&&(M||(M=K.TEST_VID.constructor.prototype.canPlayType),K.TEST_VID.constructor.prototype.canPlayType=function(a){return a&&O.test(a)?"maybe":M.call(this,a)})},K.unpatchCanPlayType=function(){var a=K.TEST_VID.constructor.prototype.canPlayType;return K.TEST_VID.constructor.prototype.canPlayType=M,M=null,a},K.patchCanPlayType(),K.disposeMediaElement=function(a){if(a){for(a.parentNode&&a.parentNode.removeChild(a);a.hasChildNodes();)a.removeChild(a.firstChild);a.removeAttribute("src"),"function"==typeof a.load&&!function(){try{a.load()}catch(b){}}()}},K.resetMediaElement=function(a){if(a){for(var b=a.querySelectorAll("source"),c=b.length;c--;)a.removeChild(b[c]);a.removeAttribute("src"),"function"==typeof a.load&&!function(){try{a.load()}catch(b){}}()}},["paused","currentTime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultMuted","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(a){K.prototype[a]=function(){return this.el_[a]}}),["volume","muted","src","poster","preload","autoplay","loop","playbackRate"].forEach(function(a){K.prototype["set"+(0,J["default"])(a)]=function(b){this.el_[a]=b}}),["pause","load"].forEach(function(a){K.prototype[a]=function(){return this.el_[a]()}}),m["default"].withSourceHandlers(K),K.nativeSourceHandler={},K.nativeSourceHandler.canPlayType=function(a){try{return K.TEST_VID.canPlayType(a)}catch(b){return""}},K.nativeSourceHandler.canHandleSource=function(a,b){if(a.type)return K.nativeSourceHandler.canPlayType(a.type);if(a.src){var c=s.getFileExtension(a.src);return K.nativeSourceHandler.canPlayType("video/"+c)}return""},K.nativeSourceHandler.handleSource=function(a,b,c){b.setSrc(a.src)},K.nativeSourceHandler.dispose=function(){},K.registerSourceHandler(K.nativeSourceHandler),o["default"].registerComponent("Html5",K),m["default"].registerTech("Html5",K),c["default"]=K},{5:5,62:62,78:78,81:81,83:83,86:86,87:87,88:88,91:91,92:92,94:94,95:95,98:98}],61:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a(5),i=d(h),j=a(62),k=d(j),l=a(91),m=d(l),n=function(a){function b(c,d,g){e(this,b);var h=f(this,a.call(this,c,d,g));if(d.playerOptions.sources&&0!==d.playerOptions.sources.length)c.src(d.playerOptions.sources);else for(var j=0,l=d.playerOptions.techOrder;j4&&void 0!==arguments[4]?arguments[4]:{},f=a.textTracks();e.kind=b,c&&(e.label=c),d&&(e.language=d),e.tech=a;var g=new s["default"](e);return f.addTrack_(g),g}c.__esModule=!0;var j=a(5),k=e(j),l=a(66),m=e(l),n=a(65),o=e(n),p=a(87),q=e(p),r=a(72),s=e(r),t=a(70),u=e(t),v=a(76),w=e(v),x=a(63),y=e(x),z=a(83),A=d(z),B=a(86),C=e(B),D=a(90),E=a(79),F=a(46),G=e(F),H=a(95),I=e(H),J=a(94),K=e(J),L=function(a){function b(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};f(this,b),c.reportTouchActivity=!1;var e=g(this,a.call(this,null,c,d));return e.hasStarted_=!1,e.on("playing",function(){this.hasStarted_=!0}),e.on("loadstart",function(){this.hasStarted_=!1}),e.textTracks_=c.textTracks,e.videoTracks_=c.videoTracks,e.audioTracks_=c.audioTracks,e.featuresProgressEvents||e.manualProgressOn(),e.featuresTimeupdateEvents||e.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(a){c["native"+a+"Tracks"]===!1&&(e["featuresNative"+a+"Tracks"]=!1)}),c.nativeCaptions===!1&&(e.featuresNativeTextTracks=!1),e.featuresNativeTextTracks||e.emulateTextTracks(),e.autoRemoteTextTracks_=new u["default"],e.initTextTrackListeners(),e.initTrackListeners(),e.emitTapEvents(),e}return h(b,a),b.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},b.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},b.prototype.trackProgress=function(a){this.stopTrackingProgress(),this.progressInterval=this.setInterval(A.bind(this,function(){var a=this.bufferedPercent();this.bufferedPercent_!==a&&this.trigger("progress"),this.bufferedPercent_=a,1===a&&this.stopTrackingProgress()}),500)},b.prototype.onDurationChange=function(a){this.duration_=this.duration()},b.prototype.buffered=function(){return(0,D.createTimeRange)(0,0)},b.prototype.bufferedPercent=function(){return(0,E.bufferedPercent)(this.buffered(),this.duration_)},b.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},b.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},b.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},b.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},b.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},b.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),a.prototype.dispose.call(this)},b.prototype.clearTracks=function(a){var b=this;a=[].concat(a),a.forEach(function(a){for(var c=b[a+"Tracks"]()||[],d=c.length;d--;){var e=c[d];"text"===a&&b.removeRemoteTextTrack(e),c.removeTrack_(e)}})},b.prototype.cleanupAutoTextTracks=function(){for(var a=this.autoRemoteTextTracks_||[],b=a.length;b--;){var c=a[b];this.removeRemoteTextTrack(c)}},b.prototype.reset=function(){},b.prototype.error=function(a){return void 0!==a&&(this.error_=new G["default"](a),this.trigger("error")),this.error_},b.prototype.played=function(){return this.hasStarted_?(0,D.createTimeRange)(0,0):(0,D.createTimeRange)()},b.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},b.prototype.initTextTrackListeners=function(){var a=A.bind(this,function(){this.trigger("texttrackchange")}),b=this.textTracks();b&&(b.addEventListener("removetrack",a),b.addEventListener("addtrack",a),this.on("dispose",A.bind(this,function(){b.removeEventListener("removetrack",a),b.removeEventListener("addtrack",a)})))},b.prototype.initTrackListeners=function(){var a=this,b=["video","audio"];b.forEach(function(b){var c=function(){a.trigger(b+"trackchange")},d=a[b+"Tracks"]();d.addEventListener("removetrack",c),d.addEventListener("addtrack",c),a.on("dispose",function(){d.removeEventListener("removetrack",c),d.removeEventListener("addtrack",c)})})},b.prototype.addWebVttScript_=function(){var a=this;I["default"].WebVTT||null===this.el().parentNode||void 0===this.el().parentNode||!function(){var b=K["default"].createElement("script");b.src=a.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js",b.onload=function(){a.trigger("vttjsloaded")},b.onerror=function(){a.trigger("vttjserror");\n},a.on("dispose",function(){b.onload=null,b.onerror=null}),I["default"].WebVTT=!0,a.el().parentNode.appendChild(b)}()},b.prototype.emulateTextTracks=function(){var a=this,b=this.textTracks();if(b){this.remoteTextTracks().on("addtrack",function(b){a.textTracks().addTrack_(b.track)}),this.remoteTextTracks().on("removetrack",function(b){a.textTracks().removeTrack_(b.track)}),this.on("ready",this.addWebVttScript_);var c=function(){return a.trigger("texttrackchange")},d=function(){c();for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},b=arguments[1],c=this.createRemoteTextTrack(a);return b!==!0&&b!==!1&&(C["default"].warn(\'Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js\'),b=!0),this.remoteTextTrackEls().addTrackElement_(c),this.remoteTextTracks().addTrack_(c.track),b!==!0&&this.autoRemoteTextTracks_.addTrack_(c.track),c},b.prototype.removeRemoteTextTrack=function(a){var b=this.remoteTextTrackEls().getTrackElementByTrack_(a);this.remoteTextTrackEls().removeTrackElement_(b),this.remoteTextTracks().removeTrack_(a),this.autoRemoteTextTracks_.removeTrack_(a)},b.prototype.setPoster=function(){},b.prototype.canPlayType=function(){return""},b.isTech=function(a){return a.prototype instanceof b||a instanceof b||a===b},b.registerTech=function(a,c){if(b.techs_||(b.techs_={}),!b.isTech(c))throw new Error("Tech "+a+" must be a Tech");return b.techs_[a]=c,c},b.getTech=function(a){return b.techs_&&b.techs_[a]?b.techs_[a]:I["default"]&&I["default"].videojs&&I["default"].videojs[a]?(C["default"].warn("The "+a+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),I["default"].videojs[a]):void 0},b}(k["default"]);L.prototype.textTracks_,L.prototype.audioTracks_,L.prototype.videoTracks_,L.prototype.featuresVolumeControl=!0,L.prototype.featuresFullscreenResize=!1,L.prototype.featuresPlaybackRate=!1,L.prototype.featuresProgressEvents=!1,L.prototype.featuresTimeupdateEvents=!1,L.prototype.featuresNativeTextTracks=!1,L.withSourceHandlers=function(a){a.registerSourceHandler=function(b,c){var d=a.sourceHandlers;d||(d=a.sourceHandlers=[]),void 0===c&&(c=d.length),d.splice(c,0,b)},a.canPlayType=function(b){for(var c=a.sourceHandlers||[],d=void 0,e=0;e0&&void 0!==arguments[0]?arguments[0]:[];f(this,b);for(var h=void 0,i=e.length-1;i>=0;i--)if(e[i].enabled){o(e,e[i]);break}if(l.IS_IE8){h=n["default"].createElement("custom");for(var k in j["default"].prototype)"constructor"!==k&&(h[k]=j["default"].prototype[k]);for(var m in b.prototype)"constructor"!==m&&(h[m]=b.prototype[m])}return h=c=g(this,a.call(this,e,h)),h.changing_=!1,d=h,g(c,d)}return h(b,a),b.prototype.addTrack_=function(b){var c=this;b.enabled&&o(this,b),a.prototype.addTrack_.call(this,b),b.addEventListener&&b.addEventListener("enabledchange",function(){c.changing_||(c.changing_=!0,o(c,b),c.changing_=!1,c.trigger("change"))})},b.prototype.addTrack=function(a){this.addTrack_(a)},b.prototype.removeTrack=function(b){a.prototype.removeTrack_.call(this,b)},b}(j["default"]);c["default"]=p},{74:74,78:78,94:94}],64:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(73),j=a(75),k=e(j),l=a(87),m=e(l),n=a(78),o=d(n),p=function(a){function b(){var c,d,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,b);var h=(0,m["default"])(e,{kind:i.AudioTrackKind[e.kind]||""}),j=c=g(this,a.call(this,h)),k=!1;if(o.IS_IE8)for(var l in b.prototype)"constructor"!==l&&(j[l]=b.prototype[l]);return Object.defineProperty(j,"enabled",{get:function(){return k},set:function(a){"boolean"==typeof a&&a!==k&&(k=a,this.trigger("enabledchange"))}}),h.enabled&&(j.enabled=h.enabled),j.loaded_=!0,d=j,g(c,d)}return h(b,a),b}(k["default"]);c["default"]=p},{73:73,75:75,78:78,87:87}],65:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var g=a(78),h=e(g),i=a(94),j=d(i),k=function(){function a(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];f(this,a);var c=this;if(h.IS_IE8){c=j["default"].createElement("custom");for(var d in a.prototype)"constructor"!==d&&(c[d]=a.prototype[d])}c.trackElements_=[],Object.defineProperty(c,"length",{get:function(){return this.trackElements_.length}});for(var e=0,g=b.length;e0&&void 0!==arguments[0]?arguments[0]:{};f(this,b);var d=g(this,a.call(this)),e=void 0,h=d;if(j.IS_IE8){h=l["default"].createElement("custom");for(var i in b.prototype)"constructor"!==i&&(h[i]=b.prototype[i])}var k=new p["default"](c);if(h.kind=k.kind,h.src=k.src,h.srclang=k.language,h.label=k.label,h["default"]=k["default"],Object.defineProperty(h,"readyState",{get:function(){return e}}),Object.defineProperty(h,"track",{get:function(){return k}}),e=q,k.addEventListener("loadeddata",function(){e=s,h.trigger({type:"load",target:h})}),j.IS_IE8){var m;return m=h,g(d,m)}return d}return h(b,a),b}(n["default"]);u.prototype.allowedEvents_={load:"load"},u.NONE=q,u.LOADING=r,u.LOADED=s,u.ERROR=t,c["default"]=u},{42:42,72:72,78:78,94:94}],67:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var g=a(78),h=e(g),i=a(94),j=d(i),k=function(){function a(b){f(this,a);var c=this;if(h.IS_IE8){c=j["default"].createElement("custom");for(var d in a.prototype)"constructor"!==d&&(c[d]=a.prototype[d])}if(a.prototype.setCues_.call(c,b),Object.defineProperty(c,"length",{get:function(){return this.length_}}),h.IS_IE8)return c}return a.prototype.setCues_=function(a){var b=this.length||0,c=0,d=a.length;this.cues_=a,this.length_=a.length;var e=function(a){""+a in this||Object.defineProperty(this,""+a,{get:function(){return this.cues_[a]}})};if(b0&&void 0!==arguments[0]?arguments[0]:[];f(this,b);var h=void 0;if(n.IS_IE8){h=p["default"].createElement("custom");for(var i in j["default"].prototype)"constructor"!==i&&(h[i]=j["default"].prototype[i]);for(var k in b.prototype)"constructor"!==k&&(h[k]=b.prototype[k])}return h=c=g(this,a.call(this,e,h)),d=h,g(c,d)}return h(b,a),b.prototype.addTrack_=function(b){a.prototype.addTrack_.call(this,b),b.addEventListener("modechange",l.bind(this,function(){this.trigger("change")}))},b}(j["default"]);c["default"]=q},{74:74,78:78,83:83,94:94}],71:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function i(a,b){if(b&&(a=b(a)),a&&"none"!==a)return a}function j(a,b){var c=a.options[a.options.selectedIndex].value;return i(c,b)}function k(a,b,c){if(b)for(var d=0;d select",id:"captions-background-color-%s",label:"Color",options:[x,D,C,A,y,E,B,z]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[F,G,H]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[D,x,C,A,y,E,B,z]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],"default":2,parser:function(a){return"1.00"===a?null:Number(a)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[F,G]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[H,G,F]}};I.windowColor.options=I.backgroundColor.options;var J=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.setDefaults(),e.hide(),e.updateDisplay=r.bind(e,e.updateDisplay),void 0===d.persistTextTrackSettings&&(e.options_.persistTextTrackSettings=e.options_.playerOptions.persistTextTrackSettings),e.on(e.$(".vjs-done-button"),"click",function(){e.saveSettings(),e.hide()}),e.on(e.$(".vjs-default-button"),"click",function(){e.setDefaults(),e.updateDisplay()}),t.each(I,function(a){e.on(e.$(a.selector),"change",e.updateDisplay)}),e.options_.persistTextTrackSettings&&e.restoreSettings(),e}return h(b,a),b.prototype.createElSelect_=function(a){var b=this,c=I[a],d=c.id.replace("%s",this.id_);return[(0,p.createEl)("label",{className:"vjs-label",textContent:c.label},{"for":d}),(0,p.createEl)("select",{id:d},void 0,c.options.map(function(a){return(0,p.createEl)("option",{textContent:b.localize(a[1]),value:a[0]})}))]},b.prototype.createElFgColor_=function(){var a=(0,p.createEl)("legend",{textContent:this.localize("Text")}),b=this.createElSelect_("color"),c=(0,p.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.createElSelect_("textOpacity"));return(0,p.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[a].concat(b,c))},b.prototype.createElBgColor_=function(){var a=(0,p.createEl)("legend",{textContent:this.localize("Background")}),b=this.createElSelect_("backgroundColor"),c=(0,p.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.createElSelect_("backgroundOpacity"));return(0,p.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[a].concat(b,c))},b.prototype.createElWinColor_=function(){var a=(0,p.createEl)("legend",{textContent:this.localize("Window")}),b=this.createElSelect_("windowColor"),c=(0,p.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.createElSelect_("windowOpacity"));return(0,p.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[a].concat(b,c))},b.prototype.createElColors_=function(){return(0,p.createEl)("div",{className:"vjs-tracksettings-colors"},void 0,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])},b.prototype.createElFont_=function(){var a=(0,p.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.createElSelect_("fontPercent")),b=(0,p.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.createElSelect_("edgeStyle")),c=(0,p.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.createElSelect_("fontFamily"));return(0,p.createEl)("div",{className:"vjs-tracksettings-font"},void 0,[a,b,c])},b.prototype.createElControls_=function(){var a=(0,p.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),b=(0,p.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,p.createEl)("div",{className:"vjs-tracksettings-controls"},void 0,[a,b])},b.prototype.createEl=function(){var a=(0,p.createEl)("div",{className:"vjs-tracksettings"},void 0,[this.createElColors_(),this.createElFont_(),this.createElControls_()]),b=(0,p.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),c=(0,p.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),d=(0,p.createEl)("div",void 0,{role:"document"},[b,c,a]);return(0,p.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":b.id,"aria-describedby":c.id},d)},b.prototype.getValues=function(){var a=this;return t.reduce(I,function(b,c,d){var e=j(a.$(c.selector),c.parser);return void 0!==e&&(b[d]=e),b},{})},b.prototype.setValues=function(a){var b=this;t.each(I,function(c,d){k(b.$(c.selector),a[d],c.parser)})},b.prototype.setDefaults=function(){var a=this;t.each(I,function(b){var c=b.hasOwnProperty("default")?b["default"]:0;a.$(b.selector).selectedIndex=c})},b.prototype.restoreSettings=function(){var a=void 0;try{a=JSON.parse(m["default"].localStorage.getItem(w))}catch(b){v["default"].warn(b)}a&&this.setValues(a)},b.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var a=this.getValues();try{Object.keys(a).length?m["default"].localStorage.setItem(w,JSON.stringify(a)):m["default"].localStorage.removeItem(w)}catch(b){v["default"].warn(b)}}},b.prototype.updateDisplay=function(){var a=this.player_.getChild("textTrackDisplay");a&&a.updateDisplay()},b}(o["default"]);o["default"].registerComponent("TextTrackSettings",J),c["default"]=J},{5:5,81:81,83:83,86:86,88:88,95:95}],72:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(67),j=e(i),k=a(83),l=d(k),m=a(73),n=a(86),o=e(n),p=a(95),q=e(p),r=a(75),s=e(r),t=a(92),u=a(99),v=e(u),w=a(87),x=e(w),y=a(78),z=d(y),A=function(a,b){var c=new q["default"].WebVTT.Parser(q["default"],q["default"].vttjs,q["default"].WebVTT.StringDecoder()),d=[];c.oncue=function(a){b.addCue(a)},c.onparsingerror=function(a){d.push(a)},c.onflush=function(){b.trigger({type:"loadeddata",target:b})},c.parse(a),d.length>0&&(q["default"].console&&q["default"].console.groupCollapsed&&q["default"].console.groupCollapsed("Text Track parsing errors for "+b.src),d.forEach(function(a){return o["default"].error(a)}),q["default"].console&&q["default"].console.groupEnd&&q["default"].console.groupEnd()),c.flush()},B=function(a,b){var c={uri:a},d=(0,t.isCrossOrigin)(a);d&&(c.cors=d),(0,v["default"])(c,l.bind(this,function(a,c,d){return a?o["default"].error(a,c):(b.loaded_=!0,void("function"!=typeof q["default"].WebVTT?b.tech_&&!function(){var a=function(){return A(d,b)};b.tech_.on("vttjsloaded",a),b.tech_.on("vttjserror",function(){o["default"].error("vttjs failed to load, stopping trying to process "+b.src),b.tech_.off("vttjsloaded",a)})}():A(d,b)))}))},C=function(a){function b(){var c,d,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(f(this,b),!e.tech)throw new Error("A tech was not provided.");var h=(0,x["default"])(e,{kind:m.TextTrackKind[e.kind]||"subtitles",language:e.language||e.srclang||""}),i=m.TextTrackMode[h.mode]||"disabled",k=h["default"];"metadata"!==h.kind&&"chapters"!==h.kind||(i="hidden");var n=c=g(this,a.call(this,h));if(n.tech_=h.tech,z.IS_IE8)for(var o in b.prototype)"constructor"!==o&&(n[o]=b.prototype[o]);n.cues_=[],n.activeCues_=[];var p=new j["default"](n.cues_),q=new j["default"](n.activeCues_),r=!1,s=l.bind(n,function(){this.activeCues,r&&(this.trigger("cuechange"),r=!1)});return"disabled"!==i&&n.tech_.on("timeupdate",s),Object.defineProperty(n,"default",{get:function(){return k},set:function(){}}),Object.defineProperty(n,"mode",{get:function(){return i},set:function(a){m.TextTrackMode[a]&&(i=a,"showing"===i&&this.tech_.on("timeupdate",s),this.trigger("modechange"))}}),Object.defineProperty(n,"cues",{get:function(){return this.loaded_?p:null},set:function(){}}),Object.defineProperty(n,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return q;for(var a=this.tech_.currentTime(),b=[],c=0,d=this.cues.length;c=a?b.push(e):e.startTime===e.endTime&&e.startTime<=a&&e.startTime+.5>=a&&b.push(e)}if(r=!1,b.length!==this.activeCues_.length)r=!0;else for(var f=0;f0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;f(this,b);var h=g(this,a.call(this));if(!e&&(e=h,l.IS_IE8)){e=n["default"].createElement("custom");for(var i in b.prototype)"constructor"!==i&&(e[i]=b.prototype[i])}e.tracks_=[],Object.defineProperty(e,"length",{get:function(){return this.tracks_.length}});for(var j=0;j0&&void 0!==arguments[0]?arguments[0]:{};f(this,b);var e=g(this,a.call(this)),h=e;if(j.IS_IE8){h=l["default"].createElement("custom");for(var i in b.prototype)"constructor"!==i&&(h[i]=b.prototype[i])}var k={id:d.id||"vjs_track_"+n.newGUID(),kind:d.kind||"",label:d.label||"",language:d.language||""},m=function(a){Object.defineProperty(h,a,{get:function(){return k[a]},set:function(){}})};for(var o in k)m(o);return c=h,g(e,c)}return h(b,a),b}(p["default"]);c["default"]=q},{42:42,78:78,85:85,94:94}],76:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(74),j=e(i),k=a(78),l=d(k),m=a(94),n=e(m),o=function(a,b){for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:[];f(this,b);for(var h=void 0,i=e.length-1;i>=0;i--)if(e[i].selected){o(e,e[i]);break}if(l.IS_IE8){h=n["default"].createElement("custom");for(var k in j["default"].prototype)"constructor"!==k&&(h[k]=j["default"].prototype[k]);for(var m in b.prototype)"constructor"!==m&&(h[m]=b.prototype[m])}return h=c=g(this,a.call(this,e,h)),h.changing_=!1,Object.defineProperty(h,"selectedIndex",{get:function(){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{};f(this,b);var h=(0,m["default"])(e,{kind:i.VideoTrackKind[e.kind]||""}),j=c=g(this,a.call(this,h)),k=!1;if(o.IS_IE8)for(var l in b.prototype)"constructor"!==l&&(j[l]=b.prototype[l]);return Object.defineProperty(j,"selected",{get:function(){return k},set:function(a){"boolean"==typeof a&&a!==k&&(k=a,this.trigger("selectedchange"))}}),h.selected&&(j.selected=h.selected),d=j,g(c,d)}return h(b,a),b}(k["default"]);c["default"]=p},{73:73,75:75,78:78,87:87}],78:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0,c.BACKGROUND_SIZE_SUPPORTED=c.TOUCH_ENABLED=c.IS_ANY_SAFARI=c.IS_SAFARI=c.IE_VERSION=c.IS_IE8=c.IS_CHROME=c.IS_EDGE=c.IS_FIREFOX=c.IS_NATIVE_ANDROID=c.IS_OLD_ANDROID=c.ANDROID_VERSION=c.IS_ANDROID=c.IOS_VERSION=c.IS_IOS=c.IS_IPOD=c.IS_IPHONE=c.IS_IPAD=void 0;var e=a(94),f=d(e),g=a(95),h=d(g),i=h["default"].navigator&&h["default"].navigator.userAgent||"",j=/AppleWebKit\\/([\\d.]+)/i.exec(i),k=j?parseFloat(j.pop()):null,l=c.IS_IPAD=/iPad/i.test(i),m=c.IS_IPHONE=/iPhone/i.test(i)&&!l,n=c.IS_IPOD=/iPod/i.test(i),o=c.IS_IOS=m||l||n,p=(c.IOS_VERSION=function(){var a=i.match(/OS (\\d+)_/i);return a&&a[1]?a[1]:null}(),c.IS_ANDROID=/Android/i.test(i)),q=c.ANDROID_VERSION=function(){var a=i.match(/Android (\\d+)(?:\\.(\\d+))?(?:\\.(\\d+))*/i);if(!a)return null;var b=a[1]&&parseFloat(a[1]),c=a[2]&&parseFloat(a[2]);return b&&c?parseFloat(a[1]+"."+a[2]):b?b:null}(),r=(c.IS_OLD_ANDROID=p&&/webkit/i.test(i)&&q<2.3,c.IS_NATIVE_ANDROID=p&&q<5&&k<537,c.IS_FIREFOX=/Firefox/i.test(i),c.IS_EDGE=/Edge/i.test(i)),s=c.IS_CHROME=!r&&/Chrome/i.test(i),t=(c.IS_IE8=/MSIE\\s8\\.0/.test(i),c.IE_VERSION=function(a){return a&&parseFloat(a[1])}(/MSIE\\s(\\d+)\\.\\d/.exec(i)),c.IS_SAFARI=/Safari/i.test(i)&&!s&&!p&&!r);c.IS_ANY_SAFARI=t||o,c.TOUCH_ENABLED=!!("ontouchstart"in h["default"]||h["default"].DocumentTouch&&f["default"]instanceof h["default"].DocumentTouch),c.BACKGROUND_SIZE_SUPPORTED="backgroundSize"in f["default"].createElement("video").style},{94:94,95:95}],79:[function(a,b,c){"use strict";function d(a,b){var c=0,d=void 0,f=void 0;if(!b)return 0;a&&a.length||(a=(0,e.createTimeRange)(0,0));for(var g=0;gb&&(f=b),c+=f-d;return c/b}c.__esModule=!0,c.bufferedPercent=d;var e=a(90)},{90:90}],80:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!a||!b)return"";if("function"==typeof g["default"].getComputedStyle){var c=g["default"].getComputedStyle(a);return c?c[b]:""}return a.currentStyle[b]||""}c.__esModule=!0,c["default"]=e;var f=a(95),g=d(f)},{95:95}],81:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){return a.raw=b,a}function g(a){return"string"==typeof a&&/\\S/.test(a)}function h(a){if(/\\s/.test(a))throw new Error("class has illegal whitespace characters")}function i(a){return new RegExp("(^|\\\\s)"+a+"($|\\\\s)")}function j(a){return(0,V.isObject)(a)&&1===a.nodeType}function k(a){return function(b,c){if(!g(b))return M["default"][a](null);g(c)&&(c=M["default"].querySelector(c));var d=j(c)?c:M["default"];return d[a]&&d[a](b)}}function l(a){return 0===a.indexOf("#")&&(a=a.slice(1)),M["default"].getElementById(a)}function m(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=arguments[3],e=M["default"].createElement(a);return Object.getOwnPropertyNames(b).forEach(function(a){var c=b[a];a.indexOf("aria-")!==-1||"role"===a||"type"===a?(S["default"].warn((0,U["default"])(K,a,c)),e.setAttribute(a,c)):"textContent"===a?n(e,c):e[a]=c}),Object.getOwnPropertyNames(c).forEach(function(a){e.setAttribute(a,c[a])}),d&&I(e,d),e}function n(a,b){return"undefined"==typeof a.textContent?a.innerText=b:a.textContent=b,a}function o(a,b){b.firstChild?b.insertBefore(a,b.firstChild):b.appendChild(a)}function p(a){var b=a[X];return b||(b=a[X]=Q.newGUID()),W[b]||(W[b]={}),W[b]}function q(a){var b=a[X];return!!b&&!!Object.getOwnPropertyNames(W[b]).length}function r(a){var b=a[X];if(b){delete W[b];try{delete a[X]}catch(c){a.removeAttribute?a.removeAttribute(X):a[X]=null}}}function s(a,b){return h(b),a.classList?a.classList.contains(b):i(b).test(a.className)}function t(a,b){return a.classList?a.classList.add(b):s(a,b)||(a.className=(a.className+" "+b).trim()),a}function u(a,b){return a.classList?a.classList.remove(b):(h(b),a.className=a.className.split(/\\s+/).filter(function(a){return a!==b}).join(" ")),a}function v(a,b,c){var d=s(a,b);if("function"==typeof c&&(c=c(a,b)),"boolean"!=typeof c&&(c=!d),c!==d)return c?t(a,b):u(a,b),a}function w(a,b){Object.getOwnPropertyNames(b).forEach(function(c){var d=b[c];null===d||"undefined"==typeof d||d===!1?a.removeAttribute(c):a.setAttribute(c,d===!0?"":d)})}function x(a){var b={},c=",autoplay,controls,loop,muted,default,";if(a&&a.attributes&&a.attributes.length>0)for(var d=a.attributes,e=d.length-1;e>=0;e--){var f=d[e].name,g=d[e].value;"boolean"!=typeof a[f]&&c.indexOf(","+f+",")===-1||(g=null!==g),b[f]=g}return b}function y(a,b){return a.getAttribute(b)}function z(a,b,c){a.setAttribute(b,c)}function A(a,b){a.removeAttribute(b)}function B(){M["default"].body.focus(),M["default"].onselectstart=function(){return!1}}function C(){M["default"].onselectstart=function(){return!0}}function D(a){var b=void 0;if(a.getBoundingClientRect&&a.parentNode&&(b=a.getBoundingClientRect()),!b)return{left:0,top:0};var c=M["default"].documentElement,d=M["default"].body,e=c.clientLeft||d.clientLeft||0,f=O["default"].pageXOffset||d.scrollLeft,g=b.left+f-e,h=c.clientTop||d.clientTop||0,i=O["default"].pageYOffset||d.scrollTop,j=b.top+i-h;return{left:Math.round(g),top:Math.round(j)}}function E(a,b){var c={},d=D(a),e=a.offsetWidth,f=a.offsetHeight,g=d.top,h=d.left,i=b.pageY,j=b.pageX;return b.changedTouches&&(j=b.changedTouches[0].pageX,i=b.changedTouches[0].pageY),c.y=Math.max(0,Math.min(1,(g-i+f)/f)),c.x=Math.max(0,Math.min(1,(j-h)/e)),c}function F(a){return(0,V.isObject)(a)&&3===a.nodeType}function G(a){for(;a.firstChild;)a.removeChild(a.firstChild);return a}function H(a){return"function"==typeof a&&(a=a()),(Array.isArray(a)?a:[a]).map(function(a){return"function"==typeof a&&(a=a()),j(a)||F(a)?a:"string"==typeof a&&/\\S/.test(a)?M["default"].createTextNode(a):void 0}).filter(function(a){return a})}function I(a,b){return H(b).forEach(function(b){return a.appendChild(b)}),a}function J(a,b){return I(G(a),b)}c.__esModule=!0,c.$$=c.$=void 0;var K=f(["Setting attributes in the second argument of createEl()\\n has been deprecated. Use the third argument instead.\\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\\n has been deprecated. Use the third argument instead.\\n createEl(type, properties, attributes). Attempting to set "," to ","."]);c.isEl=j,c.getEl=l,c.createEl=m,c.textContent=n,c.insertElFirst=o,c.getElData=p,c.hasElData=q,c.removeElData=r,c.hasElClass=s,c.addElClass=t,c.removeElClass=u,c.toggleElClass=v,c.setElAttributes=w,c.getElAttributes=x,c.getAttribute=y,c.setAttribute=z,c.removeAttribute=A,c.blockTextSelection=B,c.unblockTextSelection=C,c.findElPosition=D,c.getPointerPosition=E,c.isTextNode=F,c.emptyEl=G,c.normalizeContent=H,c.appendContent=I,c.insertContent=J;var L=a(94),M=e(L),N=a(95),O=e(N),P=a(85),Q=d(P),R=a(86),S=e(R),T=a(98),U=e(T),V=a(88),W={},X="vdata"+(new Date).getTime();c.$=k("querySelector"),c.$$=k("querySelectorAll")},{85:85,86:86,88:88,94:94,95:95,98:98}],82:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){var c=n.getElData(a);0===c.handlers[b].length&&(delete c.handlers[b],a.removeEventListener?a.removeEventListener(b,c.dispatcher,!1):a.detachEvent&&a.detachEvent("on"+b,c.dispatcher)),Object.getOwnPropertyNames(c.handlers).length<=0&&(delete c.handlers,delete c.dispatcher,delete c.disabled),0===Object.getOwnPropertyNames(c).length&&n.removeElData(a)}function g(a,b,c,d){c.forEach(function(c){a(b,c,d)})}function h(a){function b(){return!0}function c(){return!1}return a&&a.isPropagationStopped||!function(){var d=a||t["default"].event;a={};for(var e in d)"layerX"!==e&&"layerY"!==e&&"keyLocation"!==e&&"webkitMovementX"!==e&&"webkitMovementY"!==e&&("returnValue"===e&&d.preventDefault||(a[e]=d[e]));if(a.target||(a.target=a.srcElement||v["default"]),a.relatedTarget||(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement),a.preventDefault=function(){d.preventDefault&&d.preventDefault(),a.returnValue=!1,d.returnValue=!1,a.defaultPrevented=!0},a.defaultPrevented=!1,a.stopPropagation=function(){d.stopPropagation&&d.stopPropagation(),a.cancelBubble=!0,d.cancelBubble=!0,a.isPropagationStopped=b},a.isPropagationStopped=c,a.stopImmediatePropagation=function(){d.stopImmediatePropagation&&d.stopImmediatePropagation(),a.isImmediatePropagationStopped=b,a.stopPropagation()},a.isImmediatePropagationStopped=c,null!==a.clientX&&void 0!==a.clientX){var f=v["default"].documentElement,g=v["default"].body;a.pageX=a.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=a.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)}a.which=a.charCode||a.keyCode,null!==a.button&&void 0!==a.button&&(a.button=1&a.button?0:4&a.button?1:2&a.button?2:0)}(),a}function i(a,b,c){if(Array.isArray(b))return g(i,a,b,c);var d=n.getElData(a);d.handlers||(d.handlers={}),d.handlers[b]||(d.handlers[b]=[]),c.guid||(c.guid=p.newGUID()),d.handlers[b].push(c),d.dispatcher||(d.disabled=!1,d.dispatcher=function(b,c){if(!d.disabled){b=h(b);var e=d.handlers[b.type];if(e)for(var f=e.slice(0),g=0,i=f.length;g=b&&(a.apply(void 0,arguments),c=d)};return d}},{85:85}],84:[function(a,b,c){"use strict";function d(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;a=a<0?0:a;var c=Math.floor(a%60),d=Math.floor(a/60%60),e=Math.floor(a/3600),f=Math.floor(b/60%60),g=Math.floor(b/3600);return(isNaN(a)||a===1/0)&&(e=d=c="-"),e=e>0||g>0?e+":":"",d=((e||f>=10)&&d<10?"0"+d:d)+":",c=c<10?"0"+c:c,e+d+c}c.__esModule=!0,c["default"]=d},{}],85:[function(a,b,c){"use strict";function d(){return e++}c.__esModule=!0,c.newGUID=d;var e=1},{}],86:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0,c.logByType=void 0;var e=a(95),f=d(e),g=a(78),h=a(88),i=void 0,j=c.logByType=function(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!g.IE_VERSION&&g.IE_VERSION<11;"log"!==a&&b.unshift(a.toUpperCase()+":"),i.history.push(b),b.unshift("VIDEOJS:");var d=f["default"].console&&f["default"].console[a];d&&(c&&(b=b.map(function(a){if((0,h.isObject)(a)||Array.isArray(a))try{return JSON.stringify(a)}catch(b){return String(a)}return String(a)}).join(" ")),d.apply?d[Array.isArray(b)?"apply":"call"](f["default"].console,b):d(b))};i=function(){for(var a=arguments.length,b=Array(a),c=0;c2&&void 0!==arguments[2]?arguments[2]:0;return Object.keys(a).reduce(function(c,d){return b(c,a[d],d)},c)}function f(a){for(var b=arguments.length,c=Array(b>1?b-1:0),e=1;ec)throw new Error("Failed to execute \'"+a+"\' on \'TimeRanges\': The index provided ("+b+") is greater than or equal to the maximum bound ("+c+").")}function f(a,b,c,d){return void 0===d&&(j["default"].warn("DEPRECATED: Function \'"+a+"\' on \'TimeRanges\' called without an index argument."),d=0),e(a,d,c.length-1),c[d][b]}function g(a){return void 0===a||0===a.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:a.length,start:f.bind(null,"start",0,a),end:f.bind(null,"end",1,a)}}function h(a,b){return Array.isArray(a)?g(a):void 0===a||void 0===b?g():g([[a,b]])}c.__esModule=!0,c.createTimeRange=void 0,c.createTimeRanges=h;var i=a(86),j=d(i);c.createTimeRange=h},{86:86}],91:[function(a,b,c){"use strict";function d(a){return"string"!=typeof a?a:a.charAt(0).toUpperCase()+a.slice(1)}c.__esModule=!0,c["default"]=d},{}],92:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0,c.isCrossOrigin=c.getFileExtension=c.getAbsoluteURL=c.parseUrl=void 0;var e=a(94),f=d(e),g=a(95),h=d(g),i=c.parseUrl=function(a){var b=["protocol","hostname","port","pathname","search","hash","host"],c=f["default"].createElement("a");c.href=a;var d=""===c.host&&"file:"!==c.protocol,e=void 0;d&&(e=f["default"].createElement("div"),e.innerHTML=\'\',c=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),f["default"].body.appendChild(e));for(var g={},h=0;hx\',a=b.firstChild.href}return a},c.getFileExtension=function(a){if("string"==typeof a){var b=/^(\\/?)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?)(\\.([^\\.\\/\\?]+)))(?:[\\/]*|[\\?].*)$/i,c=b.exec(a);if(c)return c.pop().toLowerCase()}return""},c.isCrossOrigin=function(a){var b=h["default"].location,c=i(a),d=":"===c.protocol?b.protocol:c.protocol,e=d+c.host!==b.protocol+b.host;return e}},{94:94,95:95}],93:[function(b,c,d){"use strict";function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b,c){var d=void 0;if(b=b||{},"string"==typeof a){if(0===a.indexOf("#")&&(a=a.slice(1)),g.getPlayers()[a])return b&&O["default"].warn(\'Player "\'+a+\'" is already initialised. Options will not be applied.\'),c&&g.getPlayers()[a].ready(c),g.getPlayers()[a];d=Q.getEl(a)}else d=a;if(!d||!d.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(d.player||x["default"].players[d.playerId])return d.player||x["default"].players[d.playerId];g.hooks("beforesetup").forEach(function(a){var c=a(d,(0,B["default"])(b));return!(0,V.isObject)(c)||Array.isArray(c)?void g.log.error("please return an object in beforesetup hooks"):void(b=(0,B["default"])(b,c))});var e=r["default"].getComponent("Player"),f=new e(d,b,c);return g.hooks("setup").forEach(function(a){return a(f)}),f}d.__esModule=!0;var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},i=b(95),j=f(i),k=b(94),l=f(k),m=b(56),n=e(m),o=b(89),p=e(o),q=b(5),r=f(q),s=b(42),t=f(s),u=b(82),v=e(u),w=b(51),x=f(w),y=b(52),z=f(y),A=b(87),B=f(A),C=b(83),D=e(C),E=b(72),F=f(E),G=b(64),H=f(G),I=b(77),J=f(I),K=b(90),L=b(84),M=f(L),N=b(86),O=f(N),P=b(81),Q=e(P),R=b(78),S=e(R),T=b(92),U=e(T),V=b(88),W=b(80),X=f(W),Y=b(43),Z=f(Y),$=b(99),_=f($),aa=b(62),ba=f(aa);if("undefined"==typeof HTMLVideoElement&&j["default"].document&&j["default"].document.createElement&&(l["default"].createElement("video"),l["default"].createElement("audio"),l["default"].createElement("track")),g.hooks_={},g.hooks=function(a,b){return g.hooks_[a]=g.hooks_[a]||[],b&&(g.hooks_[a]=g.hooks_[a].concat(b)),g.hooks_[a]},g.hook=function(a,b){g.hooks(a,b)},g.removeHook=function(a,b){var c=g.hooks(a).indexOf(b);return!(c<=-1)&&(g.hooks_[a]=g.hooks_[a].slice(),g.hooks_[a].splice(c,1),!0)},j["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0){var ca=Q.$(".vjs-styles-defaults");if(!ca){ca=p.createStyleElement("vjs-styles-defaults");var da=Q.$("head");da&&da.insertBefore(ca,da.firstChild),p.setTextContent(ca,"\\n .video-js {\\n width: 300px;\\n height: 150px;\\n }\\n\\n .vjs-fluid {\\n padding-top: 56.25%\\n }\\n ")}}n.autoSetupTimeout(1,g),g.VERSION="5.14.1",g.options=x["default"].prototype.options_,g.getPlayers=function(){return x["default"].players},g.players=x["default"].players,g.getComponent=r["default"].getComponent,g.registerComponent=function(a,b){ba["default"].isTech(b)&&O["default"].warn("The "+a+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),r["default"].registerComponent.call(r["default"],a,b)},g.getTech=ba["default"].getTech,g.registerTech=ba["default"].registerTech,g.browser=S,g.TOUCH_ENABLED=S.TOUCH_ENABLED,g.extend=Z["default"],g.mergeOptions=B["default"],g.bind=D.bind,g.plugin=z["default"],g.addLanguage=function(a,b){var c;return a=(""+a).toLowerCase(),g.options.languages=(0,B["default"])(g.options.languages,(c={},c[a]=b,c)),g.options.languages[a]},g.log=O["default"],g.createTimeRange=g.createTimeRanges=K.createTimeRanges,g.formatTime=M["default"],g.parseUrl=U.parseUrl,g.isCrossOrigin=U.isCrossOrigin,g.EventTarget=t["default"],g.on=v.on,g.one=v.one,g.off=v.off,g.trigger=v.trigger,g.xhr=_["default"],g.TextTrack=F["default"],g.AudioTrack=H["default"],g.VideoTrack=J["default"],g.isEl=Q.isEl,g.isTextNode=Q.isTextNode,g.createEl=Q.createEl,g.hasClass=Q.hasElClass,g.addClass=Q.addElClass,g.removeClass=Q.removeElClass,g.toggleClass=Q.toggleElClass,g.setAttributes=Q.setElAttributes,g.getAttributes=Q.getElAttributes,g.emptyEl=Q.emptyEl,g.appendContent=Q.appendContent,g.insertContent=Q.insertContent,g.computedStyle=X["default"],"function"==typeof a&&a.amd?a("videojs",[],function(){return g}):"object"===("undefined"==typeof d?"undefined":h(d))&&"object"===("undefined"==typeof c?"undefined":h(c))&&(c.exports=g),d["default"]=g},{42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,86:86,87:87,88:88,89:89,90:90,92:92,94:94,95:95,99:99}],94:[function(a,b,c){(function(c){var d="undefined"!=typeof c?c:"undefined"!=typeof window?window:{},e=a(96);if("undefined"!=typeof document)b.exports=document;else{var f=d["__GLOBAL_DOCUMENT_CACHE@4"];f||(f=d["__GLOBAL_DOCUMENT_CACHE@4"]=e),b.exports=f}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{96:96}],95:[function(a,b,c){(function(a){"undefined"!=typeof window?b.exports=window:"undefined"!=typeof a?b.exports=a:"undefined"!=typeof self?b.exports=self:b.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],96:[function(a,b,c){},{}],97:[function(a,b,c){function d(a,b){var c,d=null;try{c=JSON.parse(a,b)}catch(e){d=e}return[d,c]}b.exports=d},{}],98:[function(a,b,c){function d(a){return a.replace(/\\n\\r?\\s*/g,"")}b.exports=function(a){for(var b="",c=0;c0&&(o=setTimeout(function(){n=!0,j.abort("timeout");var a=new Error("XMLHttpRequest timeout");a.code="ETIMEDOUT",d(a)},a.timeout)),j.setRequestHeader)for(l in s)s.hasOwnProperty(l)&&j.setRequestHeader(l,s[l]);else if(a.headers&&!e(a.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in a&&(j.responseType=a.responseType),"beforeSend"in a&&"function"==typeof a.beforeSend&&a.beforeSend(j),j.send(r),j}function i(){}var j=a(95),k=a(101),l=a(100),m=a(104),n=a(105);b.exports=g,g.XMLHttpRequest=j.XMLHttpRequest||i,g.XDomainRequest="withCredentials"in new g.XMLHttpRequest?g.XMLHttpRequest:j.XDomainRequest,d(["get","put","post","patch","head","delete"],function(a){\ng["delete"===a?"del":a]=function(b,c,d){return c=f(b,c,d),c.method=a.toUpperCase(),h(c)}})},{100:100,101:101,104:104,105:105,95:95}],100:[function(a,b,c){function d(a){var b=e.call(a);return"[object Function]"===b||"function"==typeof a&&"[object RegExp]"!==b||"undefined"!=typeof window&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}b.exports=d;var e=Object.prototype.toString},{}],101:[function(a,b,c){function d(a){var b=!1;return function(){if(!b)return b=!0,a.apply(this,arguments)}}b.exports=d,d.proto=d(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return d(this)},configurable:!0})})},{}],102:[function(a,b,c){function d(a,b,c){if(!h(b))throw new TypeError("iterator must be a function");arguments.length<3&&(c=this),"[object Array]"===i.call(a)?e(a,b,c):"string"==typeof a?f(a,b,c):g(a,b,c)}function e(a,b,c){for(var d=0,e=a.length;d100)throw new Error("Position must be between 0 and 100.");u=a,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",e({},j,{get:function(){return v},set:function(a){var b=d(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");v=b,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",e({},j,{get:function(){return w},set:function(a){if(a<0||a>100)throw new Error("Size must be between 0 and 100.");w=a,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",e({},j,{get:function(){return x},set:function(a){var b=d(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");x=b,this.hasBeenReset=!0}})),h.displayState=void 0,i)return h}var g="auto",h={"":!0,lr:!0,rl:!0},i={start:!0,middle:!0,end:!0,left:!0,right:!0};f.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},a.VTTCue=a.VTTCue||f,b.VTTCue=f}(this,this.vttjs||{}),function(a,b){function c(a){if("string"!=typeof a)return!1;var b=f[a.toLowerCase()];return!!b&&a.toLowerCase()}function d(a){return"number"==typeof a&&a>=0&&a<=100}function e(){var a=100,b=3,e=0,f=100,g=0,h=100,i="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return a},set:function(b){if(!d(b))throw new Error("Width must be between 0 and 100.");a=b}},lines:{enumerable:!0,get:function(){return b},set:function(a){if("number"!=typeof a)throw new TypeError("Lines must be set to a number.");b=a}},regionAnchorY:{enumerable:!0,get:function(){return f},set:function(a){if(!d(a))throw new Error("RegionAnchorX must be between 0 and 100.");f=a}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(a){if(!d(a))throw new Error("RegionAnchorY must be between 0 and 100.");e=a}},viewportAnchorY:{enumerable:!0,get:function(){return h},set:function(a){if(!d(a))throw new Error("ViewportAnchorY must be between 0 and 100.");h=a}},viewportAnchorX:{enumerable:!0,get:function(){return g},set:function(a){if(!d(a))throw new Error("ViewportAnchorX must be between 0 and 100.");g=a}},scroll:{enumerable:!0,get:function(){return i},set:function(a){var b=c(a);if(b===!1)throw new SyntaxError("An invalid or illegal string was specified.");i=b}}})}var f={"":!0,up:!0};a.VTTRegion=a.VTTRegion||e,b.VTTRegion=e}(this,this.vttjs||{}),function(a){function b(a,b){this.name="ParsingError",this.code=a.code,this.message=b||a.message}function c(a){function b(a,b,c,d){return 3600*(0|a)+60*(0|b)+(0|c)+(0|d)/1e3}var c=a.match(/^(\\d+):(\\d{2})(:\\d{2})?\\.(\\d{3})/);return c?c[3]?b(c[1],c[2],c[3].replace(":",""),c[4]):c[1]>59?b(c[1],c[2],0,c[4]):b(0,c[1],c[2],c[4]):null}function d(){this.values=o(null)}function e(a,b,c,d){var e=d?a.split(d):[a];for(var f in e)if("string"==typeof e[f]){var g=e[f].split(c);if(2===g.length){var h=g[0],i=g[1];b(h,i)}}}function f(a,f,g){function h(){var d=c(a);if(null===d)throw new b(b.Errors.BadTimeStamp,"Malformed timestamp: "+k);return a=a.replace(/^[^\\sa-zA-Z-]+/,""),d}function i(a,b){var c=new d;e(a,function(a,b){switch(a){case"region":for(var d=g.length-1;d>=0;d--)if(g[d].id===b){c.set(a,g[d].region);break}break;case"vertical":c.alt(a,b,["rl","lr"]);break;case"line":var e=b.split(","),f=e[0];c.integer(a,f),c.percent(a,f)?c.set("snapToLines",!1):null,c.alt(a,f,["auto"]),2===e.length&&c.alt("lineAlign",e[1],["start","middle","end"]);break;case"position":e=b.split(","),c.percent(a,e[0]),2===e.length&&c.alt("positionAlign",e[1],["start","middle","end"]);break;case"size":c.percent(a,b);break;case"align":c.alt(a,b,["start","middle","end","left","right"])}},/:/,/\\s/),b.region=c.get("region",null),b.vertical=c.get("vertical",""),b.line=c.get("line","auto"),b.lineAlign=c.get("lineAlign","start"),b.snapToLines=c.get("snapToLines",!0),b.size=c.get("size",100),b.align=c.get("align","middle"),b.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},b.align),b.positionAlign=c.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},b.align)}function j(){a=a.replace(/^\\s+/,"")}var k=a;if(j(),f.startTime=h(),j(),"-->"!==a.substr(0,3))throw new b(b.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by \'-->\'): "+k);a=a.substr(3),j(),f.endTime=h(),j(),i(a,f)}function g(a,b){function d(){function a(a){return b=b.substr(a.length),a}if(!b)return null;var c=b.match(/^([^<]*)(<[^>]+>?)?/);return a(c[1]?c[1]:c[2])}function e(a){return p[a]}function f(a){for(;o=a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)a=a.replace(o[0],e);return a}function g(a,b){return!s[b.localName]||s[b.localName]===a.localName}function h(b,c){var d=q[b];if(!d)return null;var e=a.document.createElement(d);e.localName=d;var f=r[b];return f&&c&&(e[f]=c.trim()),e}for(var i,j=a.document.createElement("div"),k=j,l=[];null!==(i=d());)if("<"!==i[0])k.appendChild(a.document.createTextNode(f(i)));else{if("/"===i[1]){l.length&&l[l.length-1]===i.substr(2).replace(">","")&&(l.pop(),k=k.parentNode);continue}var m,n=c(i.substr(1,i.length-2));if(n){m=a.document.createProcessingInstruction("timestamp",n),k.appendChild(m);continue}var o=i.match(/^<([^.\\s\\/0-9>]+)(\\.[^\\s\\\\>]+)?([^>\\\\]+)?(\\\\?)>?$/);if(!o)continue;if(m=h(o[1],o[3]),!m)continue;if(!g(k,m))continue;o[2]&&(m.className=o[2].substr(1).replace("."," ")),l.push(o[1]),k.appendChild(m),k=m}return j}function h(a){function b(a,b){for(var c=b.childNodes.length-1;c>=0;c--)a.push(b.childNodes[c])}function c(a){if(!a||!a.length)return null;var d=a.pop(),e=d.textContent||d.innerText;if(e){var f=e.match(/^.*(\\n|\\r)/);return f?(a.length=0,f[0]):e}return"ruby"===d.tagName?c(a):d.childNodes?(b(a,d),c(a)):void 0}var d,e=[],f="";if(!a||!a.childNodes)return"ltr";for(b(e,a);f=c(e);)for(var g=0;g=0&&a.line<=100))return a.line;if(!a.track||!a.track.textTrackList||!a.track.textTrackList.mediaElement)return-1;for(var b=a.track,c=b.textTrackList,d=0,e=0;ei&&(e=new l(a),g=i),a=new l(f)}return e||f}var f=new l(b),g=b.cue,h=i(g),j=[];if(g.snapToLines){var k;switch(g.vertical){case"":j=["+y","-y"],k="height";break;case"rl":j=["+x","-x"],k="width";break;case"lr":j=["-x","+x"],k="width"}var m=f.lineHeight,n=m*Math.round(h),o=c[k]+m,p=j[0];Math.abs(n)>o&&(n=n<0?-1:1,n*=Math.ceil(o/m)*m),h<0&&(n+=""===g.vertical?c.height:c.width,j=j.reverse()),f.move(p,n)}else{var q=f.lineHeight/c.height*100;switch(g.lineAlign){case"middle":h-=q/2;break;case"end":h-=q}switch(g.vertical){case"":b.applyStyles({top:b.formatStyle(h,"%")});break;case"rl":b.applyStyles({left:b.formatStyle(h,"%")});break;case"lr":b.applyStyles({right:b.formatStyle(h,"%")})}j=["+y","-x","+x","-y"],f=new l(b)}var r=e(f,j);b.move(r.toCSSCompatValues(c))}function n(){}var o=Object.create||function(){function a(){}return function(b){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return a.prototype=b,new a}}();b.prototype=o(Error.prototype),b.prototype.constructor=b,b.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},d.prototype={set:function(a,b){this.get(a)||""===b||(this.values[a]=b)},get:function(a,b,c){return c?this.has(a)?this.values[a]:b[c]:this.has(a)?this.values[a]:b},has:function(a){return a in this.values},alt:function(a,b,c){for(var d=0;d=0&&b<=100))&&(this.set(a,b),!0)}};var p={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},q={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},r={v:"title",lang:"lang"},s={rt:"ruby"},t=[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];j.prototype.applyStyles=function(a,b){b=b||this.div;for(var c in a)a.hasOwnProperty(c)&&(b.style[c]=a[c])},j.prototype.formatStyle=function(a,b){return 0===a?0:a+b},k.prototype=o(j.prototype),k.prototype.constructor=k,l.prototype.move=function(a,b){switch(b=void 0!==b?b:this.lineHeight,a){case"+x":this.left+=b,this.right+=b;break;case"-x":this.left-=b,this.right-=b;break;case"+y":this.top+=b,this.bottom+=b;break;case"-y":this.top-=b,this.bottom-=b}},l.prototype.overlaps=function(a){return this.lefta.left&&this.topa.top},l.prototype.overlapsAny=function(a){for(var b=0;b=a.top&&this.bottom<=a.bottom&&this.left>=a.left&&this.right<=a.right},l.prototype.overlapsOppositeAxis=function(a,b){switch(b){case"+x":return this.lefta.right;case"+y":return this.topa.bottom}},l.prototype.intersectPercentage=function(a){var b=Math.max(0,Math.min(this.right,a.right)-Math.max(this.left,a.left)),c=Math.max(0,Math.min(this.bottom,a.bottom)-Math.max(this.top,a.top)),d=b*c;return d/(this.height*this.width)},l.prototype.toCSSCompatValues=function(a){return{top:this.top-a.top,bottom:a.bottom-this.bottom,left:this.left-a.left,right:a.right-this.right,height:this.height,width:this.width}},l.getSimpleBoxPosition=function(a){var b=a.div?a.div.offsetHeight:a.tagName?a.offsetHeight:0,c=a.div?a.div.offsetWidth:a.tagName?a.offsetWidth:0,d=a.div?a.div.offsetTop:a.tagName?a.offsetTop:0;a=a.div?a.div.getBoundingClientRect():a.tagName?a.getBoundingClientRect():a;var e={left:a.left,right:a.right,top:a.top||d,height:a.height||b,bottom:a.bottom||d+(a.height||b),width:a.width||c};return e},n.StringDecoder=function(){return{decode:function(a){if(!a)return"";if("string"!=typeof a)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))}}},n.convertCueToDOMTree=function(a,b){return a&&b?g(a,b):null};var u=.05,v="sans-serif",w="1.5%";n.processCues=function(a,b,c){function d(a){for(var b=0;b")===-1){i.cue.id=j;continue}case"CUE":try{f(j,i.cue,i.regionList)}catch(m){i.reportOrThrowError(m),i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var n=j.indexOf("-->")!==-1;if(!j||n&&(l=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\\n"),i.cue.text+=j;continue;case"BADCUE":j||(i.state="ID");continue}}}catch(m){i.reportOrThrowError(m),"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var a=this;try{if(a.buffer+=a.decoder.decode(),(a.cue||"HEADER"===a.state)&&(a.buffer+="\\n\\n",a.parse()),"INITIAL"===a.state)throw new b(b.Errors.BadSignature)}catch(c){a.reportOrThrowError(c)}return a.onflush&&a.onflush(),this}},a.WebVTT=n}(this,this.vttjs||{});\n!function(){!function(a){var b=a&&a.videojs;if(b){b.CDN_VERSION="5.14.1";var c="https:"===a.location.protocol?"https://":"http://";b.options.flash.swf=c+"vjs.zencdn.net/swf/5.1.0/video-js.swf"}}(window),function(a,b,c,d,e,f,g){b&&b.HELP_IMPROVE_VIDEOJS!==!1&&(e.random()>.01||(f=b.location,g=b.videojs||{},a.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-3&utmn=1&utmhn="+d(f.hostname)+"&utmsr="+b.screen.availWidth+"x"+b.screen.availHeight+"&utmul="+(c.language||c.userLanguage||"").toLowerCase()+"&utmr="+d(f.href)+"&utmp="+d(f.hostname+f.pathname)+"&utmcc=__utma%3D1."+e.floor(1e10*e.random())+".1.1.1.1%3B&utme=8(vjsv*cdnv)9("+g.VERSION+"*"+g.CDN_VERSION+")"))}(new Image,window,navigator,encodeURIComponent,Math)}();\n'},function(e,t){e.exports='/*** IMPORTS FROM imports-loader ***/\nvar define = false;\n\n(function t(e,i,n){function r(s,o){if(!i[s]){if(!e[s]){var u=typeof require=="function"&&require;if(!o&&u)return u(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module \'"+s+"\'");throw l.code="MODULE_NOT_FOUND",l}var c=i[s]={exports:{}};e[s][0].call(c.exports,function(t){var i=e[s][1][t];return r(i?i:t)},c,c.exports,t,e,i,n)}return i[s].exports}var a=typeof require=="function"&&require;for(var s=0;s0&&arguments[0]!==undefined?arguments[0]:"2.0";var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined}},{key:"initAd",value:function i(t,e,n,r){var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{AdParameters:""};var s=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{flashVars:""};var o=arguments.length>6&&arguments[6]!==undefined?arguments[6]:undefined}},{key:"resizeAd",value:function a(t,e,i){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:undefined}},{key:"startAd",value:function s(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"stopAd",value:function o(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"pauseAd",value:function u(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"resumeAd",value:function l(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"expandAd",value:function c(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"collapseAd",value:function d(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"skipAd",value:function f(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined}},{key:"getAdLinear",value:function h(t){}},{key:"getAdWidth",value:function p(t){}},{key:"getAdHeight",value:function v(t){}},{key:"getAdExpanded",value:function g(t){}},{key:"getAdSkippableState",value:function y(t){}},{key:"getAdRemainingTime",value:function m(t){}},{key:"getAdDuration",value:function A(t){}},{key:"setAdVolume",value:function k(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined}},{key:"getAdVolume",value:function _(t){}},{key:"getAdCompanions",value:function b(t){}},{key:"getAdIcons",value:function w(t){}}]);return t}();Object.defineProperty(a,"EVENTS",{writable:false,configurable:false,value:["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdError"]})},{}],2:[function(t,e,i){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(i,"__esModule",{value:true});var r=function(){function t(t,e){for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:"2.0";var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;this._flash.callFlashMethod("handshakeVersion",[t],e)}},{key:"initAd",value:function h(t,e,i,n){var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{AdParameters:""};var a=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{flashVars:""};var s=arguments.length>6&&arguments[6]!==undefined?arguments[6]:undefined;this._flash.setSize(t,e);r=r||{AdParameters:""};a=a||{flashVars:""};this._flash.callFlashMethod("initAd",[this._flash.getWidth(),this._flash.getHeight(),i,n,r.AdParameters||"",a.flashVars||""],s)}},{key:"resizeAd",value:function p(t,e,i){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:undefined;this._flash.setSize(t,e);this._flash.callFlashMethod("resizeAd",[this._flash.getWidth(),this._flash.getHeight(),i],n)}},{key:"startAd",value:function v(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("startAd",[],t)}},{key:"stopAd",value:function g(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("stopAd",[],t)}},{key:"pauseAd",value:function y(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("pauseAd",[],t)}},{key:"resumeAd",value:function m(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("resumeAd",[],t)}},{key:"expandAd",value:function A(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("expandAd",[],t)}},{key:"collapseAd",value:function k(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("collapseAd",[],t)}},{key:"skipAd",value:function _(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this._flash.callFlashMethod("skipAd",[],t)}},{key:"getAdLinear",value:function b(t){this._flash.callFlashMethod("getAdLinear",[],t)}},{key:"getAdWidth",value:function w(t){this._flash.callFlashMethod("getAdWidth",[],t)}},{key:"getAdHeight",value:function T(t){this._flash.callFlashMethod("getAdHeight",[],t)}},{key:"getAdExpanded",value:function E(t){this._flash.callFlashMethod("getAdExpanded",[],t)}},{key:"getAdSkippableState",value:function S(t){this._flash.callFlashMethod("getAdSkippableState",[],t)}},{key:"getAdRemainingTime",value:function V(t){this._flash.callFlashMethod("getAdRemainingTime",[],t)}},{key:"getAdDuration",value:function C(t){this._flash.callFlashMethod("getAdDuration",[],t)}},{key:"setAdVolume",value:function I(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;this._flash.callFlashMethod("setAdVolume",[t],e)}},{key:"getAdVolume",value:function F(t){this._flash.callFlashMethod("getAdVolume",[],t)}},{key:"getAdCompanions",value:function L(t){this._flash.callFlashMethod("getAdCompanions",[],t)}},{key:"getAdIcons",value:function U(t){this._flash.callFlashMethod("getAdIcons",[],t)}}]);return e}(u)},{"./IVPAIDAdUnit":1}],3:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i2&&arguments[2]!==undefined?arguments[2]:{data:"VPAIDFlash.swf",width:800,height:400};var o=this;var h=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{wmode:"transparent",salign:"tl",align:"left",allowScriptAccess:"always",scale:"noScale",allowFullScreen:"true",quality:"high"};var p=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{debug:false,timeout:1e4};r(this,t);var g=this;this._vpaidParentEl=e;this._flashID=f();this._destroyed=false;i=i||u;n.width=c(n.width,800);n.height=c(n.height,400);d(e,this._flashID,true);h.movie=n.data;h.FlashVars="flashid="+this._flashID+"&handler="+s.VPAID_FLASH_HANDLER+"&debug="+p.debug+"&salign="+h.salign;if(!t.isSupported()){return m("user don\'t support flash or doesn\'t have the minimum required version of flash "+v)}this.el=a.createSWF(n,h,this._flashID);if(!this.el){return m("swfobject failed to create object in element")}var y=l(p.timeout,function(t,e){A.call(o);i(t,e)},function(){i("vpaid flash load timeout "+p.timeout)});this._flash=new s(this.el,n.data,this._flashID,n.width,n.height,y);function m(t){setTimeout(function(){i(new Error(t))},0);return g}}n(t,[{key:"destroy",value:function e(){this._destroyAdUnit();if(this._flash){this._flash.destroy();this._flash=null}this.el=null;this._destroyed=true}},{key:"isDestroyed",value:function i(){return this._destroyed}},{key:"_destroyAdUnit",value:function h(){delete this._loadLater;if(this._adUnitLoad){this._adUnitLoad=null;this._flash.removeCallback(this._adUnitLoad)}if(this._adUnit){this._adUnit._destroy();this._adUnit=null}}},{key:"loadAdUnit",value:function p(t,e){var i=this;m.call(this);if(this._adUnit){this._destroyAdUnit()}if(this._flash.isReady()){this._adUnitLoad=function(t,n){if(!t){i._adUnit=new o(i._flash)}i._adUnitLoad=null;e(t,i._adUnit)};this._flash.callFlashMethod("loadAdUnit",[t],this._adUnitLoad)}else{this._loadLater={url:t,callback:e}}}},{key:"unloadAdUnit",value:function g(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;m.call(this);this._destroyAdUnit();this._flash.callFlashMethod("unloadAdUnit",[],t)}},{key:"getFlashID",value:function y(){m.call(this);return this._flash.getFlashID()}},{key:"getFlashURL",value:function k(){m.call(this);return this._flash.getFlashURL()}}]);return t}();k("isSupported",function(){return a.hasFlashPlayerVersion(v)&&g.isSupported()},true);k("runFlashTest",function(t){g=h(document.body,t)});function m(){if(this._destroyed){throw new Error("VPAIDFlashToJS is destroyed!")}}function A(){if(this._loadLater){this.loadAdUnit(this._loadLater.url,this._loadLater.callback);delete this._loadLater}}function k(t,e){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;Object.defineProperty(y,t,{writable:i,configurable:false,value:e})}y.swfobject=a;e.exports=y},{"./VPAIDAdUnit":2,"./flashTester.js":4,"./jsFlashBridge":5,"./utils":8,swfobject:14}],4:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:true});var n=function(){function t(t,e){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{data:"VPAIDFlash.swf",width:800,height:400};r(this,t);this.parentEl=l.createElementWithID(e,o);l.hideFlashEl(this.parentEl);var s={};s.movie=n.data;s.FlashVars="flashid="+o+"&handler="+u.VPAID_FLASH_HANDLER;s.allowScriptAccess="always";this.el=a.createSWF(n,s,o);this._handlers=new c;this._isSupported=false;if(this.el){l.hideFlashEl(this.el);this._flash=new u(this.el,n.data,o,n.width,n.height,function(){var t=true;i._isSupported=t;i._handlers.get("change").forEach(function(e){setTimeout(function(){e("change",t)},0)})})}}n(t,[{key:"isSupported",value:function e(){return this._isSupported}},{key:"on",value:function i(t,e){this._handlers.add(t,e)}}]);return t}();var f=i.createFlashTester=function h(t,e){if(!window[s]){window[s]=new d(t,e)}return window[s]}},{"./jsFlashBridge":5,"./registry":7,"./utils":8,swfobject:14}],5:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:true});var n=function(){function t(t,e){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:[];var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;var n="";if(i){n=this._uniqueMethodIdentifier()+"_"+t;this._callbacks.add(n,i)}try{this._el[t]([n].concat(e))}catch(r){if(i){p.call(this,n,r)}else{this._trigger(f,r)}}}},{key:"removeCallback",value:function g(t){return this._callbacks.removeByValue(t)}},{key:"removeCallbackByMethodName",value:function y(t){var e=this;this._callbacks.filterKeys(function(e){return o(e,t)}).forEach(function(t){e._callbacks.remove(t)})}},{key:"removeAllCallbacks",value:function m(){return this._callbacks.removeAll()}},{key:"_trigger",value:function A(t,e){var i=this;this._handlers.get(t).forEach(function(n){if(t==="AdClickThru"){n(e)}else{setTimeout(function(){if(i._handlers.get(t).length>0){n(e)}},0)}})}},{key:"_callCallback",value:function k(t,e,i,n){var r=this._callbacks.get(e);if(!r){if(i&&e===""){this.trigger(f,i)}return}p.call(this,e,i,n)}},{key:"_handShake",value:function _(t,e){this._ready=true;if(this._handShakeHandler){this._handShakeHandler(t,e);delete this._handShakeHandler}}},{key:"getSize",value:function b(){return{width:this._width,height:this._height}}},{key:"setSize",value:function w(t,e){this._width=s(t,this._width);this._height=s(e,this._height);this._el.setAttribute("width",this._width);this._el.setAttribute("height",this._height)}},{key:"getWidth",value:function T(){return this._width}},{key:"setWidth",value:function E(t){this.setSize(t,this._height)}},{key:"getHeight",value:function S(){return this._height}},{key:"setHeight",value:function V(t){this.setSize(this._width,t)}},{key:"getFlashID",value:function C(){return this._flashID}},{key:"getFlashURL",value:function I(){return this._flashURL}},{key:"isReady",value:function F(){return this._ready}},{key:"destroy",value:function L(){this.offAll();this.removeAllCallbacks();c.removeInstanceByID(this._flashID);if(this._el.parentElement){this._el.parentElement.removeChild(this._el)}}}]);return t}();function p(t,e,i){var n=this;setTimeout(function(){var r=n._callbacks.get(t);if(r){n._callbacks.remove(t);r(e,i)}},0)}Object.defineProperty(h,"VPAID_FLASH_HANDLER",{writable:false,configurable:false,value:d});window[d]=function(t,e,i,n,r,a){var s=c.getInstanceByID(t);if(!s)return;if(i==="handShake"){s._handShake(r,a)}else{if(e!=="event"){s._callCallback(i,n,r,a)}else{s._trigger(i,a)}}}},{"./jsFlashBridgeRegistry":6,"./registry":7,"./utils":8}],6:[function(t,e,i){"use strict";var n=t("./registry").SingleValueRegistry;var r=new n;var a={};Object.defineProperty(a,"addInstance",{writable:false,configurable:false,value:function s(t,e){r.add(t,e)}});Object.defineProperty(a,"getInstanceByID",{writable:false,configurable:false,value:function o(t){return r.get(t)}});Object.defineProperty(a,"removeInstanceByID",{writable:false,configurable:false,value:function u(t){return r.remove(t)}});e.exports=a},{"./registry":7}],7:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:true});var n=function(){function t(t,e){for(var i=0;i2&&arguments[2]!==undefined?arguments[2]:false;var n=document.createElement("div");n.id=e;if(i){t.innerHTML=""}t.appendChild(n);return n}function o(t,e){return!isNaN(parseFloat(t))&&isFinite(t)&&t>0?t:e}var u=function(){if(String.prototype.endsWith)return String.prototype.endsWith;return function t(e,i){var n=this.toString();if(i===undefined||i>n.length){i=n.length}i-=e.length;var r=n.indexOf(e,i);return r!==-1&&r===i}}();function l(t,e){return u.call(t,e)}function c(t){t.style.position="absolute";t.style.left="-1px";t.style.top="-1px";t.style.width="1px";t.style.height="1px"}},{}],9:[function(t,e,i){"use strict";var n=["handshakeVersion","initAd","startAd","stopAd","skipAd","resizeAd","pauseAd","resumeAd","expandAd","collapseAd","subscribe","unsubscribe"];var r=["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdError"];var a=["getAdLinear","getAdWidth","getAdHeight","getAdExpanded","getAdSkippableState","getAdRemainingTime","getAdDuration","getAdVolume","getAdCompanions","getAdIcons"];var s=["setAdVolume"];function o(t,e,i){}o.prototype.handshakeVersion=function(t,e){};o.prototype.initAd=function(t,e,i,n,r,a,s){};o.prototype.startAd=function(t){};o.prototype.stopAd=function(t){};o.prototype.skipAd=function(t){};o.prototype.resizeAd=function(t,e,i,n){};o.prototype.pauseAd=function(t){};o.prototype.resumeAd=function(t){};o.prototype.expandAd=function(t){};o.prototype.collapseAd=function(t){};o.prototype.subscribe=function(t,e,i){};o.prototype.unsubscribe=function(t,e){};o.prototype.getAdLinear=function(t){};o.prototype.getAdWidth=function(t){};o.prototype.getAdHeight=function(t){};o.prototype.getAdExpanded=function(t){};o.prototype.getAdSkippableState=function(t){};o.prototype.getAdRemainingTime=function(t){};o.prototype.getAdDuration=function(t){};o.prototype.getAdVolume=function(t){};o.prototype.getAdCompanions=function(t){};o.prototype.getAdIcons=function(t){};o.prototype.setAdVolume=function(t,e){};l(o,"METHODS",n);l(o,"GETTERS",a);l(o,"SETTERS",s);l(o,"EVENTS",r);var u=n.filter(function(t){return["skipAd"].indexOf(t)===-1});l(o,"checkVPAIDInterface",function c(t){var e=u.every(function(e){return typeof t[e]==="function"});return e});e.exports=o;function l(t,e,i){Object.defineProperty(t,e,{writable:false,configurable:false,value:i})}},{}],10:[function(t,e,i){"use strict";var n=t("./IVPAIDAdUnit");var r=t("./subscriber");var a=n.checkVPAIDInterface;var s=t("./utils");var o=n.METHODS;var u="AdError";var l="AdClickThru";var c=n.EVENTS.filter(function(t){return t!=l});function d(t,e,i,n){this._isValid=a(t);if(this._isValid){this._creative=t;this._el=e;this._videoEl=i;this._iframe=n;this._subscribers=new r;s.setFullSizeStyle(e);f.call(this)}}d.prototype=Object.create(n.prototype);d.prototype.isValidVPAIDAd=function g(){return this._isValid};n.METHODS.forEach(function(t){var e=["subscribe","unsubscribe","initAd"];if(e.indexOf(t)!==-1)return;d.prototype[t]=function(){var e=n.prototype[t].length;var i=Array.prototype.slice.call(arguments);var r=e===i.length?i.pop():undefined;setTimeout(function(){var e,n=null;try{e=this._creative[t].apply(this._creative,i)}catch(a){n=a}v(r,this._subscribers,n,e)}.bind(this),0)}});d.prototype.initAd=function y(t,e,i,n,r,a,o){r=r||{};a=s.extend({slot:this._el,videoSlot:this._videoEl},a||{});setTimeout(function(){var s;try{this._creative.initAd(t,e,i,n,r,a)}catch(u){s=u}v(o,this._subscribers,s)}.bind(this),0)};d.prototype.subscribe=function m(t,e,i){this._subscribers.subscribe(e,t,i)};d.prototype.unsubscribe=function A(t,e){this._subscribers.unsubscribe(e,t)};d.prototype.on=d.prototype.subscribe;d.prototype.off=d.prototype.unsubscribe;n.GETTERS.forEach(function(t){d.prototype[t]=function(e){setTimeout(function(){var i,n=null;try{i=this._creative[t]()}catch(r){n=r}v(e,this._subscribers,n,i)}.bind(this),0)}});d.prototype.setAdVolume=function k(t,e){setTimeout(function(){var i,n=null;try{this._creative.setAdVolume(t);i=this._creative.getAdVolume()}catch(r){n=r}if(!n){n=s.validate(i===t,"failed to apply volume: "+t)}v(e,this._subscribers,n,i)}.bind(this),0)};d.prototype._destroy=function _(){this.stopAd();this._subscribers.unsubscribeAll()};function f(){c.forEach(function(t){this._creative.subscribe(p.bind(this,t),t)}.bind(this));this._creative.subscribe(h.bind(this),l);if(this._videoEl){var t=this._iframe.contentDocument.documentElement;var e=this._videoEl;t.addEventListener("click",function(i){if(i.target===t){e.click()}})}}function h(t,e,i){this._subscribers.triggerSync(l,{url:t,id:e,playerHandles:i})}function p(t){this._subscribers.trigger(t,Array.prototype.slice(arguments,1))}function v(t,e,i,n){if(t){t(i,n)}else if(i){e.trigger(u,i)}}e.exports=d},{"./IVPAIDAdUnit":9,"./subscriber":12,"./utils":13}],11:[function(t,e,i){"use strict";var n=t("./utils");var r=n.unique("vpaidIframe");var a=t("./VPAIDAdUnit");var s=""+\'\'+\'\'+\'
\'+\'\'+\'"+""+"";var o="AdStopped";function u(t,e,i,a){i=i||{};this._id=r();this._destroyed=false;this._frameContainer=n.createElementInEl(t,"div");this._videoEl=e;this._vpaidOptions=a||{timeout:1e4};this._templateConfig={template:i.template||s,extraOptions:i.extraOptions||{}}}u.prototype.destroy=function y(){if(this._destroyed){return}this._destroyed=true;d.call(this)};u.prototype.isDestroyed=function m(){return this._destroyed};u.prototype.loadAdUnit=function A(t,e){v.call(this);d.call(this);var i=this;var r=n.createIframeWithContent(this._frameContainer,this._templateConfig.template,n.extend({iframeURL_JS:t,iframeID:this.getID(),origin:g()},this._templateConfig.extraOptions));this._frame=r;this._onLoad=n.callbackTimeout(this._vpaidOptions.timeout,s.bind(this),u.bind(this));window.addEventListener("message",this._onLoad);function s(t){if(t.origin!==g())return;var r=JSON.parse(t.data);if(r.id!==i.getID())return;var s,u,l;if(!i._frame.contentWindow){u="the iframe is not anymore in the DOM tree"}else{l=i._frame.contentWindow.getVPAIDAd;u=n.validate(typeof l==="function","the ad didn\'t return a function to create an ad")}if(!u){var d=i._frame.contentWindow.document.querySelector(".ad-element");s=new a(l(),d,i._videoEl,i._frame);s.subscribe(o,c.bind(i));u=n.validate(s.isValidVPAIDAd(),"the add is not fully complaint with VPAID specification")}i._adUnit=s;h.call(i);e(u,u?null:s);return true}function u(){e("timeout",null)}};u.prototype.unloadAdUnit=function k(){d.call(this)};u.prototype.getID=function(){return this._id};function l(t){var e=this[t];if(e){e.remove();delete this[t]}}function c(){f.call(this);delete this._adUnit}function d(){f.call(this);p.call(this)}function f(){l.call(this,"_frame");h.call(this)}function h(){if(this._onLoad){window.removeEventListener("message",this._onLoad);n.clearCallbackTimeout(this._onLoad);delete this._onLoad}}function p(){if(this._adUnit){this._adUnit.stopAd();delete this._adUnit}}function v(){if(this._destroyed){throw new Error("VPAIDHTML5Client already destroyed!")}}function g(){if(window.location.origin){return window.location.origin}else{return window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}}e.exports=u},{"./VPAIDAdUnit":10,"./utils":13}],12:[function(t,e,i){"use strict";function n(){this._subscribers={}}n.prototype.subscribe=function r(t,e,i){if(!this.isHandlerAttached(t,e)){this.get(e).push({handler:t,context:i,eventName:e})}};n.prototype.unsubscribe=function a(t,e){this._subscribers[e]=this.get(e).filter(function(e){return t!==e.handler})};n.prototype.unsubscribeAll=function s(){this._subscribers={}};n.prototype.trigger=function(t,e){var i=this;var n=this.get(t).concat(this.get("*"));n.forEach(function(t){setTimeout(function(){if(i.isHandlerAttached(t.handler,t.eventName)){t.handler.call(t.context,e)}},0)})};n.prototype.triggerSync=function(t,e){var i=this.get(t).concat(this.get("*"));i.forEach(function(t){t.handler.call(t.context,e)})};n.prototype.get=function o(t){if(!this._subscribers[t]){this._subscribers[t]=[]}return this._subscribers[t]};n.prototype.isHandlerAttached=function u(t,e){return this.get(e).some(function(e){return t===e.handler})};e.exports=n},{}],13:[function(t,e,i){"use strict";function n(){}function r(t,e){return t?null:new Error(e)}var a={};function s(t){var e=a[t];if(e){clearTimeout(e);delete a[t]}}function o(t,e,i){var r,o;o=setTimeout(function(){e=n;delete o[r];i()},t);r=function(){if(e.apply(this,arguments)){s(r)}};a[r]=o;return r}function u(t,e,i){var n=document.createElement(e);if(i)n.id=i;t.appendChild(n);return n}function l(t,e,i){var n=c(t,null,i.zIndex);if(!h(n,f(e,i)))return;return n}function c(t,e,i){var n=document.createElement("iframe");n.src=e||"about:blank";n.marginWidth="0";n.marginHeight="0";n.frameBorder="0";n.width="100%";n.height="100%";d(n);if(i){n.style.zIndex=i}n.setAttribute("SCROLLING","NO");t.innerHTML="";t.appendChild(n);return n}function d(t){t.style.position="absolute";t.style.left="0";t.style.top="0";t.style.margin="0px";t.style.padding="0px";t.style.border="none";t.style.width="100%";t.style.height="100%"}function f(t,e){Object.keys(e).forEach(function(i){var n=typeof n==="object"?JSON.stringify(e[i]):e[i];t=t.replace(new RegExp("{{"+i+"}}","g"),n)});return t}function h(t,e){var i=t.contentWindow&&t.contentWindow.document;if(!i)return false;i.write(e);return true}function p(t,e){Object.keys(e).forEach(function(i){t[i]=e[i]});return t}function v(t){var e=-1;return function(){return t+"_"+ ++e}}e.exports={noop:n,validate:r,clearCallbackTimeout:s,callbackTimeout:o,createElementInEl:u,createIframeWithContent:l,createIframe:c,setFullSizeStyle:d,simpleTemplate:f,setIframeContent:h,extend:p,unique:v}},{}],14:[function(t,e,i){(function(t,i){if(typeof define==="function"&&define.amd){define(i)}else if(typeof e==="object"&&e.exports){e.exports=i()}else{t.swfobject=i()}})(this,function(){var t="undefined",e="object",i="Shockwave Flash",n="ShockwaveFlash.ShockwaveFlash",r="application/x-shockwave-flash",a="SWFObjectExprInst",s="onreadystatechange",o=window,u=document,l=navigator,c=false,d=[],f=[],h=[],p=[],v,g,y,m,A=false,k=false,_,b,w=true,T=false,E=function(){var a=typeof u.getElementById!==t&&typeof u.getElementsByTagName!==t&&typeof u.createElement!==t,s=l.userAgent.toLowerCase(),d=l.platform.toLowerCase(),f=d?/win/.test(d):/win/.test(s),h=d?/mac/.test(d):/mac/.test(s),p=/webkit/.test(s)?parseFloat(s.replace(/^.*webkit\\/(\\d+(\\.\\d+)?).*$/,"$1")):false,v=l.appName==="Microsoft Internet Explorer",g=[0,0,0],y=null;if(typeof l.plugins!==t&&typeof l.plugins[i]===e){y=l.plugins[i].description;if(y&&(typeof l.mimeTypes!==t&&l.mimeTypes[r]&&l.mimeTypes[r].enabledPlugin)){\nc=true;v=false;y=y.replace(/^.*\\s+(\\S+\\s+\\S+$)/,"$1");g[0]=q(y.replace(/^(.*)\\..*$/,"$1"));g[1]=q(y.replace(/^.*\\.(.*)\\s.*$/,"$1"));g[2]=/[a-zA-Z]/.test(y)?q(y.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0}}else if(typeof o.ActiveXObject!==t){try{var m=new ActiveXObject(n);if(m){y=m.GetVariable("$version");if(y){v=true;y=y.split(" ")[1].split(",");g=[q(y[0]),q(y[1]),q(y[2])]}}}catch(A){}}return{w3:a,pv:g,wk:p,ie:v,win:f,mac:h}}(),S=function(){if(!E.w3){return}if(typeof u.readyState!==t&&(u.readyState==="complete"||u.readyState==="interactive")||typeof u.readyState===t&&(u.getElementsByTagName("body")[0]||u.body)){V()}if(!A){if(typeof u.addEventListener!==t){u.addEventListener("DOMContentLoaded",V,false)}if(E.ie){u.attachEvent(s,function e(){if(u.readyState==="complete"){u.detachEvent(s,e);V()}});if(o==top){(function i(){if(A){return}try{u.documentElement.doScroll("left")}catch(t){setTimeout(i,0);return}V()})()}}if(E.wk){(function n(){if(A){return}if(!/loaded|complete/.test(u.readyState)){setTimeout(n,0);return}V()})()}}}();function V(){if(A||!document.getElementsByTagName("body")[0]){return}try{var t,e=z("span");e.style.display="none";t=u.getElementsByTagName("body")[0].appendChild(e);t.parentNode.removeChild(t);t=null;e=null}catch(i){return}A=true;var n=d.length;for(var r=0;r0){for(var i=0;i0){var s=W(n);if(s){if(J(f[i].swfVersion)&&!(E.wk&&E.wk<312)){Q(n,true);if(r){a.success=true;a.ref=U(n);a.id=n;r(a)}}else if(f[i].expressInstall&&P()){var o={};o.data=f[i].expressInstall;o.width=s.getAttribute("width")||"0";o.height=s.getAttribute("height")||"0";if(s.getAttribute("class")){o.styleclass=s.getAttribute("class")}if(s.getAttribute("align")){o.align=s.getAttribute("align")}var u={};var l=s.getElementsByTagName("param");var c=l.length;for(var d=0;d"+e+"";return i.firstChild}function O(i,n,a){var s,o=W(a);a=B(a);if(E.wk&&E.wk<312){return s}if(o){var u=E.ie?z("div"):z(e),l,c,d;if(typeof i.id===t){i.id=a}for(d in n){if(n.hasOwnProperty(d)&&d.toLowerCase()!=="movie"){N(u,d,n[d])}}if(E.ie){u=R(i.data,u.innerHTML)}for(l in i){if(i.hasOwnProperty(l)){c=l.toLowerCase();if(c==="styleclass"){u.setAttribute("class",i[l])}else if(c!=="classid"&&c!=="data"){u.setAttribute(l,i[l])}}}if(E.ie){h[h.length]=i.id}else{u.setAttribute("type",r);u.setAttribute("data",i.data)}o.parentNode.replaceChild(u,o);s=u}return s}function N(t,e,i){var n=z("param");n.setAttribute("name",e);n.setAttribute("value",i);t.appendChild(n)}function j(t){var e=W(t);if(e&&e.nodeName.toUpperCase()==="OBJECT"){if(E.ie){e.style.display="none";(function i(){if(e.readyState==4){for(var t in e){if(typeof e[t]==="function"){e[t]=null}}e.parentNode.removeChild(e)}else{setTimeout(i,10)}})()}else{e.parentNode.removeChild(e)}}}function H(t){return t&&t.nodeType&&t.nodeType===1}function B(t){return H(t)?t.id:t}function W(t){if(H(t)){return t}var e=null;try{e=u.getElementById(t)}catch(i){}return e}function z(t){return u.createElement(t)}function q(t){return parseInt(t,10)}function X(t,e,i){t.attachEvent(e,i);p[p.length]=[t,e,i]}function J(t){t+="";var e=E.pv,i=t.split(".");i[0]=q(i[0]);i[1]=q(i[1])||0;i[2]=q(i[2])||0;return e[0]>i[0]||e[0]==i[0]&&e[1]>i[1]||e[0]==i[0]&&e[1]==i[1]&&e[2]>=i[2]?true:false}function $(e,i,n,r){var a=u.getElementsByTagName("head")[0];if(!a){return}var s=typeof n==="string"?n:"screen";if(r){_=null;b=null}if(!_||b!=s){var o=z("style");o.setAttribute("type","text/css");o.setAttribute("media",s);_=a.appendChild(o);if(E.ie&&typeof u.styleSheets!==t&&u.styleSheets.length>0){_=u.styleSheets[u.styleSheets.length-1]}b=s}if(_){if(typeof _.addRule!==t){_.addRule(e,i)}else if(typeof u.createTextNode!==t){_.appendChild(u.createTextNode(e+" {"+i+"}"))}}}function Q(t,e){if(!w){return}var i=e?"visible":"hidden",n=W(t);if(A&&n){n.style.visibility=i}else if(typeof t==="string"){$("#"+t,"visibility:"+i)}}function G(e){var i=/[\\\\\\"<>\\.;]/;var n=i.exec(e)!==null;return n&&typeof encodeURIComponent!==t?encodeURIComponent(e):e}var K=function(){if(E.ie){window.attachEvent("onunload",function(){var t=p.length;for(var e=0;e found companion ad");s.debug(" companionJTree:",t);this.creativeType=a.attr(t.staticResource,"creativeType");this.staticResource=a.keyValue(t.staticResource);s.info(" creativeType: "+this.creativeType);s.info(" staticResource: "+this.staticResource);var e=null;if(a.keyValue(t.HTMLResource)){e=a.keyValue(t.HTMLResource)}else if(a.keyValue(t.hTMLResource)){e=a.keyValue(t.hTMLResource)}if(e!==null){s.info(" found html resource",e)}this.htmlResource=e;var i=null;if(a.keyValue(t.IFrameResource)){i=a.keyValue(t.IFrameResource)}else if(a.keyValue(t.iFrameresource)){i=a.keyValue(t.iFrameresource)}if(i!==null){s.info(" found iframe resource",i)}this.iframeResource=i;this.id=a.attr(t,"id");this.width=a.attr(t,"width");this.height=a.attr(t,"height");this.expandedWidth=a.attr(t,"expandedWidth");this.expandedHeight=a.attr(t,"expandedHeight");this.scalable=a.attr(t,"scalable");this.maintainAspectRatio=a.attr(t,"maintainAspectRatio");this.minSuggestedDuration=a.attr(t,"minSuggestedDuration");this.apiFramework=a.attr(t,"apiFramework");this.companionClickThrough=a.keyValue(t.companionClickThrough);this.trackingEvents=u(t.trackingEvents&&t.trackingEvents.tracking);s.info(" companionClickThrough: "+this.companionClickThrough);function u(t){var e=[];if(r.isDefined(t)){t=r.isArray(t)?t:[t];t.forEach(function(t){e.push(new n(t))})}return e}}e.exports=o},{"../../utils/consoleLogger":41,"../../utils/utilityFunctions":47,"../../utils/xml":48,"./TrackingEvent":21}],17:[function(t,e,i){"use strict";var n=t("./Linear");var r=t("./Companion");var a=t("../../utils/utilityFunctions");function s(t){if(!(this instanceof s)){return new s(t)}this.id=t.attr("id");this.sequence=t.attr("sequence");this.adId=t.attr("adId");this.apiFramework=t.attr("apiFramework");if(t.linear){this.linear=new n(t.linear)}if(t.companionAds){var e=[];var i=t.companionAds&&t.companionAds.companion;if(a.isDefined(i)){i=a.isArray(i)?i:[i];i.forEach(function(t){e.push(new r(t))})}this.companionAds=e}}s.prototype.isSupported=function(){if(this.linear){return this.linear.isSupported()}return true};s.parseCreatives=function o(t){var e=[];var i;if(a.isDefined(t)&&a.isDefined(t.creative)){i=a.isArray(t.creative)?t.creative:[t.creative];i.forEach(function(t){e.push(new s(t))})}return e};e.exports=s},{"../../utils/utilityFunctions":47,"./Companion":16,"./Linear":19}],18:[function(t,e,i){"use strict";var n=t("./vastUtil");var r=t("./Creative");var a=t("../../utils/utilityFunctions");var s=t("../../utils/xml");function o(t){if(!(this instanceof o)){return new o(t)}this.adTitle=s.keyValue(t.adTitle);this.adSystem=s.keyValue(t.adSystem);this.impressions=n.parseImpressions(t.impression);this.creatives=r.parseCreatives(t.creatives);this.description=s.keyValue(t.description);this.advertiser=s.keyValue(t.advertiser);this.surveys=e(t.survey);this.error=s.keyValue(t.error);this.pricing=s.keyValue(t.pricing);this.extensions=t.extensions;function e(t){if(t){return a.transformArray(a.isArray(t)?t:[t],function(t){if(a.isNotEmptyString(t.keyValue)){return{uri:t.keyValue,type:t.attr("type")}}return undefined})}return[]}}o.prototype.isSupported=function(){var t,e;if(this.creatives.length===0){return false}for(t=0,e=this.creatives.length;t0){f(r.shift(),[],a)}else{e(t,n)}}else{e(null,n)}}});function a(t,e){var n=i._requestVASTXml.bind(i,t);o.waterfall([n,s],e)}function s(t,e){var i;try{i=c.toJXONTree(t);d.debug("built JXONTree from VAST response:",i);if(l.isArray(i.ad)){i.ads=i.ad}else if(i.ad){i.ads=[i.ad]}else{i.ads=[]}e(u(i),i)}catch(n){e(new r("on VASTClient.getVASTAd.buildVastWaterfall, error parsing xml",100),null)}}function u(t){var e=c.attr(t,"version");if(!t.ad){return new r("on VASTClient.getVASTAd.validateVASTTree, no Ad in VAST tree",303)}if(e&&(e!=3&&e!=2)){return new r(\'on VASTClient.getVASTAd.validateVASTTree, not supported VAST version "\'+e+\'"\',102)}return null}function f(t,e,n){if(e.length>=i.WRAPPER_LIMIT){return n(new r("on VASTClient.getVASTAd.getAd, players wrapper limit reached (the limit is "+i.WRAPPER_LIMIT+")",302),e)}o.waterfall([function(e){if(l.isString(t)){v(t,e)}else{e(null,t)}},h],function(t,i){if(i){e.push(i)}if(t){return n(t,e)}if(i.wrapper){return f(i.wrapper.VASTAdTagURI,e,n)}return n(null,e)})}function h(t,e){try{var i=new n(t);e(p(i),i)}catch(a){e(new r("on VASTClient.getVASTAd.buildAd, error parsing xml",100),null)}}function p(t){var e=t.wrapper;var i=t.inLine;var n="on VASTClient.getVASTAd.validateAd, ";if(i&&e){return new r(n+"InLine and Wrapper both found on the same Ad",101)}if(!i&&!e){return new r(n+"nor wrapper nor inline elements found on the Ad",101)}if(i&&!i.isSupported()){return new r(n+"could not find MediaFile that is supported by this video player",403)}if(e&&!e.VASTAdTagURI){return new r(n+"missing \'VASTAdTagURI\' in wrapper",101)}return null}function v(t,e){i._requestVASTXml(t,function(t,i){if(t){return e(t)}try{var n=c.toJXONTree(i);e(u(n),n.ad)}catch(a){e(new r("on VASTClient.getVASTAd.requestVASTAd, error parsing xml",100))}})}};f.prototype._requestVASTXml=function p(t,e){try{if(l.isFunction(t)){t(n)}else{d.info("requesting adTagUrl: "+t);u.get(t,n,{withCredentials:true})}}catch(i){e(i)}function n(t,i,n){if(t){var a=l.isDefined(n)?"on VASTClient.requestVastXML, HTTP request error with status \'"+n+"\'":"on VASTClient.requestVastXML, Error getting the the VAST XML with he passed adTagXML fn";return e(new r(a,301),null)}e(null,i)}};f.prototype._buildVASTResponse=function v(t){var e=new a;i(e,t);n(e);return e;function i(t,e){e.forEach(function(e){t.addAd(e)})}function n(t){var e=t.trackingEvents.progress;if(!t.hasLinear()){throw new r("on VASTClient._buildVASTResponse, Received an Ad type that is not supported",200)}if(t.duration===undefined){throw new r("on VASTClient._buildVASTResponse, Missing duration field in VAST response",101)}if(e){e.forEach(function(t){if(!l.isNumber(t.offset)){throw new r("on VASTClient._buildVASTResponse, missing or wrong offset attribute on progress tracking event",101)}})}}};f.prototype._trackError=function(t,e){if(!l.isArray(e)||e.length===0){return}var i=[];e.forEach(n);s.track(i,{ERRORCODE:t.code||900});function n(t){if(t.wrapper&&t.wrapper.error){i.push(t.wrapper.error)}if(t.inLine&&t.inLine.error){i.push(t.inLine.error)}}};e.exports=f},{"../../utils/async":40,"../../utils/consoleLogger":41,"../../utils/http":43,"../../utils/utilityFunctions":47,"../../utils/xml":48,"./Ad":15,"./VASTError":23,"./VASTResponse":25,"./vastUtil":30}],23:[function(t,e,i){"use strict";function n(t,e){this.message="VAST Error: "+(t||"");if(e){this.code=e}}n.prototype=new Error;n.prototype.name="VAST Error";e.exports=n},{}],24:[function(t,e,i){"use strict";var n=t("./VASTResponse");var r=t("./VASTError");var a=t("./VASTTracker");var s=t("./vastUtil");var o=t("../../utils/async");var u=t("../../utils/dom");var l=t("../../utils/playerUtils");var c=t("../../utils/utilityFunctions");var d=t("../../utils/consoleLogger");function f(t){if(!(this instanceof f)){return new f(t)}this.player=t}f.prototype.playAd=function h(t,e){var i=this;e=e||c.noop;if(!(t instanceof n)){return e(new r("On VASTIntegrator, missing required VASTResponse"))}o.waterfall([function(e){e(null,t)},this._selectAdSource.bind(this),this._createVASTTracker.bind(this),this._addClickThrough.bind(this),this._addSkipButton.bind(this),this._setupEvents.bind(this),this._playSelectedAd.bind(this)],function(t,n){if(t&&n){i._trackError(t,n)}e(t,n)});this._adUnit={_src:null,type:"VAST",pauseAd:function(){i.player.pause(true)},resumeAd:function(){i.player.play(true)},isPaused:function(){return i.player.paused(true)},getSrc:function(){return this._src}};return this._adUnit};f.prototype._selectAdSource=function p(t,e){var i;var n=u.getDimension(this.player.el()).width;t.mediaFiles.sort(function a(t,e){var i=Math.abs(n-t.width);var r=Math.abs(n-e.width);return i-r});i=this.player.selectSource(t.mediaFiles).source;if(i){d.info("selected source: ",i);if(this._adUnit){this._adUnit._src=i}return e(null,i,t)}e(new r("Could not find Ad mediafile supported by this player",403),t)};f.prototype._createVASTTracker=function v(t,e,i){var n=this.player;try{i(null,t,new a(t.src,e,n),e)}catch(r){i(r,e)}};f.prototype._setupEvents=function g(t,e,i,n){var r;var a=this.player;a.on("fullscreenchange",o);a.on("vast.adStart",d);a.on("pause",u);a.on("timeupdate",c);a.on("volumechange",f);l.once(a,["vast.adEnd","vast.adsCancel"],s);l.once(a,["vast.adEnd","vast.adsCancel","vast.adSkip"],function(t){if(t.type==="vast.adEnd"){e.trackComplete();a.trigger("vast.complete")}});return n(null,t,i);function s(){a.off("fullscreenchange",o);a.off("vast.adStart",d);a.off("pause",u);a.off("timeupdate",c);a.off("volumechange",f)}function o(){if(a.isFullscreen()){e.trackFullscreen();a.trigger("vast.exitFullscreen")}else{e.trackExitFullscreen();a.trigger("vast.fullscreen")}}function u(){if(Math.abs(a.duration()-a.currentTime())<2){return}e.trackPause();a.trigger("vast.pause");l.once(a,["play","vast.adEnd","vast.adsCancel"],function(t){if(t.type==="play"){e.trackResume();a.trigger("vast.resume")}})}function c(){var t=a.currentTime()*1e3;e.trackProgress(t)}function d(){e.trackImpressions();a.trigger("vast.impression");e.trackCreativeView();a.trigger("vast.creativeView")}function f(){var t=a.muted();if(t){e.trackMute();a.trigger("vast.mute")}else if(r){e.trackUnmute();a.trigger("vast.unmute")}r=t}};f.prototype._addSkipButton=function y(t,e,i,n){var r;var a=this;if(c.isNumber(i.skipoffset)){r=i.skipoffset/1e3;s(this.player,r)}n(null,t,e,i);function s(t,e){var i=o(t);var n=d.bind(a,i,e,t);t.el().appendChild(i);t.on("timeupdate",n);l.once(t,["vast.adEnd","vast.adsCancel"],r);function r(){t.off("timeupdate",n);u.remove(i)}}function o(t){var i=window.document.createElement("div");u.addClass(i,"vast-skip-button");i.onclick=function(n){if(u.hasClass(i,"enabled")){e.trackSkip();t.trigger("vast.adSkip")}if(window.Event.prototype.stopPropagation!==undefined){n.stopPropagation()}else{return false}};return i}function d(t,e,i){var n=Math.ceil(e-i.currentTime());if(n>0){t.innerHTML="Skip in "+c.toFixedDigits(n,2)+"..."}else{if(!u.hasClass(t,"enabled")){u.addClass(t,"enabled");t.innerHTML="Skip ad"}}}};f.prototype._addClickThrough=function m(t,e,i,n){var r=this.player;var a=d(r,e,i);var o=f.bind(this,a,i,r);r.el().insertBefore(a,r.controlBar.el());r.on("timeupdate",o);l.once(r,["vast.adEnd","vast.adsCancel"],p);return n(null,t,e,i);function d(t,e,i){var n=window.document.createElement("a");var r=i.clickThrough;u.addClass(n,"vast-blocker");n.href=h(r,t);if(c.isString(r)){n.target="_blank"}n.onclick=function(i){if(t.paused()){t.play();if(window.Event.prototype.stopPropagation!==undefined){i.stopPropagation()}return false}t.pause();t.trigger("vast.adclick");e.trackClick()};return n}function f(t,e,i){t.href=h(e.clickThrough,i)}function h(e,i){var n={ASSETURI:t.src,CONTENTPLAYHEAD:s.formatProgress(i.currentTime()*1e3)};return e?s.parseURLMacro(e,n):"#"}function p(){r.off("timeupdate",o);u.remove(a)}};f.prototype._playSelectedAd=function A(t,e,i){var n=this.player;n.preload("auto");n.src(t);d.debug(" waiting for durationchange to play the ad...");l.once(n,["durationchange","error","vast.adsCancel"],function(t){if(t.type==="durationchange"){d.debug(" got durationchange; calling playAd()");a()}else if(t.type==="error"){i(new r("on VASTIntegrator, Player is unable to play the Ad",400),e)}});function a(){l.once(n,["playing","vast.adsCancel"],function(t){if(t.type==="vast.adsCancel"){return}d.debug(" got playing event; triggering vast.adStart...");n.trigger("vast.adStart");n.on("ended",r);n.on("vast.adsCancel",r);n.on("vast.adSkip",r);function r(t){if(t.type==="ended"&&n.duration()-n.currentTime()>3){return}n.off("ended",r);n.off("vast.adsCancel",r);n.off("vast.adSkip",r);if(t.type==="ended"||t.type==="vast.adSkip"){i(null,e)}}});d.debug(" calling player.play()...");n.play()}};f.prototype._trackError=function k(t,e){s.track(e.errorURLMacros,{ERRORCODE:t.code||900})};e.exports=f},{"../../utils/async":40,"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/playerUtils":45,"../../utils/utilityFunctions":47,"./VASTError":23,"./VASTResponse":25,"./VASTTracker":26,"./vastUtil":30}],25:[function(t,e,i){"use strict";var n=t("./Ad");var r=t("./VideoClicks");var a=t("./Linear");var s=t("./InLine");var o=t("./Wrapper");var u=t("../../utils/utilityFunctions");var l=t("../../utils/xml");window.InLine__A=s;function c(){if(!(this instanceof c)){return new c}this._linearAdded=false;this.ads=[];this.errorURLMacros=[];this.impressions=[];this.clickTrackings=[];this.customClicks=[];this.trackingEvents={};this.mediaFiles=[];this.clickThrough=undefined;this.adTitle="";this.duration=undefined;this.skipoffset=undefined}c.prototype.addAd=function(t){var e,i;if(t instanceof n){e=t.inLine;i=t.wrapper;this.ads.push(t);if(e){this._addInLine(e)}if(i){this._addWrapper(i)}}};c.prototype._addErrorTrackUrl=function(t){var e=t instanceof l.JXONTree?l.keyValue(t):t;if(e){this.errorURLMacros.push(e)}};c.prototype._addImpressions=function(t){u.isArray(t)&&d(this.impressions,t)};c.prototype._addClickThrough=function(t){if(u.isNotEmptyString(t)){this.clickThrough=t}};c.prototype._addClickTrackings=function(t){u.isArray(t)&&d(this.clickTrackings,t)};c.prototype._addCustomClicks=function(t){u.isArray(t)&&d(this.customClicks,t)};c.prototype._addTrackingEvents=function(t){var e=this.trackingEvents;if(t){t=u.isArray(t)?t:[t];t.forEach(function(t){if(!e[t.name]){e[t.name]=[]}e[t.name].push(t)})}};c.prototype._addTitle=function(t){if(u.isNotEmptyString(t)){this.adTitle=t}};c.prototype._addDuration=function(t){if(u.isNumber(t)){this.duration=t}};c.prototype._addVideoClicks=function(t){if(t instanceof r){this._addClickThrough(t.clickThrough);this._addClickTrackings(t.clickTrackings);this._addCustomClicks(t.customClicks)}};c.prototype._addMediaFiles=function(t){u.isArray(t)&&d(this.mediaFiles,t)};c.prototype._addSkipoffset=function(t){if(t){this.skipoffset=t}};c.prototype._addAdParameters=function(t){if(t){this.adParameters=t}};c.prototype._addLinear=function(t){if(t instanceof a){this._addDuration(t.duration);this._addTrackingEvents(t.trackingEvents);this._addVideoClicks(t.videoClicks);this._addMediaFiles(t.mediaFiles);this._addSkipoffset(t.skipoffset);this._addAdParameters(t.adParameters);this._linearAdded=true}};c.prototype._addInLine=function(t){var e=this;if(t instanceof s){this._addTitle(t.adTitle);this._addErrorTrackUrl(t.error);this._addImpressions(t.impressions);t.creatives.forEach(function(t){if(t.linear){e._addLinear(t.linear)}})}};c.prototype._addWrapper=function(t){var e=this;if(t instanceof o){this._addErrorTrackUrl(t.error);this._addImpressions(t.impressions);t.creatives.forEach(function(t){var i=t.linear;if(i){e._addVideoClicks(i.videoClicks);e.clickThrough=undefined;e._addTrackingEvents(i.trackingEvents)}})}};c.prototype.hasLinear=function(){return this._linearAdded};function d(t,e){e.forEach(function(e){t.push(e)})}e.exports=c},{"../../utils/utilityFunctions":47,"../../utils/xml":48,"./Ad":15,"./InLine":18,"./Linear":19,"./VideoClicks":27,"./Wrapper":28}],26:[function(t,e,i){"use strict";var n=t("./VASTError");var r=t("./VASTResponse");var a=t("./vastUtil");var s=t("../../utils/utilityFunctions");function o(t,e,i){if(!(this instanceof o)){return new o(t,e,i)}if(s.isUndefined(i)){i={trigger:s.noop}}this.sanityCheck(t,e,i);this.initialize(t,e,i)}o.prototype.initialize=function(t,e,i){this.response=e;this.assetURI=t;this.progress=0;this.quartiles={start:{tracked:false,time:0},firstQuartile:{tracked:false,time:Math.round(25*e.duration)/100},midpoint:{tracked:false,time:Math.round(50*e.duration)/100},thirdQuartile:{tracked:false,time:Math.round(75*e.duration)/100}};this.triggerable=i};o.prototype.sanityCheck=function(t,e,i){if(!s.isString(t)||s.isEmptyString(t)){throw new n("on VASTTracker constructor, missing required the URI of the ad asset being played")}if(!(e instanceof r)){throw new n("on VASTTracker constructor, missing required VAST response")}if(!s.isFunction(i.trigger)){throw new n("on VASTTracker constructor, missing triggerable")}};o.prototype.trackURLs=function u(t,e){if(s.isArray(t)&&t.length>0){e=s.extend({ASSETURI:this.assetURI,CONTENTPLAYHEAD:a.formatProgress(this.progress)},e||{});a.track(t,e)}};o.prototype.trackEvent=function l(t,e){this.trackURLs(i(this.response.trackingEvents[t]));if(e){this.response.trackingEvents[t]=undefined}function i(t){var e;if(t){e=[];t.forEach(function(t){if(!t.uri){return}e.push(t.uri)})}return e}};o.prototype.trackProgress=function c(t){var e=this;var i=[];var n=true;var r=false;var a=this.response.trackingEvents;var o=this.triggerable;if(s.isNumber(t)){l("rewind",r,u(this.progress,t));c(t);f(t);h();this.progress=t}function u(e,i){var n=3e3;return e>t&&Math.abs(i-e)>n}function l(t,e,n){if(n){o.trigger("vast."+t)}if(a[t]&&n){i.push({name:t,trackOnce:!!e})}}function c(t){var i=e.quartiles;var r=e.quartiles.start;var a=e.quartiles.firstQuartile;var s=e.quartiles.midpoint;var o=e.quartiles.thirdQuartile;if(!r.tracked){u("start",t)}else if(!a.tracked){u("firstQuartile",t)}else if(!s.tracked){u("midpoint",t)}else if(!o.tracked){u("thirdQuartile",t)}function u(t,e){var r=i[t];if(d(r,e)){r.tracked=true;l(t,n,true)}}}function d(t,e){var i=t.time;return e>=i&&e<=i+5e3}function f(t){if(!s.isArray(a.progress)){return}var i=[];a.progress.forEach(function(n){if(n.offset<=t){e.trackURLs([n.uri])}else{i.push(n)}});a.progress=i}function h(){i.forEach(function(t){e.trackEvent(t.name,t.trackOnce)})}};["rewind","fullscreen","exitFullscreen","pause","resume","mute","unmute","acceptInvitation","acceptInvitationLinear","collapse","expand"].forEach(function(t){o.prototype["track"+s.capitalize(t)]=function(){this.trackEvent(t)}});["skip","close","closeLinear"].forEach(function(t){o.prototype["track"+s.capitalize(t)]=function(){this.trackEvent(t,true)}});["start","firstQuartile","midpoint","thirdQuartile"].forEach(function(t){o.prototype["track"+s.capitalize(t)]=function(){this.quartiles[t].tracked=true;this.trackEvent(t,true)}});o.prototype.trackComplete=function(){if(this.quartiles.thirdQuartile.tracked){this.trackEvent("complete",true)}};o.prototype.trackErrorWithCode=function d(t){if(s.isNumber(t)){this.trackURLs(this.response.errorURLMacros,{ERRORCODE:t})}};o.prototype.trackImpressions=function f(){this.trackURLs(this.response.impressions)};o.prototype.trackCreativeView=function h(){this.trackEvent("creativeView")};o.prototype.trackClick=function p(){this.trackURLs(this.response.clickTrackings)};e.exports=o},{"../../utils/utilityFunctions":47,"./VASTError":23,"./VASTResponse":25,"./vastUtil":30}],27:[function(t,e,i){"use strict";var n=t("../../utils/utilityFunctions");var r=t("../../utils/xml");function a(t){if(!(this instanceof a)){return new a(t)}this.clickThrough=r.keyValue(t.clickThrough);this.clickTrackings=e(t.clickTracking);this.customClicks=e(t.customClick);function e(t){var e=[];if(t){t=n.isArray(t)?t:[t];t.forEach(function(t){e.push(r.keyValue(t));\n})}return e}}e.exports=a},{"../../utils/utilityFunctions":47,"../../utils/xml":48}],28:[function(t,e,i){"use strict";var n=t("./vastUtil");var r=t("./Creative");var a=t("../../utils/utilityFunctions");var s=t("../../utils/xml");function o(t){if(!(this instanceof o)){return new o(t)}this.adSystem=s.keyValue(t.adSystem);this.impressions=n.parseImpressions(t.impression);this.VASTAdTagURI=s.keyValue(t.vASTAdTagURI);this.creatives=r.parseCreatives(t.creatives);this.error=s.keyValue(t.error);this.extensions=t.extensions;this.followAdditionalWrappers=a.isDefined(s.attr(t,"followAdditionalWrappers"))?s.attr(t,"followAdditionalWrappers"):true;this.allowMultipleAds=s.attr(t,"allowMultipleAds");this.fallbackOnNoAd=s.attr(t,"fallbackOnNoAd")}e.exports=o},{"../../utils/utilityFunctions":47,"../../utils/xml":48,"./Creative":17,"./vastUtil":30}],29:[function(t,e,i){"use strict";var n=t("../../utils/utilityFunctions");var r=/(\\d\\d):(\\d\\d):(\\d\\d)(\\.(\\d\\d\\d))?/;var a={duration:function s(t){var e,i;if(n.isString(t)){e=t.match(r);if(e){i=a(e[1])+s(e[2])+o(e[3])+parseInt(e[5]||0)}}return isNaN(i)?null:i;function a(t){return parseInt(t,10)*60*60*1e3}function s(t){return parseInt(t,10)*60*1e3}function o(t){return parseInt(t,10)*1e3}},offset:function o(t,e){if(i(t)){return n(t,e)}return a.duration(t);function i(t){var e=/^\\d+(\\.\\d+)?%$/g;return e.test(t)}function n(t,e){if(e){return r(e,parseFloat(t.replace("%","")))}return null}function r(t,e){return t*e/100}}};e.exports=a},{"../../utils/utilityFunctions":47}],30:[function(t,e,i){"use strict";var n=t("../../utils/utilityFunctions");var r=t("../vpaid/VPAIDHTML5Tech");var a=t("../vpaid/VPAIDFlashTech");var s=t("VPAIDFLASHClient/js/VPAIDFLASHClient");var o={track:function u(t,e){var i=o.parseURLMacros(t,e);var n=[];i.forEach(function(t){var e=new Image;e.src=t;n.push(e)});return n},parseURLMacros:function l(t,e){var i=[];e=e||{};if(!e["CACHEBUSTING"]){e["CACHEBUSTING"]=Math.round(Math.random()*1e10)}t.forEach(function(t){i.push(o._parseURLMacro(t,e))});return i},parseURLMacro:function c(t,e){e=e||{};if(!e["CACHEBUSTING"]){e["CACHEBUSTING"]=Math.round(Math.random()*1e10)}return o._parseURLMacro(t,e)},_parseURLMacro:function d(t,e){e=e||{};n.forEach(e,function(e,i){t=t.replace(new RegExp("\\\\["+i+"\\\\]","gm"),e)});return t},parseDuration:function f(t){var e=/(\\d\\d):(\\d\\d):(\\d\\d)(\\.(\\d\\d\\d))?/;var i,r;if(n.isString(t)){i=t.match(e);if(i){r=a(i[1])+s(i[2])+o(i[3])+parseInt(i[5]||0)}}return isNaN(r)?null:r;function a(t){return parseInt(t,10)*60*60*1e3}function s(t){return parseInt(t,10)*60*1e3}function o(t){return parseInt(t,10)*1e3}},parseImpressions:function h(t){if(t){t=n.isArray(t)?t:[t];return n.transformArray(t,function(t){if(n.isNotEmptyString(t.keyValue)){return t.keyValue}return undefined})}return[]},formatProgress:function p(t){var e,i,r,a;e=t/(60*60*1e3);e=Math.floor(e);i=t/(60*1e3)%60;i=Math.floor(i);r=t/1e3%60;r=Math.floor(r);a=t%1e3;return n.toFixedDigits(e,2)+":"+n.toFixedDigits(i,2)+":"+n.toFixedDigits(r,2)+"."+n.toFixedDigits(a,3)},parseOffset:function v(t,e){if(i(t)){return n(t,e)}return o.parseDuration(t);function i(t){var e=/^\\d+(\\.\\d+)?%$/g;return e.test(t)}function n(t,e){if(e){return r(e,parseFloat(t.replace("%","")))}return null}function r(t,e){return t*e/100}},VPAID_techs:[a,r],isVPAID:function g(t){return!!t&&t.apiFramework==="VPAID"},findSupportedVPAIDTech:function y(t){var e,i,n;for(e=0,i=this.VPAID_techs.length;e-1&&l.VPAIDFLASHClient.isSupported()};l.prototype.loadAdUnit=function c(t,e,i){var n=this;var a=this.settings&&this.settings.vpaidFlashLoaderPath?{data:this.settings.vpaidFlashLoaderPath}:undefined;c(t,i);this.containerEl=t;u.debug(" loading VPAIDFLASHClient with opts:",a);this.vpaidFlashClient=new l.VPAIDFLASHClient(t,function(t){if(t){return i(t)}u.info(" calling VPAIDFLASHClient.loadAdUnit(); that.mediaFile:",n.mediaFile);n.vpaidFlashClient.loadAdUnit(n.mediaFile.src,i)},a);function c(t,e){if(!o.isDomElement(t)){throw new r("on VPAIDFlashTech.loadAdUnit, invalid dom container element")}if(!s.isFunction(e)){throw new r("on VPAIDFlashTech.loadAdUnit, missing valid callback")}}};l.prototype.unloadAdUnit=function(){if(this.vpaidFlashClient){try{this.vpaidFlashClient.destroy()}catch(t){u.error("VAST ERROR: trying to unload the VPAID adunit")}this.vpaidFlashClient=null}if(this.containerEl){o.remove(this.containerEl);this.containerEl=null}};e.exports=l},{"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/mimetypes":44,"../../utils/utilityFunctions":47,"../vast/VASTError":23,"VPAIDFLASHClient/js/VPAIDFLASHClient":3}],33:[function(t,e,i){"use strict";var n=t("../../utils/mimetypes");var r=t("../vast/VASTError");var a=t("VPAIDHTML5Client/js/VPAIDHTML5Client");var s=t("../../utils/utilityFunctions");var o=t("../../utils/dom");var u=t("../../utils/consoleLogger");function l(t){if(!(this instanceof l)){return new l(t)}e(t);this.name="vpaid-html5";this.containerEl=null;this.videoEl=null;this.vpaidHTMLClient=null;this.mediaFile=t;function e(t){if(!t||!s.isString(t.src)){throw new r(l.INVALID_MEDIA_FILE)}}}l.VPAIDHTML5Client=a;l.supports=function(t){return!s.isOldIE()&&n.html5.indexOf(t)>-1};l.prototype.loadAdUnit=function d(t,e,i){n(t,e,i);this.containerEl=t;this.videoEl=e;this.vpaidHTMLClient=new l.VPAIDHTML5Client(t,e,{});this.vpaidHTMLClient.loadAdUnit(this.mediaFile.src,i);function n(t,e,i){if(!o.isDomElement(t)){throw new r(l.INVALID_DOM_CONTAINER_EL)}if(!o.isDomElement(e)||e.tagName.toLowerCase()!=="video"){throw new r(l.INVALID_DOM_CONTAINER_EL)}if(!s.isFunction(i)){throw new r(l.MISSING_CALLBACK)}}};l.prototype.unloadAdUnit=function f(){if(this.vpaidHTMLClient){try{this.vpaidHTMLClient.destroy()}catch(t){u.error("VAST ERROR: trying to unload the VPAID adunit")}this.vpaidHTMLClient=null}if(this.containerEl){o.remove(this.containerEl);this.containerEl=null}};var c="on VPAIDHTML5Tech";l.INVALID_MEDIA_FILE=c+", invalid MediaFile";l.INVALID_DOM_CONTAINER_EL=c+", invalid container HtmlElement";l.INVALID_DOM_VIDEO_EL=c+", invalid HTMLVideoElement";l.MISSING_CALLBACK=c+", missing valid callback";e.exports=l},{"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/mimetypes":44,"../../utils/utilityFunctions":47,"../vast/VASTError":23,"VPAIDHTML5Client/js/VPAIDHTML5Client":11}],34:[function(t,e,i){"use strict";var n=t("../../utils/mimetypes");var r=t("../vast/VASTError");var a=t("../vast/VASTResponse");var s=t("../vast/VASTTracker");var o=t("../vast/vastUtil");var u=t("./VPAIDAdUnitWrapper");var l=t("../../utils/async");var c=t("../../utils/dom");var d=t("../../utils/playerUtils");var f=t("../../utils/utilityFunctions");var h=t("../../utils/consoleLogger");function p(t,e){if(!(this instanceof p)){return new p(t)}this.VIEW_MODE={NORMAL:"normal",FULLSCREEN:"fullscreen",THUMBNAIL:"thumbnail"};this.player=t;this.containerEl=i(t);this.options={responseTimeout:5e3,VPAID_VERSION:"2.0"};this.settings=e;function i(){var e=document.createElement("div");c.addClass(e,"VPAID-container");t.el().insertBefore(e,t.controlBar.el());return e}}p.prototype.playAd=function y(t,e){if(!(t instanceof a)){return e(new r("on VASTIntegrator.playAd, missing required VASTResponse"))}var i=this;var n=this.player;h.debug(" looking for supported tech...");var s=this._findSupportedTech(t,this.settings);e=e||f.noop;this._adUnit=null;c.addClass(n.el(),"vjs-vpaid-ad");n.on("vast.adsCancel",d);n.one("vpaid.adEnd",function(){n.off("vast.adsCancel",d);p()});if(s){h.info(" found tech: ",s);l.waterfall([function(e){e(null,s,t)},this._loadAdUnit.bind(this),this._playAdUnit.bind(this),this._finishPlaying.bind(this)],u);this._adUnit={_paused:true,type:"VPAID",pauseAd:function(){n.trigger("vpaid.pauseAd");n.pause(true)},resumeAd:function(){n.trigger("vpaid.resumeAd")},isPaused:function(){return this._paused},getSrc:function(){return s.mediaFile}}}else{h.debug(" could not find suitable tech");var o=new r("on VPAIDIntegrator.playAd, could not find a supported mediaFile",403);u(o,this._adUnit,t)}return this._adUnit;function u(t,r,a){if(t&&a){i._trackError(a,t.code)}n.trigger("vpaid.adEnd");e(t,a)}function d(){n.trigger("vpaid.adEnd")}function p(){if(s){s.unloadAdUnit()}c.removeClass(n.el(),"vjs-vpaid-ad")}};p.prototype._findSupportedTech=function(t,e){if(!(t instanceof a)){return null}var i=t.mediaFiles.filter(o.isVPAID);var r=e&&e.preferredTech;var s=[];var u,l,c,d,f;for(u=0,l=i.length;u-1:false;if(f){return new d(c,e)}s.push({mediaFile:c,tech:d})}if(s.length){var h=s[0];return new h.tech(h.mediaFile,e)}return null};p.prototype._createVPAIDAdUnitWrapper=function(t,e,i){return new u(t,{src:e,responseTimeout:i})};p.prototype._loadAdUnit=function(t,e,i){var n=this;var r=this.player;var a=r.el().querySelector(".vjs-tech");var s=this.settings.responseTimeout||this.options.responseTimeout;t.loadAdUnit(this.containerEl,a,function(a,o){if(a){return i(a,o,e)}try{var u=n._createVPAIDAdUnitWrapper(o,t.mediaFile.src,s);var l="vjs-"+t.name+"-ad";c.addClass(r.el(),l);r.one("vpaid.adEnd",function(){c.removeClass(r.el(),l)});i(null,u,e)}catch(d){i(d,o,e)}})};p.prototype._playAdUnit=function(t,e,i){l.waterfall([function(i){i(null,t,e)},this._handshake.bind(this),this._initAd.bind(this),this._setupEvents.bind(this),this._addSkipButton.bind(this),this._linkPlayerControls.bind(this),this._startAd.bind(this)],i)};p.prototype._handshake=function m(t,e,i){t.handshakeVersion(this.options.VPAID_VERSION,function(a,s){if(a){return i(a,t,e)}if(s&&n(s)){return i(null,t,e)}return i(new r(\'on VPAIDIntegrator._handshake, unsupported version "\'+s+\'"\'),t,e)});function n(t){var e=a(t);return e>=1&&e<=2}function a(t){var e=t.split(".");return parseInt(e[0],10)}};p.prototype._initAd=function(t,e,i){var n=this.player.el().querySelector(".vjs-tech");var r=c.getDimension(n);t.initAd(r.width,r.height,this.VIEW_MODE.NORMAL,-1,{AdParameters:e.adParameters||""},function(n){i(n,t,e)})};p.prototype._createVASTTracker=function(t,e){return new s(t,e)};p.prototype._setupEvents=function(t,e,i){var n=t.options.src;var r=this._createVASTTracker(n,e);var a=this.player;var s=this;t.on("AdSkipped",function(){a.trigger("vpaid.AdSkipped");r.trackSkip()});t.on("AdImpression",function(){a.trigger("vpaid.AdImpression");r.trackImpressions()});t.on("AdStarted",function(){a.trigger("vpaid.AdStarted");r.trackCreativeView();u()});t.on("AdVideoStart",function(){a.trigger("vpaid.AdVideoStart");r.trackStart();u()});t.on("AdPlaying",function(){a.trigger("vpaid.AdPlaying");r.trackResume();u()});t.on("AdPaused",function(){a.trigger("vpaid.AdPaused");r.trackPause();l()});function u(){if(s._adUnit&&s._adUnit.isPaused()){s._adUnit._paused=false}a.trigger("play")}function l(){if(s._adUnit){s._adUnit._paused=true}a.trigger("pause")}t.on("AdVideoFirstQuartile",function(){a.trigger("vpaid.AdVideoFirstQuartile");r.trackFirstQuartile()});t.on("AdVideoMidpoint",function(){a.trigger("vpaid.AdVideoMidpoint");r.trackMidpoint()});t.on("AdVideoThirdQuartile",function(){a.trigger("vpaid.AdVideoThirdQuartile");r.trackThirdQuartile()});t.on("AdVideoComplete",function(){a.trigger("vpaid.AdVideoComplete");r.trackComplete()});t.on("AdClickThru",function(i){a.trigger("vpaid.AdClickThru");var n=i.url;var s=i.playerHandles;var u=f.isNotEmptyString(n)?n:l(e.clickThrough);r.trackClick();if(s&&u){window.open(u,"_blank")}function l(e){var i={ASSETURI:t.options.src,CONTENTPLAYHEAD:0};return e?o.parseURLMacro(e,i):null}});t.on("AdUserAcceptInvitation",function(){a.trigger("vpaid.AdUserAcceptInvitation");r.trackAcceptInvitation();r.trackAcceptInvitationLinear()});t.on("AdUserClose",function(){a.trigger("vpaid.AdUserClose");r.trackClose();r.trackCloseLinear()});t.on("AdUserMinimize",function(){a.trigger("vpaid.AdUserMinimize");r.trackCollapse()});t.on("AdError",function(){a.trigger("vpaid.AdError");r.trackErrorWithCode(901)});t.on("AdVolumeChange",function(){a.trigger("vpaid.AdVolumeChange");var e=a.volume();t.getAdVolume(function(t,i){if(e!==i){if(i===0&&e>0){r.trackMute()}if(i>0&&e===0){r.trackUnmute()}a.volume(i)}})});var d=v.bind(this,a,t,this.VIEW_MODE);var h=f.throttle(d,100);var p=this.settings.autoResize;if(p){c.addEventListener(window,"resize",h);c.addEventListener(window,"orientationchange",h)}a.on("vast.resize",d);a.on("vpaid.pauseAd",g);a.on("vpaid.resumeAd",y);a.one("vpaid.adEnd",function(){a.off("vast.resize",d);a.off("vpaid.pauseAd",g);a.off("vpaid.resumeAd",y);if(p){c.removeEventListener(window,"resize",h);c.removeEventListener(window,"orientationchange",h)}});i(null,t,e);function g(){t.pauseAd(f.noop)}function y(){t.resumeAd(f.noop)}};p.prototype._addSkipButton=function(t,e,i){var n;var r=this.player;t.on("AdSkippableStateChange",a);d.once(r,["vast.adEnd","vast.adsCancel"],o);i(null,t,e);function a(){r.trigger("vpaid.AdSkippableStateChange");t.getAdSkippableState(function(t,e){if(e){if(!n){s(r)}}else{o(r)}})}function s(t){n=u(t);t.el().appendChild(n)}function o(){c.remove(n);n=null}function u(){var e=window.document.createElement("div");c.addClass(e,"vast-skip-button");c.addClass(e,"enabled");e.innerHTML="Skip ad";e.onclick=function(e){t.skipAd(f.noop);if(window.Event.prototype.stopPropagation!==undefined){e.stopPropagation()}else{return false}};return e}};p.prototype._linkPlayerControls=function(t,e,i){var n=this;r(this.player,t);a(this.player,t,this.VIEW_MODE);i(null,t,e);function r(t,e){t.on("volumechange",i);e.on("AdVolumeChange",n);t.one("vpaid.adEnd",function(){t.off("volumechange",i)});function i(){var i=t.muted()?0:t.volume();e.setAdVolume(i,g)}function n(){t.trigger("vpaid.AdVolumeChange");var i=t.volume();e.getAdVolume(function(e,n){if(e){g(e)}else{if(i!==n){t.volume(n)}}})}}function a(t,e,i){var r=v.bind(n,t,e,i);t.on("fullscreenchange",r);t.one("vpaid.adEnd",function(){t.off("fullscreenchange",r)})}};p.prototype._startAd=function(t,e,i){var n=this.player;t.startAd(function(r){if(!r){n.trigger("vast.adStart")}i(r,t,e)})};p.prototype._finishPlaying=function(t,e,i){var n=this.player;t.on("AdStopped",function(){n.trigger("vpaid.AdStopped");a(null)});t.on("AdError",function(t){var e=t?t.message:"on VPAIDIntegrator, error while waiting for the adUnit to finish playing";a(new r(e))});function a(n){i(n,t,e)}};p.prototype._trackError=function A(t,e){o.track(t.errorURLMacros,{ERRORCODE:e||901})};function v(t,e,i){var n=t.el().querySelector(".vjs-tech");var r=c.getDimension(n);var a=t.isFullscreen()?i.FULLSCREEN:i.NORMAL;e.resizeAd(r.width,r.height,a,g)}function g(t){if(t){h.error("ERROR: "+t.message,t)}}e.exports=p},{"../../utils/async":40,"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/mimetypes":44,"../../utils/playerUtils":45,"../../utils/utilityFunctions":47,"../vast/VASTError":23,"../vast/VASTResponse":25,"../vast/VASTTracker":26,"../vast/vastUtil":30,"./VPAIDAdUnitWrapper":31}],35:[function(t,e,i){"use strict";var n=t("../../utils/dom");var r=document.createElement("div");r.className="vjs-ads-label vjs-control vjs-label-hidden";r.innerHTML="Advertisement";var a=function(t){return{init:function e(i,a){a.el=r;t.call(this,i,a);setTimeout(function(){var t=i.controlBar&&(i.controlBar.getChild("timerControls")||i.controlBar.getChild("currentTimeDisplay"));if(t){i.controlBar.el().insertBefore(r,t.el())}n.removeClass(r,"vjs-label-hidden")},0)},el:function i(){return r}}};e.exports=a},{"../../utils/dom":42}],36:[function(t,e,i){"use strict";var n=videojs.getComponent("Component");var r=t("./ads-label")(n);videojs.registerComponent("AdsLabel",videojs.extend(n,r))},{"./ads-label":35}],37:[function(t,e,i){"use strict";var n=document.createElement("div");var r=function(t){return{init:function e(i,r){r.el=n;n.className="vjs-black-poster";t.call(this,i,r);var a=i.getChild("posterImage");setTimeout(function(){if(a&&i&&i.el()){i.el().insertBefore(n,a.el())}},0)},el:function i(){return n}}};e.exports=r},{}],38:[function(t,e,i){"use strict";var n=videojs.getComponent("Component");var r=t("./black-poster")(n);videojs.registerComponent("BlackPoster",videojs.extend(n,r))},{"./black-poster":37}],39:[function(t,e,i){"use strict";var n=t("../ads/vast/VASTClient");var r=t("../ads/vast/VASTError");var a=t("../ads/vast/vastUtil");var s=t("../ads/vast/VASTIntegrator");var o=t("../ads/vpaid/VPAIDIntegrator");var u=t("../utils/async");var l=t("../utils/dom");var c=t("../utils/playerUtils");var d=t("../utils/utilityFunctions");var f=t("../utils/consoleLogger");e.exports=function h(t){var e;var i=this;var h=new n;var p=false;var v={timeout:500,iosPrerollCancelTimeout:2e3,adCancelTimeout:3e3,playAdAlways:false,adsEnabled:true,autoResize:true,vpaidFlashLoaderPath:"/VPAIDFlash.swf",verbosity:0};var g=d.extend({},v,t||{});if(d.isUndefined(g.adTagUrl)&&d.isDefined(g.url)){g.adTagUrl=g.url}if(d.isString(g.adTagUrl)){g.adTagUrl=d.echoFn(g.adTagUrl)}if(d.isDefined(g.adTagXML)&&!d.isFunction(g.adTagXML)){return b(new r("on VideoJS VAST plugin, the passed adTagXML option does not contain a function"))}if(!d.isDefined(g.adTagUrl)&&!d.isFunction(g.adTagXML)){return b(new r("on VideoJS VAST plugin, missing adTagUrl on options object"))}f.setVerbosity(g.verbosity);a.runFlashSupportCheck(g.vpaidFlashLoaderPath);c.prepareForAds(i);if(g.playAdAlways){i.on("vast.contentEnd",function(){setTimeout(function(){i.trigger("vast.reset")},0)})}i.on("vast.firstPlay",y);i.on("vast.reset",function(){e=null;m()});i.vast={isEnabled:function(){return g.adsEnabled},enable:function(){g.adsEnabled=true},disable:function(){g.adsEnabled=false}};return i.vast;function y(){c.removeNativePoster(i);c.once(i,["vast.adsCancel","vast.adEnd"],function(){t();n()});u.waterfall([s,o,h,A],function(t,e){if(t){b(t,e)}else{i.trigger("vast.adEnd")}});function t(){if(i.vast&&i.vast.adUnit){i.vast.adUnit=null}}function n(){a();if(e){c.restorePlayerSnapshot(i,e);e=null}}function a(){c.once(i,["playing","vast.reset","vast.firstPlay"],function(t){if(t.type!=="playing"){return}i.trigger("vast.contentStart");c.once(i,["ended","vast.reset","vast.firstPlay"],function(t){if(t.type==="ended"){i.trigger("vast.contentEnd")}})})}function s(t){if(g.adsEnabled){return t(null)}t(new r("Ads are not enabled"))}function o(t){if(f()){e=c.getPlayerSnapshot(i);i.pause();v();if(i.paused()){t(null)}else{c.once(i,["playing"],function(){i.pause();t(null)})}}else{t(new r("video content has been playing before preroll ad"))}}function f(){return!d.isIPhone()||i.currentTime()<=g.iosPrerollCancelTimeout}function h(t){var e;p=false;e=setTimeout(function(){b(new r("timeout while waiting for the video to start playing",402))},g.adCancelTimeout);c.once(i,["vast.adStart","vast.adsCancel"],n);function n(){if(e){clearTimeout(e);e=null}}t(null)}function v(){l.addClass(i.el(),"vjs-vast-ad-loading");c.once(i,["vast.adStart","vast.adsCancel"],y)}function y(){setTimeout(function(){l.removeClass(i.el(),"vjs-vast-ad-loading")},100)}}function m(){i.trigger("vast.adsCancel");p=true}function A(t){u.waterfall([k,_],t)}function k(t){h.getVASTResponse(g.adTagUrl?g.adTagUrl():g.adTagXML,t)}function _(t,e){if(p){return}var n=w(t)?new o(i,g):new s(i);var r=false;c.once(i,["vast.adStart","vast.adsCancel"],function(t){if(t.type==="vast.adStart"){a()}});c.once(i,["vast.adEnd","vast.adsCancel"],u);if(d.isIDevice()){l()}i.vast.vastResponse=t;f.debug("calling adIntegrator.playAd() with vastResponse:",t);i.vast.adUnit=n.playAd(t,e);function a(){if(r||i.controlBar.getChild("AdsLabel")){return}i.controlBar.addChild("AdsLabel")}function u(){i.controlBar.removeChild("AdsLabel");r=true}function l(){var t=3;var e=0;var n=0;i.on("timeupdate",a);i.on("ended",r);c.once(i,["vast.adEnd","vast.adsCancel","vast.adError"],s);function r(){if(i.duration()-e>t){i.pause(true);i.play(true);i.currentTime(e)}}function a(){var r=i.currentTime();var a=Math.abs(r-e);if(a>t){n+=1;if(n>=2){i.pause(true)}i.currentTime(e)}else{e=r}}function s(){i.off("timeupdate",a);i.off("ended",r)}}}function b(t,e){i.trigger({type:"vast.adError",error:t});m();f.error("AD ERROR:",t.message,t,e)}function w(t){var e,i;var n=t.mediaFiles;for(e=0,i=n.length;e0&&typeof e[0]==="string"){e[0]=r+e[0]}if(t.apply){t.apply(console,Array.prototype.slice.call(e))}else{t(Array.prototype.slice.call(e))}}function o(){if(n<4){return}if(typeof console.debug==="undefined"){s(console.log,arguments)}else{s(console.debug,arguments)}}function u(){if(n<3){return}s(console.log,arguments)}function l(){if(n<2){return}s(console.info,arguments)}function c(){if(n<1){return}s(console.warn,arguments)}function d(){s(console.error,arguments)}var f={setVerbosity:a,debug:o,log:u,info:l,warn:c,error:d};if(typeof console==="undefined"||!console.log){f.debug=function(){};f.log=function(){};f.info=function(){};f.warn=function(){};f.error=function(){}}e.exports=f},{}],42:[function(t,e,i){"use strict";var n=t("./utilityFunctions");var r={};r.isVisible=function a(t){var e=window.getComputedStyle(t);return e.visibility!=="hidden"};r.isHidden=function s(t){var e=window.getComputedStyle(t);return e.display==="none"};r.isShown=function o(t){return!r.isHidden(t)};r.hide=function u(t){t.__prev_style_display_=t.style.display;t.style.display="none"};r.show=function l(t){if(r.isHidden(t)){t.style.display=t.__prev_style_display_}t.__prev_style_display_=undefined};r.hasClass=function c(t,e){var i,r,a;if(n.isNotEmptyString(e)){if(t.classList){return t.classList.contains(e)}i=n.isString(t.getAttribute("class"))?t.getAttribute("class").split(/\\s+/):[];e=e||"";for(r=0,a=i.length;r0){u=setTimeout(function(){l&&l.abort()},o)}function c(t,e,i){if(!r.isString(t)||r.isEmptyString(t)){throw new a("Invalid url \'"+t+"\'")}if(!r.isFunction(e)){throw new a("Invalid handler \'"+e+"\' for the http request")}if(r.isDefined(i)&&!r.isObject(i)){throw new a("Invalid options map \'"+i+"\'")}}function d(t,e){r.forEach(e,function(e,i){if(r.isDefined(e)){t.setRequestHeader(i,e)}})}function f(){i(-1,null,null,"")}};s.prototype.get=function(t,e,i){this.run("GET",t,n,i);function n(t,i,n,s){if(r(t)){e(null,i,t,n,s)}else{e(new a(s),i,t,n,s)}}function r(t){return 200<=t&&t<300}};function o(){var t=new XMLHttpRequest;if(!("withCredentials"in t)){t=new XDomainRequest}return t}var u=new s(o);e.exports={http:u,HttpRequest:s,HttpRequestError:a,createXhr:o}},{"./urlUtils":46,"./utilityFunctions":47}],44:[function(t,e,i){"use strict";e.exports={html5:["text/javascript","text/javascript1.0","text/javascript1.2","text/javascript1.4","text/jscript","application/javascript","application/x-javascript","text/ecmascript","text/ecmascript1.0","text/ecmascript1.2","text/ecmascript1.4","text/livescript","application/ecmascript","application/x-ecmascript"],\nflash:["application/x-shockwave-flash"]}},{}],45:[function(t,e,i){"use strict";var n=t("./dom");var r=t("./utilityFunctions");var a={};a.getPlayerSnapshot=function s(t){var e=t.el().querySelector(".vjs-tech");var i={ended:t.ended(),src:t.currentSrc(),currentTime:t.currentTime(),type:t.currentType(),playing:!t.paused(),suppressedTracks:n(t)};if(e){i.nativePoster=e.poster;i.style=e.getAttribute("style")}return i;function n(t){var e=t.remoteTextTracks?t.remoteTextTracks():[];if(e&&r.isArray(e.tracks_)){e=e.tracks_}if(!r.isArray(e)){e=[]}var i=[];e.forEach(function(t){i.push({track:t,mode:t.mode});t.mode="disabled"});return i}};a.restorePlayerSnapshot=function o(t,e){var i=t.el().querySelector(".vjs-tech");var n=20;if(e.nativePoster){i.poster=e.nativePoster}if("style"in e){i.setAttribute("style",e.style||"")}if(s(t,e)){t.one("contentloadedmetadata",o);t.one("canplay",u);r();t.src({src:e.src,type:e.type});t.load()}else{o();if(e.playing){t.play()}}function r(){var e=setTimeout(function(){t.trigger("canplay")},1e3);t.one("canplay",function(){clearTimeout(e)})}function s(t,e){if(t.src()){return t.src()!==e.src}return t.currentSrc()!==e.src}function o(){var t=e.suppressedTracks;t.forEach(function(t){t.track.mode=t.mode})}function u(){if(!a.isReadyToResume(t)&&n--){setTimeout(u,50)}else{try{if(t.currentTime()!==e.currentTime){if(e.playing){t.one("seeked",function(){t.play()})}t.currentTime(e.currentTime)}else if(e.playing){t.play()}}catch(i){videojs.log.warn("Failed to resume the content after an advertisement",i)}}}};a.isReadyToResume=function(t){if(t.readyState()>1){return true}if(t.seekable()===undefined){return true}if(t.seekable().length>0){return true}return false};a.prepareForAds=function(t){var e=t.addChild("blackPoster");var i=true;var a;s();t.on("play",u);t.on("vast.reset",l);t.on("vast.firstPlay",f);t.on("error",p);t.on("vast.adStart",p);t.on("vast.adsCancel",p);t.on("vast.adError",p);t.on("vast.adStart",v);t.on("vast.adEnd",g);t.on("vast.adsCancel",g);function s(){var e=t.play;t.play=function(i){var n=this;if(c()){s()}else{u(i)}return this;function s(){if(!r.isIPhone()){a=d();t.muted(true)}e.apply(n,arguments)}function u(i){if(o()&&!i){t.vast.adUnit.resumeAd()}else{e.apply(n,arguments)}}};var i=t.pause;t.pause=function(e){if(o()&&!e){t.vast.adUnit.pauseAd()}else{i.apply(this,arguments)}return this};var n=t.paused;t.paused=function(e){if(o()&&!e){return t.vast.adUnit.isPaused()}return n.apply(this,arguments)}}function o(){return t.vast&&t.vast.adUnit}function u(){if(c()){i=false;t.trigger("vast.firstPlay")}}function l(){i=true;e.show();f()}function c(){return i}function d(){return{muted:t.muted(),volume:t.volume()}}function f(){if(a){t.currentTime(0);h(a);a=null}}function h(e){if(r.isObject(e)){t.volume(e.volume);t.muted(e.muted)}}function p(){if(!n.hasClass(e.el(),"vjs-hidden")){e.hide()}}function v(){n.addClass(t.el(),"vjs-ad-playing")}function g(){n.removeClass(t.el(),"vjs-ad-playing")}};a.removeNativePoster=function(t){var e=t.el().querySelector(".vjs-tech");if(e){e.removeAttribute("poster")}};a.once=function u(t,e,i){function n(){i.apply(null,arguments);e.forEach(function(e){t.off(e,n)})}e.forEach(function(e){t.on(e,n)})};e.exports=a},{"./dom":42,"./utilityFunctions":47}],46:[function(t,e,i){"use strict";var n=t("./utilityFunctions");var r=document.createElement("a");var a=document.documentMode;function s(t){var e=t;if(a){r.setAttribute("href",e);e=r.href}r.setAttribute("href",e);return{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:n.isNotEmptyString(r.port)?r.port:80,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}function o(t,e){var i,r;e=n.isFunction(e)?e:function(){return true};t=t.trim().replace(/^\\?/,"");i=t.split("&");r={};n.forEach(i,function(t){var i,n,a;if(t!==""){i=t.split("=");n=i[0];a=i[1];if(e(n,a)){r[n]=a}}});return r}function u(t){var e=[];n.forEach(t,function(t,i){e.push(i+"="+t)});return e.join("&")}e.exports={urlParts:s,queryStringToObj:o,objToQueryString:u}},{"./utilityFunctions":47}],47:[function(t,e,i){"use strict";var n=1;var r=/[A-Z]/g;var a=/^[a-z0-9!#$%&\'*+\\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/i;var s=/^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$/;function o(){}function u(t){return t===null}function l(t){return t!==undefined}function c(t){return t===undefined}function d(t){return typeof t==="object"}function f(t){return typeof t==="function"}function h(t){return typeof t==="number"}function p(t){return j.isObject(t)&&t.window===t}function v(t){return Object.prototype.toString.call(t)==="[object Array]"}function g(t){if(t===null||j.isWindow(t)||j.isFunction(t)||j.isUndefined(t)){return false}var e=t.length;if(t.nodeType===n&&e){return true}return j.isString(t)||j.isArray(t)||e===0||typeof e==="number"&&e>0&&e-1 in t}function y(t){return typeof t==="string"}function m(t){return j.isString(t)&&t.length===0}function A(t){return j.isString(t)&&t.length!==0}function k(t){return Array.prototype.slice.call(t)}function _(t,e,i){var n,r;if(t){if(f(t)){for(n in t){if(n!=="prototype"&&n!=="length"&&n!=="name"&&(!t.hasOwnProperty||t.hasOwnProperty(n))){e.call(i,t[n],n,t)}}}else if(v(t)){var a=typeof t!=="object";for(n=0,r=t.length;n=e){i=n;t.apply(this,arguments)}}}function F(t,e){var i;return function(){if(i){clearTimeout(i)}i=setTimeout(function(){t.apply(this,arguments);i=undefined},e)}}function L(t,e,i){var n=e(t);for(var r=0;r0}return t.getElementsByTagNameNS(n,"parsererror").length>0}catch(r){}}};r.parseText=function s(t){if(/^\\s*$/.test(t)){return null}if(/^(?:true|false)$/i.test(t)){return t.toLowerCase()==="true"}if(isFinite(t)){return parseFloat(t)}if(n.isISO8601(t)){return new Date(t)}return t.trim()};r.JXONTree=function o(t){var e=r.parseText;if(t.documentElement){return new r.JXONTree(t.documentElement)}if(t.hasChildNodes()){var i="";for(var a,s,o,u=0;u0:t.hasAttributes();if(l){var c;for(var d=0;d/g,">").replace(/"/g,""").replace(/\'/g,"'")};r.decode=function f(t){if(!n.isString(t))return undefined;return t.replace(/'/g,"\'").replace(/"/g,\'"\').replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")};e.exports=r},{"./utilityFunctions":47}],49:[function(t,e,i){"use strict";t("./plugin/components/ads-label_5");t("./plugin/components/black-poster_5");var n=t("./plugin/videojs.vast.vpaid");videojs.plugin("vastClient",n)},{"./plugin/components/ads-label_5":36,"./plugin/components/black-poster_5":38,"./plugin/videojs.vast.vpaid":39}]},{},[49]);\n//# sourceMappingURL=videojs_5.vast.vpaid.min.js.map\n'},function(e,t,n){"use strict";var r={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=r},function(e,t,n){"use strict";var r=n(4),a=n(51),i={focusDOMComponent:function(){a(r.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function a(e){switch(e){case"topCompositionStart":return C.compositionStart;case"topCompositionEnd":return C.compositionEnd;case"topCompositionUpdate":return C.compositionUpdate}}function i(e,t){return"topKeyDown"===e&&t.keyCode===y}function o(e,t){switch(e){case"topKeyUp":return-1!==g.indexOf(t.keyCode);case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r){var c,u;if(m?c=a(e):A?o(e,n)&&(c=C.compositionEnd):i(e,n)&&(c=C.compositionStart),!c)return null;T&&(A||c!==C.compositionStart?c===C.compositionEnd&&A&&(u=A.getData()):A=h.getPooled(r));var l=b.getPooled(c,t,n,r);if(u)l.data=u;else{var d=s(n);null!==d&&(l.data=d)}return f.accumulateTwoPhaseDispatches(l),l}function u(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==E?null:(S=!0,k);case"topTextInput":var n=t.data;return n===k&&S?null:n;default:return null}}function l(e,t){if(A){if("topCompositionEnd"===e||!m&&o(e,t)){var n=A.getData();return h.release(A),A=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return T?null:t.data;default:return null}}function d(e,t,n,r){var a;if(!(a=w?u(e,n):l(e,n)))return null;var i=v.getPooled(C.beforeInput,t,n,r);return i.data=a,f.accumulateTwoPhaseDispatches(i),i}var f=n(20),p=n(5),h=n(110),b=n(147),v=n(150),g=[9,13,27,32],y=229,m=p.canUseDOM&&"CompositionEvent"in window,_=null;p.canUseDOM&&"documentMode"in document&&(_=document.documentMode);var w=p.canUseDOM&&"TextEvent"in window&&!_&&!function(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}(),T=p.canUseDOM&&(!m||_&&_>8&&_<=11),E=32,k=String.fromCharCode(E),C={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},S=!1,A=null,j={eventTypes:C,extractEvents:function(e,t,n,r){return[c(e,t,n,r),d(e,t,n,r)]}};e.exports=j},function(e,t,n){"use strict";var r=n(54),a=n(5),i=(n(7),n(87),n(156)),o=n(94),s=n(97),c=(n(1),s(function(e){return o(e)})),u=!1,l="cssFloat";if(a.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(l="styleFloat")}var f={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];null!=a&&(n+=c(r)+":",n+=i(r,a,t)+";")}return n||null},setValueForStyles:function(e,t,n){var a=e.style;for(var o in t)if(t.hasOwnProperty(o)){var s=i(o,t[o],n);if("float"!==o&&"cssFloat"!==o||(o=l),s)a[o]=s;else{var c=u&&r.shorthandPropertyExpansions[o];if(c)for(var d in c)a[d]="";else a[o]=""}}}};e.exports=f},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function a(e){var t=E.getPooled(A.change,x,e,k(e));m.accumulateTwoPhaseDispatches(t),T.batchedUpdates(i,t)}function i(e){y.enqueueEvents(e),y.processEventQueue(!1)}function o(e,t){j=e,x=t,j.attachEvent("onchange",a)}function s(){j&&(j.detachEvent("onchange",a),j=null,x=null)}function c(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(s(),o(t,n)):"topBlur"===e&&s()}function l(e,t){j=e,x=t,O=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(j,"value",D),j.attachEvent?j.attachEvent("onpropertychange",f):j.addEventListener("propertychange",f,!1)}function d(){j&&(delete j.value,j.detachEvent?j.detachEvent("onpropertychange",f):j.removeEventListener("propertychange",f,!1),j=null,x=null,O=null,P=null)}function f(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==O&&(O=t,a(e))}}function p(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),l(t,n)):"topBlur"===e&&d()}function b(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&j&&j.value!==O)return O=j.value,x}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var y=n(19),m=n(20),_=n(5),w=n(4),T=n(8),E=n(9),k=n(42),C=n(43),S=n(71),A={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},j=null,x=null,O=null,P=null,M=!1;_.canUseDOM&&(M=C("change")&&(!document.documentMode||document.documentMode>8));var I=!1;_.canUseDOM&&(I=C("input")&&(!document.documentMode||document.documentMode>11));var D={get:function(){return P.get.call(this)},set:function(e){O=""+e,P.set.call(this,e)}},N={eventTypes:A,extractEvents:function(e,t,n,a){var i,o,s=t?w.getNodeFromInstance(t):window;if(r(s)?M?i=c:o=u:S(s)?I?i=p:(i=b,o=h):v(s)&&(i=g),i){var l=i(e,t);if(l){var d=E.getPooled(A.change,l,n,a);return d.type="change",m.accumulateTwoPhaseDispatches(d),d}}o&&o(e,s,t)}};e.exports=N},function(e,t,n){"use strict";var r=n(2),a=n(12),i=n(5),o=n(90),s=n(6),c=(n(0),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||r("56"),t||r("57"),"HTML"===e.nodeName&&r("58"),"string"==typeof t){var n=o(t,s)[0];e.parentNode.replaceChild(n,e)}else a.replaceChildWithTree(e,t)}});e.exports=c},function(e,t,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=r},function(e,t,n){"use strict";var r=n(20),a=n(4),i=n(24),o={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:o,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var c;if(s.window===s)c=s;else{var u=s.ownerDocument;c=u?u.defaultView||u.parentWindow:window}var l,d;if("topMouseOut"===e){l=t;var f=n.relatedTarget||n.toElement;d=f?a.getClosestInstanceFromNode(f):null}else l=null,d=t;if(l===d)return null;var p=null==l?c:a.getNodeFromInstance(l),h=null==d?c:a.getNodeFromInstance(d),b=i.getPooled(o.mouseLeave,l,n,s);b.type="mouseleave",b.target=p,b.relatedTarget=h;var v=i.getPooled(o.mouseEnter,d,n,s);return v.type="mouseenter",v.target=h,v.relatedTarget=p,r.accumulateEnterLeaveDispatches(b,v,l,d),[b,v]}};e.exports=s},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var a=n(3),i=n(11),o=n(69);a(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[o()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,a=this.getText(),i=a.length;for(e=0;e1?1-t:void 0;return this._fallbackText=a.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(13),a=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,o=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,c=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:a|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:c,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:a|i,muted:a|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:o,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:a|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:o,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function r(e,t,n,r){var a=void 0===e[n];null!=t&&a&&(e[n]=i(t,!0))}var a=n(14),i=n(70),o=(n(34),n(44)),s=n(73);n(1);void 0!==t&&t.env;var c={instantiateChildren:function(e,t,n,a){if(null==e)return null;var i={};return s(e,r,i),i},updateChildren:function(e,t,n,r,s,c,u,l,d){if(t||e){var f,p;for(f in t)if(t.hasOwnProperty(f)){p=e&&e[f];var h=p&&p._currentElement,b=t[f];if(null!=p&&o(h,b))a.receiveComponent(p,b,s,l),t[f]=p;else{p&&(r[f]=a.getHostNode(p),a.unmountComponent(p,!1));var v=i(b,!0);t[f]=v;var g=a.mountComponent(v,s,c,u,l,d);n.push(g)}}for(f in e)!e.hasOwnProperty(f)||t&&t.hasOwnProperty(f)||(p=e[f],r[f]=a.getHostNode(p),a.unmountComponent(p,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];a.unmountComponent(r,t)}}};e.exports=c}).call(t,n(53))},function(e,t,n){"use strict";var r=n(30),a=n(120),i={processChildrenUpdates:a.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function r(e){}function a(e){return!(!e.prototype||!e.prototype.isReactComponent)}function i(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var o=n(2),s=n(3),c=n(15),u=n(36),l=n(10),d=n(37),f=n(21),p=(n(7),n(64)),h=n(14),b=n(18),v=(n(0),n(29)),g=n(44),y=(n(1),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return t};var m=1,_={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=m++,this._hostParent=t,this._hostContainerInfo=n;var u,l=this._currentElement.props,d=this._processContext(s),p=this._currentElement.type,h=e.getUpdateQueue(),v=a(p),g=this._constructComponent(v,l,d,h);v||null!=g&&null!=g.render?i(p)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(u=g,null===g||!1===g||c.isValidElement(g)||o("105",p.displayName||p.name||"Component"),g=new r(p),this._compositeType=y.StatelessFunctional);g.props=l,g.context=d,g.refs=b,g.updater=h,this._instance=g,f.set(g,this);var _=g.state;void 0===_&&(g.state=_=null),("object"!=typeof _||Array.isArray(_))&&o("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=g.unstable_handleError?this.performInitialMountWithErrorHandling(u,t,n,e,s):this.performInitialMount(u,t,n,e,s),g.componentDidMount&&e.getReactMountReady().enqueue(g.componentDidMount,g),w},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var a=this._currentElement.type;return e?new a(t,n,r):a(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,a){var i,o=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,a)}catch(s){r.rollback(o),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),o=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(o),i=this.performInitialMount(e,t,n,r,a)}return i},performInitialMount:function(e,t,n,r,a){var i=this._instance,o=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var s=p.getType(e);this._renderedNodeType=s;var c=this._instantiateReactComponent(e,s!==p.EMPTY);this._renderedComponent=c;var u=h.mountComponent(c,r,t,n,this._processChildContext(a),o);return u},getHostNode:function(){return h.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";d.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(h.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return b;var r={};for(var a in n)r[a]=e[a];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(t=r.getChildContext()),t){"object"!=typeof n.childContextTypes&&o("107",this.getName()||"ReactCompositeComponent");for(var a in t)a in n.childContextTypes||o("108",this.getName()||"ReactCompositeComponent",a);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var r=this._currentElement,a=this._context;this._pendingElement=null,this.updateComponent(t,r,e,a,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?h.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,a){var i=this._instance;null==i&&o("136",this.getName()||"ReactCompositeComponent");var s,c=!1;this._context===a?s=i.context:(s=this._processContext(a),c=!0);var u=t.props,l=n.props;t!==n&&(c=!0),c&&i.componentWillReceiveProps&&i.componentWillReceiveProps(l,s);var d=this._processPendingState(l,s),f=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?f=i.shouldComponentUpdate(l,d,s):this._compositeType===y.PureClass&&(f=!v(u,l)||!v(i.state,d))),this._updateBatchNumber=null,f?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,l,d,s,e,a)):(this._currentElement=n,this._context=a,i.props=l,i.state=d,i.context=s)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,a=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(a&&1===r.length)return r[0];for(var i=s({},a?r[0]:n.state),o=a?1:0;o=0||null!=t.is}function h(e){var t=e.type;f(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var b=n(2),v=n(3),g=n(103),y=n(105),m=n(12),_=n(31),w=n(13),T=n(56),E=n(19),k=n(32),C=n(23),S=n(57),A=n(4),j=n(121),x=n(122),O=n(58),P=n(125),M=(n(7),n(134)),I=n(139),D=(n(6),n(26)),N=(n(0),n(43),n(29),n(45),n(1),S),R=E.deleteListener,L=A.getNodeFromInstance,F=C.listenTo,V=k.registrationNameModules,U={string:!0,number:!0},B="__html",H={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},q=11,z={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},W={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},W),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,G={},Q={}.hasOwnProperty,$=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=$++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(l,this);break;case"input":j.mountWrapper(this,i,t),i=j.getHostProps(this,i),e.getReactMountReady().enqueue(l,this);break;case"option":x.mountWrapper(this,i,t),i=x.getHostProps(this,i);break;case"select":O.mountWrapper(this,i,t),i=O.getHostProps(this,i),e.getReactMountReady().enqueue(l,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(l,this)}a(this,i);var o,d;null!=t?(o=t._namespaceURI,d=t._tag):n._tag&&(o=n._namespaceURI,d=n._tag),(null==o||o===_.svg&&"foreignobject"===d)&&(o=_.html),o===_.html&&("svg"===this._tag?o=_.svg:"math"===this._tag&&(o=_.mathml)),this._namespaceURI=o;var f;if(e.useCreateElement){var p,h=n._ownerDocument;if(o===_.html)if("script"===this._tag){var b=h.createElement("div"),v=this._currentElement.type;b.innerHTML="<"+v+">",p=b.removeChild(b.firstChild)}else p=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else p=h.createElementNS(o,this._currentElement.type);A.precacheNode(this,p),this._flags|=N.hasCachedChildNodes,this._hostParent||T.setAttributeForRoot(p),this._updateDOMProperties(null,i,e);var y=m(p);this._createInitialChildren(e,i,r,y),f=y}else{var w=this._createOpenTagMarkupAndPutListeners(e,i),E=this._createContentMarkup(e,i,r);f=!E&&W[this._tag]?w+"/>":w+">"+E+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(c,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return f},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(null!=a)if(V.hasOwnProperty(r))a&&i(this,r,a,e);else{"style"===r&&(a&&(a=this._previousStyleCopy=v({},t.style)),a=y.createMarkupForStyles(a,this));var o=null;null!=this._tag&&p(this._tag,t)?H.hasOwnProperty(r)||(o=T.createMarkupForCustomAttribute(r,a)):o=T.createMarkupForProperty(r,a),o&&(n+=" "+o)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+T.createMarkupForRoot()),n+=" "+T.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",a=t.dangerouslySetInnerHTML;if(null!=a)null!=a.__html&&(r=a.__html);else{var i=U[typeof t.children]?t.children:null,o=null!=i?null:t.children;if(null!=i)r=D(i);else if(null!=o){var s=this.mountChildren(o,e,n);r=s.join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var a=t.dangerouslySetInnerHTML;if(null!=a)null!=a.__html&&m.queueHTML(r,a.__html);else{var i=U[typeof t.children]?t.children:null,o=null!=i?null:t.children;if(null!=i)""!==i&&m.queueText(r,i);else if(null!=o)for(var s=this.mountChildren(o,e,n),c=0;c"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=o},function(e,t,n){"use strict";var r={useCreateElement:!0,useFiber:!1};e.exports=r},function(e,t,n){"use strict";var r=n(30),a=n(4),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=a.getNodeFromInstance(e);r.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function r(){this._rootNodeID&&d.updateWrapper(this)}function a(e){var t=this._currentElement.props,n=c.executeOnChange(t,e);l.asap(r,this);var a=t.name;if("radio"===t.type&&null!=a){for(var o=u.getNodeFromInstance(this),s=o;s.parentNode;)s=s.parentNode;for(var d=s.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),f=0;ft.end?(n=t.end,r=t.start):(n=t.start,r=t.end),a.moveToElementText(e),a.moveStart("character",n),a.setEndPoint("EndToStart",a),a.moveEnd("character",r-n),a.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,a=Math.min(t.start,r),i=void 0===t.end?a:Math.min(t.end,r);if(!n.extend&&a>i){var o=i;i=a,a=o}var s=u(e,a),c=u(e,i);if(s&&c){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),a>i?(n.addRange(d),n.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),n.addRange(d))}}}var c=n(5),u=n(162),l=n(69),d=c.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:d?a:i,setOffsets:d?o:s};e.exports=f},function(e,t,n){"use strict";var r=n(2),a=n(3),i=n(30),o=n(12),s=n(4),c=n(26),u=(n(0),n(45),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});a(u.prototype,{mountComponent:function(e,t,n,r){var a=n._idCounter++,i=" react-text: "+a+" ";if(this._domID=a,this._hostParent=t,e.useCreateElement){var u=n._ownerDocument,l=u.createComment(i),d=u.createComment(" /react-text "),f=o(u.createDocumentFragment());return o.queueChild(f,o(l)),this._stringText&&o.queueChild(f,o(u.createTextNode(this._stringText))),o.queueChild(f,o(d)),s.precacheNode(this,l),this._closingComment=d,f}var p=c(this._stringText);return e.renderToStaticMarkup?p:""+p+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function a(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return u.asap(r,this),n}var i=n(2),o=n(3),s=n(35),c=n(4),u=n(8),l=(n(0),n(1),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=s.getValue(t),r=n;if(null==n){var o=t.defaultValue,c=t.children;null!=c&&(null!=o&&i("92"),Array.isArray(c)&&(c.length<=1||i("93"),c=c[0]),o=""+c),null==o&&(o=""),r=o}e._wrapperState={initialValue:""+r,listeners:null,onChange:a.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=c.getNodeFromInstance(e),r=s.getValue(t);if(null!=r){var a=""+r;a!==n.value&&(n.value=a),null==t.defaultValue&&(n.defaultValue=a)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=c.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){"_hostNode"in e||c("33"),"_hostNode"in t||c("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var a=0,i=t;i;i=i._hostParent)a++;for(;n-a>0;)e=e._hostParent,n--;for(;a-n>0;)t=t._hostParent,a--;for(var o=n;o--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function a(e,t){"_hostNode"in e||c("35"),"_hostNode"in t||c("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||c("36"),e._hostParent}function o(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var a;for(a=r.length;a-- >0;)t(r[a],"captured",n);for(a=0;a0;)n(c[u],"captured",i)}var c=n(2);n(0);e.exports={isAncestor:a,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:o,traverseEnterLeave:s}},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var a=n(3),i=n(8),o=n(25),s=n(6),c={initialize:s,close:function(){f.isBatchingUpdates=!1}},u={initialize:s,close:i.flushBatchedUpdates.bind(i)},l=[u,c];a(r.prototype,o,{getTransactionWrappers:function(){return l}});var d=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,a,i){var o=f.isBatchingUpdates;return f.isBatchingUpdates=!0,o?e(t,n,r,a,i):d.perform(e,null,t,n,r,a,i)}};e.exports=f},function(e,t,n){"use strict";function r(){E||(E=!0,y.EventEmitter.injectReactEventListener(g),y.EventPluginHub.injectEventPluginOrder(s),y.EventPluginUtils.injectComponentTree(f),y.EventPluginUtils.injectTreeTraversal(h),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:T,EnterLeaveEventPlugin:c,ChangeEventPlugin:o,SelectEventPlugin:w,BeforeInputEventPlugin:i}),y.HostComponent.injectGenericComponentClass(d),y.HostComponent.injectTextComponentClass(b),y.DOMProperty.injectDOMPropertyConfig(a),y.DOMProperty.injectDOMPropertyConfig(u),y.DOMProperty.injectDOMPropertyConfig(_),y.EmptyComponent.injectEmptyComponentFactory(function(e){return new p(e)}),y.Updates.injectReconcileTransaction(m),y.Updates.injectBatchingStrategy(v),y.Component.injectEnvironment(l))}var a=n(102),i=n(104),o=n(106),s=n(108),c=n(109),u=n(111),l=n(113),d=n(116),f=n(4),p=n(118),h=n(126),b=n(124),v=n(127),g=n(131),y=n(132),m=n(137),_=n(142),w=n(143),T=n(144),E=!1;e.exports={inject:r}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";function r(e){a.enqueueEvents(e),a.processEventQueue(!1)}var a=n(19),i={handleTopLevel:function(e,t,n,i){r(a.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function a(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=p(e.nativeEvent),n=d.getClosestInstanceFromNode(t),a=n;do{e.ancestors.push(a),a=a&&r(a)}while(a);for(var i=0;i/," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function a(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:f.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function o(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function c(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var l=n(2),d=n(36),f=(n(21),n(7),n(10),n(14)),p=n(112),h=(n(6),n(158)),b=(n(0),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return p.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,a,i){var o,s=0;return o=h(t,s),p.updateChildren(e,o,n,r,a,this,this._hostContainerInfo,i,s),o},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var a=[],i=0;for(var o in r)if(r.hasOwnProperty(o)){var s=r[o],c=0,u=f.mountComponent(s,t,this,this._hostContainerInfo,n,c);s._mountIndex=i++,a.push(u)}return a},updateTextContent:function(e){var t=this._renderedChildren;p.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");u(this,[s(e)])},updateMarkup:function(e){var t=this._renderedChildren;p.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");u(this,[o(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,a={},i=[],o=this._reconcilerUpdateChildren(r,e,i,a,t,n);if(o||r){var s,l=null,d=0,p=0,h=0,b=null;for(s in o)if(o.hasOwnProperty(s)){var v=r&&r[s],g=o[s];v===g?(l=c(l,this.moveChild(v,b,d,p)),p=Math.max(v._mountIndex,p),v._mountIndex=d):(v&&(p=Math.max(v._mountIndex,p)),l=c(l,this._mountChildAtIndex(g,i[h],b,d,t,n)),h++),d++,b=f.getHostNode(g)}for(s in a)a.hasOwnProperty(s)&&(l=c(l,this._unmountChild(r[s],a[s])));l&&u(this,l),this._renderedChildren=o}},unmountChildren:function(e){var t=this._renderedChildren;p.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex=t)return{node:n,offset:t-i};i=o}n=r(a(n))}}e.exports=i},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function a(e){if(s[e])return s[e];if(!o[e])return e;var t=o[e];for(var n in t)if(t.hasOwnProperty(n)&&n in c)return s[e]=t[n];return""}var i=n(5),o={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},c={};i.canUseDOM&&(c=document.createElement("div").style,"AnimationEvent"in window||(delete o.animationend.animation,delete o.animationiteration.animation,delete o.animationstart.animation),"TransitionEvent"in window||delete o.transitionend.transition),e.exports=a},function(e,t,n){"use strict";function r(e){return'"'+a(e)+'"'}var a=n(26);e.exports=r},function(e,t,n){"use strict";var r=n(63);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function a(e){var t={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(/(=0|=2)/g,function(e){return t[e]})}var i={escape:r,unescape:a};e.exports=i},function(e,t,n){"use strict";var r=n(17),a=(n(0),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},o=function(e,t,n){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n),a}return new r(e,t,n)},s=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},c=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length>"),k={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),symbol:o("symbol"),any:function(){return i(w.thatReturns(null))}(),arrayOf:s,element:function(){function e(e,t,n,r,i){var o=e[t];if(!y.isValidElement(o)){return new a("Invalid "+m[r]+" `"+i+"` of type `"+b(o)+"` supplied to `"+n+"`, expected a single ReactElement.")}return null}return i(e)}(),instanceOf:c,node:function(){function e(e,t,n,r,i){if(!p(e[t])){return new a("Invalid "+m[r]+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")}return null}return i(e)}(),objectOf:l,oneOf:u,oneOfType:d,shape:f};a.prototype=Error.prototype,e.exports=k},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||s}function a(){}var i=n(3),o=n(46),s=n(47),c=n(18);a.prototype=o.prototype,r.prototype=new a,r.prototype.constructor=r,i(r.prototype,o.prototype),r.prototype.isPureReactComponent=!0,e.exports=r},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function r(e){return i.isValidElement(e)||a("143"),e}var a=n(17),i=n(16);n(0);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function a(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;var p,h,b=0,v=""===t?l:t+d;if(Array.isArray(e))for(var g=0;g-1?t:e}function p(e,t){t=t||{};var n=t.body;if("string"==typeof e)this.url=e;else{if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new a(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new a(t.headers)),this.method=f(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}}),t}function b(e){var t=new a;return e.split("\r\n").forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}}),t}function v(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new a(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=function(e){return e&&DataView.prototype.isPrototypeOf(e)},_=ArrayBuffer.isView||function(e){return e&&y.indexOf(Object.prototype.toString.call(e))>-1};a.prototype.append=function(e,r){e=t(e),r=n(r);var a=this.map[e];a||(a=[],this.map[e]=a),a.push(r)},a.prototype.delete=function(e){delete this.map[t(e)]},a.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},a.prototype.getAll=function(e){return this.map[t(e)]||[]},a.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},a.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},a.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)},a.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},a.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},a.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},g.iterable&&(a.prototype[Symbol.iterator]=a.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},d.call(p.prototype),d.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var T=[301,302,303,307,308];v.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=a,e.Request=p,e.Response=v,e.fetch=function(e,t){return new Promise(function(n,r){var a=new p(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:b(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;n(new v(t,e))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(a.method,a.url,!0),"include"===a.credentials&&(i.withCredentials=!0),"responseType"in i&&g.blob&&(i.responseType="blob"),a.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send(void 0===a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)}]); \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index e4fbb20..c4b4c9e 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,13 +1,13 @@ -import React from 'react' -import ReactDOM from 'react-dom' -import 'whatwg-fetch' +import React from 'react'; +import ReactDOM from 'react-dom'; +import 'whatwg-fetch'; -const _compose = (f,g) => (x) => g(f(x)) +import { itn, bristolsport, londontheinside, spectator, telegraph } from './playlist'; class App extends React.Component { constructor(props) { - super(props) + super(props); this.state = { videos: '', videoss: '', @@ -19,496 +19,229 @@ class App extends React.Component { windowWidth: window.innerWidth, videoLoaded: false, firstPlay: false, - itn: [{ - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/c648b1b9-1056-4893-a052-5bcc35f2f38d/27255151b3ba0ca44840000cb112d9d3.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/c648b1b9-1056-4893-a052-5bcc35f2f38d/aeb2a6436072a5961007183dd2ddcd5a-1280x720.png ', - title: "ITV and ITN celebrate 60 years on air" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/1e78393e-7f52-4933-87b6-d5d609c831c0/901f4496855cf8db8d91b7f96d093f60.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/1e78393e-7f52-4933-87b6-d5d609c831c0/7123a2ae5dbb578049617d7df8964459-1280x720.png', - title: "Amateur video captures tornado touching down in Ohio" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/f8ca127e-6002-47a3-92b5-c5c56d5578dc/f1cc13cb0f47d37d94e5f5d938aaa7af.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/f8ca127e-6002-47a3-92b5-c5c56d5578dc/965644cbcdb577138bfbb4d2d9505e75-1280x720.png', - title: "Time-lapse video of the Aurora Borealis in Minnesota" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/e34e6fe7-442e-4f76-b5fb-e81803953f46/77f948bf561b33a50ee2d688f2fdccad.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/e34e6fe7-442e-4f76-b5fb-e81803953f46/cb128c8e24c9c2cca9e3d41f5312125c-1280x720.png', - title: "Video of racoon riding a scooter goes viral" - }].slice(0).sort(() => 0.5 - Math.random()), - bristolsport: [{ - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/3d890945-9f28-472a-b568-4c349991638a/21fcf8b8165d4a480087b4d156b7c7af.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/3d890945-9f28-472a-b568-4c349991638a/a683b5206fd45c94d78546e0901b9cc4-1280x720.png', - title: "Nickelodeon Kids' Choice 2015 Sports Awards" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/0bb3f3c3-8f1f-4256-8ca3-812ed74d436e/3d33b409fe58f842d364546b1d4dc089.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/0bb3f3c3-8f1f-4256-8ca3-812ed74d436e/3afcd7b07cd8a72c6d5e7820dc9ba778-1280x720.png', - title: "10 Pretty Weird Sports" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/bec309ef-d345-4af3-865c-a65462de6434/bc97e402f5ee3fb09dfa600113d3253d.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/bec309ef-d345-4af3-865c-a65462de6434/67a03c0657df7bdc15473e6c8a6851d3_1.jpg', - title: "10 Biggest Sporting Rivalries" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/36c38533-6ea3-4c4c-9e2f-98cf0e1f6f0f/1b8b322350ea41caad3f4059c3727538.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/36c38533-6ea3-4c4c-9e2f-98cf0e1f6f0f/31b868ba73e9f72827c4e3c6325efcf5_1.jpg', - title: "10 Brutal Ancient Sports" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/4c7e375f-710b-43fe-8978-0e032d77cc58/985aa6d28873952f9643de9c82954a5f.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/4c7e375f-710b-43fe-8978-0e032d77cc58/0d42b23193b84c4f1b5da6c67fd77ba6-1280x720.png', - title: "Famous Sporting Wives & Girlfriends" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/15e93e94-b88f-4f2f-a6b4-8b65c027ed4c/0fb4839b91a85f75fe10845bbf0b0bdb.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/15e93e94-b88f-4f2f-a6b4-8b65c027ed4c/36d8a00a46a65d26b05d68174264c0c3-1280x720.png', - title: "China's gruelling sports schools" - }].slice(0).sort(() => 0.5 - Math.random()), - londontheinside: [{ - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/100715ce-44d2-48dd-bd25-4234c434f7a8/58b6261f76a9822a08a617de6be56260.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/100715ce-44d2-48dd-bd25-4234c434f7a8/1a6ba68aa83927bb4f22438ff29a7479-1280x720.png', - title: "The beauty and the pigs: An unconditional love story" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/4b5be471-4665-4d06-acb6-a902525ecc81/8941b5cf87104a67bf469d85094e6f25.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/4b5be471-4665-4d06-acb6-a902525ecc81/b8a0fd8dac6a2fe12ffbae8deb2e4b8c-1280x720.png', - title: "Brazilian beauty Adriana Lima covers Vogue Olympics" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/deb54697-e356-4a37-bbce-1b5605634727/e7bb5c43c460f0d74aa172ab6dd889de.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/deb54697-e356-4a37-bbce-1b5605634727/b811e19b0f1c70b6f61ffab82b1d4f56_1.jpg', - title: "The new beauty consumers" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/025d7a48-8106-4328-a1f8-abe6172a05f6/69a5c1dd1beececaf9804cfe052e1362.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/025d7a48-8106-4328-a1f8-abe6172a05f6/8ac6b39b6a8de0b42102d1f6940db82c_1.jpg', - title: "#Hashtag: Instagram comes to life in NYC beauty store" - }, { - sources: [{ - src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/96f86069-8db0-4bad-ade4-4738ac606f0b/098b60d15529b8784441f70d93ea2c13.mp4', - type: 'video/mp4' - }], - poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/96f86069-8db0-4bad-ade4-4738ac606f0b/b598fd21b0f7b81d12378c21723d65ff_1.jpg', - title: "Miss Undertaker: World's most bizarre beauty title?" - }, { - sources: [{ - src: 'https://cdn-videos.akamaized.net/m/NzA1MTk5NQ/MjM2NjkzNg/Marchionne0307d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/idKnV8f7YxQ8/v5/640x-1.jpg', - title: "Ferrari's Marchionne Hopes for U.S. Border Tax Exemption" - }].slice(0).sort(() => 0.5 - Math.random()), - spectator: [{ - sources: [{ - src: 'https://cdn-videos.akamaized.net/m/NzA2MTk1MQ/MjM3MDE4OQ/bmKirkpatrick031717d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iLTNElrqdVZ0/v5/640x-1.jpg', - title: "Apple Plans to Expand in China as iPhone Sales Slow" - }, { - sources: [{ - src: 'https://cdn-videos.akamaized.net/m/NzA2MTkwNA/MjM3MDE1NQ/intvkenny0317d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iij3ER5mSADc/v5/640x-1.jpg', - title: "Irish PM Kenny on Trump Meeting, Brexit Talks and Trade" - }, { - sources: [{ - src: 'https://cdn-videos.akamaized.net/m/NzA1MTkzMA/MjM2NjkyMg/Zellmer0307d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iPeY2kz8.bKg/v5/640x-1.jpg', - title: "Porsche Pushing Toward Electric and Driverless Cars" - }, { - sources: [{ - src: 'https://dh85o37ztyzo0.cloudfront.net/m/NzA2MDg0MA/MjM2OTgyNQ/intvreiss0316d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iZXr_PfeXgB8/v5/640x-1.jpg', - title: "Canada Goose CEO Sees Opportunities in Europe and China" - }, { - sources: [{ - src: 'https://cdn-videos.akamaized.net/m/NzA2MDcyMg/MjM2OTc3NQ/barinka14550316d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iA6E_g6FtawU/v5/640x-1.jpg', - title: "Canada Goose Shares Soar in Trading Debut" - }, { - sources: [{ - src: 'https://cdn-videos.akamaized.net/m/NzA1MTgxOQ/MjM2Njg0Mw/Fiotakisx0307d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/ii0swWho50RM/v5/640x-1.jpg', - title: "UBS's Fiotakis Says Greek, IMF Incentives Have Changed" - }, { - sources: [{ - src: 'https://cdn-videos.akamaized.net/m/NzA1MTcxNA/MjM2Njc5OA/intvkirsten0306d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/i0JniPATs15A/v5/640x-1.jpg', - title: "Vonovia's CFO Says Berlin Is Not a Cheap Market Anymore" - }, { - sources: [{ - src: 'https://cdn-videos.akamaized.net/m/NzA1MjEwNQ/MjM2Njk5OA/intvzetsche0307d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iRZ3gr1XgdLI/v5/640x-1.jpg', - title: 'Daimler CEO Dieter Zetsche Is Bullish on Global Sales' - }, { - sources: [{ - src: 'https://cdn-videos.akamaized.net/m/NzA1MTk5NQ/MjM2NjkzNg/Marchionne0307d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/idKnV8f7YxQ8/v5/640x-1.jpg', - title: "Ferrari's Marchionne Hopes for U.S. Border Tax Exemption" - }, { - sources: [{ - src: 'https://cdn-videos.akamaized.net/m/NzA1NDE5MQ/MjM2NzY0NA/intvzeybekci0309d_1800.mp4', - type: 'video/mp4' - }], - poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iP4r1U0k4o1s/v5/640x-1.jpg', - title: "Turkey's Zeybekci Says Economy Must Grow at Least 5.5%" - }].slice(0).sort(() => 0.5 - Math.random()), - telegraph: [{ - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/dwNmdoYTE61D6obD2E3SqRuchixJHj4R/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/dwNmdoYTE61D6obD2E3SqRuchixJHj4R/promo314626431', - title: "Three-year-old 'actress' can cry on demand" - }, { - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/VlYmdoYTE6gHpb2W6IZ0MKSSCPtFNG7N/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/VlYmdoYTE6gHpb2W6IZ0MKSSCPtFNG7N/promo314626998', - title: "Lost student survives for five days alone in desert" - }, { - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/VxN2doYTE6_T_c61xo7MleGDK6Wbh9_M/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/VxN2doYTE6_T_c61xo7MleGDK6Wbh9_M/promo314627996', - title: "Transforming KYC compliance through process automation" - }, { - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/JsMGVoYTE6Zyro4dbErrr7jE5n7XU8ak/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/JsMGVoYTE6Zyro4dbErrr7jE5n7XU8ak/promo314613444', - title: "Father draws moustache and eyebrows on baby while mum is away" - }, { - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/BrZWRoYTE6Io_soFShiukBn1ELK_1pAr/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/BrZWRoYTE6Io_soFShiukBn1ELK_1pAr/promo314611399', - title: "Man Creates His Own Tiny World in Melbourne" - }, { - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/JteGNoYTE6azt-zbmshw-Vg6iOhH6ilX/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/JteGNoYTE6azt-zbmshw-Vg6iOhH6ilX/promo314609716', - title: "Boyfriend's Drone Records Romantic Proposal" - }, { - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/l1ZDhoYTE6nEnaYIOEqYSo4KFbqc9Ds7/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/l1ZDhoYTE6nEnaYIOEqYSo4KFbqc9Ds7/promo314589151', - title: "Dogs On Dates Video Compilation 2017" - }, { - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/RnNzhoYTE6BiB6HZHAEx0E0G4fqIrddL/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/RnNzhoYTE6BiB6HZHAEx0E0G4fqIrddL/promo314588588', - title: 'Guy Juggles Golf Ball Before Making Hole in One' - }, { - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/5nNzZoYTE6VfIaJ9BSgx2f3-iqhSVP7-/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/5nNzZoYTE6VfIaJ9BSgx2f3-iqhSVP7-/promo314581288', - title: "Paralyzed Guy Performs Backflip on Motorbike" - }, { - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/ZvNzJoYTE66kM65rNTbn4nFYfOQ9_0eu/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/ZvNzJoYTE66kM65rNTbn4nFYfOQ9_0eu/promo314569620', - title: "Fitness Enthusiast Falls Off Box" - }, { - sources: [{ - src: 'http://17909.cdx.c.ooyala.com/htNzJoYTE62Td7VRYkHGbHT_eiPaRhQy/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', - type: 'video/mp4' - }], - poster: 'http://17909.cdx.c.ooyala.com/htNzJoYTE62Td7VRYkHGbHT_eiPaRhQy/promo314569613', - title: "Guy Catches Fish With Bare Hands" - }].slice(0).sort(() => 0.5 - Math.random()), - - } + itn: itn.slice(0).sort(() => 0.5 - Math.random()), + bristolsport: bristolsport.slice(0).sort(() => 0.5 - Math.random()), + londontheinside: londontheinside.slice(0).sort(() => 0.5 - Math.random()), + spectator: spectator.slice(0).sort(() => 0.5 - Math.random()), + telegraph: telegraph.slice(0).sort(() => 0.5 - Math.random()), + }; } handleScroll() { if (this.isInViewport(ReactDOM.findDOMNode(this))) { - console.log('COMPONENT IS IN VIEW') - if (document.getElementsByClassName('video-js').length !== 0 && !this.state.firstPlay && this.state.videoLoaded) { - (window.location.href.indexOf('cityam.com') !== -1 || window.location.href.indexOf('telegraph.co.uk') !== -1 || window.location.href.indexOf('beautyandthedirt.com') !== -1) ? console.log('click-to-play') : videojs(document.getElementsByClassName('video-js')[0]).play() + console.log('DELTASTV: COMPONENT IS IN VIEW'); + if (document.getElementById('deltaplayer') && !this.state.firstPlay && this.state.videoLoaded) { + (window.location.href.indexOf('cityam.com') !== -1 || window.location.href.indexOf('beautyandthedirt.com') !== -1) ? console.log('DELTASTV: click-to-play') : videojs(document.getElementById('deltaplayer')).play(); this.setState({ - firstPlay: true - }) + firstPlay: true, + }); } } } componentWillUnmount() { - window.removeEventListener('scroll', this.handleScroll) - window.removeEventListener('touchmove', this.handleScroll) + window.removeEventListener('scroll', this.handleScroll); + window.removeEventListener('touchmove', this.handleScroll); } getVideosNew(url) { + const filter = '(term field=aggregator \'telegraph\')'; + const delta = `https://jlb9vlsmhg.execute-api.us-east-1.amazonaws.com/dev/semanticsearchdelta?url=${url}&filter=${filter}`; - let filter = `(term field=aggregator 'telegraph')` - let delta = `https://jlb9vlsmhg.execute-api.us-east-1.amazonaws.com/dev/semanticsearchdelta?url=${url}&filter=${filter}` - - return fetch(delta, { + return fetch(delta, { method: 'GET', headers: { - 'Accept': 'application/json', - 'Content-Type': 'application/json' - } + Accept: 'application/json', + 'Content-Type': 'application/json', + }, }) - .then(r => r.json()) - + .then(r => r.json()); } getVideos(url) { - return fetch('https://api.sugges.tv', { method: 'POST', headers: { - 'Accept': 'application/json', + Accept: 'application/json', 'Content-Type': 'application/json', - 'x-api-key': 'NXZAGU0Cf88saYlS2uATAVbjWMsxeEk90r5EBzsa' + 'x-api-key': 'NXZAGU0Cf88saYlS2uATAVbjWMsxeEk90r5EBzsa', }, - body: JSON.stringify({url}) - }) - .then(r => r.json()) - + body: JSON.stringify({ url }), + }) + .then(r => r.json()); } setVideos(data) { - - let videos - this.setState({query: data.query}) - - if (data !== null && data.results !== 'no keywords' && data.results.hits.hit.length !== 0) { - - videos = data.results.hits.hit.slice(0, 4).map(video => { - - let keywordsMatched = [] - - if (window.location.href.indexOf('telegraph.co.uk') !== -1) { - // grab all highlighted keywords - video.highlights.extra_one.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.extra_one.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - video.highlights.description.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.description.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - video.highlights.keywords.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.keywords.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - video.highlights.thumbnail_alt.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.thumbnail_alt.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - video.highlights.thumbnail_alt_small.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.thumbnail_alt_small.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - - } else { + let videos; + this.setState({ query: data.query }); + + if (data !== null && data.results !== 'no keywords' && data.results && data.results.hits && data.results.hits.hit.length !== 0) { + console.log('DELTASTV: set videos', data); + videos = data.results.hits.hit.slice(0, 4).map((video) => { + let keywordsMatched = []; + + // if (window.location.href.indexOf('telegraph.co.uk') !== -1) { + // // grab all highlighted keywords + // video.highlights.extra_one.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.extra_one.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + // video.highlights.description.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.description.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + // video.highlights.keywords.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.keywords.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + // video.highlights.thumbnail_alt.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.thumbnail_alt.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + // video.highlights.thumbnail_alt_small.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.thumbnail_alt_small.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + // } else { // grab all highlighted keywords - video.highlights.descriptions_default.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.descriptions_default.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - video.highlights.descriptions_long.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.descriptions_long.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - video.highlights.title.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.title.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - video.highlights.slug.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.slug.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - video.highlights.thumbnails_large_alttext.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.thumbnails_large_alttext.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - video.highlights.thumbnails_small_alttext.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.thumbnails_small_alttext.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - video.highlights.published.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.published.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : '' - - - } + video.highlights.descriptions_default.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.descriptions_default.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + video.highlights.descriptions_long.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.descriptions_long.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + video.highlights.title.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.title.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + video.highlights.slug.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.slug.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + video.highlights.thumbnails_large_alttext.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.thumbnails_large_alttext.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + video.highlights.thumbnails_small_alttext.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.thumbnails_small_alttext.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + video.highlights.published.match(/\*(\S[\s\S]*?)\*/g) ? keywordsMatched = video.highlights.published.match(/\*(\S[\s\S]*?)\*/g).concat(keywordsMatched) : ''; + // } // deduplicate array - keywordsMatched = Array.from(new Set(keywordsMatched.map(v => v.toLowerCase()))) - console.log('keywordsMatched ', keywordsMatched) - - if (Number(video.fields._score[0]) > 25 && keywordsMatched.length > 6) { + keywordsMatched = Array.from(new Set(keywordsMatched.map(v => v.toLowerCase()))); + if (Number(video.fields._score[0]) > 25 && keywordsMatched.length > 1) { return { sources: [{ - src: window.location.href.indexOf('telegraph.co.uk') !== -1 ? video.fields.video_url[0] : video.fields.videos_hd_uri[0], - type: 'video/mp4' + // src: window.location.href.indexOf('telegraph.co.uk') !== -1 ? video.fields.video_url[0] : video.fields.videos_hd_uri[0], + src: video.fields.videos_hd_uri[0], + type: 'video/mp4', }], - poster: window.location.href.indexOf('telegraph.co.uk') !== -1 ? video.fields.thumbnail_url[0] : video.fields.thumbnails_large_src[0], - title: window.location.href.indexOf('telegraph.co.uk') !== -1 ? video.fields.extra_one[0] : video.fields.title[0] - } - + // poster: window.location.href.indexOf('telegraph.co.uk') !== -1 ? video.fields.thumbnail_url[0] : video.fields.thumbnails_large_src[0], + poster: video.fields.thumbnails_large_src[0], + // title: window.location.href.indexOf('telegraph.co.uk') !== -1 ? video.fields.extra_one[0] : video.fields.title[0], + title: video.fields.title[0], + }; } - - }) - + }); if (videos.filter(Boolean).length !== 0) { - - console.log('videos arr [actual] ', videos) + console.log('DELTASTV: videos arr [actual] ', videos); this.setState({ - videos: videos, - videoss: 'semanticsearch' - }) - + videos, + videoss: 'semanticsearch', + }); } else { + console.log('DELTASTV: none of the videos matched enough keywords or have big enough score'); - console.log('none of the videos matched enough keywords or have big enough score') + videos = this.state.spectator; + if (window.location.href.indexOf('localhost') !== -1) videos = this.state.telegraph; + if (window.location.href.indexOf('telegraph') !== -1) videos = this.state.telegraph; + if (window.location.href.indexOf('telegraph.co.uk') !== -1) videos = this.state.telegraph; + if (window.location.href.indexOf('londontheinside.com') !== -1) videos = this.state.londontheinside; + if (window.location.href.indexOf('beautyandthedirt.com') !== -1) videos = this.state.londontheinside; + if (window.location.href.indexOf('bristol-sport.co.uk') !== -1) videos = this.state.bristolsport; + if (window.location.href.indexOf('proactiveinvestors.co.uk') !== -1) videos = this.state.itn; - videos = this.state.spectator - if (window.location.href.indexOf('localhost') !== -1) videos = this.state.telegraph - if (window.location.href.indexOf('telegraph') !== -1) videos = this.state.telegraph - if (window.location.href.indexOf('telegraph.co.uk') !== -1) videos = this.state.telegraph - if (window.location.href.indexOf('londontheinside.com') !== -1) videos = this.state.londontheinside - if (window.location.href.indexOf('beautyandthedirt.com') !== -1) videos = this.state.londontheinside - if (window.location.href.indexOf('bristol-sport.co.uk') !== -1) videos = this.state.bristolsport - if (window.location.href.indexOf('proactiveinvestors.co.uk') !== -1) videos = this.state.itn - - console.log('videos arr [default] ', videos) + console.log('DELTASTV: videos arr [default] ', videos); this.setState({ - videos: videos, - videoss: 'defaultplaylist' - }) + videos, + videoss: 'defaultplaylist', + }); } - - } else { + videos = this.state.spectator; + if (window.location.href.indexOf('localhost') !== -1) videos = this.state.telegraph; + if (window.location.href.indexOf('telegraph') !== -1) videos = this.state.telegraph; + if (window.location.href.indexOf('telegraph.co.uk') !== -1) videos = this.state.telegraph; + if (window.location.href.indexOf('londontheinside.com') !== -1) videos = this.state.londontheinside; + if (window.location.href.indexOf('beautyandthedirt.com') !== -1) videos = this.state.londontheinside; + if (window.location.href.indexOf('bristol-sport.co.uk') !== -1) videos = this.state.bristolsport; + if (window.location.href.indexOf('proactiveinvestors.co.uk') !== -1) videos = this.state.itn; - videos = this.state.spectator - if (window.location.href.indexOf('localhost') !== -1) videos = this.state.telegraph - if (window.location.href.indexOf('telegraph') !== -1) videos = this.state.telegraph - if (window.location.href.indexOf('telegraph.co.uk') !== -1) videos = this.state.telegraph - if (window.location.href.indexOf('londontheinside.com') !== -1) videos = this.state.londontheinside - if (window.location.href.indexOf('beautyandthedirt.com') !== -1) videos = this.state.londontheinside - if (window.location.href.indexOf('bristol-sport.co.uk') !== -1) videos = this.state.bristolsport - if (window.location.href.indexOf('proactiveinvestors.co.uk') !== -1) videos = this.state.itn - - console.log('videos arr [default] ', videos) + console.log('DELTASTV: videos arr [default] ', videos); this.setState({ - videos: videos, - videoss: 'defaultplaylist' - }) - + videos, + videoss: 'defaultplaylist', + }); } - } plugins() { - videojs.plugin('adform', (opts) => { + const player = videojs(document.getElementById('deltaplayer')); + + let adTag = 'https://ad.360yield.com/advast?p=1023878&w=16&h=9'; + let adTagXML = null; + + function getPlaylistAdTag(playlistUrl, callback) { + fetch(playlistUrl) + .then(resp => resp.text()) + .then(data => data.match(/CDATA\[(.*)]]>/)[1]) + .then(url => fetch(url)) + .then(resp => resp.text()) + .then(adXML => callback(null, adXML)) + .catch(callback); + } - let player = videojs(document.getElementsByClassName('video-js')[0]) - - let adTag = `https://ad.360yield.com/advast?p=1023878&w=16&h=9` - if (window.location.href.indexOf('cityam.com') !== -1) adTag = `https://ad.360yield.com/advast?p=1023878&w=16&h=9` - if (window.location.href.indexOf('spectator.co.uk') !== -1) adTag = `https://ad.360yield.com/advast?p=1021575&w=4&h=3` - if (window.location.href.indexOf('prospectmagazine.co.uk') !== -1) adTag = `https://ad.360yield.com/advast?p=1021574&w=4&h=3` - if (window.location.href.indexOf('londontheinside.com') !== -1) adTag = `https://ad.360yield.com/advast?p=1023718&w=4&h=3` - if (window.location.href.indexOf('bristol-sport.co.uk') !== -1) adTag = `https://ad.360yield.com/advast?p=1024744&w=16&h=9` - if (window.location.href.indexOf('beautyandthedirt.com') !== -1) adTag = `https://ad.360yield.com/advast?p=1026408&w=4&h=3` - if (window.location.href.indexOf('proactiveinvestors.co.uk') !== -1) adTag = `https://ad.360yield.com/advast?p=1026983&w=4&h=3` - if (window.location.href.indexOf('advfn.com') !== -1) adTag = `https://ad.360yield.com/advast?p=1021571&w=4&h=3` - if (window.location.href.indexOf('hospitalitytrends.net') !== -1) adTag = `https://ad.360yield.com/advast?p=1028636&w=4&h=3` - if (window.location.href.indexOf('telegraph.co.uk') !== -1) adTag = tmgAdsBuildAd ? tmgAdsBuildAd("advert_body_vid","","","").fetchUrl() : `https://pubads.g.doubleclick.net/gampad/ads?slotname=/6582/tmg.telegraph.culture/culture.gaming.whattoplay&sz=620x415&ciu_szs&cust_params=&ver=4.4.3a&sc=culture-gaming-whattoplay&pt=video&lvl=3&biw=2076&bih=1191&fv=24&protocol=http&rd=www.telegraph.co.uk&cms=aem&kw=guide,playstation,culture,wii%20u,technology,game%20(meat),gaming,pc%20gaming,playstation,xbox%20one,xbox&make=null&model=null&geo=gb&ec=null&mv=null&ms=null&vidsrc=null&pg=AlbSDjqVDL5g&gamp=0&refresh=0&premc=false&premo=false&docdom=www.telegraph.co.uk&gs=ent_gaming,tch_technology,biz_personal_finance&platform=desktop&vp=x&tmgmvc=none&tmgmu=none&tmgsub=none&tmgpid=none&amcv=29231524500639905221307882809031236213&audsci=&kxuid=rgnpdrt0m&kxsid=oy72kt68d,ri7k794nl&test=null&refurl=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&dnt=[object%20Object]&admodel=mpu-680-15000-0&sticky=1&vid=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&vidslot=tmgads_body_vid_7&at=vid&pos=7&adcount=1&url=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&unviewed_position_start=1&output=xml_vast3&env=vp&gdfp_req=1&ad_rule=0&video_url_to_fetch=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&vad_type=linear&vpos=preroll&pod=1&min_ad_duration=0&max_ad_duration=90000&ppos=1&lip=true&adk=391550375&correlator=727700615628041&scor=3563976934677979&ged=ve4_td16_tt6_pd16_la16000_er0.0.0.0_vi0.0.1191.2061_vp0_ts1_eb16491&scp&osd=2&hl=en&frm=0&video_doc_id=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&cmsid=5694&sdkv=h.3.158.1&sdki=3c0d&mpt=Ooyala&mpv=1.0&sdr=1&kfa=0&tfcd=0` - if (window.location.href.indexOf('telegraph') !== -1) adTag = tmgAdsBuildAd ? tmgAdsBuildAd("advert_body_vid","","","").fetchUrl() : `https://pubads.g.doubleclick.net/gampad/ads?slotname=/6582/tmg.telegraph.culture/culture.gaming.whattoplay&sz=620x415&ciu_szs&cust_params=&ver=4.4.3a&sc=culture-gaming-whattoplay&pt=video&lvl=3&biw=2076&bih=1191&fv=24&protocol=http&rd=www.telegraph.co.uk&cms=aem&kw=guide,playstation,culture,wii%20u,technology,game%20(meat),gaming,pc%20gaming,playstation,xbox%20one,xbox&make=null&model=null&geo=gb&ec=null&mv=null&ms=null&vidsrc=null&pg=AlbSDjqVDL5g&gamp=0&refresh=0&premc=false&premo=false&docdom=www.telegraph.co.uk&gs=ent_gaming,tch_technology,biz_personal_finance&platform=desktop&vp=x&tmgmvc=none&tmgmu=none&tmgsub=none&tmgpid=none&amcv=29231524500639905221307882809031236213&audsci=&kxuid=rgnpdrt0m&kxsid=oy72kt68d,ri7k794nl&test=null&refurl=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&dnt=[object%20Object]&admodel=mpu-680-15000-0&sticky=1&vid=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&vidslot=tmgads_body_vid_7&at=vid&pos=7&adcount=1&url=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&unviewed_position_start=1&output=xml_vast3&env=vp&gdfp_req=1&ad_rule=0&video_url_to_fetch=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&vad_type=linear&vpos=preroll&pod=1&min_ad_duration=0&max_ad_duration=90000&ppos=1&lip=true&adk=391550375&correlator=727700615628041&scor=3563976934677979&ged=ve4_td16_tt6_pd16_la16000_er0.0.0.0_vi0.0.1191.2061_vp0_ts1_eb16491&scp&osd=2&hl=en&frm=0&video_doc_id=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&cmsid=5694&sdkv=h.3.158.1&sdki=3c0d&mpt=Ooyala&mpv=1.0&sdr=1&kfa=0&tfcd=0` - if (window.location.href.indexOf('localhost') !== -1) adTag = tmgAdsBuildAd ? tmgAdsBuildAd("advert_body_vid","","","").fetchUrl() : `https://pubads.g.doubleclick.net/gampad/ads?slotname=/6582/tmg.telegraph.culture/culture.gaming.whattoplay&sz=620x415&ciu_szs&cust_params=&ver=4.4.3a&sc=culture-gaming-whattoplay&pt=video&lvl=3&biw=2076&bih=1191&fv=24&protocol=http&rd=www.telegraph.co.uk&cms=aem&kw=guide,playstation,culture,wii%20u,technology,game%20(meat),gaming,pc%20gaming,playstation,xbox%20one,xbox&make=null&model=null&geo=gb&ec=null&mv=null&ms=null&vidsrc=null&pg=AlbSDjqVDL5g&gamp=0&refresh=0&premc=false&premo=false&docdom=www.telegraph.co.uk&gs=ent_gaming,tch_technology,biz_personal_finance&platform=desktop&vp=x&tmgmvc=none&tmgmu=none&tmgsub=none&tmgpid=none&amcv=29231524500639905221307882809031236213&audsci=&kxuid=rgnpdrt0m&kxsid=oy72kt68d,ri7k794nl&test=null&refurl=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&dnt=[object%20Object]&admodel=mpu-680-15000-0&sticky=1&vid=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&vidslot=tmgads_body_vid_7&at=vid&pos=7&adcount=1&url=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&unviewed_position_start=1&output=xml_vast3&env=vp&gdfp_req=1&ad_rule=0&video_url_to_fetch=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&vad_type=linear&vpos=preroll&pod=1&min_ad_duration=0&max_ad_duration=90000&ppos=1&lip=true&adk=391550375&correlator=727700615628041&scor=3563976934677979&ged=ve4_td16_tt6_pd16_la16000_er0.0.0.0_vi0.0.1191.2061_vp0_ts1_eb16491&scp&osd=2&hl=en&frm=0&video_doc_id=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&cmsid=5694&sdkv=h.3.158.1&sdki=3c0d&mpt=Ooyala&mpv=1.0&sdr=1&kfa=0&tfcd=0` - - let adsCancelTimeout = 20000 - console.log('adTag ', adTag) - this.setState({adTag}) - let vastAd = player.vastClient({ + if (window.location.href.indexOf('cityam.com') !== -1) adTag = 'https://ad.360yield.com/advast?p=1023878&w=16&h=9'; + if (window.location.href.indexOf('spectator.co.uk') !== -1) adTag = 'https://ad.360yield.com/advast?p=1021575&w=4&h=3'; + if (window.location.href.indexOf('prospectmagazine.co.uk') !== -1) adTag = 'https://ad.360yield.com/advast?p=1021574&w=4&h=3'; + if (window.location.href.indexOf('londontheinside.com') !== -1) adTag = 'https://ad.360yield.com/advast?p=1023718&w=4&h=3'; + if (window.location.href.indexOf('bristol-sport.co.uk') !== -1) adTag = 'https://ad.360yield.com/advast?p=1024744&w=16&h=9'; + if (window.location.href.indexOf('beautyandthedirt.com') !== -1) adTag = 'https://ad.360yield.com/advast?p=1026408&w=4&h=3'; + if (window.location.href.indexOf('proactiveinvestors.co.uk') !== -1) adTag = 'https://ad.360yield.com/advast?p=1026983&w=4&h=3'; + if (window.location.href.indexOf('advfn.com') !== -1) adTag = 'https://ad.360yield.com/advast?p=1021571&w=4&h=3'; + if (window.location.href.indexOf('hospitalitytrends.net') !== -1) adTag = 'https://ad.360yield.com/advast?p=1028636&w=4&h=3'; + if (window.location.href.indexOf('localhost') !== -1) adTag = 'https://pubads.g.doubleclick.net/gampad/ads?slotname=/6582/tmg.telegraph.culture/culture.gaming.whattoplay&sz=620x415&ciu_szs&cust_params=&ver=4.4.3a&sc=culture-gaming-whattoplay&pt=video&lvl=3&biw=2076&bih=1191&fv=24&protocol=http&rd=www.telegraph.co.uk&cms=aem&kw=guide,playstation,culture,wii%20u,technology,game%20(meat),gaming,pc%20gaming,playstation,xbox%20one,xbox&make=null&model=null&geo=gb&ec=null&mv=null&ms=null&vidsrc=null&pg=AlbSDjqVDL5g&gamp=0&refresh=0&premc=false&premo=false&docdom=www.telegraph.co.uk&gs=ent_gaming,tch_technology,biz_personal_finance&platform=desktop&vp=x&tmgmvc=none&tmgmu=none&tmgsub=none&tmgpid=none&amcv=29231524500639905221307882809031236213&audsci=&kxuid=rgnpdrt0m&kxsid=oy72kt68d,ri7k794nl&test=null&refurl=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&dnt=[object%20Object]&admodel=mpu-680-15000-0&sticky=1&vid=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&vidslot=tmgads_body_vid_7&at=vid&pos=7&adcount=1&url=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&unviewed_position_start=1&output=xml_vast3&env=vp&gdfp_req=1&ad_rule=0&video_url_to_fetch=http://www.telegraph.co.uk/gaming/what-to-play/the-best-video-games-of-20160/&vad_type=linear&vpos=preroll&pod=1&min_ad_duration=0&max_ad_duration=90000&ppos=1&lip=true&adk=391550375&correlator=727700615628041&scor=3563976934677979&ged=ve4_td16_tt6_pd16_la16000_er0.0.0.0_vi0.0.1191.2061_vp0_ts1_eb16491&scp&osd=2&hl=en&frm=0&video_doc_id=MyYmZhNjE60lvInOovGw9UFyuTk86kcr&cmsid=5694&sdkv=h.3.158.1&sdki=3c0d&mpt=Ooyala&mpv=1.0&sdr=1&kfa=0&tfcd=0'; + if (window.location.href.indexOf('telegraph') !== -1) { + adTagXML = tmgAdsBuildAd ? getPlaylistAdTag.bind(null, tmgAdsBuildAd('advert_body_vid', '', '', '').fetchUrl()) : null; + adTag = null; + } + + const adsCancelTimeout = 20000; + console.log('DELTASTV: adTag ', adTag); + this.setState({ adTag }); + const vastAd = player.vastClient({ adTagUrl: adTag, + adTagXML, playAdAlways: true, adCancelTimeout: adsCancelTimeout, adsEnabled: true, vpaidFlashLoaderPath: 'https://cdnjs.cloudflare.com/ajax/libs/videojs-vast-vpaid/2.0.2/VPAIDFlash.swf', - verbosity: 0 - }) + verbosity: 0, + }); player.on('vast.adStart', (obj) => { - + console.log('DELTASTV: start ad'); this.setState({ - adStart: this.state.adStart ? `${this.state.adStart},adStart` : `adStart`, + adStart: this.state.adStart ? `${this.state.adStart},adStart` : 'adStart', adError: 'N/A', - adSrc: player.vast.vastResponse.mediaFiles.length !== 0 ? player.vast.vastResponse.mediaFiles[0].src : 'N/A' - }) - document.querySelectorAll('.delta-overlay').forEach(overlay => { - overlay.style.display = 'none' - }) - }) + adSrc: player.vast.vastResponse.mediaFiles.length !== 0 ? player.vast.vastResponse.mediaFiles[0].src : 'N/A', + }); + document.querySelectorAll('.delta-overlay').forEach((overlay) => { + overlay.style.display = 'none'; + }); + }); player.on('vast.adError', (obj) => { - - this.setState({ + console.log('DELTASTV: error ad', obj); + this.setState({ adStart: 'N/A', adSrc: 'N/A', - adError: obj.error.message - }) - }) + adError: obj.error.message, + }); + }); player.on('vast.contentStart', (obj) => { - fetch('https://content.sugges.tv', { method: 'POST', headers: { - 'Accept': 'application/json', - 'Content-Type': 'application/json' + Accept: 'application/json', + 'Content-Type': 'application/json', }, body: JSON.stringify({ adstart: this.state.adStart, aderror: this.state.adError, adsrc: this.state.adSrc, adtag: this.state.adTag, - scripttag: 'https://delta.sugges.tv/tags/bundle-telegraph.js', + scripttag: 'https://delta.sugges.tv/test/bundle.js', player: 'delta', - player_settings: (window.location.href.indexOf('cityam.com') !== -1 || window.location.href.indexOf('telegraph.co.uk') !== -1 || window.location.href.indexOf('beautyandthedirt.com') !== -1) ? 'muted,click-to-play' : 'muted,autoplay-in-view', + player_settings: (window.location.href.indexOf('cityam.com') !== -1 || window.location.href.indexOf('beautyandthedirt.com') !== -1) ? 'muted,click-to-play' : 'muted,autoplay-in-view', player_type: 'article', keywords: this.state.query, videoss: this.state.videoss, @@ -523,260 +256,254 @@ class App extends React.Component { useragent: navigator.userAgent, browser_language: navigator.language, browser_languages: navigator.languages.join(','), - platform: navigator.platform - }) - }) - .then(r => r.json()) - .then(data => { - console.log('contentStart DATA back', data) + platform: navigator.platform, + }), }) - - - }) + .then(r => r.json()) + .then((data) => { + console.log('DELTASTV: contentStart DATA back', data); + }); + }); player.on('vast.adEnd', (obj) => { - this.setState({adStart: `${this.state.adStart},adEnd`}) - }) + this.setState({ adStart: `${this.state.adStart},adEnd` }); + }); player.on('vast.adSkip', (obj) => { - this.setState({adStart: `${this.state.adStart},adSkip`}) - }) + this.setState({ adStart: `${this.state.adStart},adSkip` }); + }); player.on('vpaid.AdLoaded', (obj) => { - this.setState({adStart: `${this.state.adStart},AdLoaded`}) - }) + this.setState({ adStart: `${this.state.adStart},AdLoaded` }); + }); player.on('vpaid.AdStarted', (obj) => { - this.setState({adStart: this.state.adStart ? `${this.state.adStart},AdStarted` : `AdStarted`}) - }) + this.setState({ adStart: this.state.adStart ? `${this.state.adStart},AdStarted` : 'AdStarted' }); + }); player.on('vpaid.AdStopped', (obj) => { - this.setState({adStart: `${this.state.adStart},AdStopped`}) - }) + this.setState({ adStart: `${this.state.adStart},AdStopped` }); + }); player.on('vpaid.AdSkipped', (obj) => { - this.setState({adStart: `${this.state.adStart},AdSkipped`}) - }) + this.setState({ adStart: `${this.state.adStart},AdSkipped` }); + }); player.on('vpaid.AdSkippableStateChange', (obj) => { - this.setState({adStart: `${this.state.adStart},AdSkippableStateChange`}) - }) + this.setState({ adStart: `${this.state.adStart},AdSkippableStateChange` }); + }); player.on('vpaid.AdSizeChange', (obj) => { - this.setState({adStart: `${this.state.adStart},AdSizeChange`}) - }) + this.setState({ adStart: `${this.state.adStart},AdSizeChange` }); + }); player.on('vpaid.AdLinearChange', (obj) => { - this.setState({adStart: `${this.state.adStart},AdLinearChange`}) - }) + this.setState({ adStart: `${this.state.adStart},AdLinearChange` }); + }); player.on('vpaid.AdDurationChange', (obj) => { - this.setState({adStart: `${this.state.adStart},AdDurationChange`}) - }) + this.setState({ adStart: `${this.state.adStart},AdDurationChange` }); + }); player.on('vpaid.AdExpandedChange', (obj) => { - this.setState({adStart: `${this.state.adStart},AdExpandedChange`}) - }) + this.setState({ adStart: `${this.state.adStart},AdExpandedChange` }); + }); player.on('vpaid.AdVolumeChange', (obj) => { - this.setState({adStart: `${this.state.adStart},AdVolumeChange`}) - }) + this.setState({ adStart: `${this.state.adStart},AdVolumeChange` }); + }); player.on('vpaid.AdImpression', (obj) => { - this.setState({adStart: this.state.adStart ? `${this.state.adStart},AdImpression` : `AdImpression`}) - }) + this.setState({ adStart: this.state.adStart ? `${this.state.adStart},AdImpression` : 'AdImpression' }); + }); player.on('vpaid.AdVideoStart', (obj) => { - this.setState({adStart: `${this.state.adStart},AdVideoStart`}) - }) + this.setState({ adStart: `${this.state.adStart},AdVideoStart` }); + }); player.on('vpaid.AdVideoFirstQuartile', (obj) => { - this.setState({adStart: `${this.state.adStart},AdVideoFirstQuartile`}) - }) + this.setState({ adStart: `${this.state.adStart},AdVideoFirstQuartile` }); + }); player.on('vpaid.AdVideoMidpoint', (obj) => { - this.setState({adStart: `${this.state.adStart},AdVideoMidpoint`}) - }) + this.setState({ adStart: `${this.state.adStart},AdVideoMidpoint` }); + }); player.on('vpaid.AdVideoThirdQuartile', (obj) => { - this.setState({adStart: `${this.state.adStart},AdVideoThirdQuartile`}) - }) + this.setState({ adStart: `${this.state.adStart},AdVideoThirdQuartile` }); + }); player.on('vpaid.AdVideoComplete', (obj) => { - this.setState({adStart: `${this.state.adStart},AdVideoComplete`}) - }) + this.setState({ adStart: `${this.state.adStart},AdVideoComplete` }); + }); player.on('vpaid.AdClickThru', (obj) => { - this.setState({adStart: `${this.state.adStart},AdClickThru`}) - }) + this.setState({ adStart: `${this.state.adStart},AdClickThru` }); + }); player.on('vpaid.AdInteraction', (obj) => { - this.setState({adStart: `${this.state.adStart},AdInteraction`}) - }) + this.setState({ adStart: `${this.state.adStart},AdInteraction` }); + }); player.on('vpaid.AdUserAcceptInvitation', (obj) => { - this.setState({adStart: `${this.state.adStart},AdUserAcceptInvitation`}) - }) + this.setState({ adStart: `${this.state.adStart},AdUserAcceptInvitation` }); + }); player.on('vpaid.AdUserMinimize', (obj) => { - this.setState({adStart: `${this.state.adStart},AdUserMinimize`}) - }) + this.setState({ adStart: `${this.state.adStart},AdUserMinimize` }); + }); player.on('vpaid.AdUserClose', (obj) => { - this.setState({adStart: `${this.state.adStart},AdUserClose`}) - }) + this.setState({ adStart: `${this.state.adStart},AdUserClose` }); + }); player.on('vpaid.AdPaused', (obj) => { - this.setState({adStart: `${this.state.adStart},AdPaused`}) - document.querySelectorAll('.delta-overlay').forEach(overlay => { - overlay.style.display = 'none' - }) - }) + this.setState({ adStart: `${this.state.adStart},AdPaused` }); + document.querySelectorAll('.delta-overlay').forEach((overlay) => { + overlay.style.display = 'none'; + }); + }); player.on('vpaid.AdPlaying', (obj) => { - this.setState({adStart: `${this.state.adStart},AdPlaying`}) - }) + this.setState({ adStart: `${this.state.adStart},AdPlaying` }); + }); player.on('vpaid.AdLog', (obj) => { - this.setState({adStart: `${this.state.adStart},AdLog`}) - }) + this.setState({ adStart: `${this.state.adStart},AdLog` }); + }); player.on('vpaid.AdError', (obj) => { - this.setState({adStart: `${this.state.adStart},AdError`}) - }) + this.setState({ adStart: `${this.state.adStart},AdError` }); + }); player.on('vast.impression', (obj) => { - this.setState({adStart: `${this.state.adStart},impression`}) - + this.setState({ adStart: `${this.state.adStart},impression` }); + if (player.vast.vastResponse.trackingEvents.impression) { - fetch(player.vast.vastResponse.trackingEvents.impression[0].uri).then(r => r.json()).then(data => console.log('vast.impression ', data)) + fetch(player.vast.vastResponse.trackingEvents.impression[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.impression ', data)); } - }) + }); player.on('vast.creativeView', (obj) => { - this.setState({adStart: `${this.state.adStart},creativeView`}) - + this.setState({ adStart: `${this.state.adStart},creativeView` }); + if (player.vast.vastResponse.trackingEvents.creativeView) { - fetch(player.vast.vastResponse.trackingEvents.creativeView[0].uri).then(r => r.json()).then(data => console.log('vast.creativeView ', data)) + fetch(player.vast.vastResponse.trackingEvents.creativeView[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.creativeView ', data)); } - }) + }); player.on('vast.start', (obj) => { - this.setState({adStart: `start`}) - + this.setState({ adStart: 'start' }); + if (player.vast.vastResponse.trackingEvents.start) { - fetch(player.vast.vastResponse.trackingEvents.start[0].uri).then(r => r.json()).then(data => console.log('vast.start ', data)) + fetch(player.vast.vastResponse.trackingEvents.start[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.start ', data)); } - }) + }); player.on('vast.firstQuartile', (obj) => { - this.setState({adStart: `${this.state.adStart},firstQuartile`}) - + this.setState({ adStart: `${this.state.adStart},firstQuartile` }); + if (player.vast.vastResponse.trackingEvents.firstQuartile) { - fetch(player.vast.vastResponse.trackingEvents.firstQuartile[0].uri).then(r => r.json()).then(data => console.log('vast.firstQuartile ', data)) + fetch(player.vast.vastResponse.trackingEvents.firstQuartile[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.firstQuartile ', data)); } - }) + }); player.on('vast.midpoint', (obj) => { - this.setState({adStart: `${this.state.adStart},midpoint`}) - + this.setState({ adStart: `${this.state.adStart},midpoint` }); + if (player.vast.vastResponse.trackingEvents.midpoint) { - fetch(player.vast.vastResponse.trackingEvents.midpoint[0].uri).then(r => r.json()).then(data => console.log('vast.midpoint ', data)) + fetch(player.vast.vastResponse.trackingEvents.midpoint[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.midpoint ', data)); } - }) + }); player.on('vast.thirdQuartile', (obj) => { - this.setState({adStart: `${this.state.adStart},thirdQuartile`}) - + this.setState({ adStart: `${this.state.adStart},thirdQuartile` }); + if (player.vast.vastResponse.trackingEvents.thirdQuartile) { - fetch(player.vast.vastResponse.trackingEvents.thirdQuartile[0].uri).then(r => r.json()).then(data => console.log('vast.thirdQuartile ', data)) + fetch(player.vast.vastResponse.trackingEvents.thirdQuartile[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.thirdQuartile ', data)); } - }) + }); player.on('vast.complete', (obj) => { - this.setState({adStart: `${this.state.adStart},complete`}) - + this.setState({ adStart: `${this.state.adStart},complete` }); + if (player.vast.vastResponse.trackingEvents.complete) { - fetch(player.vast.vastResponse.trackingEvents.complete[0].uri).then(r => r.json()).then(data => console.log('vast.complete ', data)) + fetch(player.vast.vastResponse.trackingEvents.complete[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.complete ', data)); } - }) + }); player.on('vast.pause', (obj) => { - this.setState({adStart: `${this.state.adStart},pause`}) - + this.setState({ adStart: `${this.state.adStart},pause` }); + if (player.vast.vastResponse.trackingEvents.pause) { - fetch(player.vast.vastResponse.trackingEvents.pause[0].uri).then(r => r.json()).then(data => console.log('vast.pause ', data)) + fetch(player.vast.vastResponse.trackingEvents.pause[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.pause ', data)); } - }) + }); player.on('vast.resume', (obj) => { - this.setState({adStart: `${this.state.adStart},resume`}) - + this.setState({ adStart: `${this.state.adStart},resume` }); + if (player.vast.vastResponse.trackingEvents.resume) { - fetch(player.vast.vastResponse.trackingEvents.resume[0].uri).then(r => r.json()).then(data => console.log('vast.resume ', data)) + fetch(player.vast.vastResponse.trackingEvents.resume[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.resume ', data)); } - }) + }); player.on('vast.fullscreen', (obj) => { - this.setState({adStart: `${this.state.adStart},fullscreen`}) - + this.setState({ adStart: `${this.state.adStart},fullscreen` }); + if (player.vast.vastResponse.trackingEvents.fullscreen) { - fetch(player.vast.vastResponse.trackingEvents.fullscreen[0].uri).then(r => r.json()).then(data => console.log('vast.fullscreen ', data)) + fetch(player.vast.vastResponse.trackingEvents.fullscreen[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.fullscreen ', data)); } - }) + }); player.on('vast.exitFullscreen', (obj) => { - this.setState({adStart: `${this.state.adStart},exitFullscreen`}) - + this.setState({ adStart: `${this.state.adStart},exitFullscreen` }); + if (player.vast.vastResponse.trackingEvents.exitFullscreen) { - fetch(player.vast.vastResponse.trackingEvents.exitFullscreen[0].uri).then(r => r.json()).then(data => console.log('vast.exitFullscreen ', data)) + fetch(player.vast.vastResponse.trackingEvents.exitFullscreen[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.exitFullscreen ', data)); } - }) + }); player.on('vast.mute', (obj) => { - this.setState({adStart: `${this.state.adStart},mute`}) - + this.setState({ adStart: `${this.state.adStart},mute` }); + if (player.vast.vastResponse.trackingEvents.mute) { - fetch(player.vast.vastResponse.trackingEvents.mute[0].uri).then(r => r.json()).then(data => console.log('vast.mute ', data)) + fetch(player.vast.vastResponse.trackingEvents.mute[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.mute ', data)); } - }) + }); player.on('vast.unmute', (obj) => { - this.setState({adStart: `${this.state.adStart},unmute`}) - + this.setState({ adStart: `${this.state.adStart},unmute` }); + if (player.vast.vastResponse.trackingEvents.unmute) { - fetch(player.vast.vastResponse.trackingEvents.unmute[0].uri).then(r => r.json()).then(data => console.log('vast.unmute ', data)) + fetch(player.vast.vastResponse.trackingEvents.unmute[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.unmute ', data)); } - }) + }); player.on('vast.adclick', (obj) => { - this.setState({adStart: `${this.state.adStart},adclick`}) - + this.setState({ adStart: `${this.state.adStart},adclick` }); + if (player.vast.vastResponse.trackingEvents.adclick) { - fetch(player.vast.vastResponse.trackingEvents.adclick[0].uri).then(r => r.json()).then(data => console.log('vast.adclick ', data)) + fetch(player.vast.vastResponse.trackingEvents.adclick[0].uri).then(r => r.json()).then(data => console.log('DELTASTV: vast.adclick ', data)); } - }) + }); player.on('vast.contentEnd', (obj) => { - videojs(document.getElementsByClassName('video-js')[0]).playlist.next() + videojs(document.getElementById('deltaplayer')).playlist.next(); + }); + }); - }) - }) - - videojs(document.getElementsByClassName('video-js')[0]).adform({}) - + videojs(document.getElementById('deltaplayer')).adform({}); } playlist(videos) { - - videojs(document.getElementsByClassName('video-js')[0]).playlist(videos) - videojs(document.getElementsByClassName('video-js')[0]).playlist.autoadvance(0) - + console.log('DELTASTV: Do playlist -', videos); + videojs(document.getElementById('deltaplayer')).playlist(videos); + videojs(document.getElementById('deltaplayer')).playlist.autoadvance(0); } overlay(title) { - - videojs(document.getElementsByClassName('video-js')[0]).overlay({ + videojs(document.getElementById('deltaplayer')).overlay({ content: 'Video has been paused', debug: false, overlays: [{ @@ -791,142 +518,129 @@ class App extends React.Component { class: 'delta-overlay', start: 'pause', end: 'playing', - }] - }) + }], + }); } videojs(videos) { - - videojs(document.getElementsByClassName('video-js')[0], { - 'controls': true, - 'autoplay': false, - 'preload': 'metadata', - 'loop': false, - 'muted': true, - 'width': 640, - 'height': 264, - 'playbackRates': [1, 1.5, 2, 3], + videojs(document.getElementById('deltaplayer'), { + controls: true, + autoplay: false, + preload: 'metadata', + loop: false, + muted: true, + width: 640, + height: 264, + playbackRates: [1, 1.5, 2, 3], }, () => { - this.setState({ - videoLoaded: true - }) - - this.playlist(this.state.videos) - this.plugins() - let player = videojs(document.getElementsByClassName('video-js')[0]) - let title = player.playlist()[player.playlist.currentItem() < 0 ? 0 : player.playlist.currentItem()].title - this.overlay(title) - - }) // end of videojs - - - videojs(document.getElementsByClassName('video-js')[0]).on('loadstart', () => { - console.log('video.js loadstart event!') - let player = videojs(document.getElementsByClassName('video-js')[0]) - let title = player.playlist()[player.playlist.currentItem() < 0 ? 0 : player.playlist.currentItem()].title - this.overlay(title) - }) - + videoLoaded: true, + }); + console.log('DELTASTV: Do videojs', videos); + console.log('DELTASTV: Do videojs', this.state); + + this.playlist(this.state.videos); + this.plugins(); + const player = videojs(document.getElementById('deltaplayer')); + const title = player.playlist()[player.playlist.currentItem() < 0 ? 0 : player.playlist.currentItem()].title; + this.overlay(title); + }); // end of videojs + + + videojs(document.getElementById('deltaplayer')).on('loadstart', () => { + const player = videojs(document.getElementById('deltaplayer')); + const title = player.playlist()[player.playlist.currentItem() < 0 ? 0 : player.playlist.currentItem()].title; + this.overlay(title); + }); } componentDidMount() { - // this.getVideos() // this.getVideosNew() // window.location.href.indexOf('telegraph.co.uk') !== -1 ? this.getVideosNew() : this.getVideos() // let url = `http://staging.spectator.co.uk/2016/07/the-dream-of-a-european-turkey-is-drifting-away/` // let url = `http://www.telegraph.co.uk/news/2017/03/05/donald-trump-vs-barack-obama-90-seconds/` this.getVideos(window.location.href) - .then(data => { - this.setVideos(data) + .then((data) => { + this.setVideos(data); - console.log('DATA ', data) + console.log('DELTASTV: DATA', data); - let ps = [].slice.call(document.body.querySelectorAll('p, span')).filter(e => e.textContent) - let ph = document.body.querySelectorAll('#suggestvdeltaplayer') - let root = document.querySelectorAll('#deltaplayercontainer')[0] - let lastPText - let lastPDesc + const ps = [].slice.call(document.body.querySelectorAll('p, span')).filter(e => e.textContent); + const ph = document.body.querySelectorAll('#suggestvdeltaplayer'); + const root = document.querySelectorAll('#deltaplayercontainer')[0]; + let lastPText; + let lastPDesc; if (data.text) { - lastPText = ps.filter(p => { - return p.textContent.indexOf(data.text.substr(data.text.length / 2, 20)) !== -1 + lastPText = ps.filter(p => p.textContent.indexOf(data.text.substr(data.text.length / 2, 20)) !== -1, // return p.textContent.indexOf('between the two men') !== -1 - })[0] + )[0]; } if (data.description) { - lastPDesc = ps.filter(p => { - return p.textContent.indexOf(data.description.substr(data.description.length / 2, 20)) !== -1 - })[0] + lastPDesc = ps.filter(p => p.textContent.indexOf(data.description.substr(data.description.length / 2, 20)) !== -1)[0]; } - console.log('lastPText ', lastPText) - console.log('lastPDesc ', lastPDesc) - console.log('#suggestvdeltaplayer ', ph[0]) + console.log('lastPText ', lastPText); + console.log('lastPDesc ', lastPDesc); + console.log('#suggestvdeltaplayer ', ph[0]); // lastPText ? lastPText.parentNode.insertBefore(ReactDOM.findDOMNode(this), lastPText.nextSibling) : lastPDesc ? lastPDesc.parentNode.insertBefore(ReactDOM.findDOMNode(this), lastPDesc.nextSibling) : this.noTextOrDescription() // lastPText ? lastPText.parentNode.appendChild(root) : lastPDesc ? lastPDesc.parentNode.appendChild(root) : this.noTextOrDescription() - ph.length === 0 ? lastPText ? lastPText.parentNode.appendChild(root) : lastPDesc ? lastPDesc.parentNode.appendChild(root) : this.noTextOrDescription() : ph[0].appendChild(root) + ph.length === 0 ? lastPText ? lastPText.parentNode.appendChild(root) : lastPDesc ? lastPDesc.parentNode.appendChild(root) : this.noTextOrDescription() : ph[0].appendChild(root); if (lastPText || lastPDesc || ph.length !== 0) { - this.videojs(this.state.videos) + this.videojs(this.state.videos); } + }).catch((err) => { + console.log('DELTASTV: Promise Error', err); + videojs(document.getElementById('deltaplayer')).dispose(); + }); - }).catch(err => { - console.log('Promise Error: ', err) - videojs(document.getElementsByClassName('video-js')[0]).dispose() - }) - - window.addEventListener('scroll', this.handleScroll.bind(this)) - window.addEventListener('touchmove', this.handleScroll.bind(this)) - + window.addEventListener('scroll', this.handleScroll.bind(this)); + window.addEventListener('touchmove', this.handleScroll.bind(this)); } noTextOrDescription() { - console.log('there is no text or description') - videojs(document.getElementsByClassName('video-js')[0]).dispose() + console.log('DELTASTV: there is no text or description'); + videojs(document.getElementById('deltaplayer')).dispose(); } isInViewport(element) { - let rect = element.getBoundingClientRect() - let html = document.documentElement - return rect.top >= 0 && - rect.left >= 0 && - rect.bottom <= (window.innerHeight || html.clientHeight) && - rect.right <= (window.innerWidth || html.clientWidth) + const rect = element.getBoundingClientRect(); + const html = document.documentElement; + return rect.top >= 0 && + rect.left >= 0 && + rect.bottom <= (window.innerHeight || html.clientHeight) && + rect.right <= (window.innerWidth || html.clientWidth); } renderECP() { - return (
- - + id="deltaplayer" + className="video-js vjs-default-skin vjs-fluid vjs-big-play-centered" + />
- ) - + ); } render() { - return (
{this.renderECP()}
- ) - + ); } } -export default App +export default App; diff --git a/src/main.jsx b/src/main.jsx index dfb5874..fec558d 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -1,35 +1,35 @@ -import React from 'react' -import ReactDOM from 'react-dom' -import App from './App' +import React from 'react'; +import ReactDOM from 'react-dom'; +import App from './App'; -let container = document.createElement('div') -container.id = 'deltaplayercontainer' -document.body.appendChild(container) +const container = document.createElement('div'); +container.id = 'deltaplayercontainer'; +document.body.appendChild(container); -require('script-loader!../lib/video.js') -require('script-loader!../lib/playlist.js') -require('script-loader!../lib/vpaid.js') -require('script-loader!../lib/overlay.js') +require('script-loader!../lib/video.js'); +require('script-loader!../lib/playlist.js'); +require('script-loader!../lib/vpaid.js'); +require('script-loader!../lib/overlay.js'); -let links = [ +const links = [ 'https://vjs.zencdn.net/5.14.1/video-js.min.css', 'https://delta.sugges.tv/videojs-overlay.css', - 'https://cdnjs.cloudflare.com/ajax/libs/videojs-vast-vpaid/2.0.2/videojs.vast.vpaid.min.css' -] + 'https://cdnjs.cloudflare.com/ajax/libs/videojs-vast-vpaid/2.0.2/videojs.vast.vpaid.min.css', +]; -links.forEach(href => { - let link = document.createElement('link') - link.href = href - link.rel = 'stylesheet' - document.head.appendChild(link) -}) +links.forEach((href) => { + const link = document.createElement('link'); + link.href = href; + link.rel = 'stylesheet'; + document.head.appendChild(link); +}); console.log('running'); ReactDOM.render( , - document.getElementById('deltaplayercontainer') -) + document.getElementById('deltaplayercontainer'), +); diff --git a/src/playlist.js b/src/playlist.js new file mode 100644 index 0000000..ec0bab7 --- /dev/null +++ b/src/playlist.js @@ -0,0 +1,384 @@ +export const itn = [ + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/c648b1b9-1056-4893-a052-5bcc35f2f38d/27255151b3ba0ca44840000cb112d9d3.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/c648b1b9-1056-4893-a052-5bcc35f2f38d/aeb2a6436072a5961007183dd2ddcd5a-1280x720.png ', + title: 'ITV and ITN celebrate 60 years on air', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/1e78393e-7f52-4933-87b6-d5d609c831c0/901f4496855cf8db8d91b7f96d093f60.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/1e78393e-7f52-4933-87b6-d5d609c831c0/7123a2ae5dbb578049617d7df8964459-1280x720.png', + title: 'Amateur video captures tornado touching down in Ohio', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/f8ca127e-6002-47a3-92b5-c5c56d5578dc/f1cc13cb0f47d37d94e5f5d938aaa7af.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/f8ca127e-6002-47a3-92b5-c5c56d5578dc/965644cbcdb577138bfbb4d2d9505e75-1280x720.png', + title: 'Time-lapse video of the Aurora Borealis in Minnesota', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/e34e6fe7-442e-4f76-b5fb-e81803953f46/77f948bf561b33a50ee2d688f2fdccad.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/e34e6fe7-442e-4f76-b5fb-e81803953f46/cb128c8e24c9c2cca9e3d41f5312125c-1280x720.png', + title: 'Video of racoon riding a scooter goes viral', + }, +]; + +export const bristolsport = [ + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/3d890945-9f28-472a-b568-4c349991638a/21fcf8b8165d4a480087b4d156b7c7af.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/3d890945-9f28-472a-b568-4c349991638a/a683b5206fd45c94d78546e0901b9cc4-1280x720.png', + title: "Nickelodeon Kids' Choice 2015 Sports Awards", + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/0bb3f3c3-8f1f-4256-8ca3-812ed74d436e/3d33b409fe58f842d364546b1d4dc089.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/0bb3f3c3-8f1f-4256-8ca3-812ed74d436e/3afcd7b07cd8a72c6d5e7820dc9ba778-1280x720.png', + title: '10 Pretty Weird Sports', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/bec309ef-d345-4af3-865c-a65462de6434/bc97e402f5ee3fb09dfa600113d3253d.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/bec309ef-d345-4af3-865c-a65462de6434/67a03c0657df7bdc15473e6c8a6851d3_1.jpg', + title: '10 Biggest Sporting Rivalries', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/36c38533-6ea3-4c4c-9e2f-98cf0e1f6f0f/1b8b322350ea41caad3f4059c3727538.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/36c38533-6ea3-4c4c-9e2f-98cf0e1f6f0f/31b868ba73e9f72827c4e3c6325efcf5_1.jpg', + title: '10 Brutal Ancient Sports', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/4c7e375f-710b-43fe-8978-0e032d77cc58/985aa6d28873952f9643de9c82954a5f.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/4c7e375f-710b-43fe-8978-0e032d77cc58/0d42b23193b84c4f1b5da6c67fd77ba6-1280x720.png', + title: 'Famous Sporting Wives & Girlfriends', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/15e93e94-b88f-4f2f-a6b4-8b65c027ed4c/0fb4839b91a85f75fe10845bbf0b0bdb.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/15e93e94-b88f-4f2f-a6b4-8b65c027ed4c/36d8a00a46a65d26b05d68174264c0c3-1280x720.png', + title: "China's gruelling sports schools", + }, +]; + +export const londontheinside = [ + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/100715ce-44d2-48dd-bd25-4234c434f7a8/58b6261f76a9822a08a617de6be56260.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/100715ce-44d2-48dd-bd25-4234c434f7a8/1a6ba68aa83927bb4f22438ff29a7479-1280x720.png', + title: 'The beauty and the pigs: An unconditional love story', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/4b5be471-4665-4d06-acb6-a902525ecc81/8941b5cf87104a67bf469d85094e6f25.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/4b5be471-4665-4d06-acb6-a902525ecc81/b8a0fd8dac6a2fe12ffbae8deb2e4b8c-1280x720.png', + title: 'Brazilian beauty Adriana Lima covers Vogue Olympics', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/deb54697-e356-4a37-bbce-1b5605634727/e7bb5c43c460f0d74aa172ab6dd889de.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/deb54697-e356-4a37-bbce-1b5605634727/b811e19b0f1c70b6f61ffab82b1d4f56_1.jpg', + title: 'The new beauty consumers', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/025d7a48-8106-4328-a1f8-abe6172a05f6/69a5c1dd1beececaf9804cfe052e1362.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/025d7a48-8106-4328-a1f8-abe6172a05f6/8ac6b39b6a8de0b42102d1f6940db82c_1.jpg', + title: '#Hashtag: Instagram comes to life in NYC beauty store', + }, + { + sources: [ + { + src: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/96f86069-8db0-4bad-ade4-4738ac606f0b/098b60d15529b8784441f70d93ea2c13.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://s3.amazonaws.com/egamitv-videos/videoelephant/96f86069-8db0-4bad-ade4-4738ac606f0b/b598fd21b0f7b81d12378c21723d65ff_1.jpg', + title: "Miss Undertaker: World's most bizarre beauty title?", + }, + { + sources: [ + { + src: 'https://cdn-videos.akamaized.net/m/NzA1MTk5NQ/MjM2NjkzNg/Marchionne0307d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/idKnV8f7YxQ8/v5/640x-1.jpg', + title: "Ferrari's Marchionne Hopes for U.S. Border Tax Exemption", + }, +]; + +export const spectator = [ + { + sources: [ + { + src: 'https://cdn-videos.akamaized.net/m/NzA2MTk1MQ/MjM3MDE4OQ/bmKirkpatrick031717d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iLTNElrqdVZ0/v5/640x-1.jpg', + title: 'Apple Plans to Expand in China as iPhone Sales Slow', + }, + { + sources: [ + { + src: 'https://cdn-videos.akamaized.net/m/NzA2MTkwNA/MjM3MDE1NQ/intvkenny0317d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iij3ER5mSADc/v5/640x-1.jpg', + title: 'Irish PM Kenny on Trump Meeting, Brexit Talks and Trade', + }, + { + sources: [ + { + src: 'https://cdn-videos.akamaized.net/m/NzA1MTkzMA/MjM2NjkyMg/Zellmer0307d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iPeY2kz8.bKg/v5/640x-1.jpg', + title: 'Porsche Pushing Toward Electric and Driverless Cars', + }, + { + sources: [ + { + src: 'https://dh85o37ztyzo0.cloudfront.net/m/NzA2MDg0MA/MjM2OTgyNQ/intvreiss0316d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iZXr_PfeXgB8/v5/640x-1.jpg', + title: 'Canada Goose CEO Sees Opportunities in Europe and China', + }, + { + sources: [ + { + src: 'https://cdn-videos.akamaized.net/m/NzA2MDcyMg/MjM2OTc3NQ/barinka14550316d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iA6E_g6FtawU/v5/640x-1.jpg', + title: 'Canada Goose Shares Soar in Trading Debut', + }, + { + sources: [ + { + src: 'https://cdn-videos.akamaized.net/m/NzA1MTgxOQ/MjM2Njg0Mw/Fiotakisx0307d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/ii0swWho50RM/v5/640x-1.jpg', + title: "UBS's Fiotakis Says Greek, IMF Incentives Have Changed", + }, + { + sources: [ + { + src: 'https://cdn-videos.akamaized.net/m/NzA1MTcxNA/MjM2Njc5OA/intvkirsten0306d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/i0JniPATs15A/v5/640x-1.jpg', + title: "Vonovia's CFO Says Berlin Is Not a Cheap Market Anymore", + }, + { + sources: [ + { + src: 'https://cdn-videos.akamaized.net/m/NzA1MjEwNQ/MjM2Njk5OA/intvzetsche0307d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iRZ3gr1XgdLI/v5/640x-1.jpg', + title: 'Daimler CEO Dieter Zetsche Is Bullish on Global Sales', + }, + { + sources: [ + { + src: 'https://cdn-videos.akamaized.net/m/NzA1MTk5NQ/MjM2NjkzNg/Marchionne0307d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/idKnV8f7YxQ8/v5/640x-1.jpg', + title: "Ferrari's Marchionne Hopes for U.S. Border Tax Exemption", + }, + { + sources: [ + { + src: 'https://cdn-videos.akamaized.net/m/NzA1NDE5MQ/MjM2NzY0NA/intvzeybekci0309d_1800.mp4', + type: 'video/mp4', + }, + ], + poster: 'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iP4r1U0k4o1s/v5/640x-1.jpg', + title: "Turkey's Zeybekci Says Economy Must Grow at Least 5.5%", + }, +]; + +export const telegraph = [ + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/dwNmdoYTE61D6obD2E3SqRuchixJHj4R/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/dwNmdoYTE61D6obD2E3SqRuchixJHj4R/promo314626431', + title: "Three-year-old 'actress' can cry on demand", + }, + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/VlYmdoYTE6gHpb2W6IZ0MKSSCPtFNG7N/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/VlYmdoYTE6gHpb2W6IZ0MKSSCPtFNG7N/promo314626998', + title: 'Lost student survives for five days alone in desert', + }, + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/VxN2doYTE6_T_c61xo7MleGDK6Wbh9_M/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/VxN2doYTE6_T_c61xo7MleGDK6Wbh9_M/promo314627996', + title: 'Transforming KYC compliance through process automation', + }, + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/JsMGVoYTE6Zyro4dbErrr7jE5n7XU8ak/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/JsMGVoYTE6Zyro4dbErrr7jE5n7XU8ak/promo314613444', + title: 'Father draws moustache and eyebrows on baby while mum is away', + }, + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/BrZWRoYTE6Io_soFShiukBn1ELK_1pAr/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/BrZWRoYTE6Io_soFShiukBn1ELK_1pAr/promo314611399', + title: 'Man Creates His Own Tiny World in Melbourne', + }, + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/JteGNoYTE6azt-zbmshw-Vg6iOhH6ilX/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/JteGNoYTE6azt-zbmshw-Vg6iOhH6ilX/promo314609716', + title: "Boyfriend's Drone Records Romantic Proposal", + }, + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/l1ZDhoYTE6nEnaYIOEqYSo4KFbqc9Ds7/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/l1ZDhoYTE6nEnaYIOEqYSo4KFbqc9Ds7/promo314589151', + title: 'Dogs On Dates Video Compilation 2017', + }, + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/RnNzhoYTE6BiB6HZHAEx0E0G4fqIrddL/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/RnNzhoYTE6BiB6HZHAEx0E0G4fqIrddL/promo314588588', + title: 'Guy Juggles Golf Ball Before Making Hole in One', + }, + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/5nNzZoYTE6VfIaJ9BSgx2f3-iqhSVP7-/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/5nNzZoYTE6VfIaJ9BSgx2f3-iqhSVP7-/promo314581288', + title: 'Paralyzed Guy Performs Backflip on Motorbike', + }, + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/ZvNzJoYTE66kM65rNTbn4nFYfOQ9_0eu/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/ZvNzJoYTE66kM65rNTbn4nFYfOQ9_0eu/promo314569620', + title: 'Fitness Enthusiast Falls Off Box', + }, + { + sources: [ + { + src: 'http://17909.cdx.c.ooyala.com/htNzJoYTE62Td7VRYkHGbHT_eiPaRhQy/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH', + type: 'video/mp4', + }, + ], + poster: 'http://17909.cdx.c.ooyala.com/htNzJoYTE62Td7VRYkHGbHT_eiPaRhQy/promo314569613', + title: 'Guy Catches Fish With Bare Hands', + }, +];