text: require=function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return r(n?n:t)},u,u.exports,t,e,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e){(function(n){"use strict";var i=t("base_object"),r=t("./components/core_factory"),o=t("./components/loader"),a=t("mediator"),s="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,l=t("scrollmonitor"),c=t("player_info"),u=function(t){$traceurRuntime.superCall(this,d.prototype,"constructor",[t]),window.p=this,this.options=t,this.options.sources=this.normalizeSources(t),this.loader=new o(this.options.plugins||[]),this.coreFactory=new r(this,this.loader),t.height||(t.height=360),t.width||(t.width=640),c.currentSize={width:t.width,height:t.height}},d=u;$traceurRuntime.createClass(u,{attachTo:function(t){this.options.parentElement=t,this.core=this.coreFactory.create(),this.options.autoPlayVisible&&this.bindAutoPlayVisible(this.options.autoPlayVisible)},bindAutoPlayVisible:function(t){var e=this;this.elementWatcher=l.create(this.core.$el),"full"===t?this.elementWatcher.fullyEnterViewport(function(){return e.enterViewport()}):"partial"===t&&this.elementWatcher.enterViewport(function(){return e.enterViewport()})},enterViewport:function(){0===this.elementWatcher.top||this.isPlaying()||this.play()},normalizeSources:function(t){return s.compact(s.flatten([t.source,t.sources]))},resize:function(t){this.core.resize(t)},load:function(t){this.core.load(t)},destroy:function(){this.core.destroy()},play:function(){this.core.mediaControl.container.play()},pause:function(){this.core.mediaControl.container.pause()},stop:function(){this.core.mediaControl.container.stop()},seek:function(t){this.core.mediaControl.container.setCurrentTime(t)},setVolume:function(t){this.core.mediaControl.container.setVolume(t)},mute:function(){this.core.mediaControl.container.setVolume(0)},unmute:function(){this.core.mediaControl.container.setVolume(100)},isPlaying:function(){return this.core.mediaControl.container.isPlaying()}},{},i),n.DEBUG=!1,window.Clappr={Player:u,Mediator:a},e.exports=window.Clappr}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./components/core_factory":17,"./components/loader":18,base_object:void 0,mediator:void 0,player_info:void 0,scrollmonitor:5}],2:[function(t,e){function n(){}var i=e.exports={};i.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.MutationObserver,n="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};var i=[];if(e){var r=document.createElement("div"),o=new MutationObserver(function(){var t=i.slice();i.length=0,t.forEach(function(t){t()})});return o.observe(r,{attributes:!0}),function(t){i.length||r.setAttribute("yes","no"),i.push(t)}}return n?(window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),i.length>0)){var n=i.shift();n()}},!0),function(t){i.push(t),window.postMessage("process-tick","*")}):function(t){setTimeout(t,0)}}(),i.title="browser",i.browser=!0,i.env={},i.argv=[],i.on=n,i.addListener=n,i.once=n,i.off=n,i.removeListener=n,i.removeAllListeners=n,i.emit=n,i.binding=function(){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(){throw new Error("process.chdir is not supported")}},{}],3:[function(t){(function(t,e){!function(t){"use strict";function e(t){return{configurable:!0,enumerable:!1,value:t,writable:!0}}function n(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++z+"$__"}function i(){var t=n();return H[t]=!0,t}function r(t){return"object"==typeof t&&t instanceof s}function o(t){return r(t)?"symbol":typeof t}function a(t){var e=new s(t);if(!(this instanceof a))return e;throw new TypeError("Symbol cannot be new'ed")}function s(t){var e=n();I(this,G,{value:this}),I(this,U,{value:e}),I(this,N,{value:t}),c(this),q[e]=this}function l(t){var e=t[Y];return e&&e.self===t?e:D(t)?(K.hash.value=X++,K.self.value=t,W.value=P(null,K),I(t,Y,W),W.value):void 0}function c(t){return l(t),E.apply(this,arguments)}function u(t){return l(t),L.apply(this,arguments)}function d(t){return l(t),V.apply(this,arguments)}function h(t){return r(t)?t[U]:t}function p(t){for(var e=[],n=R(t),i=0;i<n.length;i++){var r=n[i];q[r]||H[r]||e.push(r)}return e}function f(t,e){return O(t,h(e))}function m(t){for(var e=[],n=R(t),i=0;i<n.length;i++){var r=q[n[i]];r&&e.push(r)}return e}function b(t){return F.call(this,h(t))}function g(e){return t.traceur&&t.traceur.options[e]}function y(t,e,n){var i,o;return r(e)&&(i=e,e=e[U]),t[e]=n,i&&(o=O(t,e))&&I(t,e,{enumerable:!1}),n}function v(t,e,n){return r(e)&&(n.enumerable&&(n=P(n,{enumerable:{value:!1}})),e=e[U]),I(t,e,n),t}function w(t){I(t,"defineProperty",{value:v}),I(t,"getOwnPropertyNames",{value:p}),I(t,"getOwnPropertyDescriptor",{value:f}),I(t.prototype,"hasOwnProperty",{value:b}),I(t,"freeze",{value:c}),I(t,"preventExtensions",{value:u}),I(t,"seal",{value:d}),t.getOwnPropertySymbols=m}function k(t){for(var e=1;e<arguments.length;e++)for(var n=R(arguments[e]),i=0;i<n.length;i++){var r=n[i];H[r]||!function(e,n){I(t,n,{get:function(){return e[n]},enumerable:!0})}(arguments[e],n[i])}return t}function S(t){return null!=t&&("object"==typeof t||"function"==typeof t)}function C(t){if(null==t)throw _();return $(t)}function j(t){if(null==t)throw new TypeError("Value cannot be converted to an Object");return t}function x(t){t.Symbol=a,t.Reflect=t.Reflect||{},t.Reflect.global=t.Reflect.global||t,w(t.Object)}if(!t.$traceurRuntime){var $=Object,_=TypeError,P=$.create,T=$.defineProperties,I=$.defineProperty,E=$.freeze,O=$.getOwnPropertyDescriptor,R=$.getOwnPropertyNames,B=$.keys,F=$.prototype.hasOwnProperty,L=($.prototype.toString,Object.preventExtensions),V=Object.seal,D=Object.isExtensible,M={"void":function(){},any:function(){},string:function(){},number:function(){},"boolean":function(){}},A=e,z=0,U=n(),N=n(),G=n(),q=P(null),H=P(null);I(a.prototype,"constructor",e(a)),I(a.prototype,"toString",A(function(){var t=this[G];if(!g("symbols"))return t[U];if(!t)throw TypeError("Conversion from symbol to string");var e=t[N];return void 0===e&&(e=""),"Symbol("+e+")"})),I(a.prototype,"valueOf",A(function(){var t=this[G];if(!t)throw TypeError("Conversion from symbol to string");return g("symbols")?t:t[U]})),I(s.prototype,"constructor",e(a)),I(s.prototype,"toString",{value:a.prototype.toString,enumerable:!1}),I(s.prototype,"valueOf",{value:a.prototype.valueOf,enumerable:!1});var Y=i(),W={value:void 0},K={hash:{value:void 0},self:{value:void 0}},X=0;a.iterator=a(),c(s.prototype),x(t),t.$traceurRuntime={createPrivateName:i,exportStar:k,getOwnHashObject:l,privateNames:H,setProperty:y,setupGlobals:x,toObject:C,isObject:S,toProperty:h,type:M,"typeof":o,checkObjectCoercible:j,hasOwnProperty:function(t,e){return b.call(t,e)},defineProperties:T,defineProperty:I,getOwnPropertyDescriptor:O,getOwnPropertyNames:R,keys:B}}}("undefined"!=typeof e?e:this),function(){"use strict";function t(){for(var t,e=[],n=0,i=0;i<arguments.length;i++){var r=$traceurRuntime.checkObjectCoercible(arguments[i]);if("function"!=typeof r[$traceurRuntime.toProperty(Symbol.iterator)])throw new TypeError("Cannot spread non-iterable object.");for(var o=r[$traceurRuntime.toProperty(Symbol.iterator)]();!(t=o.next()).done;)e[n++]=t.value}return e}$traceurRuntime.spread=t}(),function(){"use strict";function t(t,e){var n=m(t);do{var i=p(n,e);if(i)return i;n=m(n)}while(n);return void 0}function e(t,e,i,r){return n(t,e,i).apply(t,r)}function n(e,n,i){var r=t(n,i);return r?r.get?r.get.call(e):r.value:void 0}function i(e,n,i,r){var o=t(n,i);if(o&&o.set)return o.set.call(e,r),r;throw c("super has no setter '"+i+"'.")}function r(t){for(var e,n={},i=f(t),r=0;r<i.length;r++){var e=i[r];n[e]=p(t,e)}return n}function o(t,e,n,i){return h(e,"constructor",{value:t,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof i&&(t.__proto__=i),t.prototype=u(a(i),r(e))):t.prototype=e,h(t,"prototype",{configurable:!1,writable:!1}),d(t,r(n))}function a(t){if("function"==typeof t){var e=t.prototype;if(l(e)===e||null===e)return t.prototype;throw new c("super prototype must be an Object or null")}if(null===t)return null;throw new c("Super expression must either be null or a function, not "+typeof t+".")}function s(t,n,i){null!==m(n)&&e(t,n,"constructor",i)}var l=Object,c=TypeError,u=l.create,d=$traceurRuntime.defineProperties,h=$traceurRuntime.defineProperty,p=$traceurRuntime.getOwnPropertyDescriptor,f=$traceurRuntime.getOwnPropertyNames,m=Object.getPrototypeOf;$traceurRuntime.createClass=o,$traceurRuntime.defaultSuperCall=s,$traceurRuntime.superCall=e,$traceurRuntime.superGet=n,$traceurRuntime.superSet=i}(),function(){"use strict";function t(t){return{configurable:!0,enumerable:!1,value:t,writable:!0}}function e(t){return new Error("Traceur compiler bug: invalid state in state machine: "+t)}function n(){this.state=0,this.GState=g,this.storedException=void 0,this.finallyFallThrough=void 0,this.sent_=void 0,this.returnValue=void 0,this.tryStack_=[]}function i(t,e,n,i){switch(t.GState){case y:throw new Error('"'+n+'" on executing generator');case w:if("next"==n)return{value:void 0,done:!0};throw i;case g:if("throw"===n)throw t.GState=w,i;if(void 0!==i)throw b("Sent value to newborn generator");case v:t.GState=y,t.action=n,t.sent=i;var r=e(t),o=r===t;return o&&(r=t.returnValue),t.GState=o?w:v,{value:r,done:o}}}function r(){}function o(){}function a(t,e,i){var r=u(t,i),o=new n,a=m(e.prototype);return a[C]=o,a[j]=r,a}function s(t){return t.prototype=m(o.prototype),t.__proto__=o,t}function l(){n.call(this),this.err=void 0;var t=this;t.result=new Promise(function(e,n){t.resolve=e,t.reject=n})}function c(t,e){var n=u(t,e),i=new l;return i.createCallback=function(t){return function(e){i.state=t,i.value=e,n(i)}},i.errback=function(t){d(i,t),n(i)},n(i),i.result}function u(t,e){return function(n){for(;;)try{return t.call(e,n)}catch(i){d(n,i)}}}function d(t,e){t.storedException=e;var n=t.tryStack_[t.tryStack_.length-1];return n?(t.state=void 0!==n.catch?n.catch:n.finally,void(void 0!==n.finallyFallThrough&&(t.finallyFallThrough=n.finallyFallThrough))):void t.handleException(e)}var h=$traceurRuntime.createPrivateName,p=$traceurRuntime.defineProperties,f=$traceurRuntime.defineProperty,m=Object.create,b=TypeError,g=0,y=1,v=2,w=3,k=-2,S=-3;n.prototype={pushTry:function(t,e){if(null!==e){for(var n=null,i=this.tryStack_.length-1;i>=0;i--)if(void 0!==this.tryStack_[i].catch){n=this.tryStack_[i].catch;break}null===n&&(n=S),this.tryStack_.push({"finally":e,finallyFallThrough:n})}null!==t&&this.tryStack_.push({"catch":t})},popTry:function(){this.tryStack_.pop()},get sent(){return this.maybeThrow(),this.sent_},set sent(t){this.sent_=t},get sentIgnoreThrow(){return this.sent_},maybeThrow:function(){if("throw"===this.action)throw this.action="next",this.sent_},end:function(){switch(this.state){case k:return this;case S:throw this.storedException;default:throw e(this.state)}},handleException:function(t){throw this.GState=w,this.state=k,t}};var C=h(),j=h();r.prototype=o,f(o,"constructor",t(r)),o.prototype={constructor:o,next:function(t){return i(this[C],this[j],"next",t)},"throw":function(t){return i(this[C],this[j],"throw",t)}},p(o.prototype,{constructor:{enumerable:!1},next:{enumerable:!1},"throw":{enumerable:!1}}),Object.defineProperty(o.prototype,Symbol.iterator,t(function(){return this})),l.prototype=m(n.prototype),l.prototype.end=function(){switch(this.state){case k:this.resolve(this.returnValue);break;case S:this.reject(this.storedException);break;default:this.reject(e(this.state))}},l.prototype.handleException=function(){this.state=S},$traceurRuntime.asyncWrap=c,$traceurRuntime.initGeneratorFunction=s,$traceurRuntime.createGeneratorInstance=a}(),function(){function t(t,e,n,i,r,o,a){var s=[];return t&&s.push(t,":"),n&&(s.push("//"),e&&s.push(e,"@"),s.push(n),i&&s.push(":",i)),r&&s.push(r),o&&s.push("?",o),a&&s.push("#",a),s.join("")}function e(t){return t.match(s)}function n(t){if("/"===t)return"/";for(var e="/"===t[0]?"/":"",n="/"===t.slice(-1)?"/":"",i=t.split("/"),r=[],o=0,a=0;a<i.length;a++){var s=i[a];switch(s){case"":case".":break;case"..":r.length?r.pop():o++;break;default:r.push(s)}}if(!e){for(;o-->0;)r.unshift("..");0===r.length&&r.push(".")}return e+r.join("/")+n}function i(e){var i=e[l.PATH]||"";return i=n(i),e[l.PATH]=i,t(e[l.SCHEME],e[l.USER_INFO],e[l.DOMAIN],e[l.PORT],e[l.PATH],e[l.QUERY_DATA],e[l.FRAGMENT])}function r(t){var n=e(t);return i(n)}function o(t,n){var r=e(n),o=e(t);if(r[l.SCHEME])return i(r);r[l.SCHEME]=o[l.SCHEME];for(var a=l.SCHEME;a<=l.PORT;a++)r[a]||(r[a]=o[a]);if("/"==r[l.PATH][0])return i(r);var s=o[l.PATH],c=s.lastIndexOf("/");return s=s.slice(0,c+1)+r[l.PATH],r[l.PATH]=s,i(r)}function a(t){if(!t)return!1;if("/"===t[0])return!0;var n=e(t);return n[l.SCHEME]?!0:!1}var s=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),l={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};$traceurRuntime.canonicalizeUrl=r,$traceurRuntime.isAbsolute=a,$traceurRuntime.removeDotSegments=n,$traceurRuntime.resolveUrl=o}(),function(t){"use strict";function e(t){if(t){var e=b.normalize(t);return l[e]}}function n(t){var e=arguments[1],n=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(i){var r,o;if(e===m){var a=Object.getOwnPropertyDescriptor(t,i);a.get&&(r=a.get)}r||(o=t[i],r=function(){return o}),Object.defineProperty(n,i,{get:r,enumerable:!0})}),Object.preventExtensions(n),n}var i,r=$traceurRuntime,o=r.canonicalizeUrl,a=r.resolveUrl,s=r.isAbsolute,l=Object.create(null);i=t.location&&t.location.href?a(t.location.href,"./"):"";var c=function(t,e){this.url=t,this.value_=e};$traceurRuntime.createClass(c,{},{});var u=function(t,e){this.message=this.constructor.name+": "+this.stripCause(e)+" in "+t,this.stack=e instanceof d||!e.stack?"":this.stripStack(e.stack)},d=u;$traceurRuntime.createClass(u,{stripError:function(t){return t.replace(/.*Error:/,this.constructor.name+":")},stripCause:function(t){return t?t.message?this.stripError(t.message):t+"":""},loadedBy:function(t){this.stack+="\n loaded by "+t},stripStack:function(t){var e=[];return t.split("\n").some(function(t){return/UncoatedModuleInstantiator/.test(t)?!0:void e.push(t)}),e[0]=this.stripError(e[0]),e.join("\n")}},{},Error);var h=function(t,e){$traceurRuntime.superCall(this,p.prototype,"constructor",[t,null]),this.func=e},p=h;$traceurRuntime.createClass(h,{getUncoatedModule:function(){if(this.value_)return this.value_;try{return this.value_=this.func.call(t)}catch(e){if(e instanceof u)throw e.loadedBy(this.url),e;throw new u(this.url,e)}}},{},c);var f=Object.create(null),m={},b={normalize:function(t,e){if("string"!=typeof t)throw new TypeError("module name must be a string, not "+typeof t);if(s(t))return o(t);if(/[^\.]\/\.\.\//.test(t))throw new Error("module name embeds /../: "+t);return"."===t[0]&&e?a(e,t):o(t)},get:function(t){var i=e(t);if(!i)return void 0;var r=f[i.url];return r?r:(r=n(i.getUncoatedModule(),m),f[i.url]=r)},set:function(t,e){t=String(t),l[t]=new h(t,function(){return e}),f[t]=e},get baseURL(){return i},set baseURL(t){i=String(t)},registerModule:function(t,e){var n=b.normalize(t);if(l[n])throw new Error("duplicate module named "+n);l[n]=new h(n,e)},bundleStore:Object.create(null),register:function(t,e,n){e&&(e.length||n.length)?this.bundleStore[t]={deps:e,execute:function(){var t=arguments,i={};e.forEach(function(e,n){return i[e]=t[n]});var r=n.call(this,i);return r.execute.call(this),r.exports}}:this.registerModule(t,n)},getAnonymousModule:function(e){return new n(e.call(t),m)},getForTesting:function(t){var e=this;return this.testingPrefix_||Object.keys(f).some(function(t){var n=/(traceur@[^\/]*\/)/.exec(t);return n?(e.testingPrefix_=n[1],!0):void 0}),this.get(this.testingPrefix_+t)}};b.set("@traceur/src/runtime/ModuleStore",new n({ModuleStore:b}));var g=$traceurRuntime.setupGlobals;$traceurRuntime.setupGlobals=function(t){g(t)},$traceurRuntime.ModuleStore=b,t.System={register:b.register.bind(b),get:b.get,set:b.set,normalize:b.normalize},$traceurRuntime.getModuleImpl=function(t){var n=e(t);return n&&n.getUncoatedModule()}}("undefined"!=typeof e?e:this),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/utils",[],function(){"use strict";function t(t){return t>>>0}function e(t){return t&&("object"==typeof t||"function"==typeof t)}function n(t){return"function"==typeof t}function i(t){return"number"==typeof t}function r(t){return t=+t,w(t)?0:0!==t&&v(t)?t>0?y(t):g(t):t}function o(t){var e=r(t);return 0>e?0:S(e,j)}function a(t){return e(t)?t[Symbol.iterator]:void 0}function s(t){return n(t)}function l(t,e){return{value:t,done:e}}function c(t,e,n){e in t||Object.defineProperty(t,e,n)}function u(t,e,n){c(t,e,{value:n,configurable:!0,enumerable:!1,writable:!0})}function d(t,e,n){c(t,e,{value:n,configurable:!1,enumerable:!1,writable:!1})}function h(t,e){for(var n=0;n<e.length;n+=2){var i=e[n],r=e[n+1];u(t,i,r)}}function p(t,e){for(var n=0;n<e.length;n+=2){var i=e[n],r=e[n+1];d(t,i,r)}}function f(t,e,n){n&&n.iterator&&!t[n.iterator]&&(t["@@iterator"]&&(e=t["@@iterator"]),Object.defineProperty(t,n.iterator,{value:e,configurable:!0,enumerable:!1,writable:!0}))}function m(t){x.push(t)}function b(t){x.forEach(function(e){return e(t)})}var g=Math.ceil,y=Math.floor,v=isFinite,w=isNaN,k=Math.pow,S=Math.min,C=$traceurRuntime.toObject,j=k(2,53)-1,x=[];return{get toObject(){return C},get toUint32(){return t},get isObject(){return e},get isCallable(){return n},get isNumber(){return i},get toInteger(){return r},get toLength(){return o},get checkIterable(){return a},get isConstructor(){return s},get createIteratorResultObject(){return l},get maybeDefine(){return c},get maybeDefineMethod(){return u},get maybeDefineConst(){return d},get maybeAddFunctions(){return h},get maybeAddConsts(){return p},get maybeAddIterator(){return f},get registerPolyfill(){return m},get polyfillAll(){return b}}}),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Map",[],function(){"use strict";function t(t,e){if(r(e)){var n=s(e);return n&&t.objectIndex_[n.hash]}return"string"==typeof e?t.stringIndex_[e]:t.primitiveIndex_[e]}function e(t){t.entries_=[],t.objectIndex_=Object.create(null),t.stringIndex_=Object.create(null),t.primitiveIndex_=Object.create(null),t.deletedCount_=0}function n(t){var e=t,n=e.Object,i=e.Symbol;t.Map||(t.Map=u);var r=t.Map.prototype;r.entries&&(o(r,r.entries,i),o(n.getPrototypeOf((new t.Map).entries()),function(){return this},i))}var i=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),r=i.isObject,o=i.maybeAddIterator,a=i.registerPolyfill,s=$traceurRuntime.getOwnHashObject,l=Object.prototype.hasOwnProperty,c={},u=function(){var t=arguments[0];if(!r(this))throw new TypeError("Map called on incompatible type");if(l.call(this,"entries_"))throw new TypeError("Map can not be reentrantly initialised");if(e(this),null!==t&&void 0!==t)for(var n,i=t[Symbol.iterator]();!(n=i.next()).done;){var o=n.value,a=o[0],s=o[1];this.set(a,s)}};return $traceurRuntime.createClass(u,{get size(){return this.entries_.length/2-this.deletedCount_},get:function(e){var n=t(this,e);return void 0!==n?this.entries_[n+1]:void 0},set:function(e,n){var i=r(e),o="string"==typeof e,a=t(this,e);if(void 0!==a)this.entries_[a+1]=n;else if(a=this.entries_.length,this.entries_[a]=e,this.entries_[a+1]=n,i){var l=s(e),c=l.hash;this.objectIndex_[c]=a}else o?this.stringIndex_[e]=a:this.primitiveIndex_[e]=a;return this},has:function(e){return void 0!==t(this,e)},"delete":function(t){var e,n,i=r(t),o="string"==typeof t;if(i){var a=s(t);a&&(e=this.objectIndex_[n=a.hash],delete this.objectIndex_[n])}else o?(e=this.stringIndex_[t],delete this.stringIndex_[t]):(e=this.primitiveIndex_[t],delete this.primitiveIndex_[t]);return void 0!==e?(this.entries_[e]=c,this.entries_[e+1]=void 0,this.deletedCount_++,!0):!1},clear:function(){e(this)},forEach:function(t){for(var e=arguments[1],n=0;n<this.entries_.length;n+=2){var i=this.entries_[n],r=this.entries_[n+1];i!==c&&t.call(e,r,i,this)}},entries:$traceurRuntime.initGeneratorFunction(function d(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(i){for(;;)switch(i.state){case 0:t=0,i.state=12;break;case 12:i.state=t<this.entries_.length?8:-2;break;case 4:t+=2,i.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],i.state=9;break;case 9:i.state=e===c?4:6;break;case 6:return i.state=2,[e,n];case 2:i.maybeThrow(),i.state=4;break;default:return i.end()}},d,this)}),keys:$traceurRuntime.initGeneratorFunction(function h(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(i){for(;;)switch(i.state){case 0:t=0,i.state=12;break;case 12:i.state=t<this.entries_.length?8:-2;break;case 4:t+=2,i.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],i.state=9;break;case 9:i.state=e===c?4:6;break;case 6:return i.state=2,e;case 2:i.maybeThrow(),i.state=4;break;default:return i.end()}},h,this)}),values:$traceurRuntime.initGeneratorFunction(function p(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(i){for(;;)switch(i.state){case 0:t=0,i.state=12;break;case 12:i.state=t<this.entries_.length?8:-2;break;case 4:t+=2,i.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],i.state=9;break;case 9:i.state=e===c?4:6;break;case 6:return i.state=2,n;case 2:i.maybeThrow(),i.state=4;break;default:return i.end()}},p,this)})},{}),Object.defineProperty(u.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:u.prototype.entries}),a(n),{get Map(){return u},get polyfillMap(){return n}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Map"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Set",[],function(){"use strict";function t(t){t.map_=new a}function e(t){var e=t,n=e.Object,i=e.Symbol;t.Set||(t.Set=l);var o=t.Set.prototype;o.values&&(r(o,o.values,i),r(n.getPrototypeOf((new t.Set).values()),function(){return this},i))}var n=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),i=n.isObject,r=n.maybeAddIterator,o=n.registerPolyfill,a=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Map").Map,s=($traceurRuntime.getOwnHashObject,Object.prototype.hasOwnProperty),l=function(){var e=arguments[0];if(!i(this))throw new TypeError("Set called on incompatible type");if(s.call(this,"map_"))throw new TypeError("Set can not be reentrantly initialised");if(t(this),null!==e&&void 0!==e)for(var n,r=e[Symbol.iterator]();!(n=r.next()).done;){var o=n.value;this.add(o)}};return $traceurRuntime.createClass(l,{get size(){return this.map_.size},has:function(t){return this.map_.has(t)},add:function(t){return this.map_.set(t,t),this},"delete":function(t){return this.map_.delete(t)},clear:function(){return this.map_.clear()},forEach:function(t){var e=arguments[1],n=this;return this.map_.forEach(function(i,r){t.call(e,r,r,n)})},values:$traceurRuntime.initGeneratorFunction(function c(){var t,e;return $traceurRuntime.createGeneratorInstance(function(n){for(;;)switch(n.state){case 0:t=this.map_.keys()[Symbol.iterator](),n.sent=void 0,n.action="next",n.state=12;break;case 12:e=t[n.action](n.sentIgnoreThrow),n.state=9;break;case 9:n.state=e.done?3:2;break;case 3:n.sent=e.value,n.state=-2;break;case 2:return n.state=12,e.value;default:return n.end()}},c,this)}),entries:$traceurRuntime.initGeneratorFunction(function u(){var t,e;return $traceurRuntime.createGeneratorInstance(function(n){for(;;)switch(n.state){case 0:t=this.map_.entries()[Symbol.iterator](),n.sent=void 0,n.action="next",n.state=12;break;case 12:e=t[n.action](n.sentIgnoreThrow),n.state=9;break;case 9:n.state=e.done?3:2;break;case 3:n.sent=e.value,n.state=-2;break;case 2:return n.state=12,e.value;default:return n.end()}},u,this)})},{}),Object.defineProperty(l.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:l.prototype.values}),Object.defineProperty(l.prototype,"keys",{configurable:!0,writable:!0,value:l.prototype.values}),o(e),{get Set(){return l},get polyfillSet(){return e}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Set"),System.register("traceur-runtime@0.0.62/node_modules/rsvp/lib/rsvp/asap",[],function(){"use strict";function e(t,e){p[l]=t,p[l+1]=e,l+=2,2===l&&s()}function n(){return function(){t.nextTick(a)}}function i(){var t=0,e=new d(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function r(){var t=new MessageChannel;return t.port1.onmessage=a,function(){t.port2.postMessage(0)}}function o(){return function(){setTimeout(a,1)}}function a(){for(var t=0;l>t;t+=2){var e=p[t],n=p[t+1];e(n),p[t]=void 0,p[t+1]=void 0}l=0}var s,l=0,c=e,u="undefined"!=typeof window?window:{},d=u.MutationObserver||u.WebKitMutationObserver,h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,p=new Array(1e3);return s="undefined"!=typeof t&&"[object process]"==={}.toString.call(t)?n():d?i():h?r():o(),{get default(){return c}}}),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Promise",[],function(){"use strict";function t(t){return t&&"object"==typeof t&&void 0!==t.status_}function e(t){return t}function n(t){throw t}function i(t){var i=void 0!==arguments[1]?arguments[1]:e,o=void 0!==arguments[2]?arguments[2]:n,a=r(t.constructor);switch(t.status_){case void 0:throw TypeError;case 0:t.onResolve_.push(i,a),t.onReject_.push(o,a);break;case 1:u(t.value_,[i,a]);break;case-1:u(t.value_,[o,a])}return a.promise}function r(t){if(this===v){var e=a(new v(g));return{promise:e,resolve:function(t){s(e,t)},reject:function(t){l(e,t)}}}var n={};return n.promise=new t(function(t,e){n.resolve=t,n.reject=e}),n}function o(t,e,n,i,r){return t.status_=e,t.value_=n,t.onResolve_=i,t.onReject_=r,t}function a(t){return o(t,0,void 0,[],[])}function s(t,e){c(t,1,e,t.onResolve_)}function l(t,e){c(t,-1,e,t.onReject_)}function c(t,e,n,i){0===t.status_&&(u(n,i),o(t,e,n))}function u(t,e){m(function(){for(var n=0;n<e.length;n+=2)d(t,e[n],e[n+1])})}function d(e,n,r){try{var o=n(e);if(o===r.promise)throw new TypeError;t(o)?i(o,r.resolve,r.reject):r.resolve(o)}catch(a){try{r.reject(a)}catch(a){}}}function h(t){return t&&("object"==typeof t||"function"==typeof t)}function p(e,n){if(!t(n)&&h(n)){var i;try{i=n.then}catch(o){var a=w.call(e,o);return n[k]=a,a}if("function"==typeof i){var s=n[k];if(s)return s;var l=r(e);n[k]=l.promise;try{i.call(n,l.resolve,l.reject)}catch(o){l.reject(o)}return l.promise}}return n}function f(t){t.Promise||(t.Promise=y)}var m=System.get("traceur-runtime@0.0.62/node_modules/rsvp/lib/rsvp/asap").default,b=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils").registerPolyfill,g={},y=function(t){if(t!==g){if("function"!=typeof t)throw new TypeError;var e=a(this);try{t(function(t){s(e,t)},function(t){l(e,t)})}catch(n){l(e,n)}}};$traceurRuntime.createClass(y,{"catch":function(t){return this.then(void 0,t)},then:function(r,o){"function"!=typeof r&&(r=e),"function"!=typeof o&&(o=n);var a=this,s=this.constructor;return i(this,function(e){return e=p(s,e),e===a?o(new TypeError):t(e)?e.then(r,o):r(e)},o)}},{resolve:function(e){return this===v?t(e)?e:o(new v(g),1,e):new this(function(t){t(e)})},reject:function(t){return this===v?o(new v(g),-1,t):new this(function(e,n){n(t)})},all:function(t){var e=r(this),n=[];try{var i=t.length;if(0===i)e.resolve(n);else for(var o=0;o<t.length;o++)this.resolve(t[o]).then(function(t,r){n[t]=r,0===--i&&e.resolve(n)}.bind(void 0,o),function(t){e.reject(t)})}catch(a){e.reject(a)}return e.promise},race:function(t){var e=r(this);try{for(var n=0;n<t.length;n++)this.resolve(t[n]).then(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(i){e.reject(i)}return e.promise}});var v=y,w=v.reject,k="@@thenable";return b(f),{get Promise(){return y},get polyfillPromise(){return f}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Promise"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/StringIterator",[],function(){"use strict";function t(t){var e=String(t),n=Object.create(u.prototype);return n[s(l)]=e,n[s(c)]=0,n}var e,n=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),i=n.createIteratorResultObject,r=n.isObject,o=$traceurRuntime,a=o.hasOwnProperty,s=o.toProperty,l=Symbol("iteratedString"),c=Symbol("stringIteratorNextIndex"),u=function(){};return $traceurRuntime.createClass(u,(e={},Object.defineProperty(e,"next",{value:function(){var t=this;if(!r(t)||!a(t,l))throw new TypeError("this must be a StringIterator object");var e=t[s(l)];if(void 0===e)return i(void 0,!0);var n=t[s(c)],o=e.length;if(n>=o)return t[s(l)]=void 0,i(void 0,!0);var u,d=e.charCodeAt(n);if(55296>d||d>56319||n+1===o)u=String.fromCharCode(d);else{var h=e.charCodeAt(n+1);u=56320>h||h>57343?String.fromCharCode(d):String.fromCharCode(d)+String.fromCharCode(h)}return t[s(c)]=n+u.length,i(u,!1)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(e,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),e),{}),{get createStringIterator(){return t}}}),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/String",[],function(){"use strict";function t(t){var e=String(this);if(null==this||"[object RegExp]"==f.call(t))throw TypeError();var n=e.length,i=String(t),r=(i.length,arguments.length>1?arguments[1]:void 0),o=r?Number(r):0;isNaN(o)&&(o=0);var a=Math.min(Math.max(o,0),n);return m.call(e,i,o)==a}function e(t){var e=String(this);if(null==this||"[object RegExp]"==f.call(t))throw TypeError();var n=e.length,i=String(t),r=i.length,o=n;if(arguments.length>1){var a=arguments[1];void 0!==a&&(o=a?Number(a):0,isNaN(o)&&(o=0))}var s=Math.min(Math.max(o,0),n),l=s-r;return 0>l?!1:b.call(e,i,l)==l}function n(t){if(null==this)throw TypeError();var e=String(this),n=e.length,i=String(t),r=(i.length,arguments.length>1?arguments[1]:void 0),o=r?Number(r):0;isNaN(o)&&(o=0);Math.min(Math.max(o,0),n);return-1!=m.call(e,i,o)}function i(t){if(null==this)throw TypeError();var e=String(this),n=t?Number(t):0;if(isNaN(n)&&(n=0),0>n||1/0==n)throw RangeError();if(0==n)return"";for(var i="";n--;)i+=e;return i}function r(t){if(null==this)throw TypeError();var e=String(this),n=e.length,i=t?Number(t):0;if(isNaN(i)&&(i=0),0>i||i>=n)return void 0;var r,o=e.charCodeAt(i);return o>=55296&&56319>=o&&n>i+1&&(r=e.charCodeAt(i+1),r>=56320&&57343>=r)?1024*(o-55296)+r-56320+65536:o}function o(t){var e=t.raw,n=e.length>>>0;if(0===n)return"";for(var i="",r=0;;){if(i+=e[r],r+1===n)return i;i+=arguments[++r]}}function a(){var t,e,n=[],i=Math.floor,r=-1,o=arguments.length;if(!o)return"";for(;++r<o;){var a=Number(arguments[r]);if(!isFinite(a)||0>a||a>1114111||i(a)!=a)throw RangeError("Invalid code point: "+a);65535>=a?n.push(a):(a-=65536,t=(a>>10)+55296,e=a%1024+56320,n.push(t,e))}return String.fromCharCode.apply(null,n)}function s(){var t=$traceurRuntime.checkObjectCoercible(this),e=String(t);return c(e)}function l(l){var c=l.String;d(c.prototype,["codePointAt",r,"contains",n,"endsWith",e,"startsWith",t,"repeat",i]),d(c,["fromCodePoint",a,"raw",o]),h(c.prototype,s,Symbol)}var c=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/StringIterator").createStringIterator,u=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),d=u.maybeAddFunctions,h=u.maybeAddIterator,p=u.registerPolyfill,f=Object.prototype.toString,m=String.prototype.indexOf,b=String.prototype.lastIndexOf;return p(l),{get startsWith(){return t},get endsWith(){return e},get contains(){return n
  },get repeat(){return i},get codePointAt(){return r},get raw(){return o},get fromCodePoint(){return a},get stringPrototypeIterator(){return s},get polyfillString(){return l}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/String"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/ArrayIterator",[],function(){"use strict";function t(t,e){var n=a(t),i=new h;return i.iteratorObject_=n,i.arrayIteratorNextIndex_=0,i.arrayIterationKind_=e,i}function e(){return t(this,d)}function n(){return t(this,c)}function i(){return t(this,u)}var r,o=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),a=o.toObject,s=o.toUint32,l=o.createIteratorResultObject,c=1,u=2,d=3,h=function(){};return $traceurRuntime.createClass(h,(r={},Object.defineProperty(r,"next",{value:function(){var t=a(this),e=t.iteratorObject_;if(!e)throw new TypeError("Object is not an ArrayIterator");var n=t.arrayIteratorNextIndex_,i=t.arrayIterationKind_,r=s(e.length);return n>=r?(t.arrayIteratorNextIndex_=1/0,l(void 0,!0)):(t.arrayIteratorNextIndex_=n+1,i==u?l(e[n],!1):i==d?l([n,e[n]],!1):l(n,!1))},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),r),{}),{get entries(){return e},get keys(){return n},get values(){return i}}}),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Array",[],function(){"use strict";function t(t){var e,n,i=arguments[1],r=arguments[2],o=this,a=w(t),s=void 0!==i,l=0;if(s&&!p(i))throw TypeError();if(h(a)){e=f(o)?new o:[];for(var c,u=a[Symbol.iterator]();!(c=u.next()).done;){var d=c.value;e[l]=s?i.call(r,d,l):d,l++}return e.length=l,e}for(n=v(a.length),e=f(o)?new o(n):new Array(n);n>l;l++)e[l]=s?"undefined"==typeof r?i(a[l],l):i.call(r,a[l],l):a[l];return e.length=n,e}function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this,i=t.length,r=f(n)?new n(i):new Array(i),o=0;i>o;o++)r[o]=t[o];return r.length=i,r}function n(t){var e=void 0!==arguments[1]?arguments[1]:0,n=arguments[2],i=w(this),r=v(i.length),o=y(e),a=void 0!==n?y(n):r;for(o=0>o?Math.max(r+o,0):Math.min(o,r),a=0>a?Math.max(r+a,0):Math.min(a,r);a>o;)i[o]=t,o++;return i}function i(t){var e=arguments[1];return o(this,t,e)}function r(t){var e=arguments[1];return o(this,t,e,!0)}function o(t,e){var n=arguments[2],i=void 0!==arguments[3]?arguments[3]:!1,r=w(t),o=v(r.length);if(!p(e))throw TypeError();for(var a=0;o>a;a++)if(a in r){var s=r[a];if(e.call(n,s,a,r))return i?a:s}return i?-1:void 0}function a(o){var a=o,s=a.Array,d=a.Object,h=a.Symbol;m(s.prototype,["entries",l,"keys",c,"values",u,"fill",n,"find",i,"findIndex",r]),m(s,["from",t,"of",e]),b(s.prototype,u,h),b(d.getPrototypeOf([].values()),function(){return this},h)}var s=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/ArrayIterator"),l=s.entries,c=s.keys,u=s.values,d=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),h=d.checkIterable,p=d.isCallable,f=d.isConstructor,m=d.maybeAddFunctions,b=d.maybeAddIterator,g=d.registerPolyfill,y=d.toInteger,v=d.toLength,w=d.toObject;return g(a),{get from(){return t},get of(){return e},get fill(){return n},get find(){return i},get findIndex(){return r},get polyfillArray(){return a}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Array"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Object",[],function(){"use strict";function t(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function e(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e],r=d(i),o=r.length;for(n=0;o>n;n++){var a=r[n];h[a]||(t[a]=i[a])}}return t}function n(t,e){var n,i,r=u(e),o=r.length;for(n=0;o>n;n++){var a=r[n];h[a]||(i=c(e,r[n]),l(t,r[n],i))}return t}function i(i){var r=i.Object;o(r,["assign",e,"is",t,"mixin",n])}var r=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),o=r.maybeAddFunctions,a=r.registerPolyfill,s=$traceurRuntime,l=s.defineProperty,c=s.getOwnPropertyDescriptor,u=s.getOwnPropertyNames,d=s.keys,h=s.privateNames;return a(i),{get is(){return t},get assign(){return e},get mixin(){return n},get polyfillObject(){return i}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Object"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Number",[],function(){"use strict";function t(t){return a(t)&&h(t)}function e(e){return t(e)&&u(e)===e}function n(t){return a(t)&&p(t)}function i(e){if(t(e)){var n=u(e);if(n===e)return d(n)<=f}return!1}function r(r){var o=r.Number;s(o,["MAX_SAFE_INTEGER",f,"MIN_SAFE_INTEGER",m,"EPSILON",b]),l(o,["isFinite",t,"isInteger",e,"isNaN",n,"isSafeInteger",i])}var o=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),a=o.isNumber,s=o.maybeAddConsts,l=o.maybeAddFunctions,c=o.registerPolyfill,u=o.toInteger,d=Math.abs,h=isFinite,p=isNaN,f=Math.pow(2,53)-1,m=-Math.pow(2,53)+1,b=Math.pow(2,-52);return c(r),{get MAX_SAFE_INTEGER(){return f},get MIN_SAFE_INTEGER(){return m},get EPSILON(){return b},get isFinite(){return t},get isInteger(){return e},get isNaN(){return n},get isSafeInteger(){return i},get polyfillNumber(){return r}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Number"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/polyfills",[],function(){"use strict";var t=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils").polyfillAll;t(this);var e=$traceurRuntime.setupGlobals;return $traceurRuntime.setupGlobals=function(n){e(n),t(n)},{}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/polyfills")}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:2}],4:[function(t,e){function n(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):void t.attachEvent("on"+e,n)}function i(t){return"keypress"==t.type?String.fromCharCode(t.which):k[t.which]?k[t.which]:S[t.which]?S[t.which]:String.fromCharCode(t.which).toLowerCase()}function r(t){var e=t.target||t.srcElement,n=e.tagName;return(" "+e.className+" ").indexOf(" mousetrap ")>-1?!1:"INPUT"==n||"SELECT"==n||"TEXTAREA"==n||e.contentEditable&&"true"==e.contentEditable}function o(t,e){return t.sort().join(",")===e.sort().join(",")}function a(t){t=t||{};var e,n=!1;for(e in _)t[e]?n=!0:_[e]=0;n||(T=!1)}function s(t,e,n,i,r){var a,s,l=[];if(!x[t])return[];for("keyup"==n&&h(t)&&(e=[t]),a=0;a<x[t].length;++a)s=x[t][a],s.seq&&_[s.seq]!=s.level||n==s.action&&("keypress"==n||o(e,s.modifiers))&&(i&&s.combo==r&&x[t].splice(a,1),l.push(s));return l}function l(t){var e=[];return t.shiftKey&&e.push("shift"),t.altKey&&e.push("alt"),t.ctrlKey&&e.push("ctrl"),t.metaKey&&e.push("meta"),e}function c(t,e){t(e)===!1&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.returnValue=!1,e.cancelBubble=!0)}function u(t,e){if(!r(e)){var n,i=s(t,l(e),e.type),o={},u=!1;for(n=0;n<i.length;++n)i[n].seq?(u=!0,o[i[n].seq]=1,c(i[n].callback,e)):u||T||c(i[n].callback,e);e.type!=T||h(t)||a(o)}}function d(t){t.which="number"==typeof t.which?t.which:t.keyCode;var e=i(t);if(e)return"keyup"==t.type&&P==e?void(P=!1):void u(e,t)}function h(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function p(){clearTimeout(w),w=setTimeout(a,1e3)}function f(){if(!v){v={};for(var t in k)t>95&&112>t||k.hasOwnProperty(t)&&(v[k[t]]=t)}return v}function m(t,e,n){return n||(n=f()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function b(t,e,n,r){_[t]=0,r||(r=m(e[0],[]));var o,s=function(){T=r,++_[t],p()},l=function(t){c(n,t),"keyup"!==r&&(P=i(t)),setTimeout(a,10)};for(o=0;o<e.length;++o)g(e[o],o<e.length-1?s:l,r,t,o)}function g(t,e,n,i,r){t=t.replace(/\s+/g," ");var o,a,l,c=t.split(" "),u=[];if(c.length>1)return b(t,c,e,n);for(l="+"===t?["+"]:t.split("+"),o=0;o<l.length;++o)a=l[o],j[a]&&(a=j[a]),n&&"keypress"!=n&&C[a]&&(a=C[a],u.push("shift")),h(a)&&u.push(a);n=m(a,u,n),x[a]||(x[a]=[]),s(a,u,n,!i,t),x[a][i?"unshift":"push"]({callback:e,modifiers:u,action:n,seq:i,level:r,combo:t})}function y(t,e,n){for(var i=0;i<t.length;++i)g(t[i],e,n)}for(var v,w,k={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},S={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},C={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},j={option:"alt",command:"meta","return":"enter",escape:"esc"},x={},$={},_={},P=!1,T=!1,I=1;20>I;++I)k[111+I]="f"+I;for(I=0;9>=I;++I)k[I+96]=I;n(document,"keypress",d),n(document,"keydown",d),n(document,"keyup",d);var E={bind:function(t,e,n){return y(t instanceof Array?t:[t],e,n),$[t+":"+n]=e,this},unbind:function(t,e){return $[t+":"+e]&&(delete $[t+":"+e],this.bind(t,function(){},e)),this},trigger:function(t,e){return $[t+":"+e](),this},reset:function(){return x={},$={},this}};e.exports=E},{}],5:[function(t,e){!function(t){"undefined"!=typeof define&&define.amd?define([],t):"undefined"!=typeof e&&e.exports?e.exports=t():window.scrollMonitor=t()}(function(){function t(){if(s.viewportTop=a(),s.viewportBottom=s.viewportTop+s.viewportHeight,s.documentHeight=v(),s.documentHeight!==w){for(S=l.length;S--;)l[S].recalculateLocation();w=s.documentHeight}}function e(){s.viewportHeight=y(),t(),i()}function n(){clearTimeout(C),C=setTimeout(e,100)}function i(){for(j=l.length;j--;)l[j].update();for(j=l.length;j--;)l[j].triggerCallbacks()}function r(t,e){function n(t){if(0!==t.length)for(w=t.length;w--;)S=t[w],S.callback.call(i,k),S.isOne&&t.splice(w,1)}var i=this;this.watchItem=t,this.offsets=e?e===+e?{top:e,bottom:e}:{top:e.top||g.top,bottom:e.bottom||g.bottom}:g,this.callbacks={};for(var r=0,o=b.length;o>r;r++)i.callbacks[b[r]]=[];this.locked=!1;var a,l,y,v,w,S;this.triggerCallbacks=function(){switch(this.isInViewport&&!a&&n(this.callbacks[u]),this.isFullyInViewport&&!l&&n(this.callbacks[d]),this.isAboveViewport!==y&&this.isBelowViewport!==v&&(n(this.callbacks[c]),l||this.isFullyInViewport||(n(this.callbacks[d]),n(this.callbacks[p])),a||this.isInViewport||(n(this.callbacks[u]),n(this.callbacks[h]))),!this.isFullyInViewport&&l&&n(this.callbacks[p]),!this.isInViewport&&a&&n(this.callbacks[h]),this.isInViewport!==a&&n(this.callbacks[c]),!0){case a!==this.isInViewport:case l!==this.isFullyInViewport:case y!==this.isAboveViewport:case v!==this.isBelowViewport:n(this.callbacks[m])}a=this.isInViewport,l=this.isFullyInViewport,y=this.isAboveViewport,v=this.isBelowViewport},this.recalculateLocation=function(){if(!this.locked){var t=this.top,e=this.bottom;if(this.watchItem.nodeName){var i=this.watchItem.style.display;"none"===i&&(this.watchItem.style.display="");var r=this.watchItem.getBoundingClientRect();this.top=r.top+s.viewportTop,this.bottom=r.bottom+s.viewportTop,"none"===i&&(this.watchItem.style.display=i)}else this.watchItem===+this.watchItem?this.top=this.bottom=this.watchItem>0?this.watchItem:s.documentHeight-this.watchItem:(this.top=this.watchItem.top,this.bottom=this.watchItem.bottom);this.top-=this.offsets.top,this.bottom+=this.offsets.bottom,this.height=this.bottom-this.top,void 0===t&&void 0===e||this.top===t&&this.bottom===e||n(this.callbacks[f])}},this.recalculateLocation(),this.update(),a=this.isInViewport,l=this.isFullyInViewport,y=this.isAboveViewport,v=this.isBelowViewport}function o(e){k=e,t(),i()}var a=function(){return window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop},s={},l=[],c="visibilityChange",u="enterViewport",d="fullyEnterViewport",h="exitViewport",p="partiallyExitViewport",f="locationChange",m="stateChange",b=[c,u,d,h,p,f,m],g={top:0,bottom:0},y=function(){return window.innerHeight||document.documentElement.clientHeight},v=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight)};s.viewportTop=null,s.viewportBottom=null,s.documentHeight=null,s.viewportHeight=y();var w,k,S,C,j;r.prototype={on:function(t,e,n){switch(!0){case t===c&&!this.isInViewport&&this.isAboveViewport:case t===u&&this.isInViewport:case t===d&&this.isFullyInViewport:case t===h&&this.isAboveViewport&&!this.isInViewport:case t===p&&this.isAboveViewport:if(e.call(this,k),n)return}if(!this.callbacks[t])throw new Error("Tried to add a scroll monitor listener of type "+t+". Your options are: "+b.join(", "));this.callbacks[t].push({callback:e,isOne:n||!1})},off:function(t,e){if(!this.callbacks[t])throw new Error("Tried to remove a scroll monitor listener of type "+t+". Your options are: "+b.join(", "));for(var n,i=0;n=this.callbacks[t][i];i++)if(n.callback===e){this.callbacks[t].splice(i,1);break}},one:function(t,e){this.on(t,e,!0)},recalculateSize:function(){this.height=this.watchItem.offsetHeight+this.offsets.top+this.offsets.bottom,this.bottom=this.top+this.height},update:function(){this.isAboveViewport=this.top<s.viewportTop,this.isBelowViewport=this.bottom>s.viewportBottom,this.isInViewport=this.top<=s.viewportBottom&&this.bottom>=s.viewportTop,this.isFullyInViewport=this.top>=s.viewportTop&&this.bottom<=s.viewportBottom||this.isAboveViewport&&this.isBelowViewport},destroy:function(){var t=l.indexOf(this),e=this;l.splice(t,1);for(var n=0,i=b.length;i>n;n++)e.callbacks[b[n]].length=0},lock:function(){this.locked=!0},unlock:function(){this.locked=!1}};for(var x=function(t){return function(e,n){this.on.call(this,t,e,n)}},$=0,_=b.length;_>$;$++){var P=b[$];r.prototype[P]=x(P)}try{t()}catch(T){try{window.$(t)}catch(T){throw new Error("If you must put scrollMonitor in the <head>, you must use jQuery.")}}return window.addEventListener?(window.addEventListener("scroll",o),window.addEventListener("resize",n)):(window.attachEvent("onscroll",o),window.attachEvent("onresize",n)),s.beget=s.create=function(t,e){"string"==typeof t?t=document.querySelector(t):t&&t.length>0&&(t=t[0]);var n=new r(t,e);return l.push(n),n.update(),n},s.update=function(){k=null,t(),i()},s.recalculateLocations=function(){s.documentHeight=0,s.update()},s})},{}],6:[function(t,e){(function(n){"use strict";var i="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,r=t("../plugins/log").getInstance(),o=Array.prototype.slice,a=function(){};$traceurRuntime.createClass(a,{on:function(t,e,n){if(!l(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var i=this._events[t]||(this._events[t]=[]);return i.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,n){if(!l(this,"once",t,[e,n])||!e)return this;var r=this,o=i.once(function(){r.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,n)},off:function(t,e,n){var r,o,a,s,c,u,d,h;if(!this._events||!l(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(s=t?[t]:i.keys(this._events),c=0,u=s.length;u>c;c++)if(t=s[c],a=this._events[t]){if(this._events[t]=r=[],e||n)for(d=0,h=a.length;h>d;d++)o=a[d],(e&&e!==o.callback&&e!==o.callback._callback||n&&n!==o.context)&&r.push(o);r.length||delete this._events[t]}return this},trigger:function(t){var e=arguments[arguments.length-1];if(r.info(e,t),!this._events)return this;var n=o.call(arguments,1);if(!l(this,"trigger",t,n))return this;var i=this._events[t],a=this._events.all;return i&&c(i,n),a&&c(a,arguments),this},stopListening:function(t,e,n){var r=this._listeningTo;if(!r)return this;var o=!e&&!n;n||"object"!=typeof e||(n=this),t&&((r={})[t._listenId]=t);for(var a in r)t=r[a],t.off(e,n,this),(o||i.isEmpty(t._events))&&delete this._listeningTo[a];return this}},{});var s=/\s+/,l=function(t,e,n,i){if(!n)return!0;if("object"==typeof n){for(var r in n)t[e].apply(t,[r,n[r]].concat(i));return!1}if(s.test(n)){for(var o=n.split(s),a=0,l=o.length;l>a;a++)t[e].apply(t,[o[a]].concat(i));return!1}return!0},c=function(t,e){var n,i=-1,r=t.length,o=e[0],a=e[1],s=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,a);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,a,s);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e);return}},u={listenTo:"on",listenToOnce:"once"};i.each(u,function(t,e){a.prototype[e]=function(e,n,r){var o=this._listeningTo||(this._listeningTo={}),a=e._listenId||(e._listenId=i.uniqueId("l"));return o[a]=e,r||"object"!=typeof n||(r=this),e[t](n,r,this),this}}),e.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../plugins/log":41}],7:[function(t,e){(function(t){"use strict";var n="undefined"!=typeof window?window._:"undefined"!=typeof t?t._:null;e.exports={media_control:n.template('<div class="media-control-background" data-background></div><div class="media-control-layer" data-controls><% var renderBar=function(name) { %><div class="bar-container" data-<%= name %>><div class="bar-background" data-<%= name %>><div class="bar-fill-1" data-<%= name %>></div><div class="bar-fill-2" data-<%= name %>></div><div class="bar-hover" data-<%= name %>></div></div><div class="bar-scrubber" data-<%= name %>><div class="bar-scrubber-icon" data-<%= name %>></div></div></div><% }; %><% var renderSegmentedBar=function(name, segments) { segments=segments || 10; %><div class="bar-container" data-<%= name %>><% for (var i = 0; i < segments; i++) { %><div class="segmented-bar-element" data-<%= name %>></div><% } %></div><% }; %><% var renderDrawer=function(name, renderContent) { %><div class="drawer-container" data-<%= name %>><div class="drawer-icon-container" data-<%= name %>><div class="drawer-icon media-control-icon" data-<%= name %>></div><span class="drawer-text" data-<%= name %>></span></div><% renderContent(name); %></div><% }; %><% var renderIndicator=function(name) { %><div class="media-control-indicator" data-<%= name %>></div><% }; %><% var renderButton=function(name) { %><button class="media-control-button media-control-icon" data-<%= name %>></button><% }; %><% var templates={ bar: renderBar, segmentedBar: renderSegmentedBar, }; var render=function(settingsList) { _.each(settingsList, function(setting) { if(setting === "seekbar") { renderBar(setting); } else if (setting === "volume") { renderDrawer(setting, settings.volumeBarTemplate ? templates[settings.volumeBarTemplate] : function(name) { return renderSegmentedBar(name); }); } else if (setting === "duration" || setting=== "position") { renderIndicator(setting); } else { renderButton(setting); } }); }; %><% if (settings.default && settings.default.length) { %><div class="media-control-center-panel" data-media-control><% render(settings.default); %></div><% } %><% if (settings.left && settings.left.length) { %><div class="media-control-left-panel" data-media-control><% render(settings.left); %></div><% } %><% if (settings.right && settings.right.length) { %><div class="media-control-right-panel" data-media-control><% render(settings.right); %></div><% } %></div>'),seek_time:n.template("<span data-seek-time></span>"),flash:n.template('<param name="movie" value="<%= swfPath %>"><param name="quality" value="autohigh"><param name="swliveconnect" value="true"><param name="allowScriptAccess" value="always"><param name="bgcolor" value="#001122"><param name="allowFullScreen" value="false"><param name="wmode" value="transparent"><param name="tabindex" value="1"><param name=FlashVars value="playbackId=<%= playbackId %>" /><embed type="application/x-shockwave-flash" disabled tabindex="-1" enablecontextmenu="false" allowScriptAccess="always" quality="autohight" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" swliveconnect="true" type="application/x-shockwave-flash" allowfullscreen="false" bgcolor="#000000" FlashVars="playbackId=<%= playbackId %>" src="<%= swfPath %>"></embed>'),hls:n.template('<param name="movie" value="<%= swfPath %>?inline=1"><param name="quality" value="autohigh"><param name="swliveconnect" value="true"><param name="allowScriptAccess" value="always"><param name="bgcolor" value="#001122"><param name="allowFullScreen" value="false"><param name="wmode" value="transparent"><param name="tabindex" value="1"><param name=FlashVars value="playbackId=<%= playbackId %>" /><embed type="application/x-shockwave-flash" tabindex="1" enablecontextmenu="false" allowScriptAccess="always" quality="autohigh" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" swliveconnect="true" type="application/x-shockwave-flash" allowfullscreen="false" bgcolor="#000000" FlashVars="playbackId=<%= playbackId %>" src="<%= swfPath %>"></embed>'),html5_video:n.template('<source src="<%=src%>" type="<%=type%>">'),no_op:n.template("<p data-no-op-msg>Something went wrong :(</p>"),background_button:n.template('<div class="background-button-wrapper" data-background-button><button class="background-button-icon" data-background-button></button></div>'),dvr_controls:n.template('<div class="live-info">LIVE</div><button class="live-button">BACK TO LIVE</button>'),poster:n.template('<div class="play-wrapper" data-poster><span class="poster-icon play" data-poster/></div>'),spinner_three_bounce:n.template("<div data-bounce1></div><div data-bounce2></div><div data-bounce3></div>"),watermark:n.template('<div data-watermark data-watermark-<%=position %>><img src="<%= imageUrl %>"></div>'),CSS:{container:".container[data-container]{position:absolute;background-color:#000;height:100%;width:100%}.container[data-container].pointer-enabled{cursor:pointer}",core:'[data-player]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);position:relative;margin:0;padding:0;border:0;height:594px;width:1055px;font-style:normal;font-weight:400;text-align:center;overflow:hidden;font-size:100%;color:#000;background-color:#000;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;text-shadow:0 0 0;box-sizing:border-box}[data-player] a,[data-player] abbr,[data-player] acronym,[data-player] address,[data-player] applet,[data-player] article,[data-player] aside,[data-player] audio,[data-player] b,[data-player] big,[data-player] blockquote,[data-player] canvas,[data-player] caption,[data-player] center,[data-player] cite,[data-player] code,[data-player] dd,[data-player] del,[data-player] details,[data-player] dfn,[data-player] div,[data-player] dl,[data-player] dt,[data-player] em,[data-player] embed,[data-player] fieldset,[data-player] figcaption,[data-player] figure,[data-player] footer,[data-player] form,[data-player] h1,[data-player] h2,[data-player] h3,[data-player] h4,[data-player] h5,[data-player] h6,[data-player] header,[data-player] hgroup,[data-player] i,[data-player] iframe,[data-player] img,[data-player] ins,[data-player] kbd,[data-player] label,[data-player] legend,[data-player] li,[data-player] mark,[data-player] menu,[data-player] nav,[data-player] object,[data-player] ol,[data-player] output,[data-player] p,[data-player] pre,[data-player] q,[data-player] ruby,[data-player] s,[data-player] samp,[data-player] section,[data-player] small,[data-player] span,[data-player] strike,[data-player] strong,[data-player] sub,[data-player] summary,[data-player] sup,[data-player] table,[data-player] tbody,[data-player] td,[data-player] tfoot,[data-player] th,[data-player] thead,[data-player] time,[data-player] tr,[data-player] tt,[data-player] u,[data-player] ul,[data-player] var,[data-player] video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}[data-player] table{border-collapse:collapse;border-spacing:0}[data-player] caption,[data-player] td,[data-player] th{text-align:left;font-weight:400;vertical-align:middle}[data-player] blockquote,[data-player] q{quotes:none}[data-player] blockquote:after,[data-player] blockquote:before,[data-player] q:after,[data-player] q:before{content:"";content:none}[data-player] a img{border:none}[data-player] *{max-width:initial;box-sizing:inherit;float:initial}[data-player].fullscreen{width:100%;height:100%}[data-player].nocursor{cursor:none}',media_control:'@font-face{font-family:Player;src:url(http://cdn.clappr.io/latest/assets/Player-Regular.eot);src:url(http://cdn.clappr.io/latest/assets/Player-Regular.eot?#iefix) format("embedded-opentype"),url(http://cdn.clappr.io/latest/assets/Player-Regular.ttf) format("truetype"),url(http://cdn.clappr.io/latest/assets/Player-Regular.svg#player) format("svg")}.media-control-notransition{-webkit-transition:none!important;-webkit-transition-delay:0s;-moz-transition:none!important;-o-transition:none!important;transition:none!important}.media-control[data-media-control]{position:absolute;width:100%;height:100%;z-index:9999;pointer-events:none}.media-control[data-media-control].dragging{pointer-events:auto;cursor:-webkit-grabbing!important;cursor:grabbing!important}.media-control[data-media-control].dragging *{cursor:-webkit-grabbing!important;cursor:grabbing!important}.media-control[data-media-control] .media-control-background[data-background]{position:absolute;height:40%;width:100%;bottom:0;background-image:-owg(linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9)));background-image:-webkit(linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9)));background-image:-moz(linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9)));background-image:-o(linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9)));background-image:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9));-webkit-transition:opacity .6s;-webkit-transition-delay:ease-out;-moz-transition:opacity .6s ease-out;-o-transition:opacity .6s ease-out;transition:opacity .6s ease-out}.media-control[data-media-control] .media-control-icon{font-family:Player;font-weight:400;font-style:normal;font-size:26px;line-height:32px;letter-spacing:0;speak:none;color:#fff;opacity:.5;vertical-align:middle;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transition:all .1s;-webkit-transition-delay:ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;transition:all .1s ease}.media-control[data-media-control] .media-control-icon:hover{color:#fff;opacity:.75;text-shadow:rgba(255,255,255,.8) 0 0 5px}.media-control[data-media-control].media-control-hide .media-control-background[data-background]{opacity:0}.media-control[data-media-control].media-control-hide .media-control-layer[data-controls]{bottom:-50px}.media-control[data-media-control].media-control-hide .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar]{opacity:0}.media-control[data-media-control] .media-control-layer[data-controls]{position:absolute;bottom:7px;width:100%;height:32px;vertical-align:middle;pointer-events:auto;-webkit-transition:bottom .4s;-webkit-transition-delay:ease-out;-moz-transition:bottom .4s ease-out;-o-transition:bottom .4s ease-out;transition:bottom .4s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-left-panel[data-media-control]{position:absolute;top:0;left:4px;height:100%}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-center-panel[data-media-control]{height:100%;text-align:center;line-height:32px}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-right-panel[data-media-control]{position:absolute;top:0;right:4px;height:100%}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button{background-color:transparent;border:0;margin:0 6px;padding:0;cursor:pointer;display:inline-block}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button:focus{outline:0}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-play]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-play]:before{content:"\\e001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-pause]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-pause]:before{content:"\\e002"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-stop]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-stop]:before{content:"\\e003"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-fullscreen]{float:right;background-color:transparent;border:0;height:100%}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-fullscreen]:before{content:"\\e006"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-fullscreen].shrink:before{content:"\\e007"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator]{cursor:default;float:right;background-color:transparent;border:0;height:100%;opacity:0}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator]:before{content:"\\e008"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator].enabled{opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator].enabled:hover{opacity:1;text-shadow:none}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause]:before{content:"\\e001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause].playing:before{content:"\\e002"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause].paused:before{content:"\\e001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop]:before{content:"\\e001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop].playing:before{content:"\\e003"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop].stopped:before{content:"\\e001"}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration],.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-position]{display:inline-block;font-size:10px;color:#fff;cursor:default;line-height:32px;position:relative}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-position]{margin-left:6px}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration]{color:rgba(255,255,255,.5);margin-right:6px}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration]:before{content:"|";margin:0 3px}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar]{position:absolute;top:-20px;left:0;display:inline-block;vertical-align:middle;width:100%;height:25px;cursor:pointer}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar]{width:100%;height:1px;position:relative;top:12px;background-color:#666}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-1[data-seekbar]{position:absolute;top:0;left:0;width:0;height:100%;background-color:#c2c2c2;-webkit-transition:all .1s;-webkit-transition-delay:ease-out;-moz-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar]{position:absolute;top:0;left:0;width:0;height:100%;background-color:#005aff;-webkit-transition:all .1s;-webkit-transition-delay:ease-out;-moz-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-hover[data-seekbar]{opacity:0;position:absolute;top:-3px;width:5px;height:7px;background-color:rgba(255,255,255,.5);-webkit-transition:opacity .1s;-webkit-transition-delay:ease;-moz-transition:opacity .1s ease;-o-transition:opacity .1s ease;transition:opacity .1s ease}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar]:hover .bar-background[data-seekbar] .bar-hover[data-seekbar]{opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar].seek-disabled{cursor:default}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar]{position:absolute;top:2px;left:0;width:20px;height:20px;opacity:1;-webkit-transition:all .1s;-webkit-transition-delay:ease-out;-moz-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar] .bar-scrubber-icon[data-seekbar]{position:absolute;left:6px;top:6px;width:8px;height:8px;border-radius:10px;box-shadow:0 0 0 6px rgba(255,255,255,.2);background-color:#fff}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume]{float:right;display:inline-block;height:32px;cursor:pointer;margin:0 6px;box-sizing:border-box}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume]{float:left;bottom:0}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume]{background-color:transparent;border:0;box-sizing:content-box;width:16px;height:32px;margin-right:6px;opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume]:hover{opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume]:before{content:"\\e004"}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume].muted{opacity:.5}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume].muted:hover{opacity:.7}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume].muted:before{content:"\\e005"}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume]{float:left;position:relative;top:6px;width:42px;height:18px;padding:3px 0;overflow:hidden;-webkit-transition:width .2s;-webkit-transition-delay:ease-out;-moz-transition:width .2s ease-out;-o-transition:width .2s ease-out;transition:width .2s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]{float:left;width:4px;padding-left:2px;height:12px;opacity:.5;-webkit-box-shadow:inset 2px 0 0 #fff;-moz-box-shadow:inset 2px 0 0 #fff;-ms-box-shadow:inset 2px 0 0 #fff;-o-box-shadow:inset 2px 0 0 #fff;box-shadow:inset 2px 0 0 #fff;-webkit-transition:-webkit-transform .2s;-webkit-transition-delay:ease-out;-moz-transition:-moz-transform .2s ease-out;-o-transition:-o-transform .2s ease-out;transition:transform .2s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume].fill{-webkit-box-shadow:inset 2px 0 0 #fff;-moz-box-shadow:inset 2px 0 0 #fff;-ms-box-shadow:inset 2px 0 0 #fff;-o-box-shadow:inset 2px 0 0 #fff;box-shadow:inset 2px 0 0 #fff;opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]:nth-of-type(1){padding-left:0}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]:hover{-webkit-transform:scaleY(1.5);-moz-transform:scaleY(1.5);-ms-transform:scaleY(1.5);-o-transform:scaleY(1.5);transform:scaleY(1.5)}.media-control[data-media-control].w320 .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume].volume-bar-hide{height:12px;top:9px;padding:0;width:0}',seek_time:".seek-time[data-seek-time]{position:absolute;width:auto;height:20px;line-height:20px;bottom:55px;background-color:rgba(2,2,2,.5);z-index:9999;-webkit-transition:opacity .1s;-webkit-transition-delay:ease;-moz-transition:opacity .1s ease;-o-transition:opacity .1s ease;transition:opacity .1s ease}.seek-time[data-seek-time].hidden[data-seek-time]{opacity:0}.seek-time[data-seek-time] span[data-seek-time]{position:relative;color:#fff;font-size:10px;padding-left:7px;padding-right:7px}",flash:"[data-flash]{position:absolute;height:100%;width:100%;background-color:#000;display:block;pointer-events:none}",hls:"[data-hls]{position:absolute;height:100%;width:100%;background-color:#000;display:block;pointer-events:none;top:0}",html5_video:"[data-html5-video]{position:absolute;height:100%;width:100%;display:block}",no_op:"[data-no-op]{z-index:1000;position:absolute;background-color:#222;height:100%;width:100%}[data-no-op] p[data-no-op-msg]{position:relative;font-size:25px;top:50%;color:#fff}",background_button:'.background-button[data-background-button]{font-family:Player;position:absolute;height:100%;width:100%;background-color:rgba(0,0,0,.2);pointer-events:none;-webkit-transition:all .4s;-webkit-transition-delay:ease-out;-moz-transition:all .4s ease-out;-o-transition:all .4s ease-out;transition:all .4s ease-out}.background-button[data-background-button].hide{background-color:transparent}.background-button[data-background-button].hide .background-button-wrapper[data-background-button]{opacity:0}.background-button[data-background-button] .background-button-wrapper[data-background-button]{position:absolute;overflow:hidden;width:100%;height:25%;line-height:100%;font-size:25%;top:50%;text-align:center}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button]{cursor:pointer;pointer-events:auto;font-family:Player;font-weight:400;font-style:normal;line-height:1;letter-spacing:0;speak:none;color:#fff;opacity:.75;border:0;outline:0;background-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transition:all .1s;-webkit-transition-delay:ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;transition:all .1s ease}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button]:hover{opacity:1;text-shadow:rgba(255,255,255,.8) 0 0 15px}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button].playing:before{content:"\\e002"}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button].notplaying:before{content:"\\e001"}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button].playstop.playing:before{content:"\\e003"}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button].playstop.notplaying:before{content:"\\e001"}.media-control.media-control-hide[data-media-control] .background-button[data-background-button]{opacity:0}',dvr_controls:'@import url(http://fonts.googleapis.com/css?family=Roboto);.dvr-controls[data-dvr-controls]{display:inline-block;float:left;color:#fff;line-height:32px;font-size:10px;font-weight:700;margin-left:6px}.dvr-controls[data-dvr-controls] .live-info{cursor:default;font-family:Roboto,"Open Sans",Arial,sans-serif}.dvr-controls[data-dvr-controls] .live-info:before{content:"";display:inline-block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-right:3.5px;background-color:#ff0101}.dvr-controls[data-dvr-controls] .live-info.disabled{opacity:.3}.dvr-controls[data-dvr-controls] .live-info.disabled:before{background-color:#fff}.dvr-controls[data-dvr-controls] .live-button{cursor:pointer;outline:0;display:none;border:0;color:#fff;background-color:transparent;height:32px;padding:0;opacity:.7;font-family:Roboto,"Open Sans",Arial,sans-serif;-webkit-transition:all .1s;-webkit-transition-delay:ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;transition:all .1s ease}.dvr-controls[data-dvr-controls] .live-button:before{content:"";display:inline-block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-right:3.5px;background-color:#fff}.dvr-controls[data-dvr-controls] .live-button:hover{opacity:1;text-shadow:rgba(255,255,255,.75) 0 0 5px}.dvr .dvr-controls[data-dvr-controls] .live-info{display:none}.dvr .dvr-controls[data-dvr-controls] .live-button{display:block}.dvr.media-control.live[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar]{background-color:#005aff}.media-control.live[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar]{background-color:#ff0101}.seek-time[data-seek-time] span[data-duration]{position:relative;color:rgba(255,255,255,.5);font-size:10px;padding-right:7px}.seek-time[data-seek-time] span[data-duration]:before{content:"|";margin-right:7px}',poster:'@font-face{font-family:Player;src:url(http://cdn.clappr.io/latest/assets/Player-Regular.eot);src:url(http://cdn.clappr.io/latest/assets/Player-Regular.eot?#iefix) format("embedded-opentype"),url(http://cdn.clappr.io/latest/assets/Player-Regular.ttf) format("truetype"),url(http://cdn.clappr.io/latest/assets/Player-Regular.svg#player) format("svg")}.player-poster[data-poster]{cursor:pointer;position:absolute;height:100%;width:100%;z-index:998;top:0}.player-poster[data-poster] .poster-background[data-poster]{width:100%;height:100%}.player-poster[data-poster] .play-wrapper[data-poster]{position:absolute;width:100%;height:25%;line-height:100%;font-size:25%;top:50%;text-align:center}.player-poster[data-poster] .play-wrapper[data-poster] .poster-icon[data-poster]{font-family:Player;font-weight:400;font-style:normal;line-height:1;letter-spacing:0;speak:none;color:#fff;opacity:.75;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transition:opacity text-shadow;-webkit-transition-delay:.1s;-moz-transition:opacity text-shadow .1s;-o-transition:opacity text-shadow .1s;transition:opacity text-shadow .1s ease}.player-poster[data-poster] .play-wrapper[data-poster] .poster-icon[data-poster].play[data-poster]:before{content:"\\e001"}.player-poster[data-poster] .play-wrapper[data-poster] .poster-icon[data-poster]:hover{opacity:1;text-shadow:rgba(255,255,255,.8) 0 0 15px}',spinner_three_bounce:".spinner-three-bounce[data-spinner]{position:absolute;margin:0 auto;width:70px;text-align:center;z-index:10;top:47%;left:0;right:0}.spinner-three-bounce[data-spinner]>div{width:18px;height:18px;background-color:#FFF;border-radius:100%;display:inline-block;-webkit-animation:bouncedelay 1.4s infinite ease-in-out;-moz-animation:bouncedelay 1.4s infinite ease-in-out;-ms-animation:bouncedelay 1.4s infinite ease-in-out;-o-animation:bouncedelay 1.4s infinite ease-in-out;animation:bouncedelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;-moz-animation-fill-mode:both;-ms-animation-fill-mode:both;-o-animation-fill-mode:both;animation-fill-mode:both}.spinner-three-bounce[data-spinner] [data-bounce1],.spinner-three-bounce[data-spinner] [data-bounce2]{-webkit-animation-delay:-.32s;-moz-animation-delay:-.32s;-ms-animation-delay:-.32s;-o-animation-delay:-.32s;animation-delay:-.32s}@-moz-keyframes bouncedelay{0%,100%,80%{-moz-transform:scale(0);transform:scale(0)}40%{-moz-transform:scale(1);transform:scale(1)}}@-webkit-keyframes bouncedelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@-o-keyframes bouncedelay{0%,100%,80%{-o-transform:scale(0);transform:scale(0)}40%{-o-transform:scale(1);transform:scale(1)}}@-ms-keyframes bouncedelay{0%,100%,80%{-ms-transform:scale(0);transform:scale(0)}40%{-ms-transform:scale(1);transform:scale(1)}}@keyframes bouncedelay{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}",watermark:"[data-watermark]{position:absolute;margin:100px auto 0;width:70px;text-align:center;z-index:10}[data-watermark-bottom-left]{bottom:10px;left:10px}[data-watermark-bottom-right]{bottom:10px;right:42px}[data-watermark-top-left]{top:-95px;left:10px}[data-watermark-top-right]{top:-95px;right:37px}"}}
  }).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(t,e){(function(n){"use strict";var i="undefined"!=typeof window?window.$:"undefined"!=typeof n?n.$:null,r="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,o=t("./jst"),a={getStyleFor:function(t,e){return e=e||{},i("<style></style>").html(r.template(o.CSS[t])(e))}};e.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./jst":7}],9:[function(t,e){(function(t){"use strict";var n="undefined"!=typeof window?window._:"undefined"!=typeof t?t._:null,i=function(t,e){var i,r=this;i=t&&n.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i.super=function(t){return r.prototype[t]},i.prototype.getClass=function(){return i},i},r=function(t){t=1e3*t,t=parseInt(t/1e3);var e=t%60;t=parseInt(t/60);var n=t%60;t=parseInt(t/60);var i=t%24,r="";return i&&i>0&&(r+=("0"+i).slice(-2)+":"),r+=("0"+n).slice(-2)+":",r+=("0"+e).slice(-2),r.trim()},o={isFullscreen:function(){return document.webkitIsFullScreen||document.mozFullScreen||!!document.msFullscreenElement},requestFullscreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},cancelFullscreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}},a=function(t){var e=n.rest(n.compact(t.match(/t=([0-9]*)h?([0-9]*)m?([0-9]*)s/))).reverse(),i=0,r=1;return n.each(e,function(t){i+=parseInt(t)*r,r=60*r},this),i};e.exports={extend:i,formatTime:r,Fullscreen:o,seekStringToSeconds:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(t,e){(function(n){"use strict";var i=t("ui_object"),r=t("../../base/styler"),o="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,a=function(t){$traceurRuntime.superCall(this,s.prototype,"constructor",[t]),this.playback=t.playback,this.settings=this.playback.settings,this.isReady=!1,this.mediaControlDisabled=!1,this.plugins=[this.playback],this.bindEvents()},s=a;$traceurRuntime.createClass(a,{get name(){return"Container"},get attributes(){return{"class":"container","data-container":""}},get events(){return{click:"clicked"}},bindEvents:function(){this.listenTo(this.playback,"playback:progress",this.progress),this.listenTo(this.playback,"playback:timeupdate",this.timeUpdated),this.listenTo(this.playback,"playback:ready",this.ready),this.listenTo(this.playback,"playback:buffering",this.buffering),this.listenTo(this.playback,"playback:bufferfull",this.bufferfull),this.listenTo(this.playback,"playback:settingsupdate",this.settingsUpdate),this.listenTo(this.playback,"playback:loadedmetadata",this.loadedMetadata),this.listenTo(this.playback,"playback:highdefinitionupdate",this.highDefinitionUpdate),this.listenTo(this.playback,"playback:playbackstate",this.playbackStateChanged),this.listenTo(this.playback,"playback:dvr",this.playbackDvrStateChanged),this.listenTo(this.playback,"playback:mediacontrol:disable",this.disableMediaControl),this.listenTo(this.playback,"playback:mediacontrol:enable",this.enableMediaControl),this.listenTo(this.playback,"playback:ended",this.ended),this.listenTo(this.playback,"playback:play",this.playing),this.listenTo(this.playback,"playback:error",this.error)},"with":function(t){return o.extend(this,t),this},playbackStateChanged:function(){this.trigger("container:playbackstate")},playbackDvrStateChanged:function(t){this.settings=this.playback.settings,this.dvrInUse=t,this.trigger("container:dvr",t)},statsAdd:function(t){this.trigger("container:stats:add",t)},statsReport:function(t){this.trigger("container:stats:report",t)},getPlaybackType:function(){return this.playback.getPlaybackType()},isDvrEnabled:function(){return!!this.playback.dvrEnabled},isDvrInUse:function(){return!!this.dvrInUse},destroy:function(){this.trigger("container:destroyed",this,this.name),this.playback.destroy(),o(this.plugins).each(function(t){return t.destroy()}),this.$el.remove()},setStyle:function(t){this.$el.css(t)},animate:function(t,e){return this.$el.animate(t,e).promise()},ready:function(){this.isReady=!0,this.trigger("container:ready",this.name)},isPlaying:function(){return this.playback.isPlaying()},getDuration:function(){return this.playback.getDuration()},error:function(t){this.$el.append(t.render().el),this.trigger("container:error",{error:t,container:this},this.name)},loadedMetadata:function(t){this.trigger("container:loadedmetadata",t)},timeUpdated:function(t,e){this.trigger("container:timeupdate",t,e,this.name)},progress:function(t,e,n){this.trigger("container:progress",t,e,n,this.name)},playing:function(){this.trigger("container:play",this.name)},play:function(){this.playback.play()},stop:function(){this.trigger("container:stop",this.name),this.playback.stop()},pause:function(){this.trigger("container:pause",this.name),this.playback.pause()},ended:function(){this.trigger("container:ended",this,this.name)},clicked:function(){this.trigger("container:click",this,this.name)},setCurrentTime:function(t){this.trigger("container:seek",t,this.name),this.playback.seek(t)},setVolume:function(t){this.trigger("container:volume",t,this.name),this.playback.volume(t)},fullscreen:function(){this.trigger("container:fullscreen",this.name)},buffering:function(){this.trigger("container:state:buffering",this.name)},bufferfull:function(){this.trigger("container:state:bufferfull",this.name)},addPlugin:function(t){this.plugins.push(t)},hasPlugin:function(t){return!!this.getPlugin(t)},getPlugin:function(t){return o(this.plugins).find(function(e){return e.name===t})},settingsUpdate:function(){this.settings=this.playback.settings,this.trigger("container:settingsupdate")},highDefinitionUpdate:function(){this.trigger("container:highdefinitionupdate")},isHighDefinitionInUse:function(){return this.playback.isHighDefinitionInUse()},disableMediaControl:function(){this.mediaControlDisabled=!0,this.trigger("container:mediacontrol:disable")},enableMediaControl:function(){this.mediaControlDisabled=!1,this.trigger("container:mediacontrol:enable")},render:function(){var t=r.getStyleFor("container");return this.$el.append(t),this.$el.append(this.playback.render().el),this}},{},i),e.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../base/styler":8,ui_object:void 0}],11:[function(t,e){"use strict";e.exports=t("./container")},{"./container":10}],12:[function(t,e){(function(n){"use strict";var i="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,r=t("base_object"),o=t("../container"),a="undefined"!=typeof window?window.$:"undefined"!=typeof n?n.$:null,s=function(t,e){$traceurRuntime.superCall(this,l.prototype,"constructor",[t]),this.options=t,this.loader=e},l=s;$traceurRuntime.createClass(s,{createContainers:function(){return a.Deferred(function(t){t.resolve(i.map(this.options.sources,function(t){return this.createContainer(t)},this))}.bind(this))},findPlaybackPlugin:function(t){return i.find(this.loader.playbackPlugins,function(e){return e.canPlay(t.toString())},this)},createContainer:function(t){var e=this.findPlaybackPlugin(t),n=i.extend({},this.options,{src:t,autoPlay:!!this.options.autoPlay}),r=new e(n),s=new o({playback:r}),l=a.Deferred();return l.promise(s),this.addContainerPlugins(s,t),this.listenToOnce(s,"container:ready",function(){return l.resolve(s)}),s},addContainerPlugins:function(t,e){i.each(this.loader.containerPlugins,function(n){var r=i.extend(this.options,{container:t,src:e});t.addPlugin(new n(r))},this)}},{},r),e.exports=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../container":11,base_object:void 0}],13:[function(t,e){"use strict";e.exports=t("./container_factory")},{"./container_factory":12}],14:[function(t,e){(function(n){"use strict";var i="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,r="undefined"!=typeof window?window.$:"undefined"!=typeof n?n.$:null,o=t("ui_object"),a=t("../container_factory"),s=t("../../base/utils").Fullscreen,l=t("../../base/styler"),c=t("media_control"),u=t("player_info"),d=t("mediator"),h=function(t){var e=this;$traceurRuntime.superCall(this,p.prototype,"constructor",[t]),u.options=t,this.options=t,this.plugins=[],this.containers=[],this.createContainers(t),document.addEventListener("fullscreenchange",function(){return e.exit()}),document.addEventListener("MSFullscreenChange",function(){return e.exit()}),document.addEventListener("mozfullscreenchange",function(){return e.exit()})},p=h;$traceurRuntime.createClass(h,{get events(){return{webkitfullscreenchange:"exit",mousemove:"showMediaControl",mouseleave:"hideMediaControl"}},get attributes(){return{"data-player":""}},createContainers:function(t){var e=this;this.defer=r.Deferred(),this.defer.promise(this),this.containerFactory=new a(t,t.loader),this.containerFactory.createContainers().then(function(t){return e.setupContainers(t)}).then(function(t){return e.resolveOnContainersReady(t)})},updateSize:function(){s.isFullscreen()?this.setFullscreen():this.setPlayerSize(),d.trigger("player:resize")},setFullscreen:function(){this.$el.addClass("fullscreen"),this.$el.removeAttr("style"),u.previousSize=u.currentSize,u.currentSize={width:r(window).width(),height:r(window).height()}},resize:function(t){var e=i.pick(t,"width","height");this.$el.css(e),u.previousSize=u.currentSize,u.currentSize=e,d.trigger("player:resize",e)},setPlayerSize:function(){this.resize(u.previousSize),this.$el.removeClass("fullscreen")},resolveOnContainersReady:function(t){var e=this;r.when.apply(r,t).done(function(){return e.defer.resolve(e)})},addPlugin:function(t){this.plugins.push(t)},hasPlugin:function(t){return!!this.getPlugin(t)},getPlugin:function(t){return i(this.plugins).find(function(e){return e.name===t})},load:function(t){var e=this;t=i.isString(t)?[t]:t,i(this.containers).each(function(t){return t.destroy()}),this.containerFactory.options=i(this.options).extend({sources:t}),this.containerFactory.createContainers().then(function(t){return e.setupContainers(t)})},destroy:function(){i(this.containers).each(function(t){return t.destroy()}),i(this.plugins).each(function(t){return t.destroy()}),this.$el.remove()},exit:function(){this.updateSize(),this.mediaControl.show()},setMediaControlContainer:function(t){this.mediaControl.setContainer(t),this.mediaControl.render()},disableMediaControl:function(){this.mediaControl.disable(),this.$el.removeClass("nocursor")},enableMediaControl:function(){this.mediaControl.enable()},removeContainer:function(t){this.stopListening(t),this.containers=i.without(this.containers,t)},appendContainer:function(t){this.listenTo(t,"container:destroyed",this.removeContainer),this.el.appendChild(t.render().el),this.containers.push(t)},prependContainer:function(t){this.listenTo(t,"container:destroyed",this.removeContainer),this.$el.append(t.render().el),this.containers.unshift(t)},setupContainers:function(t){return i.map(t,this.appendContainer,this),this.setupMediaControl(this.getCurrentContainer()),this.render(),this.$el.appendTo(this.options.parentElement),t},createContainer:function(t){var e=this.containerFactory.createContainer(t);return this.appendContainer(e),e},setupMediaControl:function(t){this.mediaControl?this.mediaControl.setContainer(t):(this.mediaControl=this.createMediaControl(i.extend({container:t},this.options)),this.listenTo(this.mediaControl,"mediacontrol:fullscreen",this.toggleFullscreen),this.listenTo(this.mediaControl,"mediacontrol:show",this.onMediaControlShow.bind(this,!0)),this.listenTo(this.mediaControl,"mediacontrol:hide",this.onMediaControlShow.bind(this,!1)))},createMediaControl:function(t){return t.mediacontrol&&t.mediacontrol.external?new t.mediacontrol.external(t):new c(t)},getCurrentContainer:function(){return this.containers[0]},toggleFullscreen:function(){s.isFullscreen()?(s.cancelFullscreen(),this.$el.removeClass("fullscreen nocursor")):(s.requestFullscreen(this.el),this.$el.addClass("fullscreen")),this.mediaControl.show()},showMediaControl:function(t){this.mediaControl.show(t)},hideMediaControl:function(t){this.mediaControl.hide(t)},onMediaControlShow:function(t){t?this.$el.removeClass("nocursor"):s.isFullscreen()&&this.$el.addClass("nocursor")},render:function(){var t=l.getStyleFor("core");return this.$el.append(t),this.$el.append(this.mediaControl.render().el),this.options.width=this.options.width||this.$el.width(),this.options.height=this.options.height||this.$el.height(),u.previousSize=u.currentSize=i.pick(this.options,"width","height"),this.updateSize(),this}},{},o),e.exports=h}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../base/styler":8,"../../base/utils":9,"../container_factory":13,media_control:void 0,mediator:void 0,player_info:void 0,ui_object:void 0}],15:[function(t,e){"use strict";e.exports=t("./core")},{"./core":14}],16:[function(t,e){(function(n){"use strict";var i="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,r=t("base_object"),o=t("../core"),a=function(t,e){this.player=t,this.options=t.options,this.loader=e,this.options.loader=this.loader};$traceurRuntime.createClass(a,{create:function(){return this.core=new o(this.options),this.core.then(this.addCorePlugins.bind(this)),this.core},addCorePlugins:function(){return i.each(this.loader.corePlugins,function(t){var e=new t(this.core);this.core.addPlugin(e),this.setupExternalInterface(e)},this),this.core},setupExternalInterface:function(t){i.each(t.getExternalInterface(),function(e,n){this.player[n]=e.bind(t)},this)}},{},r),e.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../core":15,base_object:void 0}],17:[function(t,e){"use strict";e.exports=t("./core_factory")},{"./core_factory":16}],18:[function(t,e){"use strict";e.exports=t("./loader")},{"./loader":19}],19:[function(t,e){(function(n){"use strict";var i=t("base_object"),r="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,o=t("player_info"),a=t("../../playbacks/html5_video"),s=t("../../playbacks/flash"),l=t("../../playbacks/html5_audio"),c=t("../../playbacks/hls"),u=t("../../playbacks/no_op"),d=t("../../plugins/spinner_three_bounce"),h=t("../../plugins/stats"),p=t("../../plugins/watermark"),f=t("../../plugins/poster"),m=t("../../plugins/google_analytics"),b=t("../../plugins/click_to_pause"),g=t("../../plugins/background_button"),y=t("../../plugins/dvr_controls"),v=function(t){$traceurRuntime.superCall(this,w.prototype,"constructor",[]),this.playbackPlugins=[s,a,l,c,u],this.containerPlugins=[d,p,f,h,m,b],this.corePlugins=[g,y],t&&this.addExternalPlugins(t)},w=v;$traceurRuntime.createClass(v,{addExternalPlugins:function(t){var e=function(t){return t.prototype.name};t.playback&&(this.playbackPlugins=r.uniq(t.playback.concat(this.playbackPlugins),e)),t.container&&(this.containerPlugins=r.uniq(t.container.concat(this.containerPlugins),e)),t.core&&(this.corePlugins=r.uniq(t.core.concat(this.corePlugins),e)),o.playbackPlugins=this.playbackPlugins},getPlugin:function(t){var e=r.union(this.containerPlugins,this.playbackPlugins,this.corePlugins);return r.find(e,function(e){return e.prototype.name===t})}},{},i),e.exports=v}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../playbacks/flash":24,"../../playbacks/hls":26,"../../playbacks/html5_audio":28,"../../playbacks/html5_video":30,"../../playbacks/no_op":31,"../../plugins/background_button":34,"../../plugins/click_to_pause":36,"../../plugins/dvr_controls":38,"../../plugins/google_analytics":40,"../../plugins/poster":43,"../../plugins/spinner_three_bounce":45,"../../plugins/stats":47,"../../plugins/watermark":49,base_object:void 0,player_info:void 0}],20:[function(t,e){(function(n){"use strict";var i="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,r="undefined"!=typeof window?window.$:"undefined"!=typeof n?n.$:null,o=t("../../base/jst"),a=t("../../base/styler"),s=t("ui_object"),l=t("../../base/utils"),c=t("mousetrap"),u=t("../seek_time"),d=t("mediator"),h=t("player_info"),p=function(t){var e=this;$traceurRuntime.superCall(this,f.prototype,"constructor",[t]),this.seekTime=new u(this),this.options=t,this.mute=this.options.mute,this.currentVolume=this.options.mute?0:100,this.container=t.container,this.container.setVolume(this.currentVolume),this.keepVisible=!1,this.addEventListeners(),this.settings={left:["play","stop","pause"],right:["volume"],"default":["position","seekbar","duration"]},this.settings=i.isEmpty(this.container.settings)?this.settings:this.container.settings,this.disabled=!1,(this.container.mediaControlDisabled||this.options.chromeless)&&this.disable(),r(document).bind("mouseup",function(t){return e.stopDrag(t)}),r(document).bind("mousemove",function(t){return e.updateDrag(t)}),d.on("player:resize",function(){return e.playerResize()})},f=p;$traceurRuntime.createClass(p,{get name(){return"MediaControl"},get attributes(){return{"class":"media-control","data-media-control":""}},get events(){return{"click [data-play]":"play","click [data-pause]":"pause","click [data-playpause]":"togglePlayPause","click [data-stop]":"stop","click [data-playstop]":"togglePlayStop","click [data-fullscreen]":"toggleFullscreen","click [data-seekbar]":"seek","click .bar-container[data-volume]":"volume","click .drawer-icon[data-volume]":"toggleMute","mouseenter .drawer-container[data-volume]":"showVolumeBar","mouseleave .drawer-container[data-volume]":"hideVolumeBar","mousedown .bar-scrubber[data-volume]":"startVolumeDrag","mousedown .bar-scrubber[data-seekbar]":"startSeekDrag","mousemove .bar-container[data-seekbar]":"mousemoveOnSeekBar","mouseleave .bar-container[data-seekbar]":"mouseleaveOnSeekBar","mouseenter .media-control-layer[data-controls]":"setKeepVisible","mouseleave .media-control-layer[data-controls]":"resetKeepVisible"}},get template(){return o.media_control},addEventListeners:function(){this.listenTo(this.container,"container:play",this.changeTogglePlay),this.listenTo(this.container,"container:timeupdate",this.updateSeekBar),this.listenTo(this.container,"container:progress",this.updateProgressBar),this.listenTo(this.container,"container:settingsupdate",this.settingsUpdate),this.listenTo(this.container,"container:dvr",this.settingsUpdate),this.listenTo(this.container,"container:highdefinitionupdate",this.highDefinitionUpdate),this.listenTo(this.container,"container:mediacontrol:disable",this.disable),this.listenTo(this.container,"container:mediacontrol:enable",this.enable),this.listenTo(this.container,"container:ended",this.ended)},disable:function(){this.disabled=!0,this.hide(),this.$el.hide()},enable:function(){this.options.chromeless||(this.disabled=!1,this.show())},play:function(){this.container.play()},pause:function(){this.container.pause()},stop:function(){this.container.stop()},changeTogglePlay:function(){this.container.isPlaying()?(this.$playPauseToggle.removeClass("paused").addClass("playing"),this.$playStopToggle.removeClass("stopped").addClass("playing"),this.trigger("mediacontrol:playing")):(this.$playPauseToggle.removeClass("playing").addClass("paused"),this.$playStopToggle.removeClass("playing").addClass("stopped"),this.trigger("mediacontrol:notplaying"))},mousemoveOnSeekBar:function(t){if(this.container.settings.seekEnabled){var e=t.pageX-this.$seekBarContainer.offset().left-this.$seekBarHover.width()/2;this.$seekBarHover.css({left:e})}this.trigger("mediacontrol:mousemove:seekbar",t)},mouseleaveOnSeekBar:function(t){this.trigger("mediacontrol:mouseleave:seekbar",t)},playerResize:function(){l.Fullscreen.isFullscreen()?this.$fullscreenToggle.addClass("shrink"):this.$fullscreenToggle.removeClass("shrink"),this.$el.removeClass("w320"),h.currentSize.width<=320&&this.$el.addClass("w320")},togglePlayPause:function(){this.container.isPlaying()?this.container.pause():this.container.play(),this.changeTogglePlay()},togglePlayStop:function(){this.container.isPlaying()?this.container.stop():this.container.play(),this.changeTogglePlay()},startSeekDrag:function(t){this.container.settings.seekEnabled&&(this.draggingSeekBar=!0,this.$el.addClass("dragging"),this.$seekBarLoaded.addClass("media-control-notransition"),this.$seekBarPosition.addClass("media-control-notransition"),this.$seekBarScrubber.addClass("media-control-notransition"),t&&t.preventDefault())},startVolumeDrag:function(t){this.draggingVolumeBar=!0,this.$el.addClass("dragging"),t&&t.preventDefault()},stopDrag:function(t){this.draggingSeekBar&&this.seek(t),this.$el.removeClass("dragging"),this.$seekBarLoaded.removeClass("media-control-notransition"),this.$seekBarPosition.removeClass("media-control-notransition"),this.$seekBarScrubber.removeClass("media-control-notransition dragging"),this.draggingSeekBar=!1,this.draggingVolumeBar=!1},updateDrag:function(t){if(t&&t.preventDefault(),this.draggingSeekBar){var e=t.pageX-this.$seekBarContainer.offset().left,n=e/this.$seekBarContainer.width()*100;n=Math.min(100,Math.max(n,0)),this.setSeekPercentage(n)}else this.draggingVolumeBar&&this.volume(t)},volume:function(t){var e=t.pageX-this.$volumeBarContainer.offset().left;this.currentVolume=e/this.$volumeBarContainer.width()*100,this.currentVolume=Math.min(100,Math.max(this.currentVolume,0)),this.container.setVolume(this.currentVolume),this.setVolumeLevel(this.currentVolume)},toggleMute:function(){this.mute?(this.currentVolume<=0&&(this.currentVolume=100),this.setVolume(this.currentVolume)):this.setVolume(0)},setVolume:function(t){this.container.setVolume(t),this.setVolumeLevel(t),this.mute=0===t?!0:!1},toggleFullscreen:function(){this.trigger("mediacontrol:fullscreen",this.name),this.container.fullscreen(),this.resetKeepVisible()},setContainer:function(t){this.stopListening(this.container),this.container=t,this.changeTogglePlay(),this.addEventListeners(),this.settingsUpdate(),this.container.trigger("container:dvr",this.container.isDvrInUse()),this.container.setVolume(this.currentVolume),this.container.mediaControlDisabled&&this.disable(),this.trigger("mediacontrol:containerchanged")},showVolumeBar:function(){this.hideVolumeId&&clearTimeout(this.hideVolumeId),this.$volumeBarContainer.removeClass("volume-bar-hide")},hideVolumeBar:function(){var t=this,e=400;this.$volumeBarContainer&&(this.draggingVolumeBar?this.hideVolumeId=setTimeout(function(){return t.hideVolumeBar()},e):(this.hideVolumeId&&clearTimeout(this.hideVolumeId),this.hideVolumeId=setTimeout(function(){return t.$volumeBarContainer.addClass("volume-bar-hide")},e)))},ended:function(){this.changeTogglePlay()},updateProgressBar:function(t,e,n){var i=t/n*100,r=e/n*100;this.$seekBarLoaded.css({left:i+"%",width:r-i+"%"})},updateSeekBar:function(t,e){if(!this.draggingSeekBar){0>t&&(t=e),this.$seekBarPosition.removeClass("media-control-notransition"),this.$seekBarScrubber.removeClass("media-control-notransition");var n=100/e*t;this.setSeekPercentage(n),this.$("[data-position]").html(l.formatTime(t)),this.$("[data-duration]").html(l.formatTime(e))}},seek:function(t){if(this.container.settings.seekEnabled){var e=t.pageX-this.$seekBarContainer.offset().left,n=e/this.$seekBarContainer.width()*100;n=Math.min(100,Math.max(n,0)),this.container.setCurrentTime(n),this.setSeekPercentage(n)}},setKeepVisible:function(){this.keepVisible=!0},resetKeepVisible:function(){this.keepVisible=!1},isVisible:function(){return!this.$el.hasClass("media-control-hide")},show:function(t){var e=this;if(!this.disabled&&!this.isVisible()&&null!==this.container.getPlaybackType()){var n=2e3;(!t||t.clientX!==this.lastMouseX&&t.clientY!==this.lastMouseY||navigator.userAgent.match(/firefox/i))&&(this.hideId&&clearTimeout(this.hideId),this.$el.show(),this.trigger("mediacontrol:show",this.name),this.$el.removeClass("media-control-hide"),this.hideId=setTimeout(function(){return e.hide()},n),t&&(this.lastMouseX=t.clientX,this.lastMouseY=t.clientY))}},hide:function(){var t=this,e=2e3;this.hideId&&clearTimeout(this.hideId),this.isVisible()&&(this.keepVisible||this.draggingSeekBar||this.draggingVolumeBar?this.hideId=setTimeout(function(){return t.hide()},e):(this.trigger("mediacontrol:hide",this.name),this.$el.addClass("media-control-hide"),this.hideVolumeBar()))},settingsUpdate:function(){null===this.container.getPlaybackType()||i.isEmpty(this.container.settings)?this.disable():(this.settings=this.container.settings,this.render(),this.enable())},highDefinitionUpdate:function(){this.container.isHighDefinitionInUse()?this.$el.find("button[data-hd-indicator]").addClass("enabled"):this.$el.find("button[data-hd-indicator]").removeClass("enabled")},createCachedElements:function(){this.$playPauseToggle=this.$el.find("button.media-control-button[data-playpause]"),this.$playStopToggle=this.$el.find("button.media-control-button[data-playstop]"),this.$fullscreenToggle=this.$el.find("button.media-control-button[data-fullscreen]"),this.$seekBarContainer=this.$el.find(".bar-container[data-seekbar]"),this.$seekBarLoaded=this.$el.find(".bar-fill-1[data-seekbar]"),this.$seekBarPosition=this.$el.find(".bar-fill-2[data-seekbar]"),this.$seekBarScrubber=this.$el.find(".bar-scrubber[data-seekbar]"),this.$seekBarHover=this.$el.find(".bar-hover[data-seekbar]"),this.$volumeBarContainer=this.$el.find(".bar-container[data-volume]"),this.$volumeIcon=this.$el.find(".drawer-icon[data-volume]")},setVolumeLevel:function(t){var e=this;if(this.container.isReady){this.$volumeBarContainer.find(".segmented-bar-element").removeClass("fill");var n=Math.ceil(t/10);this.$volumeBarContainer.find(".segmented-bar-element").slice(0,n).addClass("fill"),t>0?this.$volumeIcon.removeClass("muted"):this.$volumeIcon.addClass("muted")}else this.listenToOnce(this.container,"container:ready",function(){return e.setVolumeLevel(t)})},setSeekPercentage:function(t){if(!(t>100)){var e=this.$seekBarContainer.width()*t/100-this.$seekBarScrubber.width()/2;this.currentSeekPercentage=t,this.$seekBarPosition.css({width:t+"%"}),this.$seekBarScrubber.css({left:e})}},bindKeyEvents:function(){var t=this;c.bind(["space"],function(){return t.togglePlayPause()})},parseColors:function(){if(this.options.mediacontrol){var t=this.options.mediacontrol.buttons,e=this.options.mediacontrol.seekbar;this.$el.find(".bar-fill-2[data-seekbar]").css("background-color",e),this.$el.find("[data-media-control] > .media-control-icon, .drawer-icon").css("color",t),this.$el.find(".segmented-bar-element[data-volume]").css("boxShadow","inset 2px 0 0 "+t)}},render:function(){var t=this,e=1e3,n=a.getStyleFor("media_control");return this.$el.html(this.template({settings:this.settings})),this.$el.append(n),this.createCachedElements(),this.$playPauseToggle.addClass("paused"),this.$playStopToggle.addClass("stopped"),this.changeTogglePlay(),this.hideId=setTimeout(function(){return t.hide()},e),this.disabled&&this.hide(),this.$seekBarPosition.addClass("media-control-notransition"),this.$seekBarScrubber.addClass("media-control-notransition"),this.currentSeekPercentage||(this.currentSeekPercentage=0),this.setSeekPercentage(this.currentSeekPercentage),this.$el.ready(function(){t.container.settings.seekEnabled||t.$seekBarContainer.addClass("seek-disabled"),t.setVolumeLevel(t.currentVolume),t.bindKeyEvents(),t.hideVolumeBar()}),this.parseColors(),this.seekTime.render(),this.trigger("mediacontrol:rendered"),this}},{},s),e.exports=p}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../base/jst":7,"../../base/styler":8,"../../base/utils":9,"../seek_time":21,mediator:void 0,mousetrap:4,player_info:void 0,ui_object:void 0}],21:[function(t,e){"use strict";e.exports=t("./seek_time")},{"./seek_time":22}],22:[function(t,e){"use strict";var n=t("ui_object"),i=t("../../base/styler"),r=t("../../base/jst"),o=t("../../base/utils").formatTime,a=function(t){$traceurRuntime.superCall(this,s.prototype,"constructor",[]),this.mediaControl=t,this.addEventListeners()},s=a;$traceurRuntime.createClass(a,{get name(){return"seek_time"},get template(){return r.seek_time},get attributes(){return{"class":"seek-time hidden","data-seek-time":""}},addEventListeners:function(){this.listenTo(this.mediaControl,"mediacontrol:mousemove:seekbar",this.showTime),this.listenTo(this.mediaControl,"mediacontrol:mouseleave:seekbar",this.hideTime)},showTime:function(t){var e=t.pageX-this.mediaControl.$seekBarContainer.offset().left,n=Math.min(100,Math.max(e/this.mediaControl.$seekBarContainer.width()*100,0)),i=t.pageX-this.mediaControl.$el.offset().left-this.$el.width()/2;i=Math.min(Math.max(0,i),this.mediaControl.$el.width()-this.$el.width());var r=n*this.mediaControl.container.getDuration()/100,a={timestamp:r,formattedTime:o(r),pointerPosition:i};this.update(a)},hideTime:function(){this.$el.addClass("hidden"),this.$el.css("left","-100%")},update:function(t){("vod"===this.mediaControl.container.getPlaybackType()||this.mediaControl.container.isDvrInUse())&&(this.$el.find("[data-seek-time]").text(t.formattedTime),this.$el.css("left",t.pointerPosition),this.$el.removeClass("hidden"))},render:function(){var t=i.getStyleFor(this.name);this.$el.html(this.template()),this.$el.append(t),this.mediaControl.$el.append(this.el)}},{},n),e.exports=a},{"../../base/jst":7,"../../base/styler":8,"../../base/utils":9,ui_object:void 0}],23:[function(t,e){(function(n){"use strict";var i=t("playback"),r=t("../../base/styler"),o=t("../../base/jst"),a=t("mediator"),s="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,l="undefined"!=typeof window?window.$:"undefined"!=typeof n?n.$:null,c=t("browser"),u=t("mousetrap"),d=t("../../base/utils").seekStringToSeconds,h='<object type="application/x-shockwave-flash" id="<%= cid %>" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" data-flash-vod=""><param name="movie" value="<%= swfPath %>"> <param name="quality" value="autohigh"> <param name="swliveconnect" value="true"> <param name="allowScriptAccess" value="always"> <param name="bgcolor" value="#001122"> <param name="allowFullScreen" value="false"> <param name="wmode" value="gpu"> <param name="tabindex" value="1"> <param name=FlashVars value="playbackId=<%= playbackId %>" /> </object>',p=function(t){$traceurRuntime.superCall(this,f.prototype,"constructor",[t]),this.src=t.src,this.isRTMP=this.src.indexOf("rtmp")>-1,this.swfPath=t.swfPath||"http://cdn.clappr.io/latest/assets/Player.swf",this.autoPlay=t.autoPlay,this.settings={"default":["seekbar"]},this.isRTMP?(this.settings.left=["playstop"],this.settings.right=["fullscreen","volume"]):(this.settings.left=["playpause","position","duration"],this.settings.right=["fullscreen","volume"],this.settings.seekEnabled=!0),this.isReady=!1,this.addListeners()},f=p;$traceurRuntime.createClass(p,{get name(){return"flash"},get tagName(){return"object"},get template(){return o.flash},bootstrap:function(){this.el.width="100%",this.el.height="100%",this.isReady=!0,"PLAYING"===this.currentState?this.firstPlay():(this.currentState="IDLE",this.autoPlay&&this.play()),l('<div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%" />').insertAfter(this.$el),this.trigger("playback:ready",this.name)},getPlaybackType:function(){return this.isRTMP?"live":"vod"},setupFirefox:function(){var t=this.$("embed");t.attr("data-flash",""),this.setElement(t[0])},isHighDefinitionInUse:function(){return!1},updateTime:function(){this.trigger("playback:timeupdate",this.el.getPosition(),this.el.getDuration(),this.name)
  },addListeners:function(){a.on(this.uniqueId+":progress",this.progress,this),a.on(this.uniqueId+":timeupdate",this.updateTime,this),a.on(this.uniqueId+":statechanged",this.checkState,this),a.on(this.uniqueId+":flashready",this.bootstrap,this),s.each(s.range(1,10),function(t){var e=this;u.bind([t.toString()],function(){return e.seek(10*t)})}.bind(this))},stopListening:function(){$traceurRuntime.superCall(this,f.prototype,"stopListening",[]),a.off(this.uniqueId+":progress"),a.off(this.uniqueId+":timeupdate"),a.off(this.uniqueId+":statechanged"),a.off(this.uniqueId+":flashready"),s.each(s.range(1,10),function(t){var e=this;u.unbind([t.toString()],function(){return e.seek(10*t)})}.bind(this))},checkState:function(){"PAUSED"!==this.currentState&&("PLAYING_BUFFERING"!==this.currentState&&"PLAYING_BUFFERING"===this.el.getState()?(this.trigger("playback:buffering",this.name),this.currentState="PLAYING_BUFFERING"):"PLAYING_BUFFERING"===this.currentState&&"PLAYING"===this.el.getState()?(this.trigger("playback:bufferfull",this.name),this.currentState="PLAYING"):"IDLE"===this.el.getState()?this.currentState="IDLE":"ENDED"===this.el.getState()&&(this.trigger("playback:ended",this.name),this.trigger("playback:timeupdate",0,this.el.getDuration(),this.name),this.currentState="ENDED"))},progress:function(){"IDLE"!==this.currentState&&"ENDED"!==this.currentState&&this.trigger("playback:progress",0,this.el.getBytesLoaded(),this.el.getBytesTotal(),this.name)},firstPlay:function(){var t=this;this.currentState="PLAYING",s.isFunction(this.el.playerPlay)&&(this.el.playerPlay(this.src),this.listenToOnce(this,"playback:bufferfull",function(){return t.checkInitialSeek()}))},checkInitialSeek:function(){var t=d(window.location.href);this.seekSeconds(t)},play:function(){"PAUSED"===this.el.getState()||"PLAYING_BUFFERING"===this.el.getState()?(this.currentState="PLAYING",this.el.playerResume()):"PLAYING"!==this.el.getState()&&this.firstPlay(),this.trigger("playback:play",this.name)},volume:function(t){var e=this;this.isReady?this.el.playerVolume(t):this.listenToOnce(this,"playback:bufferfull",function(){return e.volume(t)})},pause:function(){this.currentState="PAUSED",this.el.playerPause()},stop:function(){this.el.playerStop(),this.trigger("playback:timeupdate",0,this.name)},isPlaying:function(){return!(!this.isReady||"PLAYING"!==this.currentState)},getDuration:function(){return this.el.getDuration()},seek:function(t){var e=this.el.getDuration()*(t/100);this.seekSeconds(e)},seekSeconds:function(t){this.el.playerSeek(t),this.trigger("playback:timeupdate",t,this.el.getDuration(),this.name),"PAUSED"===this.currentState&&this.el.playerPause()},destroy:function(){clearInterval(this.bootstrapId),this.stopListening(),this.$el.remove()},setupIE:function(){this.setElement(l(s.template(h)({cid:this.cid,swfPath:this.swfPath,playbackId:this.uniqueId})))},render:function(){var t=r.getStyleFor(this.name);return this.$el.html(this.template({cid:this.cid,swfPath:this.swfPath,playbackId:this.uniqueId})),c.isFirefox?this.setupFirefox():c.isLegacyIE&&this.setupIE(),this.$el.append(t),this}},{},i),p.canPlay=function(t){return t.indexOf("rtmp")>-1?!0:!c.isMobile&&c.isFirefox||c.isLegacyIE?s.isString(t)&&!!t.match(/(.*)\.(mp4|mov|f4v|3gpp|3gp)/):s.isString(t)&&!!t.match(/(.*)\.(mov|f4v|3gpp|3gp)/)},e.exports=p}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../base/jst":7,"../../base/styler":8,"../../base/utils":9,browser:void 0,mediator:void 0,mousetrap:4,playback:void 0}],24:[function(t,e){"use strict";e.exports=t("./flash")},{"./flash":23}],25:[function(t,e){(function(n){"use strict";var i=t("playback"),r=t("../../base/styler"),o=t("../../base/jst"),a="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,s=t("mediator"),l=t("browser"),c='<object type="application/x-shockwave-flash" id="<%= cid %>" class="hls-playback" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" data-hls="" width="100%" height="100%"><param name="movie" value="<%= swfPath %>"> <param name="quality" value="autohigh"> <param name="swliveconnect" value="true"> <param name="allowScriptAccess" value="always"> <param name="bgcolor" value="#001122"> <param name="allowFullScreen" value="false"> <param name="wmode" value="transparent"> <param name="tabindex" value="1"> <param name=FlashVars value="playbackId=<%= playbackId %>" /> </object>',u=function(t){$traceurRuntime.superCall(this,d.prototype,"constructor",[t]),this.src=t.src,this.swfPath=t.swfPath||"http://cdn.clappr.io/latest/assets/HLSPlayer.swf",this.flushLiveURLCache=void 0===t.flushLiveURLCache?!0:t.flushLiveURLCache,this.capLevelToStage=void 0===t.capLevelToStage?!0:t.capLevelToStage,this.highDefinition=!1,this.autoPlay=t.autoPlay,this.defaultSettings={left:["playstop"],"default":["seekbar"],right:["fullscreen","volume","hd-indicator"],seekEnabled:!1},this.settings=a.extend({},this.defaultSettings),this.playbackType="live",this.addListeners()},d=u;$traceurRuntime.createClass(u,{get name(){return"hls"},get tagName(){return"object"},get template(){return o.hls},get attributes(){return{"class":"hls-playback","data-hls":"",type:"application/x-shockwave-flash"}},addListeners:function(){var t=this;s.on(this.uniqueId+":flashready",function(){return t.bootstrap()}),s.on(this.uniqueId+":timeupdate",function(){return t.updateTime()}),s.on(this.uniqueId+":playbackstate",function(e){return t.setPlaybackState(e)}),s.on(this.uniqueId+":highdefinition",function(e){return t.updateHighDefinition(e)}),s.on(this.uniqueId+":playbackerror",function(){return t.flashPlaybackError()})},stopListening:function(){$traceurRuntime.superCall(this,d.prototype,"stopListening",[]),s.off(this.uniqueId+":flashready"),s.off(this.uniqueId+":timeupdate"),s.off(this.uniqueId+":playbackstate"),s.off(this.uniqueId+":highdefinition"),s.off(this.uniqueId+":playbackerror")},bootstrap:function(){this.el.width="100%",this.el.height="100%",this.isReady=!0,this.trigger("playback:ready",this.name),this.currentState="IDLE",this.setFlashSettings(),this.autoPlay&&this.play()},setFlashSettings:function(){this.el.globoPlayerSetflushLiveURLCache(this.flushLiveURLCache),this.el.globoPlayerCapLeveltoStage(this.capLevelToStage),this.el.globoPlayerSetmaxBufferLength(0)},updateHighDefinition:function(t){this.highDefinition="true"===t,this.trigger("playback:highdefinitionupdate")},updateTime:function(){var t=this.getDuration(),e=Math.min(Math.max(this.el.globoGetPosition(),0),t),n=this.dvrEnabled,i="live"===this.playbackType;this.dvrEnabled=i&&t>240,100!==t&&void 0!==i&&(this.dvrEnabled!==n&&(this.updateSettings(),this.trigger("playback:settingsupdate",this.name)),!i||this.dvrEnabled&&this.dvrInUse||(e=t),this.trigger("playback:timeupdate",e,t,this.name))},play:function(){"PAUSED"===this.currentState?this.el.globoPlayerResume():"PLAYING"!==this.currentState&&this.firstPlay(),this.trigger("playback:play",this.name)},getPlaybackType:function(){return this.playbackType?this.playbackType:null},getCurrentBitrate:function(){var t=this.getLevels()[this.el.globoGetLevel()];return t.bitrate},getLastProgramDate:function(){var t=this.el.globoGetLastProgramDate();return t-108e5},isHighDefinitionInUse:function(){return this.highDefinition},getLevels:function(){return this.levels&&0!==this.levels.length||(this.levels=this.el.globoGetLevels()),this.levels},setPlaybackState:function(t){var e=this.el.globoGetbufferLength();"PLAYING_BUFFERING"===t&&1>e?(this.trigger("playback:buffering",this.name),this.updateCurrentState(t)):"PLAYING"===t?a.contains(["PLAYING_BUFFERING","PAUSED","IDLE"],this.currentState)&&(this.trigger("playback:bufferfull",this.name),this.updateCurrentState(t)):"PAUSED"===t?this.updateCurrentState(t):"IDLE"===t&&(this.trigger("playback:ended",this.name),this.trigger("playback:timeupdate",0,this.el.globoGetDuration(),this.name),this.updateCurrentState(t)),this.lastBufferLength=e},updateCurrentState:function(t){this.currentState=t,this.updatePlaybackType()},updatePlaybackType:function(){this.playbackType=this.el.globoGetType(),this.playbackType&&(this.playbackType=this.playbackType.toLowerCase(),"vod"===this.playbackType?this.startReportingProgress():this.stopReportingProgress()),this.trigger("playback:playbackstate")},startReportingProgress:function(){var t=this;this.reportingProgress||(this.reportingProgress=!0,s.on(this.uniqueId+":fragmentloaded",function(){return t.onFragmentLoaded()}))},stopReportingProgress:function(){s.off(this.uniqueId+":fragmentloaded")},onFragmentLoaded:function(){var t=this.el.globoGetPosition()+this.el.globoGetbufferLength();this.trigger("playback:progress",this.el.globoGetPosition(),t,this.getDuration(),this.name)},firstPlay:function(){this.el.globoPlayerLoad(this.src),this.el.globoPlayerPlay()},volume:function(t){var e=this;this.isReady?this.el.globoPlayerVolume(t):this.listenToOnce(this,"playback:bufferfull",function(){return e.volume(t)})},pause:function(){("live"!==this.playbackType||this.dvrEnabled)&&(this.el.globoPlayerPause(),"live"===this.playbackType&&this.dvrEnabled&&this.updateDvr(!0))},stop:function(){this.el.globoPlayerStop(),this.trigger("playback:timeupdate",0,this.name)},isPlaying:function(){return this.currentState?!!this.currentState.match(/playing/i):!1},getDuration:function(){var t=this.el.globoGetDuration();return"live"===this.playbackType&&(t-=10),t},seek:function(t){var e=this.getDuration();if(t>0&&(t=e*t/100),"live"===this.playbackType){var n=t>=0&&e-t>5;n||(t=-1),this.updateDvr(n)}this.el.globoPlayerSeek(t),this.trigger("playback:timeupdate",t,e,this.name)},updateDvr:function(t){var e=!!this.dvrInUse;this.dvrInUse=t,this.dvrInUse!==e&&(this.updateSettings(),this.trigger("playback:dvr",this.dvrInUse),this.trigger("playback:stats:add",{dvr:this.dvrInUse}))},flashPlaybackError:function(){this.trigger("playback:stop")},timeUpdate:function(t,e){this.trigger("playback:timeupdate",t,e,this.name)},destroy:function(){this.stopListening(),this.$el.remove()},setupFirefox:function(){var t=this.$("embed");t.attr("data-hls",""),this.setElement(t)},setupIE:function(){this.setElement($(a.template(c)({cid:this.cid,swfPath:this.swfPath,playbackId:this.uniqueId})))},updateSettings:function(){this.settings=a.extend({},this.defaultSettings),"vod"===this.playbackType||this.dvrInUse?(this.settings.left=["playpause","position","duration"],this.settings.seekEnabled=!0):this.dvrEnabled?(this.settings.left=["playpause"],this.settings.seekEnabled=!0):this.settings.seekEnabled=!1},setElement:function(t){this.$el=t,this.el=t[0]},render:function(){var t=r.getStyleFor(this.name);return l.isLegacyIE?this.setupIE():(this.$el.html(this.template({cid:this.cid,swfPath:this.swfPath,playbackId:this.uniqueId})),l.isFirefox?this.setupFirefox():l.isIE&&this.$("embed").remove()),this.el.id=this.cid,this.$el.append(t),this}},{},i),u.canPlay=function(t){return!!t.match(/^http(.*).m3u8/)},e.exports=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../base/jst":7,"../../base/styler":8,browser:void 0,mediator:void 0,playback:void 0}],26:[function(t,e){"use strict";e.exports=t("./hls")},{"./hls":25}],27:[function(t,e){"use strict";var n=t("playback"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.el.src=t.src,this.settings={left:["playpause","position","duration"],right:["fullscreen","volume"],"default":["seekbar"]},this.render(),t.autoPlay&&this.play()},r=i;$traceurRuntime.createClass(i,{get name(){return"html5_audio"},get tagName(){return"audio"},get events(){return{timeupdate:"timeUpdated",ended:"ended"}},bindEvents:function(){this.listenTo(this.container,"container:play",this.play),this.listenTo(this.container,"container:pause",this.pause),this.listenTo(this.container,"container:seek",this.seek),this.listenTo(this.container,"container:volume",this.volume),this.listenTo(this.container,"container:stop",this.stop)},getPlaybackType:function(){return"aod"},play:function(){this.el.play(),this.trigger("playback:play")},pause:function(){this.el.pause()},stop:function(){this.pause(),this.el.currentTime=0},volume:function(t){this.el.volume=t/100},mute:function(){this.el.volume=0},unmute:function(){this.el.volume=1},isMuted:function(){return!!this.el.volume},ended:function(){this.trigger("container:timeupdate",0)},seek:function(t){var e=this.el.duration*(t/100);this.el.currentTime=e},getCurrentTime:function(){return this.el.currentTime},getDuration:function(){return this.el.duration},isPlaying:function(){return!this.el.paused&&!this.el.ended},timeUpdated:function(){this.trigger("playback:timeupdate",this.el.currentTime,this.el.duration,this.name)},render:function(){return this}},{},n),i.canPlay=function(t){return!!t.match(/(.*).mp3/)},e.exports=i},{playback:void 0}],28:[function(t,e){"use strict";e.exports=t("./html5_audio")},{"./html5_audio":27}],29:[function(t,e){(function(n,i){"use strict";var r=t("playback"),o=t("../../base/jst"),a=t("../../base/styler"),s=t("browser"),l=t("mousetrap"),c=t("../../base/utils").seekStringToSeconds,u="undefined"!=typeof window?window._:"undefined"!=typeof i?i._:null,d=function(t){$traceurRuntime.superCall(this,h.prototype,"constructor",[t]),this.options=t,this.src=t.src,this.el.src=t.src,this.el.loop=t.loop,this.isHLS=this.src.indexOf("m3u8")>-1,this.settings={"default":["seekbar"]},this.isHLS?(this.settings.left=["playstop"],this.settings.right=["fullscreen","volume"]):(this.settings.left=["playpause","position","duration"],this.settings.right=["fullscreen","volume"],this.settings.seekEnabled=!0),this.bindEvents()},h=d;$traceurRuntime.createClass(d,{get name(){return"html5_video"},get tagName(){return"video"},get template(){return o.html5_video},get attributes(){return{"data-html5-video":""}},get events(){return{timeupdate:"timeUpdated",progress:"progress",ended:"ended",playing:"playing",stalled:"stalled",waiting:"waiting",canplaythrough:"bufferFull",loadedmetadata:"loadedMetadata"}},bindEvents:function(){u.each(u.range(1,10),function(t){var e=this;l.bind([t.toString()],function(){return e.seek(10*t)})}.bind(this))},loadedMetadata:function(t){this.trigger("playback:loadedmetadata",t.target.duration),this.trigger("playback:settingsupdate"),this.checkInitialSeek()},getPlaybackType:function(){return this.isHLS&&u.contains([0,void 0,1/0],this.el.duration)?"live":"vod"},isHighDefinitionInUse:function(){return!1},play:function(){this.el.play(),this.trigger("playback:play"),this.isHLS&&this.trigger("playback:timeupdate",1,1,this.name)},pause:function(){this.el.pause()},stop:function(){this.pause(),0!==this.el.readyState&&(this.el.currentTime=0)},volume:function(t){this.el.volume=t/100},mute:function(){this.el.volume=0},unmute:function(){this.el.volume=1},isMuted:function(){return!!this.el.volume},isPlaying:function(){return!this.el.paused&&!this.el.ended},ended:function(){this.trigger("playback:ended",this.name),this.trigger("playback:timeupdate",0,this.el.duration,this.name)},stalled:function(){"vod"===this.getPlaybackType()&&this.trigger("playback:buffering",this.name)},waiting:function(){this.trigger("playback:buffering",this.name)},bufferFull:function(){this.trigger("playback:bufferfull",this.name)},destroy:function(){this.stop(),this.el.src="",this.$el.remove()},seek:function(t){var e=this.el.duration*(t/100);this.seekSeconds(e)},seekSeconds:function(t){this.el.currentTime=t},checkInitialSeek:function(){var t=c(window.location.href);this.seekSeconds(t)},getCurrentTime:function(){return this.el.currentTime},getDuration:function(){return this.el.duration},timeUpdated:function(){"live"!==this.getPlaybackType()&&this.trigger("playback:timeupdate",this.el.currentTime,this.el.duration,this.name)},progress:function(){if(this.el.buffered.length){for(var t=0,e=0;e<this.el.buffered.length;e++)if(this.el.currentTime>=this.el.buffered.start(e)&&this.el.currentTime<=this.el.buffered.end(e)){t=e;break}this.trigger("playback:progress",this.el.buffered.start(t),this.el.buffered.end(t),this.el.duration,this.name)}},typeFor:function(t){return t.indexOf(".m3u8")>0?"application/vnd.apple.mpegurl":"video/mp4"},render:function(){var t=this,e=a.getStyleFor(this.name);return this.$el.html(this.template({src:this.src,type:this.typeFor(this.src)})),this.$el.append(e),this.trigger("playback:ready",this.name),n.nextTick(function(){return t.options.autoPlay&&t.play()}),this}},{},r),d.canPlay=function(t){return!!t.match(/(.*).mp4/)||s.isSafari||s.isMobile||s.isWin8App},e.exports=d}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../base/jst":7,"../../base/styler":8,"../../base/utils":9,_process:2,browser:void 0,mousetrap:4,playback:void 0}],30:[function(t,e){"use strict";e.exports=t("./html5_video")},{"./html5_video":29}],31:[function(t,e){"use strict";e.exports=t("./no_op")},{"./no_op":32}],32:[function(t,e){"use strict";var n=t("playback"),i=t("../../base/jst"),r=t("../../base/styler"),o=function(t){$traceurRuntime.superCall(this,a.prototype,"constructor",[t])},a=o;$traceurRuntime.createClass(o,{get name(){return"no_op"},get template(){return i.no_op},get attributes(){return{"data-no-op":""}},render:function(){var t=r.getStyleFor(this.name);return this.$el.html(this.template()),this.$el.append(t),this}},{},n),o.canPlay=function(){return!0},e.exports=o},{"../../base/jst":7,"../../base/styler":8,playback:void 0}],33:[function(t,e){(function(n){"use strict";var i=t("ui_core_plugin"),r=t("../../base/jst"),o=t("../../base/styler"),a=t("browser"),s=t("mediator"),l=t("player_info"),c=function(t){$traceurRuntime.superCall(this,u.prototype,"constructor",[t]),this.core=t,this.settingsUpdate()},u=c;$traceurRuntime.createClass(c,{get template(){return r.background_button},get name(){return"background_button"},get attributes(){return{"class":"background-button","data-background-button":""}},get events(){return{"click .background-button-icon":"click"}},bindEvents:function(){this.listenTo(this.core.mediaControl.container,"container:state:buffering",this.hide),this.listenTo(this.core.mediaControl.container,"container:state:bufferfull",this.show),this.listenTo(this.core.mediaControl,"mediacontrol:rendered",this.settingsUpdate),this.listenTo(this.core.mediaControl,"mediacontrol:show",this.updateSize),this.listenTo(this.core.mediaControl,"mediacontrol:playing",this.playing),this.listenTo(this.core.mediaControl,"mediacontrol:notplaying",this.notplaying),s.on("player:resize",this.updateSize,this)},stopListening:function(){$traceurRuntime.superCall(this,u.prototype,"stopListening",[]),s.off("player:resize",this.updateSize,this)},settingsUpdate:function(){this.stopListening(),this.shouldRender()?(this.render(),this.bindEvents(),this.core.mediaControl.container.isPlaying()?this.playing():this.notplaying()):(this.$el.remove(),this.$playPauseButton.show(),this.$playStopButton.show(),this.listenTo(this.core.mediaControl.container,"container:settingsupdate",this.settingsUpdate),this.listenTo(this.core.mediaControl.container,"container:dvr",this.settingsUpdate),this.listenTo(this.core.mediaControl,"mediacontrol:containerchanged",this.settingsUpdate))},shouldRender:function(){var t=void 0===this.core.options.useBackgroundButton&&a.isMobile||!!this.core.options.useBackgroundButton;return t&&(this.core.mediaControl.$el.find("[data-playstop]").length>0||this.core.mediaControl.$el.find("[data-playpause]").length>0)},click:function(){this.core.mediaControl.show(),this.shouldStop?this.core.mediaControl.togglePlayStop():this.core.mediaControl.togglePlayPause()},show:function(){this.$el.removeClass("hide")},hide:function(){this.$el.addClass("hide")},enable:function(){this.stopListening(),$traceurRuntime.superCall(this,u.prototype,"enable",[]),this.settingsUpdate()},disable:function(){$traceurRuntime.superCall(this,u.prototype,"disable",[]),this.$playPauseButton.show(),this.$playStopButton.show()},playing:function(){this.$buttonIcon.removeClass("notplaying").addClass("playing")},notplaying:function(){this.$buttonIcon.removeClass("playing").addClass("notplaying")},getExternalInterface:function(){},updateSize:function(){if(this.$el){var t=l.currentSize?l.currentSize.height:this.$el.height();this.$el.css({fontSize:t}),this.$buttonWrapper.css({marginTop:-(this.$buttonWrapper.height()/2)})}},render:function(){var t=this,e=o.getStyleFor(this.name);return this.$el.html(this.template()),this.$el.append(e),this.$playPauseButton=this.core.mediaControl.$el.find("[data-playpause]"),this.$playStopButton=this.core.mediaControl.$el.find("[data-playstop]"),this.$buttonWrapper=this.$el.find(".background-button-wrapper[data-background-button]"),this.$buttonIcon=this.$el.find(".background-button-icon[data-background-button]"),this.shouldStop=this.$playStopButton.length>0,this.$el.insertBefore(this.core.mediaControl.$el.find(".media-control-layer[data-controls]")),this.$el.click(function(){return t.click(t.$el)}),n.nextTick(function(){return t.updateSize()}),this.core.options.useBackgroundButton&&(this.$playPauseButton.hide(),this.$playStopButton.hide()),this.shouldStop&&this.$buttonIcon.addClass("playstop"),this.core.mediaControl.isVisible()&&this.show(),this}},{},i),e.exports=c}).call(this,t("_process"))},{"../../base/jst":7,"../../base/styler":8,_process:2,browser:void 0,mediator:void 0,player_info:void 0,ui_core_plugin:void 0}],34:[function(t,e){"use strict";e.exports=t("./background_button")},{"./background_button":33}],35:[function(t,e){"use strict";var n=t("container_plugin"),i=function(){$traceurRuntime.defaultSuperCall(this,r.prototype,arguments)},r=i;$traceurRuntime.createClass(i,{get name(){return"click_to_pause"},bindEvents:function(){this.listenTo(this.container,"container:click",this.click),this.listenTo(this.container,"container:settingsupdate",this.settingsUpdate)},click:function(){("live"!==this.container.getPlaybackType()||this.container.isDvrEnabled())&&(this.container.isPlaying()?this.container.pause():this.container.play())},settingsUpdate:function(){this.container.$el.removeClass("pointer-enabled"),("live"!==this.container.getPlaybackType()||this.container.isDvrEnabled())&&this.container.$el.addClass("pointer-enabled")}},{},n),e.exports=i},{container_plugin:void 0}],36:[function(t,e){"use strict";e.exports=t("./click_to_pause")},{"./click_to_pause":35}],37:[function(t,e){"use strict";var n=t("ui_core_plugin"),i=t("../../base/jst"),r=t("../../base/styler"),o=function(t){$traceurRuntime.superCall(this,a.prototype,"constructor",[t]),this.core=t,this.settingsUpdate()},a=o;$traceurRuntime.createClass(o,{get template(){return i.dvr_controls},get name(){return"dvr_controls"},get events(){return{"click .live-button":"click"}},get attributes(){return{"class":"dvr-controls","data-dvr-controls":""}},bindEvents:function(){this.listenTo(this.core.mediaControl,"mediacontrol:rendered",this.settingsUpdate),this.listenTo(this.core.mediaControl.container,"container:dvr",this.dvrChanged)},dvrChanged:function(t){this.settingsUpdate(),this.core.mediaControl.$el.addClass("live"),t?(this.core.mediaControl.$el.addClass("dvr"),this.core.mediaControl.$el.find(".media-control-indicator[data-position], .media-control-indicator[data-duration]").hide()):this.core.mediaControl.$el.removeClass("dvr")},click:function(){this.core.mediaControl.container.isPlaying()||this.core.mediaControl.container.play(),this.core.mediaControl.$el.hasClass("dvr")&&this.core.mediaControl.container.setCurrentTime(-1)},settingsUpdate:function(){var t=this;this.stopListening(),this.shouldRender()&&(this.render(),this.$el.click(function(){return t.click()})),this.bindEvents()},shouldRender:function(){var t=void 0===this.core.options.useDvrControls||!!this.core.options.useDvrControls;return t&&"live"===this.core.mediaControl.container.getPlaybackType()},render:function(){var t=r.getStyleFor(this.name);return this.$el.html(this.template()),this.$el.append(t),this.shouldRender()&&(this.core.mediaControl.$el.addClass("live"),this.core.mediaControl.$(".media-control-left-panel[data-media-control]").append(this.$el),this.$duration&&this.$duration.remove(),this.$duration=$("<span data-duration></span>"),this.core.mediaControl.seekTime.$el.append(this.$duration)),this}},{},n),e.exports=o},{"../../base/jst":7,"../../base/styler":8,ui_core_plugin:void 0}],38:[function(t,e){"use strict";e.exports=t("./dvr_controls")},{"./dvr_controls":37}],39:[function(t,e){"use strict";var n=t("container_plugin"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),t.gaAccount&&(this.embedScript(),this.account=t.gaAccount,this.trackerName=t.gaTrackerName+"."||"Clappr.",this.currentHDState=void 0)},r=i;$traceurRuntime.createClass(i,{get name(){return"google_analytics"},embedScript:function(){var t=this;if(window._gat)this.addEventListeners();else{var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("async","async"),e.setAttribute("src","http://www.google-analytics.com/ga.js"),e.onload=function(){return t.addEventListeners()},document.body.appendChild(e)}},addEventListeners:function(){var t=this;this.listenTo(this.container,"container:play",this.onPlay),this.listenTo(this.container,"container:pause",this.onPause),this.listenTo(this.container,"container:stop",this.onStop),this.listenTo(this.container,"container:ended",this.onEnded),this.listenTo(this.container,"container:state:buffering",this.onBuffering),this.listenTo(this.container,"container:state:bufferfull",this.onBufferFull),this.listenTo(this.container,"container:error",this.onError),this.listenTo(this.container,"container:playbackstate",this.onPlaybackChanged),this.listenTo(this.container,"container:volume",function(e){return t.onVolumeChanged(e)}),this.listenTo(this.container,"container:seek",function(e){return t.onSeek(e)}),this.listenTo(this.container,"container:fullscreen",this.onFullscreen),this.listenTo(this.container,"container:highdefinitionupdate",this.onHD),this.listenTo(this.container.playback,"playback:dvr",this.onDVR),_gaq.push([this.trackerName+"_setAccount",this.account])},onPlay:function(){this.push(["Video","Play",this.container.playback.src])},onStop:function(){this.push(["Video","Stop",this.container.playback.src])},onEnded:function(){this.push(["Video","Ended",this.container.playback.src])},onBuffering:function(){this.push(["Video","Buffering",this.container.playback.src])},onBufferFull:function(){this.push(["Video","Bufferfull",this.container.playback.src])},onError:function(){this.push(["Video","Error",this.container.playback.src])},onHD:function(){var t=this.container.isHighDefinitionInUse()?"ON":"OFF";t!==this.currentHDState&&(this.currentHDState=t,this.push(["Video","HD - "+t,this.container.playback.src]))},onPlaybackChanged:function(){var t=this.container.getPlaybackType();null!==t&&this.push(["Video","Playback Type - "+t,this.container.playback.src])},onDVR:function(){var t=this.container.isHighDefinitionInUse();this.push(["Interaction","DVR - "+t,this.container.playback.src])},onPause:function(){this.push(["Video","Pause",this.container.playback.src])},onSeek:function(){this.push(["Video","Seek",this.container.playback.src])},onVolumeChanged:function(){this.push(["Interaction","Volume",this.container.playback.src])},onFullscreen:function(){this.push(["Interaction","Fullscreen",this.container.playback.src])},push:function(t){var e=[this.trackerName+"_trackEvent"].concat(t);_gaq.push(e)}},{},n),e.exports=i},{container_plugin:void 0}],40:[function(t,e){"use strict";e.exports=t("./google_analytics")},{"./google_analytics":39}],41:[function(t,e){"use strict";e.exports=t("./log")},{"./log":42}],42:[function(t,e){(function(n){"use strict";var i=t("mousetrap"),r="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,o=function(){var t=this;i.bind(["ctrl+shift+d"],function(){return t.onOff()}),this.BLACKLIST=["playback:timeupdate","playback:progress","container:hover","container:timeupdate","container:progress"]};$traceurRuntime.createClass(o,{info:function(t,e){this.log(t,"info",e)},warn:function(t,e){this.log(t,"warn",e)},debug:function(t,e){this.log(t,"debug",e)},onOff:function(){window.DEBUG=!window.DEBUG,console.log(window.DEBUG?"log enabled":"log disabled")},log:function(t,e,n){if(window.DEBUG&&!r.contains(this.BLACKLIST,n)){var i;"warn"===e?i="#FF8000":"info"===e?i="#006600":"error"===e&&(i="#FF0000"),console.log("%c ["+t+"] ["+e+"] "+n,"color: "+i)}}},{}),o.getInstance=function(){return void 0===this._instance&&(this._instance=new this),this._instance},e.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{mousetrap:4}],43:[function(t,e){"use strict";e.exports=t("./poster")},{"./poster":44}],44:[function(t,e){(function(n,i){"use strict";var r=t("ui_container_plugin"),o=t("../../base/styler"),a=t("../../base/jst"),s=t("mediator"),l=t("player_info"),c="undefined"!=typeof window?window.$:"undefined"!=typeof i?i.$:null,u="undefined"!=typeof window?window._:"undefined"!=typeof i?i._:null,d=function(t){$traceurRuntime.superCall(this,h.prototype,"constructor",[t]),this.options=t,u.defaults(this.options,{disableControlsOnPoster:!0}),this.options.disableControlsOnPoster&&this.container.disableMediaControl(),this.render()},h=d;$traceurRuntime.createClass(d,{get name(){return"poster"},get template(){return a.poster},get attributes(){return{"class":"player-poster","data-poster":""}},get events(){return{click:"clicked"}},bindEvents:function(){this.listenTo(this.container,"container:state:buffering",this.onBuffering),this.listenTo(this.container,"container:play",this.onPlay),this.listenTo(this.container,"container:stop",this.onStop),this.listenTo(this.container,"container:ended",this.onStop),s.on("player:resize",this.updateSize,this)},stopListening:function(){$traceurRuntime.superCall(this,h.prototype,"stopListening",[]),s.off("player:resize",this.updateSize,this)},onBuffering:function(){this.hidePlayButton()},onPlay:function(){this.$el.hide(),this.options.disableControlsOnPoster&&this.container.enableMediaControl()},onStop:function(){this.$el.show(),this.options.disableControlsOnPoster&&this.container.disableMediaControl(),this.options.hidePlayButton||this.showPlayButton()},hidePlayButton:function(){this.$playButton.hide()},showPlayButton:function(){this.$playButton.show(),this.updateSize()},clicked:function(){return this.container.play(),!1},updateSize:function(){if(this.$el){var t=l.currentSize?l.currentSize.height:this.$el.height();this.$el.css({fontSize:t}),this.$playWrapper.is(":visible")?(this.$playWrapper.css({marginTop:-(this.$playWrapper.height()/2)}),this.options.hidePlayButton||this.$playButton.show()):this.$playButton.hide()}},render:function(){var t=this,e=o.getStyleFor(this.name);if(this.$el.html(this.template()),this.$el.append(e),this.$playButton=this.$el.find(".poster-icon"),this.$playWrapper=this.$el.find(".play-wrapper"),void 0!==this.options.poster){var i=c('<img data-poster class="poster-background"></img>');i.attr("src",this.options.poster),this.$el.prepend(i)}return this.container.$el.append(this.el),this.options.hidePlayButton&&this.hidePlayButton(),n.nextTick(function(){return t.updateSize()}),this}},{},r),e.exports=d}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../base/jst":7,"../../base/styler":8,_process:2,mediator:void 0,player_info:void 0,ui_container_plugin:void 0}],45:[function(t,e){"use strict";e.exports=t("./spinner_three_bounce")},{"./spinner_three_bounce":46}],46:[function(t,e){"use strict";var n=t("ui_container_plugin"),i=t("../../base/styler"),r=t("../../base/jst"),o=function(t){$traceurRuntime.superCall(this,a.prototype,"constructor",[t]),this.template=r.spinner_three_bounce,this.listenTo(this.container,"container:state:buffering",this.onBuffering),this.listenTo(this.container,"container:state:bufferfull",this.onBufferFull),this.listenTo(this.container,"container:stop",this.onStop),this.render()
  },a=o;$traceurRuntime.createClass(o,{get name(){return"spinner"},get attributes(){return{"data-spinner":"","class":"spinner-three-bounce"}},onBuffering:function(){this.$el.show()},onBufferFull:function(){this.$el.hide()},onStop:function(){this.$el.hide()},render:function(){this.$el.html(this.template());var t=i.getStyleFor("spinner_three_bounce");return this.container.$el.append(t),this.container.$el.append(this.$el),this.$el.hide(),this}},{},n),e.exports=o},{"../../base/jst":7,"../../base/styler":8,ui_container_plugin:void 0}],47:[function(t,e){"use strict";e.exports=t("./stats")},{"./stats":48}],48:[function(t,e){(function(n){"use strict";var i=t("container_plugin"),r="undefined"!=typeof window?window.$:"undefined"!=typeof n?n.$:null,o=function(t){$traceurRuntime.superCall(this,a.prototype,"constructor",[t]),this.setInitialAttrs(),this.reportInterval=t.reportInterval||5e3,this.state="IDLE"},a=o;$traceurRuntime.createClass(o,{get name(){return"stats"},bindEvents:function(){this.listenTo(this.container.playback,"playback:play",this.onPlay),this.listenTo(this.container,"container:stop",this.onStop),this.listenTo(this.container,"container:destroyed",this.onStop),this.listenTo(this.container,"container:setreportinterval",this.setReportInterval),this.listenTo(this.container,"container:state:buffering",this.onBuffering),this.listenTo(this.container,"container:state:bufferfull",this.onBufferFull),this.listenTo(this.container,"container:stats:add",this.onStatsAdd),this.listenTo(this.container.playback,"playback:stats:add",this.onStatsAdd)},setReportInterval:function(t){this.reportInterval=t},setInitialAttrs:function(){this.firstPlay=!0,this.startupTime=0,this.rebufferingTime=0,this.watchingTime=0,this.rebuffers=0,this.externalMetrics={}},onPlay:function(){this.state="PLAYING",this.watchingTimeInit=Date.now(),this.intervalId||(this.intervalId=setInterval(this.report.bind(this),this.reportInterval))},onStop:function(){clearInterval(this.intervalId),this.intervalId=void 0,this.state="STOPPED"},onBuffering:function(){this.firstPlay?this.startupTimeInit=Date.now():this.rebufferingTimeInit=Date.now(),this.state="BUFFERING",this.rebuffers++},onBufferFull:function(){this.firstPlay?(this.firstPlay=!1,this.startupTime=Date.now()-this.startupTimeInit,this.watchingTimeInit=Date.now()):this.rebufferingTimeInit&&(this.rebufferingTime+=this.getRebufferingTime()),this.rebufferingTimeInit=void 0,this.state="PLAYING"},getRebufferingTime:function(){return Date.now()-this.rebufferingTimeInit},getWatchingTime:function(){var t=Date.now()-this.watchingTimeInit;return t-this.rebufferingTime},isRebuffering:function(){return!!this.rebufferingTimeInit},onStatsAdd:function(t){r.extend(this.externalMetrics,t)},getStats:function(){var t={startupTime:this.startupTime,rebuffers:this.rebuffers,rebufferingTime:this.isRebuffering()?this.rebufferingTime+this.getRebufferingTime():this.rebufferingTime,watchingTime:this.isRebuffering()?this.getWatchingTime()-this.getRebufferingTime():this.getWatchingTime()};return r.extend(t,this.externalMetrics),t},report:function(){this.container.statsReport(this.getStats())}},{},i),e.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{container_plugin:void 0}],49:[function(t,e){"use strict";e.exports=t("./watermark")},{"./watermark":50}],50:[function(t,e){"use strict";var n=t("ui_container_plugin"),i=t("../../base/styler"),r=t("../../base/jst"),o=function(t){$traceurRuntime.superCall(this,a.prototype,"constructor",[t]),this.template=r[this.name],this.position=t.position||"bottom-right",t.watermark?(this.imageUrl=t.watermark,this.render()):this.$el.remove()},a=o;$traceurRuntime.createClass(o,{get name(){return"watermark"},bindEvents:function(){this.listenTo(this.container,"container:play",this.onPlay),this.listenTo(this.container,"container:stop",this.onStop)},onPlay:function(){this.hidden||this.$el.show()},onStop:function(){this.$el.hide()},render:function(){this.$el.hide();var t={position:this.position,imageUrl:this.imageUrl};this.$el.html(this.template(t));var e=i.getStyleFor(this.name);return this.container.$el.append(e),this.container.$el.append(this.$el),this}},{},n),e.exports=o},{"../../base/jst":7,"../../base/styler":8,ui_container_plugin:void 0}],base_object:[function(t,e){(function(n){"use strict";var i="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,r=t("./utils").extend,o=t("./events"),a=["container"],s=function(t){this.uniqueId=i.uniqueId("o"),t||(t={}),i.extend(this,i.pick(t,a))};$traceurRuntime.createClass(s,{},{},o),s.extend=r,e.exports=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./events":6,"./utils":9}],browser:[function(t,e){"use strict";var n=function(){};$traceurRuntime.createClass(n,{},{}),n.isSafari=!!navigator.userAgent.match(/safari/i)&&-1===navigator.userAgent.indexOf("Chrome"),n.isChrome=!!navigator.userAgent.match(/chrome/i),n.isFirefox=!!navigator.userAgent.match(/firefox/i),n.isLegacyIE=!!window.ActiveXObject,n.isIE=n.isLegacyIE||!!navigator.userAgent.match(/trident.*rv:1\d/i),n.isMobile=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone|IEMobile|Opera Mini/i.test(navigator.userAgent),n.isWin8App=!!/MSAppHost/i.test(navigator.userAgent),e.exports=n},{}],container_plugin:[function(t,e){"use strict";var n=t("base_object"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.bindEvents()},r=i;$traceurRuntime.createClass(i,{enable:function(){this.bindEvents()},disable:function(){this.stopListening()},bindEvents:function(){},destroy:function(){this.stopListening()}},{},n),e.exports=i},{base_object:void 0}],core_plugin:[function(t,e){"use strict";var n=t("base_object"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.core=t},r=i;$traceurRuntime.createClass(i,{getExternalInterface:function(){return{}},destroy:function(){}},{},n),e.exports=i},{base_object:void 0}],media_control:[function(t,e){"use strict";e.exports=t("./media_control")},{"./media_control":20}],mediator:[function(t,e){"use strict";var n=t("../base/events"),i=new n,r=function(){};$traceurRuntime.createClass(r,{},{}),r.on=function(t,e,n){i.on(t,e,n)},r.once=function(t,e,n){i.once(t,e,n)},r.off=function(t,e,n){i.off(t,e,n)},r.trigger=function(t,e){i.trigger(t,e)},r.stopListening=function(t,e,n){i.stopListening(t,e,n)},e.exports=r},{"../base/events":6}],playback:[function(t,e){"use strict";var n=t("ui_object"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.settings={}},r=i;$traceurRuntime.createClass(i,{play:function(){},pause:function(){},stop:function(){},seek:function(){},getDuration:function(){return 0},isPlaying:function(){return!1},getPlaybackType:function(){return"no_op"},isHighDefinitionInUse:function(){return!1},volume:function(){},destroy:function(){this.$el.remove()}},{},n),i.canPlay=function(){return!1},e.exports=i},{ui_object:void 0}],player_info:[function(t,e){"use strict";var n={options:{},playbackPlugins:[],currentSize:{width:0,height:0}};e.exports=n},{}],ui_container_plugin:[function(t,e){"use strict";var n=t("ui_object"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.enabled=!0,this.bindEvents()},r=i;$traceurRuntime.createClass(i,{enable:function(){this.bindEvents(),this.$el.show(),this.enabled=!0},disable:function(){this.stopListening(),this.$el.hide(),this.enabled=!1},bindEvents:function(){},destroy:function(){this.remove()}},{},n),e.exports=i},{ui_object:void 0}],ui_core_plugin:[function(t,e){"use strict";var n=t("ui_object"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.core=t,this.enabled=!0,this.bindEvents(),this.render()},r=i;$traceurRuntime.createClass(i,{bindEvents:function(){},getExternalInterface:function(){return{}},enable:function(){this.bindEvents(),this.$el.show(),this.enabled=!0},disable:function(){this.stopListening(),this.$el.hide(),this.enabled=!1},destroy:function(){this.remove()},render:function(){return this.$el.html(this.template()),this.$el.append(this.styler.getStyleFor(this.name)),this.core.$el.append(this.el),this}},{},n),e.exports=i},{ui_object:void 0}],ui_object:[function(t,e){(function(n){"use strict";var i="undefined"!=typeof window?window.$:"undefined"!=typeof n?n.$:null,r="undefined"!=typeof window?window._:"undefined"!=typeof n?n._:null,o=t("./utils").extend,a=t("base_object"),s=/^(\S+)\s*(.*)$/,l=function(t){$traceurRuntime.superCall(this,c.prototype,"constructor",[t]),this.cid=r.uniqueId("c"),this._ensureElement(),this.delegateEvents()},c=l;$traceurRuntime.createClass(l,{get tagName(){return"div"},$:function(t){return this.$el.find(t)},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,e){return this.$el&&this.undelegateEvents(),this.$el=t instanceof i?t:i(t),this.el=this.$el[0],e!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=r.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var n=t[e];if(r.isFunction(n)||(n=this[t[e]]),n){var i=e.match(s),o=i[1],a=i[2];n=r.bind(n,this),o+=".delegateEvents"+this.cid,""===a?this.$el.on(o,n):this.$el.on(o,a,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(r.result(this,"el"),!1);else{var t=r.extend({},r.result(this,"attributes"));this.id&&(t.id=r.result(this,"id")),this.className&&(t["class"]=r.result(this,"className"));var e=i("<"+r.result(this,"tagName")+">").attr(t);this.setElement(e,!1)}}},{},a),l.extend=o,e.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./utils":9,base_object:void 0}]},{},[3,1]);