From 0b60654e2ae1046bfe85d09e8f98cd8819fc0ac3 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 3 Mar 2020 01:30:17 +0100 Subject: updated stream-site to 2019 --- contrib/site/js/clappr-nerd-stats.min.js | 5 + contrib/site/js/clappr-stats.min.js | 1 + contrib/site/js/clappr.min.js | 2 + .../site/js/flowplayer/flowplayer-3.2.13.min.js | 22 - contrib/site/js/flowplayer/flowplayer-3.2.18.swf | Bin 129772 -> 0 bytes .../js/flowplayer/flowplayer.controls-3.2.16.swf | Bin 38270 -> 0 bytes contrib/site/js/jquery-3.3.1.min.js | 2 - contrib/site/js/level-selector.min.js | 1 + contrib/site/js/parseLocationHref.js | 53 - contrib/site/js/player.js | 113 -- contrib/site/js/source-selector.js | 2019 ++++++++++++++++++++ 11 files changed, 2028 insertions(+), 190 deletions(-) create mode 100644 contrib/site/js/clappr-nerd-stats.min.js create mode 100644 contrib/site/js/clappr-stats.min.js create mode 100644 contrib/site/js/clappr.min.js delete mode 100644 contrib/site/js/flowplayer/flowplayer-3.2.13.min.js delete mode 100644 contrib/site/js/flowplayer/flowplayer-3.2.18.swf delete mode 100644 contrib/site/js/flowplayer/flowplayer.controls-3.2.16.swf delete mode 100644 contrib/site/js/jquery-3.3.1.min.js create mode 100644 contrib/site/js/level-selector.min.js delete mode 100644 contrib/site/js/parseLocationHref.js delete mode 100644 contrib/site/js/player.js create mode 100644 contrib/site/js/source-selector.js (limited to 'contrib/site/js') diff --git a/contrib/site/js/clappr-nerd-stats.min.js b/contrib/site/js/clappr-nerd-stats.min.js new file mode 100644 index 0000000..11016d8 --- /dev/null +++ b/contrib/site/js/clappr-nerd-stats.min.js @@ -0,0 +1,5 @@ +/** + * Skipped minification because the original files appears to be already minified. + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("Clappr"),require("ClapprStats")):"function"==typeof define&&define.amd?define(["Clappr","ClapprStats"],e):"object"==typeof exports?exports.ClapprNerdStats=e(require("Clappr"),require("ClapprStats")):t.ClapprNerdStats=e(t.Clappr,t.ClapprStats)}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=12)}([function(t,e,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(r=window)}t.exports=r},function(t,e,n){"use strict";(function(t,n){function r(t,e){return t.set(e[0],e[1]),t}function i(t,e){return t.add(e),t}function o(t,e){for(var n=-1,r=t?t.length:0;++n-1}function S(t,e){var n=this.__data__,r=U(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}function O(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=$t}function jt(t){var e=void 0===t?"undefined":Et(t);return!!t&&("object"==e||"function"==e)}function kt(t){return!!t&&"object"==(void 0===t?"undefined":Et(t))}function St(t){return gt(t)?F(t):V(t)}function Ot(){return[]}function Pt(){return!1}var Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct=200,Mt="__lodash_hash_undefined__",$t=9007199254740991,Tt="[object Arguments]",At="[object Boolean]",Bt="[object Date]",Rt="[object Function]",It="[object GeneratorFunction]",zt="[object Map]",Ft="[object Number]",Nt="[object Object]",Ut="[object RegExp]",Lt="[object Set]",Wt="[object String]",qt="[object Symbol]",Kt="[object ArrayBuffer]",Dt="[object DataView]",Gt="[object Float32Array]",Vt="[object Float64Array]",Ht="[object Int8Array]",Yt="[object Int16Array]",Zt="[object Int32Array]",Jt="[object Uint8Array]",Xt="[object Uint8ClampedArray]",Qt="[object Uint16Array]",te="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,ne=/\w*$/,re=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,oe={};oe[Tt]=oe["[object Array]"]=oe[Kt]=oe[Dt]=oe[At]=oe[Bt]=oe[Gt]=oe[Vt]=oe[Ht]=oe[Yt]=oe[Zt]=oe[zt]=oe[Ft]=oe[Nt]=oe[Ut]=oe[Lt]=oe[Wt]=oe[qt]=oe[Jt]=oe[Xt]=oe[Qt]=oe[te]=!0,oe["[object Error]"]=oe[Rt]=oe["[object WeakMap]"]=!1;var ae="object"==(void 0===t?"undefined":Et(t))&&t&&t.Object===Object&&t,se="object"==("undefined"==typeof self?"undefined":Et(self))&&self&&self.Object===Object&&self,ce=ae||se||Function("return this")(),ue="object"==Et(e)&&e&&!e.nodeType&&e,le=ue&&"object"==Et(n)&&n&&!n.nodeType&&n,fe=le&&le.exports===ue,pe=Array.prototype,de=Function.prototype,he=Object.prototype,ve=ce["__core-js_shared__"],ye=function(){var t=/[^.]+$/.exec(ve&&ve.keys&&ve.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),be=de.toString,_e=he.hasOwnProperty,ge=he.toString,me=RegExp("^"+be.call(_e).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),we=fe?ce.Buffer:void 0,xe=ce.Symbol,je=ce.Uint8Array,ke=p(Object.getPrototypeOf,Object),Se=Object.create,Oe=he.propertyIsEnumerable,Pe=pe.splice,Ee=Object.getOwnPropertySymbols,Ce=we?we.isBuffer:void 0,Me=p(Object.keys,Object),$e=st(ce,"DataView"),Te=st(ce,"Map"),Ae=st(ce,"Promise"),Be=st(ce,"Set"),Re=st(ce,"WeakMap"),Ie=st(Object,"create"),ze=vt($e),Fe=vt(Te),Ne=vt(Ae),Ue=vt(Be),Le=vt(Re),We=xe?xe.prototype:void 0,qe=We?We.valueOf:void 0;h.prototype.clear=v,h.prototype.delete=y,h.prototype.get=b,h.prototype.has=_,h.prototype.set=g,m.prototype.clear=w,m.prototype.delete=x,m.prototype.get=j,m.prototype.has=k,m.prototype.set=S,O.prototype.clear=P,O.prototype.delete=E,O.prototype.get=C,O.prototype.has=M,O.prototype.set=$,T.prototype.clear=A,T.prototype.delete=B,T.prototype.get=R,T.prototype.has=I,T.prototype.set=z;var Ke=Ee?p(Ee,Object):Ot,De=D;($e&&De(new $e(new ArrayBuffer(1)))!=Dt||Te&&De(new Te)!=zt||Ae&&"[object Promise]"!=De(Ae.resolve())||Be&&De(new Be)!=Lt||Re&&"[object WeakMap]"!=De(new Re))&&(De=function(t){var e=ge.call(t),n=e==Nt?t.constructor:void 0,r=n?vt(n):void 0;if(r)switch(r){case ze:return Dt;case Fe:return zt;case Ne:return"[object Promise]";case Ue:return Lt;case Le:return"[object WeakMap]"}return e});var Ge=Array.isArray,Ve=Ce||Pt;n.exports=yt}).call(e,n(0),n(11)(t))},function(t,e,n){"use strict";(function(e){function n(t,e){return null==t?void 0:t[e]}function r(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function i(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1}function v(t,e){var n=this.__data__,r=x(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}function y(t){var e=-1,n=t?t.length:0;for(this.clear();++e95&&t<112||w.hasOwnProperty(t)&&(m[w[t]]=t)}return m}function v(t,e,n){return n||(n=h()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function y(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus"),t.split("+"))}function b(t,e){var n,r,i,o=[];for(n=y(t),i=0;i1)return void h(t,s,e,r);a=b(t,r),y._callbacks[a.key]=y._callbacks[a.key]||[],n(a.key,a.modifiers,{type:a.action},i,t,o),y._callbacks[a.key][i?"unshift":"push"]({callback:e,modifiers:a.modifiers,action:a.action,seq:i,level:o,combo:t})}var y=this;if(t=t||o,!(y instanceof g))return new g(t);y.target=t,y._callbacks={},y._directMap={};var _,m={},w=!1,x=!1,j=!1;y._handleKey=function(t,i,o){var a,s=n(t,i,o),c={},u=0,l=!1;for(a=0;a":".","?":"/","|":"\\"},k={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},S=1;S<20;++S)w[111+S]="f"+S;for(S=0;S<=9;++S)w[S+96]=S.toString();g.prototype.bind=function(t,e,n){var r=this;return t=t instanceof Array?t:[t],r._bindMultiple.call(r,t,e,n),r},g.prototype.unbind=function(t,e){var n=this;return n.bind.call(n,t,function(){},e)},g.prototype.trigger=function(t,e){var n=this;return n._directMap[t+":"+e]&&n._directMap[t+":"+e]({},t),n},g.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},g.prototype.stopCallback=function(t,e){var n=this;return!((" "+e.className+" ").indexOf(" mousetrap ")>-1)&&(!_(e,n.target)&&("INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable))},g.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},g.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(w[e]=t[e]);m=null},g.init=function(){var t=g(o);for(var e in t)"_"!==e.charAt(0)&&(g[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},g.init(),i.Mousetrap=g,void 0!==t&&t.exports&&(t.exports=g),void 0!==(r=function(){return g}.call(e,n,e,t))&&(t.exports=r)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n>1,n=r[e].factor,n>t?o=e-1:i=e;return r[i]},l.prototype.parse=function(t,e){var n=t.match(this._regexp);if(!n)return null;var r,i=n[2];if(v(this._prefixes,i))r=this._prefixes[i];else{if(e||(i=i.toLowerCase(),!v(this._lcPrefixes,i)))return null;i=this._lcPrefixes[i],r=this._prefixes[i]}return{factor:r,prefix:i,unit:n[3],value:+n[1]}};var g={binary:l.create(",ki,Mi,Gi,Ti,Pi,Ei,Zi,Yi".split(","),1024),SI:l.create("y,z,a,f,p,n,µ,m,,k,M,G,T,P,E,Z,Y".split(","),1e3,-8)},m={scale:"SI",strict:!1,unit:"",decimals:2,separator:" "};return f.parse=p,p.raw=d,f.raw=h,f.Scale=l,f})},function(t,e,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n=this.statsBoxWidthThreshold?(this.$el.find(this.statsBoxElem).addClass("wide"),this.$el.find(this.statsBoxElem).removeClass("narrow")):(this.$el.find(this.statsBoxElem).removeClass("wide"),this.$el.find(this.statsBoxElem).addClass("narrow"))}},{key:"render",value:function(){var t=c.Styler.getStyleFor(p.default,{baseUrl:this.options.baseUrl});return this.core.$el.append(t),this.core.$el.append(this.$el),this.hide(),this}}]),e}(c.UICorePlugin);e.default=w,t.exports=e.default}])}); \ No newline at end of file diff --git a/contrib/site/js/clappr-stats.min.js b/contrib/site/js/clappr-stats.min.js new file mode 100644 index 0000000..2d79921 --- /dev/null +++ b/contrib/site/js/clappr-stats.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("Clappr")):"function"==typeof define&&define.amd?define(["Clappr"],t):"object"==typeof exports?exports.ClapprStats=t(require("Clappr")):e.ClapprStats=t(e.Clappr)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(e){delete installedChunks[e]}function n(e){var t=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.src=f.p+""+e+"."+w+".hot-update.js",t.appendChild(n)}function r(e){return e=e||1e4,new Promise(function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=f.p+""+w+".hot-update.json";r.open("GET",i,!0),r.timeout=e,r.send(null)}catch(e){return n(e)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)t();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var e=JSON.parse(r.responseText)}catch(e){return void n(e)}t(e)}}})}function i(e){var t=C[e];if(!t)return f;var n=function(n){return t.hot.active?(C[n]?C[n].parents.indexOf(e)<0&&C[n].parents.push(e):(T=[e],_=n),t.children.indexOf(n)<0&&t.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+e),T=[]),f(n)};for(var r in f)Object.prototype.hasOwnProperty.call(f,r)&&"e"!==r&&Object.defineProperty(n,r,function(e){return{configurable:!0,enumerable:!0,get:function(){return f[e]},set:function(t){f[e]=t}}}(r));return n.e=function(e){function t(){N--,"prepare"===k&&(j[e]||l(e),0===N&&0===x&&d())}return"ready"===k&&s("prepare"),N++,f.e(e).then(t,function(e){throw t(),e})},n}function o(e){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:_!==e,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},check:c,apply:p,status:function(e){if(!e)return k;P.push(e)},addStatusHandler:function(e){P.push(e)},removeStatusHandler:function(e){var t=P.indexOf(e);t>=0&&P.splice(t,1)},data:g[e]};return _=void 0,t}function s(e){k=e;for(var t=0;t0;){var o=i.pop(),s=o.id,a=o.chain;if((u=C[s])&&!u.hot._selfAccepted){if(u.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:s};if(u.hot._main)return{type:"unaccepted",chain:a,moduleId:s};for(var c=0;c=0||(d.hot._acceptedDependencies[s]?(n[l]||(n[l]=[]),r(n[l],[s])):(delete n[l],t.push(l),i.push({chain:a.concat([l]),id:l})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}(l):{type:"disposed",moduleId:y};var E=!1,O=!1,P=!1,x="";switch(b.chain&&(x="\nUpdate propagation: "+b.chain.join(" -> ")),b.type){case"self-declined":n.onDeclined&&n.onDeclined(b),n.ignoreDeclined||(E=new Error("Aborted because of self decline: "+b.moduleId+x));break;case"declined":n.onDeclined&&n.onDeclined(b),n.ignoreDeclined||(E=new Error("Aborted because of declined dependency: "+b.moduleId+" in "+b.parentId+x));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(b),n.ignoreUnaccepted||(E=new Error("Aborted because "+l+" is not accepted"+x));break;case"accepted":n.onAccepted&&n.onAccepted(b),O=!0;break;case"disposed":n.onDisposed&&n.onDisposed(b),P=!0;break;default:throw new Error("Unexception type "+b.type)}if(E)return s("abort"),Promise.reject(E);if(O){h[l]=v[l],r(p,b.outdatedModules);for(l in b.outdatedDependencies)Object.prototype.hasOwnProperty.call(b.outdatedDependencies,l)&&(d[l]||(d[l]=[]),r(d[l],b.outdatedDependencies[l]))}P&&(r(p,[b.moduleId]),h[l]=_)}var N=[];for(o=0;o0;)if(l=A.pop(),u=C[l]){var S={},I=u.hot._disposeHandlers;for(c=0;c=0&&M.parents.splice(j,1))}}var D,H;for(l in d)if(Object.prototype.hasOwnProperty.call(d,l)&&(u=C[l]))for(H=d[l],c=0;c=0&&u.children.splice(j,1);s("apply"),w=m;for(l in h)Object.prototype.hasOwnProperty.call(h,l)&&(e[l]=h[l]);var B=null;for(l in d)if(Object.prototype.hasOwnProperty.call(d,l)&&(u=C[l])){H=d[l];var F=[];for(o=0;o=0)continue;F.push(i)}for(o=0;o-1}function _(e,t){var n=this.__data__,r=g(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function y(e){var t=-1,n=e?e.length:0;for(this.clear();++t0){var r=this._metrics.extra.bitratesHistory[this._metrics.extra.bitratesHistory.length-1];r.end=n,r.time=n-r.start}this._metrics.extra.bitratesHistory.push({start:this._now(),bitrate:t}),this._inc("changeLevel")}},{key:"stopReporting",value:function(){this._buildReport(),clearInterval(this._intervalId),this._newMetrics(),this.stopListening(),this.bindEvents()}},{key:"startTimers",value:function(){this._intervalId=setInterval(this._buildReport.bind(this),this._runEach),this._start("session"),this._start("startup")}},{key:"onFirstPlaying",value:function(){this.listenTo(this.container,c.Events.CONTAINER_TIMEUPDATE,this.onContainerUpdateWhilePlaying),this._start("watch"),this._stop("startup")}},{key:"playAfterPause",value:function(){this.listenTo(this.container,c.Events.CONTAINER_TIMEUPDATE,this.onContainerUpdateWhilePlaying),this._stop("pause"),this._start("watch")}},{key:"onPlay",value:function(){this._inc("play")}},{key:"onPause",value:function(){this._stop("watch"),this._start("pause"),this._inc("pause"),this.listenToOnce(this.container,c.Events.CONTAINER_PLAY,this.playAfterPause),this.stopListening(this.container,c.Events.CONTAINER_TIMEUPDATE,this.onContainerUpdateWhilePlaying)}},{key:"onSeek",value:function(e){this._inc("seek"),this._metrics.extra.watchHistory.push([1e3*e,1e3*e])}},{key:"onTimeUpdate",value:function(e){var t=1e3*e.current,n=1e3*e.total,r=this._metrics.extra.watchHistory.length;if(this._metrics.extra.duration=n,this._metrics.extra.currentTime=t,this._metrics.extra.watchedPercentage=t/n*100,0===r?this._metrics.extra.watchHistory.push([t,t]):this._metrics.extra.watchHistory[r-1][1]=t,this._metrics.extra.bitratesHistory.length>0){var i=this._metrics.extra.bitratesHistory[this._metrics.extra.bitratesHistory.length-1];i.end||(i.time=this._now()-i.start)}this._onCompletion()}},{key:"onContainerUpdateWhilePlaying",value:function(){this.container.playback.isPlaying()&&(this._stop("watch"),this._start("watch"))}},{key:"onBuffering",value:function(){this._inc("buffering"),this._start("buffering"),this.listenToOnce(this.container,c.Events.CONTAINER_STATE_BUFFERFULL,this.onBufferfull)}},{key:"onBufferfull",value:function(){this._stop("buffering"),this.listenToOnce(this.container,c.Events.CONTAINER_STATE_BUFFERING,this.onBuffering)}},{key:"onProgress",value:function(e){this._metrics.extra.buffersize=1e3*e.current}},{key:"_newMetrics",value:function(){this._metrics={counters:{play:0,pause:0,error:0,buffering:0,decodedFrames:0,droppedFrames:0,fps:0,changeLevel:0,seek:0,fullscreen:0,dvrUsage:0},timers:{startup:0,watch:0,pause:0,buffering:0,session:0,latency:0},extra:{playbackName:"",playbackType:"",bitratesHistory:[],bitrateWeightedMean:0,bitrateMostUsed:0,buffersize:0,watchHistory:[],watchedPercentage:0,bufferingPercentage:0,bandwidth:0,duration:0,currentTime:0}}}},{key:"_onCompletion",value:function(){var e=this._metrics.extra.watchedPercentage,n=this._completion.watch,r=-1!=this._completion.calls.indexOf(e);-1==n.indexOf(e)||r||(c.Log.info(this.name+" PERCENTAGE_EVENT: "+e),this._completion.calls.push(e),this.trigger(t.PERCENTAGE_EVENT,e))}},{key:"_buildReport",value:function(){this._stop("session"),this._start("session"),this._metrics.extra.playbackName=this._playbackName,this._metrics.extra.playbackType=this._playbackType,this._calculateBitrates(),this._calculatePercentages(),this._fetchFPS(),this._measureLatency(),this._measureBandwidth(),this.trigger(t.REPORT_EVENT,JSON.parse(JSON.stringify(this._metrics)))}},{key:"_fetchFPS",value:function(){var e={html5_video:this._html5FetchFPS,hls:this._html5FetchFPS,dash_shaka_playback:this._html5FetchFPS};e[this._playbackName]&&e[this._playbackName].call(this)}},{key:"_calculateBitrates",value:function(){var e=this._metrics.extra.bitratesHistory.map(function(e){return e.time}).reduce(function(e,t){return e+t},0);this._metrics.extra.bitrateWeightedMean=this._metrics.extra.bitratesHistory.map(function(e){return e.bitrate*e.time}).reduce(function(e,t){return e+t},0)/e,this._metrics.extra.bitratesHistory.length>0&&(this._metrics.extra.bitrateMostUsed=this._metrics.extra.bitratesHistory.slice().sort(function(e,t){return e.time0&&(this._metrics.extra.bufferingPercentage=this._metrics.timers.buffering/this._metrics.extra.duration*100)}},{key:"_html5FetchFPS",value:function(){var e=this.container.playback.el,t=e.webkitDecodedFrameCount||e.mozDecodedFrames||0,n=e.webkitDroppedFrameCount||e.mozParsedFrames-e.mozDecodedFrames||0,r=t-(this._lastDecodedFramesCount||0);this._metrics.counters.decodedFrames=t,this._metrics.counters.droppedFrames=n,this._metrics.counters.fps=r/(this._runEach/1e3),this._lastDecodedFramesCount=t}},{key:"_measureLatency",value:function(){var e=this;if(this._uriToMeasureLatency){var t,n=[],r=function(){t=n[2]-n[1],e._metrics.timers.latency=t};!function t(){if(n.push(e._now()),n.length>2)r();else{var i=new Image;i.onload=t,i.src=e._uriToMeasureLatency+"?"+Math.random()+"="+e._now()}}()}}},{key:"_measureBandwidth",value:function(){var e=this;if(this._urisToMeasureBandwidth&&this._bwMeasureCount%this._runBandwidthTestEvery==0){var t=0,n=function(n){var r=(e._urisToMeasureBandwidth[t-1].end-e._urisToMeasureBandwidth[t-1].start)/1e3,i=8*n.loaded/r;e._metrics.extra.bandwidth=i,e._urisToMeasureBandwidth.forEach(function(e){e.start=0,e.end=0,e.expired=!1,clearTimeout(e.timer)})};!function r(i){if(t>0&&(e._urisToMeasureBandwidth[t-1].end=e._now(),clearTimeout(e._urisToMeasureBandwidth[t-1].timer)),t>=e._urisToMeasureBandwidth.length||t>0&&e._urisToMeasureBandwidth[t-1].expired)n(i);else{var o=new XMLHttpRequest;o.open("GET",e._urisToMeasureBandwidth[t].url,!0),o.responseType="arraybuffer",o.onload=o.onabort=r,e._urisToMeasureBandwidth[t].start=e._now(),e._urisToMeasureBandwidth[t].timer=setTimeout(function(t){e._urisToMeasureBandwidth[t].expired=!0,o.abort()},e._urisToMeasureBandwidth[t].timeout,t),o.send()}t++}()}this._bwMeasureCount++}}]),t}(c.ContainerPlugin);t.default=d,d.REPORT_EVENT="clappr:stats:report",d.PERCENTAGE_EVENT="clappr:stats:percentage",e.exports=t.default},clappr:function(t,n){t.exports=e}})}); \ No newline at end of file diff --git a/contrib/site/js/clappr.min.js b/contrib/site/js/clappr.min.js new file mode 100644 index 0000000..b044081 --- /dev/null +++ b/contrib/site/js/clappr.min.js @@ -0,0 +1,2 @@ +!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()}("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(r[i])return r[i].exports;var n=r[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=100)}([function(t,e,r){"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,r){"use strict";e.__esModule=!0;var i=r(39),n=function(t){return t&&t.__esModule?t:{default:t}}(i);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,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=r(134),a=i(n),o=r(76),s=i(o),l=r(39),u=i(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,r){"use strict";e.__esModule=!0;var i=r(75),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){function t(t,e){for(var r=0;r0&&(o+=a+":",n<1&&(o+="00:")),(n&&n>0||e)&&(o+=("0"+n).slice(-2)+":"),o+=("0"+i).slice(-2)+":",o+=("0"+r).slice(-2),o.trim()}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"t",e=0,r=B.params[t]||B.hashParams[t]||"",i=r.match(/[0-9]+[hms]+/g)||[];if(i.length>0){var n={h:3600,m:60,s:1};i.forEach(function(t){if(t){var r=t[t.length-1],i=parseInt(t.slice(0,t.length-1),10);e+=i*n[r]}})}else r&&(e=parseInt(r,10));return e}function l(t){return U[t]||(U[t]=0),t+ ++U[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 r=t.indexOf(e);r>=0&&t.splice(r,1)}function p(t,e){return void 0!==t&&void 0!==e&&void 0!==e.find(function(e){return t.toLowerCase()===e.toLowerCase()})}function g(t,e){e=(0,m.default)({inline:!1,muted:!1,timeout:250,type:"video",source:M.default.mp4,element:null},e);var r=e.element?e.element:document.createElement(e.type);r.muted=e.muted,!0===e.muted&&r.setAttribute("muted","muted"),!0===e.inline&&r.setAttribute("playsinline","playsinline"),r.src=e.source;var i=r.play(),n=setTimeout(function(){a(!1,new Error("Timeout "+e.timeout+" ms has been reached"))},e.timeout),a=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;clearTimeout(n),t(e,r)};void 0!==i?i.then(function(){return a(!0)}).catch(function(t){return a(!1,t)}):a(!0)}Object.defineProperty(e,"__esModule",{value:!0}),e.DomRecycler=e.cancelAnimationFrame=e.requestAnimationFrame=e.QueryString=e.Config=e.Fullscreen=void 0;var y=r(12),m=i(y),v=r(3),A=i(v),_=r(0),b=i(_),E=r(1),T=i(E),S=r(2),L=i(S),k=r(75),R=i(k),C=r(140),w=i(C);e.assign=n,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,e.listContainsIgnoreCase=p,e.canAutoPlayMedia=g,r(143);var O=r(14),P=i(O),D=r(6),I=i(D),x=r(147),M=i(x),N=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)}},F=e.Config=function(){function t(){(0,b.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 P.default.hasLocalstorage&&localStorage[this._createKeyspace(t)]?this._defaultConfig()[t].parse(localStorage[this._createKeyspace(t)]):this._defaultValueFor(t)},t.persist=function(t,e){if(P.default.hasLocalstorage)try{return localStorage[this._createKeyspace(t)]=e,!0}catch(t){return!1}},t}(),B=e.QueryString=function(){function t(){(0,b.default)(this,t)}return t.parse=function(t){for(var e=void 0,r=/\+/g,i=/([^&=]+)=?([^&]*)/g,n=function(t){return decodeURIComponent(t.replace(r," "))},a={};e=i.exec(t);)a[n(e[1]).toLowerCase()]=n(e[2]);return a},(0,A.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}(),U={},j=e.requestAnimationFrame=(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}).bind(window),G=e.cancelAnimationFrame=(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout).bind(window),K=[],V=e.DomRecycler=function(){function t(){(0,b.default)(this,t)}return t.configure=function(t){this.options=I.default.extend(this.options,t)},t.create=function(t){return this.options.recycleVideo&&"video"===t&&K.length>0?K.shift():(0,I.default)("<"+t+">")},t.garbage=function(t){this.options.recycleVideo&&"VIDEO"===t[0].tagName.toUpperCase()&&(t.children().remove(),K.push(t))},t}();V.options={recycleVideo:!1},e.default={Config:F,Fullscreen:N,QueryString:B,DomRecycler:V,extend:a,formatTime:o,seekStringToSeconds:s,uniqueId:l,currentScriptUrl:d,isNumber:u,requestAnimationFrame:j,cancelAnimationFrame:G,getBrowserLanguage:c,now:f,removeArrayItem:h,canAutoPlayMedia:g,Media:M.default}},function(t,e){var r=function(){function t(t){return null==t?String(t):z[q.call(t)]||"object"}function e(e){return"function"==t(e)}function r(t){return null!=t&&t==t.window}function i(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function n(e){return"object"==t(e)}function a(t){return n(t)&&!r(t)&&Object.getPrototypeOf(t)==Object.prototype}function o(t){var e=!!t&&"length"in t&&t.length,i=S.type(t);return"function"!=i&&!r(t)&&("array"==i||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?S.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||M[u(t)]?e:e+"px"}function f(t){var e,r;return I[t]||(e=D.createElement(t),D.body.appendChild(e),r=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==r&&(r="block"),I[t]=r),I[t]}function h(t){return"children"in t?P.call(t.children):S.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function p(t,e){var r,i=t?t.length:0;for(r=0;r]*>/,F=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,B=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,U=/^(?:body|html)$/i,j=/([A-Z])/g,G=["val","css","html","text","data","width","height","offset"],K=["after","prepend","before","append"],V=D.createElement("table"),Y=D.createElement("tr"),H={tr:D.createElement("tbody"),tbody:V,thead:V,tfoot:V,td:Y,th:Y,"*":D.createElement("div")},$=/complete|loaded|interactive/,W=/^[\w-]*$/,z={},q=z.toString,X={},Z=D.createElement("div"),Q={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},J=Array.isArray||function(t){return t instanceof Array};return X.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(r)return r.call(t,e);var i,n=t.parentNode,a=!n;return a&&(n=Z).appendChild(t),i=~X.qsa(n,e).indexOf(t),a&&Z.removeChild(t),i},k=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},R=function(t){return O.call(t,function(e,r){return t.indexOf(e)==r})},X.fragment=function(t,e,r){var i,n,o;return F.test(t)&&(i=S(D.createElement(RegExp.$1))),i||(t.replace&&(t=t.replace(B,"<$1>")),e===E&&(e=N.test(t)&&RegExp.$1),e in H||(e="*"),o=H[e],o.innerHTML=""+t,i=S.each(P.call(o.childNodes),function(){o.removeChild(this)})),a(r)&&(n=S(i),S.each(r,function(t,e){G.indexOf(t)>-1?n[t](e):n.attr(t,e)})),i},X.Z=function(t,e){return new p(t,e)},X.isZ=function(t){return t instanceof X.Z},X.init=function(t,r){var i;if(!t)return X.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&N.test(t))i=X.fragment(t,RegExp.$1,r),t=null;else{if(r!==E)return S(r).find(t);i=X.qsa(D,t)}else{if(e(t))return S(D).ready(t);if(X.isZ(t))return t;if(J(t))i=s(t);else if(n(t))i=[t],t=null;else if(N.test(t))i=X.fragment(t.trim(),RegExp.$1,r),t=null;else{if(r!==E)return S(r).find(t);i=X.qsa(D,t)}}return X.Z(i,t)},S=function(t,e){return X.init(t,e)},S.extend=function(t){var e,r=P.call(arguments,1);return"boolean"==typeof t&&(e=t,t=r.shift()),r.forEach(function(r){g(t,r,e)}),t},X.qsa=function(t,e){var r,i="#"==e[0],n=!i&&"."==e[0],a=i||n?e.slice(1):e,o=W.test(a);return t.getElementById&&o&&i?(r=t.getElementById(a))?[r]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:P.call(o&&!i&&t.getElementsByClassName?n?t.getElementsByClassName(a):t.getElementsByTagName(e):t.querySelectorAll(e))},S.contains=D.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},S.type=t,S.isFunction=e,S.isWindow=r,S.isArray=J,S.isPlainObject=a,S.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},S.isNumeric=function(t){var e=Number(t),r=typeof t;return null!=t&&"boolean"!=r&&("string"!=r||t.length)&&!isNaN(e)&&isFinite(e)||!1},S.inArray=function(t,e,r){return C.indexOf.call(e,t,r)},S.camelCase=k,S.trim=function(t){return null==t?"":String.prototype.trim.call(t)},S.uuid=0,S.support={},S.expr={},S.noop=function(){},S.map=function(t,e){var r,i,n,a=[];if(o(t))for(i=0;i=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 C.every.call(this,function(e,r){return!1!==t.call(e,r,e)}),this},filter:function(t){return e(t)?this.not(this.not(t)):S(O.call(this,function(e){return X.matches(e,t)}))},add:function(t,e){return S(R(this.concat(S(t,e))))},is:function(t){return this.length>0&&X.matches(this[0],t)},not:function(t){var r=[];if(e(t)&&t.call!==E)this.each(function(e){t.call(this,e)||r.push(this)});else{var i="string"==typeof t?this.filter(t):o(t)&&e(t.item)?P.call(t):S(t);this.forEach(function(t){i.indexOf(t)<0&&r.push(t)})}return S(r)},has:function(t){return this.filter(function(){return n(t)?S.contains(this,t):S(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:S(t)},last:function(){var t=this[this.length-1];return t&&!n(t)?t:S(t)},find:function(t){var e=this;return t?"object"==typeof t?S(t).filter(function(){var t=this;return C.some.call(e,function(e){return S.contains(e,t)})}):1==this.length?S(X.qsa(this[0],t)):this.map(function(){return X.qsa(this,t)}):S()},closest:function(t,e){var r=[],n="object"==typeof t&&S(t);return this.each(function(a,o){for(;o&&!(n?n.indexOf(o)>=0:X.matches(o,t));)o=o!==e&&!i(o)&&o.parentNode;o&&r.indexOf(o)<0&&r.push(o)}),S(r)},parents:function(t){for(var e=[],r=this;r.length>0;)r=S.map(r,function(t){if((t=t.parentNode)&&!i(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||P.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 S.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 r=e(t);if(this[0]&&!r)var i=S(t).get(0),n=i.parentNode||this.length>1;return this.each(function(e){S(this).wrapAll(r?t.call(this,e):n?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){S(this[0]).before(t=S(t));for(var e;(e=t.children()).length;)t=e.first();S(t).append(this)}return this},wrapInner:function(t){var r=e(t);return this.each(function(e){var i=S(this),n=i.contents(),a=r?t.call(this,e):t;n.length?n.wrapAll(a):i.append(a)})},unwrap:function(){return this.parent().each(function(){S(this).replaceWith(S(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=S(this);(t===E?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return S(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return S(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var r=this.innerHTML;S(this).empty().append(m(this,t,e,r))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var r=m(this,t,e,this.textContent);this.textContent=null==r?"":""+r}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var r;return"string"!=typeof t||1 in arguments?this.each(function(r){if(1===this.nodeType)if(n(t))for(T in t)v(this,T,t[T]);else v(this,t,m(this,e,r,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(t))?r:E},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){v(this,t)},this)})},prop:function(t,e){return t=Q[t]||t,1 in arguments?this.each(function(r){this[t]=m(this,e,r,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=Q[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var r="data-"+t.replace(j,"-$1").toLowerCase(),i=1 in arguments?this.attr(r,e):this.attr(r);return null!==i?_(i):E},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=m(this,t,e,this.value)})):this[0]&&(this[0].multiple?S(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 r=S(this),i=m(this,t,e,r.offset()),n=r.offsetParent().offset(),a={top:i.top-n.top,left:i.left-n.left};"static"==r.css("position")&&(a.position="relative"),r.css(a)});if(!this.length)return null;if(D.documentElement!==this[0]&&!S.contains(D.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,r){if(arguments.length<2){var i=this[0];if("string"==typeof e){if(!i)return;return i.style[k(e)]||getComputedStyle(i,"").getPropertyValue(e)}if(J(e)){if(!i)return;var n={},a=getComputedStyle(i,"");return S.each(e,function(t,e){n[e]=i.style[k(e)]||a.getPropertyValue(e)}),n}}var o="";if("string"==t(e))r||0===r?o=u(e)+":"+c(e,r):this.each(function(){this.style.removeProperty(u(e))});else for(T in e)e[T]||0===e[T]?o+=u(T)+":"+c(T,e[T])+";":this.each(function(){this.style.removeProperty(u(T))});return this.each(function(){this.style.cssText+=";"+o})},index:function(t){return t?this.indexOf(S(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&C.some.call(this,function(t){return this.test(A(t))},d(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){L=[];var r=A(this);m(this,t,e,r).split(/\s+/g).forEach(function(t){S(this).hasClass(t)||L.push(t)},this),L.length&&A(this,r+(r?" ":"")+L.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===E)return A(this,"");L=A(this),m(this,t,e,L).split(/\s+/g).forEach(function(t){L=L.replace(d(t)," ")}),A(this,L.trim())}})},toggleClass:function(t,e){return t?this.each(function(r){var i=S(this);m(this,t,r,A(this)).split(/\s+/g).forEach(function(t){(e===E?!i.hasClass(t):e)?i.addClass(t):i.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===E?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===E?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(),r=this.offset(),i=U.test(e[0].nodeName)?{top:0,left:0}:e.offset();return r.top-=parseFloat(S(t).css("margin-top"))||0,r.left-=parseFloat(S(t).css("margin-left"))||0,i.top+=parseFloat(S(e[0]).css("border-top-width"))||0,i.left+=parseFloat(S(e[0]).css("border-left-width"))||0,{top:r.top-i.top,left:r.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||D.body;t&&!U.test(t.nodeName)&&"static"==S(t).css("position");)t=t.offsetParent;return t})}},S.fn.detach=S.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});S.fn[t]=function(n){var a,o=this[0];return n===E?r(o)?o["inner"+e]:i(o)?o.documentElement["scroll"+e]:(a=this.offset())&&a[t]:this.each(function(e){o=S(this),o.css(t,m(this,n,e,o[t]()))})}}),K.forEach(function(e,r){var i=r%2;S.fn[e]=function(){var e,n,a=S.map(arguments,function(r){var i=[];return e=t(r),"array"==e?(r.forEach(function(t){return t.nodeType!==E?i.push(t):S.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(X.fragment(t)))}),i):"object"==e||null==r?r:X.fragment(r)}),o=this.length>1;return a.length<1?this:this.each(function(t,e){n=i?e:e.parentNode,e=0==r?e.nextSibling:1==r?e.firstChild:2==r?e:null;var s=S.contains(D.documentElement,n);a.forEach(function(t){if(o)t=t.cloneNode(!0);else if(!n)return S(t).remove();n.insertBefore(t,e),s&&b(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)}})})})},S.fn[i?e+"To":"insert"+(r?"Before":"After")]=function(t){return S(t)[e](this),this}}),X.Z.prototype=p.prototype=S.fn,X.uniq=R,X.deserializeValue=_,S.zepto=X,S}();window.Zepto=r,void 0===window.$&&(window.$=r),function(t){function e(e,r,i){var n=t.Event(r);return t(e).trigger(n,i),!n.isDefaultPrevented()}function r(t,r,i,n){if(t.global)return e(r||A,i,n)}function i(e){e.global&&0==t.active++&&r(e,null,"ajaxStart")}function n(e){e.global&&!--t.active&&r(e,null,"ajaxStop")}function a(t,e){var i=e.context;if(!1===e.beforeSend.call(i,t,e)||!1===r(e,i,"ajaxBeforeSend",[t,e]))return!1;r(e,i,"ajaxSend",[t,e])}function o(t,e,i,n){var a=i.context;i.success.call(a,t,"success",e),n&&n.resolveWith(a,[t,"success",e]),r(i,a,"ajaxSuccess",[e,i,t]),l("success",e,i)}function s(t,e,i,n,a){var o=n.context;n.error.call(o,i,e,t),a&&a.rejectWith(o,[i,e,t]),r(n,o,"ajaxError",[i,n,t||e]),l(e,i,n)}function l(t,e,i){var a=i.context;i.complete.call(a,e,t),r(i,a,"ajaxComplete",[e,i]),n(i)}function u(t,e,r){if(r.dataFilter==d)return t;var i=r.context;return r.dataFilter.call(i,t,e)}function d(){}function c(t){return t&&(t=t.split(";",2)[0]),t&&(t==S?"html":t==T?"json":b.test(t)?"script":E.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,r,i,n){return t.isFunction(r)&&(n=i,i=r,r=void 0),t.isFunction(i)||(n=i,i=void 0),{url:e,data:r,success:i,dataType:n}}function g(e,r,i,n){var a,o=t.isArray(r),s=t.isPlainObject(r);t.each(r,function(r,l){a=t.type(l),n&&(r=i?n:n+"["+(s||"object"==a||"array"==a?r:"")+"]"),!n&&o?e.add(l.name,l.value):"array"==a||!i&&"object"==a?g(e,l,i,r):e.add(r,l)})}var y,m,v=+new Date,A=window.document,_=/)<[^<]*)*<\/script>/gi,b=/^(?:text|application)\/javascript/i,E=/^(?:text|application)\/xml/i,T="application/json",S="text/html",L=/^\s*$/,k=A.createElement("a");k.href=window.location.href,t.active=0,t.ajaxJSONP=function(e,r){if(!("type"in e))return t.ajax(e);var i,n,l=e.jsonpCallback,u=(t.isFunction(l)?l():l)||"Zepto"+v++,d=A.createElement("script"),c=window[u],f=function(e){t(d).triggerHandler("error",e||"abort")},h={abort:f};return r&&r.promise(h),t(d).on("load error",function(a,l){clearTimeout(n),t(d).off().remove(),"error"!=a.type&&i?o(i[0],h,e,r):s(null,l||"error",h,e,r),window[u]=c,i&&t.isFunction(c)&&c(i[0]),c=i=void 0}),!1===a(h,e)?(f("abort"),h):(window[u]=function(){i=arguments},d.src=e.url.replace(/\?(.+)=\?/,"?$1="+u),A.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:T,xml:"application/xml, text/xml",html:S,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:d},t.ajax=function(e){var r,n,l=t.extend({},e||{}),p=t.Deferred&&t.Deferred();for(y in t.ajaxSettings)void 0===l[y]&&(l[y]=t.ajaxSettings[y]);i(l),l.crossDomain||(r=A.createElement("a"),r.href=l.url,r.href=r.href,l.crossDomain=k.protocol+"//"+k.host!=r.protocol+"//"+r.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,v=/\?.+=\?/.test(l.url);if(v&&(g="jsonp"),!1!==l.cache&&(e&&!0===e.cache||"script"!=g&&"jsonp"!=g)||(l.url=f(l.url,"_="+Date.now())),"jsonp"==g)return v||(l.url=f(l.url,l.jsonp?l.jsonp+"=?":!1===l.jsonp?"":"callback=?")),t.ajaxJSONP(l,p);var _,b=l.accepts[g],E={},T=function(t,e){E[t.toLowerCase()]=[t,e]},S=/^([\w-]+:)\/\//.test(l.url)?RegExp.$1:window.location.protocol,R=l.xhr(),C=R.setRequestHeader;if(p&&p.promise(R),l.crossDomain||T("X-Requested-With","XMLHttpRequest"),T("Accept",b||"*/*"),(b=l.mimeType||b)&&(b.indexOf(",")>-1&&(b=b.split(",",2)[0]),R.overrideMimeType&&R.overrideMimeType(b)),(l.contentType||!1!==l.contentType&&l.data&&"GET"!=l.type.toUpperCase())&&T("Content-Type",l.contentType||"application/x-www-form-urlencoded"),l.headers)for(m in l.headers)T(m,l.headers[m]);if(R.setRequestHeader=T,R.onreadystatechange=function(){if(4==R.readyState){R.onreadystatechange=d,clearTimeout(_);var e,r=!1;if(R.status>=200&&R.status<300||304==R.status||0==R.status&&"file:"==S){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=L.test(e)?null:t.parseJSON(e))}catch(t){r=t}if(r)return s(r,"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 w=!("async"in l)||l.async;if(R.open(l.type,l.url,w,l.username,l.password),l.xhrFields)for(m in l.xhrFields)R[m]=l.xhrFields[m];for(m in E)C.apply(R,E[m]);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,r,i){if(!this.length)return this;var n,a=this,o=e.split(/\s/),s=p(e,r,i),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,r){var i=[];return i.add=function(e,r){t.isFunction(r)&&(r=r()),null==r&&(r=""),this.push(R(e)+"="+R(r))},g(i,e,r),i.join("&").replace(/%20/g,"+")}}(r),function(t){t.Callbacks=function(e){e=t.extend({},e);var r,i,n,a,o,s,l=[],u=!e.once&&[],d=function(t){for(r=e.memory&&t,i=!0,s=a||0,a=0,o=l.length,n=!0;l&&s-1;)l.splice(i,1),n&&(i<=o&&--o,i<=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=r=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,r||c.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!l||i&&!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!!i}};return c}}(r),function(t){function e(r){var i=[["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 r=arguments;return e(function(e){t.each(i,function(i,n){var s=t.isFunction(r[i])&&r[i];o[n[1]](function(){var r=s&&s.apply(this,arguments);if(r&&t.isFunction(r.promise))r.promise().done(e.resolve).fail(e.reject).progress(e.notify);else{var i=this===a?e.promise():this,o=s?[r]:arguments;e[n[0]+"With"](i,o)}})}),r=null}).promise()},promise:function(e){return null!=e?t.extend(e,a):a}},o={};return t.each(i,function(t,e){var r=e[2],s=e[3];a[e[1]]=r.add,s&&r.add(function(){n=s},i[1^t][2].disable,i[2][2].lock),o[e[0]]=function(){return o[e[0]+"With"](this===o?a:this,arguments),this},o[e[0]+"With"]=r.fireWith}),a.promise(o),r&&r.call(o,o),o}var r=Array.prototype.slice;t.when=function(i){var n,a,o,s=r.call(arguments),l=s.length,u=0,d=1!==l||i&&t.isFunction(i.promise)?l:0,c=1===d?i:e(),f=function(t,e,i){return function(a){e[t]=this,i[t]=arguments.length>1?r.call(arguments):a,i===n?c.notifyWith(e,i):--d||c.resolveWith(e,i)}};if(l>1)for(n=new Array(l),a=new Array(l),o=new Array(l);u-1)return this},has:function(t,e,r){if(i.qsa(this,r).length)return this}},s=new RegExp("(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*"),l=/^\s*>/,u="Zepto"+ +new Date;i.qsa=function(e,a){return r(a,function(r,o,s){try{var d;!r&&o?r="*":l.test(r)&&(d=t(e).addClass(u),r="."+u+" "+r);var c=n(e,r)}catch(t){throw console.error("error performing selector: %o",a),t}finally{d&&d.removeClass(u)}return o?i.uniq(t.map(c,function(t,e){return o.call(t,e,c,s)})):c})},i.matches=function(t,e){return r(e,function(e,r,i){return(!e||a(t,e))&&(!r||r.call(t,null,i)===t)})}}(r),t.exports=r},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={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 r,s=new RegExp([(i.escape||n).source,(i.interpolate||n).source,(i.evaluate||n).source].join("|")+"|$","g"),l=0,c="__p+='";t.replace(s,function(e,r,i,n,s){return c+=t.slice(l,s).replace(o,function(t){return"\\"+a[t]}),r&&(c+="'+\n((__t=("+r+"))==null?'':escapeExpr(__t))+\n'"),i&&(c+="'+\n((__t=("+i+"))==null?'':__t)+\n'"),n&&(c+="';\n"+n+"\n__p+='"),l=s+e.length,e}),c+="';\n",i.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{r=new Function(i.variable||"obj","escapeExpr",c)}catch(t){throw t.source=c,t}if(e)return r(e,u);var f=function(t){return r.call(this,t,u)};return f.source="function("+(i.variable||"obj")+"){\n"+c+"}",f};c.settings=i,e.default=c,t.exports=e.default},function(t,e){function r(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var a=i(n);return[r].concat(n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"})).concat([a]).join("\n")}return[r].join("\n")}function i(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 i=r(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},n=0;n=0&&_.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),a(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),a(t,e),e}function u(t,e){Object.keys(e).forEach(function(r){t.setAttribute(r,e[r])})}function d(t,e){var r,i,n,a;if(e.transform&&t.css){if(!(a=e.transform(t.css)))return function(){};t.css=a}if(e.singleton){var u=A++;r=v||(v=s(e)),i=c.bind(null,r,u,!1),n=c.bind(null,r,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=l(e),i=h.bind(null,r,e),n=function(){o(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(e),i=f.bind(null,r),n=function(){o(r)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else n()}}function c(t,e,r,i){var n=r?"":i.css;if(t.styleSheet)t.styleSheet.cssText=E(e,n);else{var a=document.createTextNode(n),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function f(t,e){var r=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}function h(t,e,r){var i=r.css,n=r.sourceMap,a=void 0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||a)&&(i=b(i)),n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}var p={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),y=function(t){return document.querySelector(t)},m=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var r=y.call(this,t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),v=null,A=0,_=[],b=r(158);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=g()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var r=n(t,e);return i(r,e),function(t){for(var a=[],o=0;o0}},{key:"closedCaptionsTracks",get:function(){return[]}},{key:"closedCaptionsTrackId",get:function(){return-1},set:function(t){}}]),e}(y.default);e.default=b,(0,a.default)(b.prototype,v.default),b.extend=function(t){return(0,p.extend)(b,t)},b.canPlay=function(t,e){return!1},b.VOD="vod",b.AOD="aod",b.LIVE="live",b.NO_OP="no_op",b.type="playback",t.exports=e.default},function(t,e){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,e,r){t.exports={default:r(102),__esModule:!0}},function(t,e,r){var i=r(50)("wks"),n=r(36),a=r(17).Symbol,o="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=o&&a[t]||(o?a:n)("Symbol."+t))}).store=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(144),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=n.default,t.exports=e.default},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=i(n),o=r(1),s=i(o),l=r(3),u=i(l),d=r(2),c=i(d),f=r(5),h=r(4),p=i(h),g=function(t){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(this,e);var i=(0,s.default)(this,t.call(this,r));return i._options=r,i.uniqueId=(0,f.uniqueId)("o"),i}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,r){var i=r(17),n=r(11),a=r(44),o=r(25),s=function(t,e,r){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,m=f?n:n[e]||(n[e]={}),v=m.prototype,A=f?i:h?i[e]:(i[e]||{}).prototype;f&&(r=e);for(l in r)(u=!c&&A&&void 0!==A[l])&&l in m||(d=u?A[l]:r[l],m[l]=f&&"function"!=typeof A[l]?r[l]:g&&u?a(d,i):y&&A[l]==d?function(t){var e=function(e,r,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):p&&"function"==typeof d?a(Function.call,d):d,p&&((m.virtual||(m.virtual={}))[l]=d,t&s.R&&v&&!v[l]&&o(v,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){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var i=r(26),n=r(65),a=r(45),o=Object.defineProperty;e.f=r(21)?Object.defineProperty:function(t,e,r){if(i(t),e=a(e,!0),i(r),n)try{return o(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var i=r(68),n=r(47);t.exports=function(t){return i(n(t))}},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=r(12),a=i(n),o=r(29),s=i(o),l=r(24),u=i(l),d={createError:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{useCodePrefix:!0},r=this.constructor&&this.constructor.type||"",i=this.name||r,n=this.i18n||this.core&&this.core.i18n||this.container&&this.container.i18n,o=i+":"+(t&&t.code||"unknown"),l={description:"",level:u.default.Levels.FATAL,origin:i,scope:r,raw:{}},d=(0,a.default)({},l,t,{code:e.useCodePrefix?o:t.code});if(n&&d.level==u.default.Levels.FATAL&&!d.UI){var c={title:n.t("default_error_title"),message:n.t("default_error_message")};d.UI=c}return this.playerError?this.playerError.createError(d):s.default.warn(i,"PlayerError is not defined. Error: ",d),d}};e.default=d,t.exports=e.default},function(t,e,r){t.exports=!r(27)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=r(12),a=i(n),o=r(0),s=i(o),l=r(1),u=i(l),d=r(3),c=i(d),f=r(2),h=i(f),p=r(5),g=r(30),y=i(g),m=r(20),v=i(m),A=function(t){function e(r){(0,s.default)(this,e);var i=(0,u.default)(this,t.call(this,r.options));return i.core=r,i.enabled=!0,i.bindEvents(),i.render(),i}return(0,h.default)(e,t),(0,c.default)(e,[{key:"playerError",get:function(){return this.core.playerError}}]),e.prototype.bindEvents=function(){},e.prototype.getExternalInterface=function(){return{}},e.prototype.enable=function(){this.enabled||(this.bindEvents(),this.$el.show(),this.enabled=!0)},e.prototype.disable=function(){this.stopListening(),this.$el.hide(),this.enabled=!1},e.prototype.render=function(){return this},e}(y.default);e.default=A,(0,a.default)(A.prototype,v.default),A.extend=function(t){return(0,p.extend)(A,t)},A.type="core",t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(79),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=n.default,t.exports=e.default},function(t,e,r){var i=r(18),n=r(33);t.exports=r(21)?function(t,e,r){return i.f(t,e,n(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var i=r(32);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var i=r(67),n=r(51);t.exports=Object.keys||function(t){return i(t,n)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(148),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=n.default,t.exports=e.default},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=i(n),o=r(1),s=i(o),l=r(3),u=i(l),d=r(2),c=i(d),f=r(6),h=i(f),p=r(5),g=r(15),y=i(g),m=/^(\S+)\s*(.*)$/,v=function(t){function e(r){(0,a.default)(this,e);var i=(0,s.default)(this,t.call(this,r));return i.cid=(0,p.uniqueId)("c"),i._ensureElement(),i.delegateEvents(),i}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.destroy=function(){return this.$el.remove(),this.stopListening(),this.undelegateEvents(),this},e.prototype.setElement=function(t,e){return this.$el&&this.undelegateEvents(),this.$el=h.default.zepto.isZ(t)?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 r=t[e];if(r&&r.constructor!==Function&&(r=this[t[e]]),r){var i=e.match(m),n=i[1],a=i[2];n+=".delegateEvents"+this.cid,""===a?this.$el.on(n,r.bind(this)):this.$el.on(n,a,r.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=v,t.exports=e.default},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=i(n),o=r(4),s=i(o),l=new s.default,u=function t(){(0,a.default)(this,t)};e.default=u,u.on=function(t,e,r){l.on(t,e,r)},u.once=function(t,e,r){l.once(t,e,r)},u.off=function(t,e,r){l.off(t,e,r)},u.trigger=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i0?i:r)(t)}},function(t,e,r){var i=r(50)("keys"),n=r(36);t.exports=function(t){return i[t]||(i[t]=n(t))}},function(t,e,r){var i=r(17),n=i["__core-js_shared__"]||(i["__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){e.f=Object.getOwnPropertySymbols},function(t,e,r){t.exports={default:r(108),__esModule:!0}},function(t,e){t.exports=!0},function(t,e,r){var i=r(26),n=r(114),a=r(51),o=r(49)("IE_PROTO"),s=function(){},l=function(){var t,e=r(66)("iframe"),i=a.length;for(e.style.display="none",r(115).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("