!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Clappr=e():t.Clappr=e()}(this,function(){return function(t){function e(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=87)}([function(t,e,i){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,i){"use strict";e.__esModule=!0;var r=i(33),n=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,n.default)(e))&&"function"!=typeof e?t:e}},function(t,e,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=i(119),a=r(n),o=i(71),s=r(o),l=i(33),u=r(l);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,u.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(a.default?(0,a.default)(t,e):t.__proto__=e)}},function(t,e,i){"use strict";e.__esModule=!0;var r=i(70),n=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var i=0;i0&&(o+=a+":",n<1&&(o+="00:")),(n&&n>0||e)&&(o+=("0"+n).slice(-2)+":"),o+=("0"+r).slice(-2)+":",o+=("0"+i).slice(-2),o.trim()}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"t",e=0,i=P.params[t]||P.hashParams[t]||"",r=i.match(/[0-9]+[hms]+/g)||[];return r.length>0?function(){var t={h:3600,m:60,s:1};r.forEach(function(i){if(i){var r=i[i.length-1],n=parseInt(i.slice(0,i.length-1),10);e+=n*t[r]}})}():i&&(e=parseInt(i,10)),e}function l(t){return I[t]||(I[t]=0),t+ ++I[t]}function u(t){return t-parseFloat(t)+1>=0}function d(){var t=document.getElementsByTagName("script");return t.length?t[t.length-1].src:""}function c(){return window.navigator&&window.navigator.language}function f(){return window.performance&&window.performance.now?performance.now():Date.now()}function h(t,e){var i=t.indexOf(e);i>=0&&t.splice(i,1)}Object.defineProperty(e,"__esModule",{value:!0}),e.DomRecycler=e.cancelAnimationFrame=e.requestAnimationFrame=e.QueryString=e.Config=e.Fullscreen=void 0;var p=i(3),g=r(p),y=i(0),v=r(y),m=i(1),b=r(m),_=i(2),E=r(_),T=i(70),k=r(T),A=i(125),S=r(A);e.extend=a,e.formatTime=o,e.seekStringToSeconds=s,e.uniqueId=l,e.isNumber=u,e.currentScriptUrl=d,e.getBrowserLanguage=c,e.now=f,e.removeArrayItem=h,i(128);var L=i(13),R=r(L),w=i(6),C=r(w),O=e.Fullscreen={isFullscreen:function(){return!!(document.webkitFullscreenElement||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():t.querySelector&&t.querySelector("video")&&t.querySelector("video").webkitEnterFullScreen?t.querySelector("video").webkitEnterFullScreen():t.webkitEnterFullScreen&&t.webkitEnterFullScreen()},cancelFullscreen:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;t.exitFullscreen?t.exitFullscreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen()},fullscreenEnabled:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},D=e.Config=function(){function t(){(0,v.default)(this,t)}return t._defaultConfig=function(){return{volume:{value:100,parse:parseInt}}},t._defaultValueFor=function(t){try{return this._defaultConfig()[t].parse(this._defaultConfig()[t].value)}catch(t){return}},t._createKeyspace=function(t){return"clappr."+document.domain+"."+t},t.restore=function(t){return R.default.hasLocalstorage&&localStorage[this._createKeyspace(t)]?this._defaultConfig()[t].parse(localStorage[this._createKeyspace(t)]):this._defaultValueFor(t)},t.persist=function(t,e){if(R.default.hasLocalstorage)try{return localStorage[this._createKeyspace(t)]=e,!0}catch(t){return!1}},t}(),P=e.QueryString=function(){function t(){(0,v.default)(this,t)}return t.parse=function(t){for(var e=void 0,i=/\+/g,r=/([^&=]+)=?([^&]*)/g,n=function(t){return decodeURIComponent(t.replace(i," "))},a={};e=r.exec(t);)a[n(e[1]).toLowerCase()]=n(e[2]);return a},(0,g.default)(t,null,[{key:"params",get:function(){var t=window.location.search.substring(1);return t!==this.query&&(this._urlParams=this.parse(t),this.query=t),this._urlParams}},{key:"hashParams",get:function(){var t=window.location.hash.substring(1);return t!==this.hash&&(this._hashParams=this.parse(t),this.hash=t),this._hashParams}}]),t}(),I={},x=e.requestAnimationFrame=(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}).bind(window),N=e.cancelAnimationFrame=(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout).bind(window),M=[],F=e.DomRecycler=function(){function t(){(0,v.default)(this,t)}return t.configure=function(t){this.options=C.default.extend(this.options,t)},t.create=function(t){return this.options.recycleVideo&&"video"===t&&M.length>0?M.shift():(0,C.default)("<"+t+">")},t.garbage=function(t){this.options.recycleVideo&&"VIDEO"===t[0].tagName.toUpperCase()&&(t.children().remove(),M.push(t))},t}();F.options={recycleVideo:!1},e.default={Config:D,Fullscreen:O,QueryString:P,DomRecycler:F,extend:a,formatTime:o,seekStringToSeconds:s,uniqueId:l,currentScriptUrl:d,isNumber:u,requestAnimationFrame:x,cancelAnimationFrame:N,getBrowserLanguage:c,now:f,removeArrayItem:h}},function(t,e){var i=function(){function t(t){return null==t?String(t):W[q.call(t)]||"object"}function e(e){return"function"==t(e)}function i(t){return null!=t&&t==t.window}function r(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function n(e){return"object"==t(e)}function a(t){return n(t)&&!i(t)&&Object.getPrototypeOf(t)==Object.prototype}function o(t){var e=!!t&&"length"in t&&t.length,r=A.type(t);return"function"!=r&&!i(t)&&("array"==r||0===e||"number"==typeof e&&e>0&&e-1 in t)}function s(t){return O.call(t,function(t){return null!=t})}function l(t){return t.length>0?A.fn.concat.apply([],t):t}function u(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function d(t){return t in x?x[t]:x[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function c(t,e){return"number"!=typeof e||N[u(t)]?e:e+"px"}function f(t){var e,i;return I[t]||(e=P.createElement(t),P.body.appendChild(e),i=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==i&&(i="block"),I[t]=i),I[t]}function h(t){return"children"in t?D.call(t.children):A.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function p(t,e){var i,r=t?t.length:0;for(i=0;i]*>/,F=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,B=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,U=/^(?:body|html)$/i,G=/([A-Z])/g,j=["val","css","html","text","data","width","height","offset"],V=["after","prepend","before","append"],K=P.createElement("table"),Y=P.createElement("tr"),H={tr:P.createElement("tbody"),tbody:K,thead:K,tfoot:K,td:Y,th:Y,"*":P.createElement("div")},$=/complete|loaded|interactive/,z=/^[\w-]*$/,W={},q=W.toString,X={},Z=P.createElement("div"),J={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Q=Array.isArray||function(t){return t instanceof Array};return X.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(i)return i.call(t,e);var r,n=t.parentNode,a=!n;return a&&(n=Z).appendChild(t),r=~X.qsa(n,e).indexOf(t),a&&Z.removeChild(t),r},L=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},R=function(t){return O.call(t,function(e,i){return t.indexOf(e)==i})},X.fragment=function(t,e,i){var r,n,o;return F.test(t)&&(r=A(P.createElement(RegExp.$1))),r||(t.replace&&(t=t.replace(B,"<$1>")),e===T&&(e=M.test(t)&&RegExp.$1),e in H||(e="*"),o=H[e],o.innerHTML=""+t,r=A.each(D.call(o.childNodes),function(){o.removeChild(this)})),a(i)&&(n=A(r),A.each(i,function(t,e){j.indexOf(t)>-1?n[t](e):n.attr(t,e)})),r},X.Z=function(t,e){return new p(t,e)},X.isZ=function(t){return t instanceof X.Z},X.init=function(t,i){var r;if(!t)return X.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&M.test(t))r=X.fragment(t,RegExp.$1,i),t=null;else{if(i!==T)return A(i).find(t);r=X.qsa(P,t)}else{if(e(t))return A(P).ready(t);if(X.isZ(t))return t;if(Q(t))r=s(t);else if(n(t))r=[t],t=null;else if(M.test(t))r=X.fragment(t.trim(),RegExp.$1,i),t=null;else{if(i!==T)return A(i).find(t);r=X.qsa(P,t)}}return X.Z(r,t)},A=function(t,e){return X.init(t,e)},A.extend=function(t){var e,i=D.call(arguments,1);return"boolean"==typeof t&&(e=t,t=i.shift()),i.forEach(function(i){g(t,i,e)}),t},X.qsa=function(t,e){var i,r="#"==e[0],n=!r&&"."==e[0],a=r||n?e.slice(1):e,o=z.test(a);return t.getElementById&&o&&r?(i=t.getElementById(a))?[i]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:D.call(o&&!r&&t.getElementsByClassName?n?t.getElementsByClassName(a):t.getElementsByTagName(e):t.querySelectorAll(e))},A.contains=P.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},A.type=t,A.isFunction=e,A.isWindow=i,A.isArray=Q,A.isPlainObject=a,A.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},A.isNumeric=function(t){var e=Number(t),i=typeof t;return null!=t&&"boolean"!=i&&("string"!=i||t.length)&&!isNaN(e)&&isFinite(e)||!1},A.inArray=function(t,e,i){return w.indexOf.call(e,t,i)},A.camelCase=L,A.trim=function(t){return null==t?"":String.prototype.trim.call(t)},A.uuid=0,A.support={},A.expr={},A.noop=function(){},A.map=function(t,e){var i,r,n,a=[];if(o(t))for(r=0;r=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return w.every.call(this,function(e,i){return!1!==t.call(e,i,e)}),this},filter:function(t){return e(t)?this.not(this.not(t)):A(O.call(this,function(e){return X.matches(e,t)}))},add:function(t,e){return A(R(this.concat(A(t,e))))},is:function(t){return this.length>0&&X.matches(this[0],t)},not:function(t){var i=[];if(e(t)&&t.call!==T)this.each(function(e){t.call(this,e)||i.push(this)});else{var r="string"==typeof t?this.filter(t):o(t)&&e(t.item)?D.call(t):A(t);this.forEach(function(t){r.indexOf(t)<0&&i.push(t)})}return A(i)},has:function(t){return this.filter(function(){return n(t)?A.contains(this,t):A(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!n(t)?t:A(t)},last:function(){var t=this[this.length-1];return t&&!n(t)?t:A(t)},find:function(t){var e=this;return t?"object"==typeof t?A(t).filter(function(){var t=this;return w.some.call(e,function(e){return A.contains(e,t)})}):1==this.length?A(X.qsa(this[0],t)):this.map(function(){return X.qsa(this,t)}):A()},closest:function(t,e){var i=[],n="object"==typeof t&&A(t);return this.each(function(a,o){for(;o&&!(n?n.indexOf(o)>=0:X.matches(o,t));)o=o!==e&&!r(o)&&o.parentNode;o&&i.indexOf(o)<0&&i.push(o)}),A(i)},parents:function(t){for(var e=[],i=this;i.length>0;)i=A.map(i,function(t){if((t=t.parentNode)&&!r(t)&&e.indexOf(t)<0)return e.push(t),t});return y(e,t)},parent:function(t){return y(R(this.pluck("parentNode")),t)},children:function(t){return y(this.map(function(){return h(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||D.call(this.childNodes)})},siblings:function(t){return y(this.map(function(t,e){return O.call(h(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return A.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=f(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var i=e(t);if(this[0]&&!i)var r=A(t).get(0),n=r.parentNode||this.length>1;return this.each(function(e){A(this).wrapAll(i?t.call(this,e):n?r.cloneNode(!0):r)})},wrapAll:function(t){if(this[0]){A(this[0]).before(t=A(t));for(var e;(e=t.children()).length;)t=e.first();A(t).append(this)}return this},wrapInner:function(t){var i=e(t);return this.each(function(e){var r=A(this),n=r.contents(),a=i?t.call(this,e):t;n.length?n.wrapAll(a):r.append(a)})},unwrap:function(){return this.parent().each(function(){A(this).replaceWith(A(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=A(this);(t===T?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return A(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return A(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var i=this.innerHTML;A(this).empty().append(v(this,t,e,i))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var i=v(this,t,e,this.textContent);this.textContent=null==i?"":""+i}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var i;return"string"!=typeof t||1 in arguments?this.each(function(i){if(1===this.nodeType)if(n(t))for(k in t)m(this,k,t[k]);else m(this,t,v(this,e,i,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(i=this[0].getAttribute(t))?i:T},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){m(this,t)},this)})},prop:function(t,e){return t=J[t]||t,1 in arguments?this.each(function(i){this[t]=v(this,e,i,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=J[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var i="data-"+t.replace(G,"-$1").toLowerCase(),r=1 in arguments?this.attr(i,e):this.attr(i);return null!==r?_(r):T},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=v(this,t,e,this.value)})):this[0]&&(this[0].multiple?A(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(e){var i=A(this),r=v(this,t,e,i.offset()),n=i.offsetParent().offset(),a={top:r.top-n.top,left:r.left-n.left};"static"==i.css("position")&&(a.position="relative"),i.css(a)});if(!this.length)return null;if(P.documentElement!==this[0]&&!A.contains(P.documentElement,this[0]))return{top:0,left:0};var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(e,i){if(arguments.length<2){var r=this[0];if("string"==typeof e){if(!r)return;return r.style[L(e)]||getComputedStyle(r,"").getPropertyValue(e)}if(Q(e)){if(!r)return;var n={},a=getComputedStyle(r,"");return A.each(e,function(t,e){n[e]=r.style[L(e)]||a.getPropertyValue(e)}),n}}var o="";if("string"==t(e))i||0===i?o=u(e)+":"+c(e,i):this.each(function(){this.style.removeProperty(u(e))});else for(k in e)e[k]||0===e[k]?o+=u(k)+":"+c(k,e[k])+";":this.each(function(){this.style.removeProperty(u(k))});return this.each(function(){this.style.cssText+=";"+o})},index:function(t){return t?this.indexOf(A(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&w.some.call(this,function(t){return this.test(b(t))},d(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){S=[];var i=b(this);v(this,t,e,i).split(/\s+/g).forEach(function(t){A(this).hasClass(t)||S.push(t)},this),S.length&&b(this,i+(i?" ":"")+S.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===T)return b(this,"");S=b(this),v(this,t,e,S).split(/\s+/g).forEach(function(t){S=S.replace(d(t)," ")}),b(this,S.trim())}})},toggleClass:function(t,e){return t?this.each(function(i){var r=A(this);v(this,t,i,b(this)).split(/\s+/g).forEach(function(t){(e===T?!r.hasClass(t):e)?r.addClass(t):r.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===T?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===T?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),i=this.offset(),r=U.test(e[0].nodeName)?{top:0,left:0}:e.offset();return i.top-=parseFloat(A(t).css("margin-top"))||0,i.left-=parseFloat(A(t).css("margin-left"))||0,r.top+=parseFloat(A(e[0]).css("border-top-width"))||0,r.left+=parseFloat(A(e[0]).css("border-left-width"))||0,{top:i.top-r.top,left:i.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||P.body;t&&!U.test(t.nodeName)&&"static"==A(t).css("position");)t=t.offsetParent;return t})}},A.fn.detach=A.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});A.fn[t]=function(n){var a,o=this[0];return n===T?i(o)?o["inner"+e]:r(o)?o.documentElement["scroll"+e]:(a=this.offset())&&a[t]:this.each(function(e){o=A(this),o.css(t,v(this,n,e,o[t]()))})}}),V.forEach(function(e,i){var r=i%2;A.fn[e]=function(){var e,n,a=A.map(arguments,function(i){var r=[];return e=t(i),"array"==e?(i.forEach(function(t){return t.nodeType!==T?r.push(t):A.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(X.fragment(t)))}),r):"object"==e||null==i?i:X.fragment(i)}),o=this.length>1;return a.length<1?this:this.each(function(t,e){n=r?e:e.parentNode,e=0==i?e.nextSibling:1==i?e.firstChild:2==i?e:null;var s=A.contains(P.documentElement,n);a.forEach(function(t){if(o)t=t.cloneNode(!0);else if(!n)return A(t).remove();n.insertBefore(t,e),s&&E(t,function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var e=t.ownerDocument?t.ownerDocument.defaultView:window;e.eval.call(e,t.innerHTML)}})})})},A.fn[r?e+"To":"insert"+(i?"Before":"After")]=function(t){return A(t)[e](this),this}}),X.Z.prototype=p.prototype=A.fn,X.uniq=R,X.deserializeValue=_,A.zepto=X,A}();window.Zepto=i,void 0===window.$&&(window.$=i),function(t){function e(e,i,r){var n=t.Event(i);return t(e).trigger(n,r),!n.isDefaultPrevented()}function i(t,i,r,n){if(t.global)return e(i||b,r,n)}function r(e){e.global&&0==t.active++&&i(e,null,"ajaxStart")}function n(e){e.global&&!--t.active&&i(e,null,"ajaxStop")}function a(t,e){var r=e.context;if(!1===e.beforeSend.call(r,t,e)||!1===i(e,r,"ajaxBeforeSend",[t,e]))return!1;i(e,r,"ajaxSend",[t,e])}function o(t,e,r,n){var a=r.context;r.success.call(a,t,"success",e),n&&n.resolveWith(a,[t,"success",e]),i(r,a,"ajaxSuccess",[e,r,t]),l("success",e,r)}function s(t,e,r,n,a){var o=n.context;n.error.call(o,r,e,t),a&&a.rejectWith(o,[r,e,t]),i(n,o,"ajaxError",[r,n,t||e]),l(e,r,n)}function l(t,e,r){var a=r.context;r.complete.call(a,e,t),i(r,a,"ajaxComplete",[e,r]),n(r)}function u(t,e,i){if(i.dataFilter==d)return t;var r=i.context;return i.dataFilter.call(r,t,e)}function d(){}function c(t){return t&&(t=t.split(";",2)[0]),t&&(t==A?"html":t==k?"json":E.test(t)?"script":T.test(t)&&"xml")||"text"}function f(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function h(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()&&"jsonp"!=e.dataType||(e.url=f(e.url,e.data),e.data=void 0)}function p(e,i,r,n){return t.isFunction(i)&&(n=r,r=i,i=void 0),t.isFunction(r)||(n=r,r=void 0),{url:e,data:i,success:r,dataType:n}}function g(e,i,r,n){var a,o=t.isArray(i),s=t.isPlainObject(i);t.each(i,function(i,l){a=t.type(l),n&&(i=r?n:n+"["+(s||"object"==a||"array"==a?i:"")+"]"),!n&&o?e.add(l.name,l.value):"array"==a||!r&&"object"==a?g(e,l,r,i):e.add(i,l)})}var y,v,m=+new Date,b=window.document,_=/)<[^<]*)*<\/script>/gi,E=/^(?:text|application)\/javascript/i,T=/^(?:text|application)\/xml/i,k="application/json",A="text/html",S=/^\s*$/,L=b.createElement("a");L.href=window.location.href,t.active=0,t.ajaxJSONP=function(e,i){if(!("type"in e))return t.ajax(e);var r,n,l=e.jsonpCallback,u=(t.isFunction(l)?l():l)||"Zepto"+m++,d=b.createElement("script"),c=window[u],f=function(e){t(d).triggerHandler("error",e||"abort")},h={abort:f};return i&&i.promise(h),t(d).on("load error",function(a,l){clearTimeout(n),t(d).off().remove(),"error"!=a.type&&r?o(r[0],h,e,i):s(null,l||"error",h,e,i),window[u]=c,r&&t.isFunction(c)&&c(r[0]),c=r=void 0}),!1===a(h,e)?(f("abort"),h):(window[u]=function(){r=arguments},d.src=e.url.replace(/\?(.+)=\?/,"?$1="+u),b.head.appendChild(d),e.timeout>0&&(n=setTimeout(function(){f("timeout")},e.timeout)),h)},t.ajaxSettings={type:"GET",beforeSend:d,success:d,error:d,complete:d,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:k,xml:"application/xml, text/xml",html:A,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:d},t.ajax=function(e){var i,n,l=t.extend({},e||{}),p=t.Deferred&&t.Deferred();for(y in t.ajaxSettings)void 0===l[y]&&(l[y]=t.ajaxSettings[y]);r(l),l.crossDomain||(i=b.createElement("a"),i.href=l.url,i.href=i.href,l.crossDomain=L.protocol+"//"+L.host!=i.protocol+"//"+i.host),l.url||(l.url=window.location.toString()),(n=l.url.indexOf("#"))>-1&&(l.url=l.url.slice(0,n)),h(l);var g=l.dataType,m=/\?.+=\?/.test(l.url);if(m&&(g="jsonp"),!1!==l.cache&&(e&&!0===e.cache||"script"!=g&&"jsonp"!=g)||(l.url=f(l.url,"_="+Date.now())),"jsonp"==g)return m||(l.url=f(l.url,l.jsonp?l.jsonp+"=?":!1===l.jsonp?"":"callback=?")),t.ajaxJSONP(l,p);var _,E=l.accepts[g],T={},k=function(t,e){T[t.toLowerCase()]=[t,e]},A=/^([\w-]+:)\/\//.test(l.url)?RegExp.$1:window.location.protocol,R=l.xhr(),w=R.setRequestHeader;if(p&&p.promise(R),l.crossDomain||k("X-Requested-With","XMLHttpRequest"),k("Accept",E||"*/*"),(E=l.mimeType||E)&&(E.indexOf(",")>-1&&(E=E.split(",",2)[0]),R.overrideMimeType&&R.overrideMimeType(E)),(l.contentType||!1!==l.contentType&&l.data&&"GET"!=l.type.toUpperCase())&&k("Content-Type",l.contentType||"application/x-www-form-urlencoded"),l.headers)for(v in l.headers)k(v,l.headers[v]);if(R.setRequestHeader=k,R.onreadystatechange=function(){if(4==R.readyState){R.onreadystatechange=d,clearTimeout(_);var e,i=!1;if(R.status>=200&&R.status<300||304==R.status||0==R.status&&"file:"==A){if(g=g||c(l.mimeType||R.getResponseHeader("content-type")),"arraybuffer"==R.responseType||"blob"==R.responseType)e=R.response;else{e=R.responseText;try{e=u(e,g,l),"script"==g?(0,eval)(e):"xml"==g?e=R.responseXML:"json"==g&&(e=S.test(e)?null:t.parseJSON(e))}catch(t){i=t}if(i)return s(i,"parsererror",R,l,p)}o(e,R,l,p)}else s(R.statusText||null,R.status?"error":"abort",R,l,p)}},!1===a(R,l))return R.abort(),s(null,"abort",R,l,p),R;var C=!("async"in l)||l.async;if(R.open(l.type,l.url,C,l.username,l.password),l.xhrFields)for(v in l.xhrFields)R[v]=l.xhrFields[v];for(v in T)w.apply(R,T[v]);return l.timeout>0&&(_=setTimeout(function(){R.onreadystatechange=d,R.abort(),s(null,"timeout",R,l,p)},l.timeout)),R.send(l.data?l.data:null),R},t.get=function(){return t.ajax(p.apply(null,arguments))},t.post=function(){var e=p.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=p.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,i,r){if(!this.length)return this;var n,a=this,o=e.split(/\s/),s=p(e,i,r),l=s.success;return o.length>1&&(s.url=o[0],n=o[1]),s.success=function(e){a.html(n?t("
").html(e.replace(_,"")).find(n):e),l&&l.apply(a,arguments)},t.ajax(s),this};var R=encodeURIComponent;t.param=function(e,i){var r=[];return r.add=function(e,i){t.isFunction(i)&&(i=i()),null==i&&(i=""),this.push(R(e)+"="+R(i))},g(r,e,i),r.join("&").replace(/%20/g,"+")}}(i),function(t){t.Callbacks=function(e){e=t.extend({},e);var i,r,n,a,o,s,l=[],u=!e.once&&[],d=function(t){for(i=e.memory&&t,r=!0,s=a||0,a=0,o=l.length,n=!0;l&&s-1;)l.splice(r,1),n&&(r<=o&&--o,r<=s&&--s)}),this},has:function(e){return!(!l||!(e?t.inArray(e,l)>-1:l.length))},empty:function(){return o=l.length=0,this},disable:function(){return l=u=i=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,i||c.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!l||r&&!u||(e=e||[],e=[t,e.slice?e.slice():e],n?u.push(e):d(e)),this},fire:function(){return c.fireWith(this,arguments)},fired:function(){return!!r}};return c}}(i),function(t){function e(i){var r=[["resolve","done",t.Callbacks({once:1,memory:1}),"resolved"],["reject","fail",t.Callbacks({once:1,memory:1}),"rejected"],["notify","progress",t.Callbacks({memory:1})]],n="pending",a={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var i=arguments;return e(function(e){t.each(r,function(r,n){var s=t.isFunction(i[r])&&i[r];o[n[1]](function(){var i=s&&s.apply(this,arguments);if(i&&t.isFunction(i.promise))i.promise().done(e.resolve).fail(e.reject).progress(e.notify);else{var r=this===a?e.promise():this,o=s?[i]:arguments;e[n[0]+"With"](r,o)}})}),i=null}).promise()},promise:function(e){return null!=e?t.extend(e,a):a}},o={};return t.each(r,function(t,e){var i=e[2],s=e[3];a[e[1]]=i.add,s&&i.add(function(){n=s},r[1^t][2].disable,r[2][2].lock),o[e[0]]=function(){return o[e[0]+"With"](this===o?a:this,arguments),this},o[e[0]+"With"]=i.fireWith}),a.promise(o),i&&i.call(o,o),o}var i=Array.prototype.slice;t.when=function(r){var n,a,o,s=i.call(arguments),l=s.length,u=0,d=1!==l||r&&t.isFunction(r.promise)?l:0,c=1===d?r:e(),f=function(t,e,r){return function(a){e[t]=this,r[t]=arguments.length>1?i.call(arguments):a,r===n?c.notifyWith(e,r):--d||c.resolveWith(e,r)}};if(l>1)for(n=new Array(l),a=new Array(l),o=new Array(l);u-1)return this},has:function(t,e,i){if(r.qsa(this,i).length)return this}},s=new RegExp("(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*"),l=/^\s*>/,u="Zepto"+ +new Date;r.qsa=function(e,a){return i(a,function(i,o,s){try{var d;!i&&o?i="*":l.test(i)&&(d=t(e).addClass(u),i="."+u+" "+i);var c=n(e,i)}catch(t){throw console.error("error performing selector: %o",a),t}finally{d&&d.removeClass(u)}return o?r.uniq(t.map(c,function(t,e){return o.call(t,e,c,s)})):c})},r.matches=function(t,e){return i(e,function(e,i,r){return(!e||a(t,e))&&(!i||i.call(t,null,r)===t)})}}(i),t.exports=i},function(t,e,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(6),a=r(n),o=i(8),s=r(o),l={getStyleFor:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{baseUrl:""};return(0,a.default)('').html((0,s.default)(t.toString())(e))}};e.default=l,t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},n=/(.)^/,a={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},o=/\\|'|\r|\n|\t|\u2028|\u2029/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},l=new RegExp("[&<>\"']","g"),u=function(t){return null===t?"":(""+t).replace(l,function(t){return s[t]})},d=0,c=function(t,e){var i,s=new RegExp([(r.escape||n).source,(r.interpolate||n).source,(r.evaluate||n).source].join("|")+"|$","g"),l=0,c="__p+='";t.replace(s,function(e,i,r,n,s){return c+=t.slice(l,s).replace(o,function(t){return"\\"+a[t]}),i&&(c+="'+\n((__t=("+i+"))==null?'':escapeExpr(__t))+\n'"),r&&(c+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),n&&(c+="';\n"+n+"\n__p+='"),l=s+e.length,e}),c+="';\n",r.variable||(c="with(obj||{}){\n"+c+"}\n"),c="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+c+"return __p;\n//# sourceURL=/microtemplates/source["+d+++"]";try{i=new Function(r.variable||"obj","escapeExpr",c)}catch(t){throw t.source=c,t}if(e)return i(e,u);var f=function(t){return i.call(this,t,u)};return f.source="function("+(r.variable||"obj")+"){\n"+c+"}",f};c.settings=r,e.default=c,t.exports=e.default},function(t,e,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),a=r(n),o=i(1),s=r(o),l=i(3),u=r(l),d=i(2),c=r(d),f=i(5),h=i(21),p=r(h),g=function(t){function e(i,r){(0,a.default)(this,e);var n=(0,s.default)(this,t.call(this,i));return n.settings={},n._i18n=r,n}return(0,c.default)(e,t),(0,u.default)(e,[{key:"isAudioOnly",get:function(){return!1}},{key:"ended",get:function(){return!1}},{key:"i18n",get:function(){return this._i18n}},{key:"buffering",get:function(){return!1}}]),e.prototype.consent=function(){},e.prototype.play=function(){},e.prototype.pause=function(){},e.prototype.stop=function(){},e.prototype.seek=function(t){},e.prototype.seekPercentage=function(t){},e.prototype.getStartTimeOffset=function(){return 0},e.prototype.getDuration=function(){return 0},e.prototype.isPlaying=function(){return!1},e.prototype.getPlaybackType=function(){return e.NO_OP},e.prototype.isHighDefinitionInUse=function(){return!1},e.prototype.volume=function(t){},e.prototype.destroy=function(){this.$el.remove()},(0,u.default)(e,[{key:"isReady",get:function(){return!1}},{key:"hasClosedCaptionsTracks",get:function(){return this.closedCaptionsTracks.length>0}},{key:"closedCaptionsTracks",get:function(){return[]}},{key:"closedCaptionsTrackId",get:function(){return-1},set:function(t){}}]),e}(p.default);e.default=g,g.extend=function(t){return(0,f.extend)(g,t)},g.canPlay=function(t,e){return!1},g.VOD="vod",g.AOD="aod",g.LIVE="live",g.NO_OP="no_op",g.type="playback",t.exports=e.default},function(t,e){function i(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var a=r(n);return[i].concat(n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"})).concat([a]).join("\n")}return[i].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=i(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},n=0;n0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(this,e);var r=(0,s.default)(this,t.call(this,i));return r._options=i,r.uniqueId=(0,f.uniqueId)("o"),r}return(0,c.default)(e,t),(0,u.default)(e,[{key:"options",get:function(){return this._options}}]),e}(p.default);e.default=g,t.exports=e.default},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var r=i(15),n=i(11),a=i(46),o=i(22),s=function(t,e,i){var l,u,d,c=t&s.F,f=t&s.G,h=t&s.S,p=t&s.P,g=t&s.B,y=t&s.W,v=f?n:n[e]||(n[e]={}),m=v.prototype,b=f?r:h?r[e]:(r[e]||{}).prototype;f&&(i=e);for(l in i)(u=!c&&b&&void 0!==b[l])&&l in v||(d=u?b[l]:i[l],v[l]=f&&"function"!=typeof b[l]?i[l]:g&&u?a(d,r):y&&b[l]==d?function(t){var e=function(e,i,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):p&&"function"==typeof d?a(Function.call,d):d,p&&((v.virtual||(v.virtual={}))[l]=d,t&s.R&&m&&!m[l]&&o(m,l,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,i){t.exports=!i(27)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),a=r(n),o=i(1),s=r(o),l=i(3),u=r(l),d=i(2),c=r(d),f=i(6),h=r(f),p=i(5),g=i(17),y=r(g),v=/^(\S+)\s*(.*)$/,m=function(t){function e(i){(0,a.default)(this,e);var r=(0,s.default)(this,t.call(this,i));return r.cid=(0,p.uniqueId)("c"),r._ensureElement(),r.delegateEvents(),r}return(0,c.default)(e,t),(0,u.default)(e,[{key:"tagName",get:function(){return"div"}},{key:"events",get:function(){return{}}},{key:"attributes",get:function(){return{}}}]),e.prototype.$=function(t){return this.$el.find(t)},e.prototype.render=function(){return this},e.prototype.remove=function(){return this.$el.remove(),this.stopListening(),this.undelegateEvents(),this},e.prototype.setElement=function(t,e){return this.$el&&this.undelegateEvents(),this.$el=t instanceof h.default?t:(0,h.default)(t),this.el=this.$el[0],!1!==e&&this.delegateEvents(),this},e.prototype.delegateEvents=function(t){if(!t&&!(t=this.events))return this;this.undelegateEvents();for(var e in t){var i=t[e];if(i&&i.constructor!==Function&&(i=this[t[e]]),i){var r=e.match(v),n=r[1],a=r[2];n+=".delegateEvents"+this.cid,""===a?this.$el.on(n,i.bind(this)):this.$el.on(n,a,i.bind(this))}}return this},e.prototype.undelegateEvents=function(){return this.$el.off(".delegateEvents"+this.cid),this},e.prototype._ensureElement=function(){if(this.el)this.setElement(this.el,!1);else{var t=h.default.extend({},this.attributes);this.id&&(t.id=this.id),this.className&&(t.class=this.className);var e=p.DomRecycler.create(this.tagName).attr(t);this.setElement(e,!1)}},e}(y.default);e.default=m,t.exports=e.default},function(t,e,i){var r=i(16),n=i(28);t.exports=i(20)?function(t,e,i){return r.f(t,e,n(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var r=i(26);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),a=r(n),o=i(4),s=r(o),l=new s.default,u=function t(){(0,a.default)(this,t)};e.default=u,u.on=function(t,e,i){l.on(t,e,i)},u.once=function(t,e,i){l.once(t,e,i)},u.off=function(t,e,i){l.off(t,e,i)},u.trigger=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),r=1;r0?r:i)(t)}},function(t,e,i){var r=i(44)("keys"),n=i(32);t.exports=function(t){return r[t]||(r[t]=n(t))}},function(t,e,i){var r=i(15),n=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return n[t]||(n[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){var r=i(94);t.exports=function(t,e,i){if(r(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,n){return t.call(e,i,r,n)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){var r=i(26);t.exports=function(t,e){if(!r(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!r(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!r(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!r(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=!0},function(t,e,i){var r=i(23),n=i(99),a=i(45),o=i(43)("IE_PROTO"),s=function(){},l=function(){var t,e=i(64)("iframe"),r=a.length;for(e.style.display="none",i(100).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("