aboutsummaryrefslogtreecommitdiff
path: root/assets/voc-player/clappr-playback-rate-plugin.js
blob: f002c15704352f9759f5b7afd8575f5621d3054c (plain)
1
2
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("clappr")):"function"==typeof define&&define.amd?define(["clappr"],e):"object"==typeof exports?exports.PlaybackRatePlugin=e(require("clappr")):t.PlaybackRatePlugin=e(t.Clappr)}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=57)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(59))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(5);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(2),o=n(38),i=n(10),a=n(17),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(0),o=n(25),i=n(1),a=n(26),c=n(30),u=n(48),f=o("wks"),l=r.Symbol,s=u?l:l&&l.withoutSetter||a;t.exports=function(t){return i(f,t)||(c&&i(l,t)?f[t]=l[t]:f[t]=s("Symbol."+t)),f[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(2),o=n(3),i=n(14);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(0),o=n(13).f,i=n(7),a=n(11),c=n(24),u=n(42),f=n(47);t.exports=function(t,e){var n,l,s,p,y,d=t.target,v=t.global,b=t.stat;if(n=v?r:b?r[d]||c(d,{}):(r[d]||{}).prototype)for(l in e){if(p=e[l],s=t.noTargetGet?(y=o(n,l))&&y.value:n[l],!f(v?l:d+(b?".":"#")+l,t.forced)&&void 0!==s){if(typeof p==typeof s)continue;u(p,s)}(t.sham||s&&s.sham)&&i(p,"sham",!0),a(n,l,p,t)}}},function(t,e,n){var r=n(37),o=n(16);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(0),o=n(7),i=n(1),a=n(24),c=n(40),u=n(18),f=u.get,l=u.enforce,s=String(String).split("String");(t.exports=function(t,e,n,c){var u=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),l(n).source=s.join("string"==typeof e?e:"")),t!==r?(u?!p&&t[e]&&(f=!0):delete t[e],f?t[e]=n:o(t,e,n)):f?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,e,n){var r,o=n(10),i=n(64),a=n(29),c=n(21),u=n(65),f=n(39),l=n(19),s=l("IE_PROTO"),p=function(){},y=function(t){return"<script>"+t+"<\/script>"},d=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;d=r?function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=f("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F);for(var n=a.length;n--;)delete d.prototype[a[n]];return d()};c[s]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[s]=t):n=d(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(2),o=n(36),i=n(14),a=n(9),c=n(17),u=n(1),f=n(38),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=c(e,!0),f)try{return l(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r,o,i,a=n(60),c=n(0),u=n(6),f=n(7),l=n(1),s=n(19),p=n(21),y=c.WeakMap;if(a){var d=new y,v=d.get,b=d.has,h=d.set;r=function(t,e){return h.call(d,t,e),e},o=function(t){return v.call(d,t)||{}},i=function(t){return b.call(d,t)}}else{var g=s("state");p[g]=!0,r=function(t,e){return f(t,g,e),e},o=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(25),o=n(26),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports=!1},function(t,e){t.exports={}},function(t,e,n){var r=n(44),o=n(29).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(0),o=n(7);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(20),o=n(41);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(43),o=n(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(5);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){var r=n(3).f,o=n(1),i=n(4)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,n){var r=n(1),o=n(23),i=n(19),a=n(56),c=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(10),o=n(75);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var r={};r[n(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(5),o=n(15),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(2),o=n(5),i=n(39);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(0),o=n(6),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){var r=n(41),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(0),o=n(24),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(1),o=n(61),i=n(13),a=n(3);t.exports=function(t,e){for(var n=o(e),c=a.f,u=i.f,f=0;f<n.length;f++){var l=n[f];r(t,l)||c(t,l,u(e,l))}}},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(1),o=n(9),i=n(62).indexOf,a=n(21);t.exports=function(t,e){var n,c=o(t),u=0,f=[];for(n in c)!r(a,n)&&r(c,n)&&f.push(n);for(;e.length>u;)r(c,n=e[u++])&&(~i(f,n)||f.push(n));return f}},function(t,e,n){var r=n(28),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(5),o=/#|\.prototype\./,i=function(t,e){var n=c[a(t)];return n==f||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(30);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(44),o=n(29);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(4);e.f=r},function(t,e,n){var r=n(43),o=n(1),i=n(51),a=n(3).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},function(t,e,n){"use strict";var r=n(9),o=n(73),i=n(32),a=n(18),c=n(54),u=a.set,f=a.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";var r=n(8),o=n(74),i=n(33),a=n(34),c=n(31),u=n(7),f=n(11),l=n(4),s=n(20),p=n(32),y=n(55),d=y.IteratorPrototype,v=y.BUGGY_SAFARI_ITERATORS,b=l("iterator"),h=function(){return this};t.exports=function(t,e,n,l,y,g,m){o(n,e,l);var x,S,O,k=function(t){if(t===y&&P)return P;if(!v&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},w=e+" Iterator",j=!1,_=t.prototype,E=_[b]||_["@@iterator"]||y&&_[y],P=!v&&E||k(y),T="Array"==e&&_.entries||E;if(T&&(x=i(T.call(new t)),d!==Object.prototype&&x.next&&(s||i(x)===d||(a?a(x,d):"function"!=typeof x[b]&&u(x,b,h)),c(x,w,!0,!0),s&&(p[w]=h))),"values"==y&&E&&"values"!==E.name&&(j=!0,P=function(){return E.call(this)}),s&&!m||_[b]===P||u(_,b,P),p[e]=P,y)if(S={values:k("values"),keys:g?P:k("keys"),entries:k("entries")},m)for(O in S)!v&&!j&&O in _||f(_,O,S[O]);else r({target:e,proto:!0,forced:v||j},S);return S}},function(t,e,n){"use strict";var r,o,i,a=n(33),c=n(7),u=n(1),f=n(4),l=n(20),s=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),l||u(r,s)||c(r,s,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(t,e,n){var r=n(5);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){"use strict";n(58),n(71),n(72),n(53),n(76),n(77),n(81),n(82),n(83),n(84),n(85),n(88),n(90),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(92),o=a(n(93)),i=a(n(94));function a(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="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})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var y=[{value:.5,label:"0.5x"},{value:.75,label:"0.75x"},{value:1,label:"Normal"},{value:1.5,label:"1.5x"},{value:2,label:"2x"}],d=function(t){function e(){return u(this,e),l(this,s(e).apply(this,arguments))}var n,a,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,t),n=e,(a=[{key:"bindEvents",value:function(){r.Events.CORE_ACTIVE_CONTAINER_CHANGED?this.listenTo(this.core,r.Events.CORE_ACTIVE_CONTAINER_CHANGED,this.reload):this.listenTo(this.core.mediaControl,r.Events.MEDIACONTROL_CONTAINERCHANGED,this.reload),this.listenTo(this.core.mediaControl,r.Events.MEDIACONTROL_RENDERED,this.render),this.listenTo(this.core.mediaControl,r.Events.MEDIACONTROL_HIDE,this.hideContextMenu)}},{key:"getExternalInterface",value:function(){return{getPlaybackRate:this.getSelectedRate,setPlaybackRate:this.setSelectedRate}}},{key:"reload",value:function(){this.stopListening(),this.bindEvents()}},{key:"shouldRender",value:function(){return this.container&&("video"===this.playback.tagName||"audio"===this.playback.tagName)}},{key:"render",value:function(){if(!this.shouldRender())return this;var t=this.core.options.playbackRateConfig||{};this.playbackRates=t.options||y,this.selectedRate=t.defaultValue||1,this.rateSuffix=t.rateSuffix||"x";var e=(0,r.template)(o.default)({playbackRates:this.playbackRates,title:this.getTitle()});this.$el.html(e);var n=r.Styler.getStyleFor(i.default,{baseUrl:this.core.options.baseUrl});return this.$el.append(n),this.core.mediaControl.$(".media-control-right-panel").append(this.el),this.updateText(),this}},{key:"onRateSelect",value:function(t){t.stopPropagation();var e=t.target.dataset.playbackRateSelect;return this.setSelectedRate(e),this.toggleContextMenu(),!1}},{key:"onShowMenu",value:function(){this.toggleContextMenu()}},{key:"toggleContextMenu",value:function(){this.$(".playback_rate ul").toggle()}},{key:"hideContextMenu",value:function(){this.$(".playback_rate ul").hide()}},{key:"toNumber",value:function(t){return t=Number(t),isNaN(t)?1:t}},{key:"setSelectedRate",value:function(t){t=this.toNumber(t),this.playback.el.playbackRate=t,this.selectedRate=t,this.updateText()}},{key:"getSelectedRate",value:function(){return this.selectedRate}},{key:"setActiveListItem",value:function(t){this.$("a").removeClass("active"),this.$('a[data-playback-rate-select="'.concat(t,'"]')).addClass("active")}},{key:"buttonElement",value:function(){return this.$(".playback_rate button")}},{key:"getTitle",value:function(){var t=this.selectedRate;for(var e in this.playbackRates)if(this.playbackRates[e].value==t)return this.playbackRates[e].label;return t+this.rateSuffix}},{key:"updateText",value:function(){this.buttonElement().text(this.getTitle()),this.setActiveListItem(this.selectedRate)}},{key:"name",get:function(){return"playback_rate"}},{key:"template",get:function(){return(0,r.template)(o.default)}},{key:"attributes",get:function(){return{class:this.name,"data-playback-rate-select":""}}},{key:"events",get:function(){return{"click [data-playback-rate-select]":"onRateSelect","click [data-playback-rate-button]":"onShowMenu"}}},{key:"container",get:function(){return this.core.activeContainer?this.core.activeContainer:this.core.mediaControl.container}},{key:"playback",get:function(){return this.core.activePlayback?this.core.activePlayback:this.core.getCurrentPlayback()}}])&&f(n.prototype,a),c&&f(n,c),e}(r.UICorePlugin);e.default=d},function(t,e,n){"use strict";var r=n(8),o=n(0),i=n(27),a=n(20),c=n(2),u=n(30),f=n(48),l=n(5),s=n(1),p=n(49),y=n(6),d=n(10),v=n(23),b=n(9),h=n(17),g=n(14),m=n(12),x=n(50),S=n(22),O=n(66),k=n(46),w=n(13),j=n(3),_=n(36),E=n(7),P=n(11),T=n(25),R=n(19),N=n(21),A=n(26),I=n(4),C=n(51),L=n(52),M=n(31),F=n(18),D=n(67).forEach,G=R("hidden"),V=I("toPrimitive"),U=F.set,$=F.getterFor("Symbol"),H=Object.prototype,z=o.Symbol,W=i("JSON","stringify"),Y=w.f,q=j.f,B=O.f,J=_.f,X=T("symbols"),K=T("op-symbols"),Q=T("string-to-symbol-registry"),Z=T("symbol-to-string-registry"),tt=T("wks"),et=o.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=c&&l((function(){return 7!=m(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(H,e);r&&delete H[e],q(t,e,n),r&&t!==H&&q(H,e,r)}:q,ot=function(t,e){var n=X[t]=m(z.prototype);return U(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},it=f?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof z},at=function(t,e,n){t===H&&at(K,e,n),d(t);var r=h(e,!0);return d(n),s(X,r)?(n.enumerable?(s(t,G)&&t[G][r]&&(t[G][r]=!1),n=m(n,{enumerable:g(0,!1)})):(s(t,G)||q(t,G,g(1,{})),t[G][r]=!0),rt(t,r,n)):q(t,r,n)},ct=function(t,e){d(t);var n=b(e),r=x(n).concat(st(n));return D(r,(function(e){c&&!ut.call(n,e)||at(t,e,n[e])})),t},ut=function(t){var e=h(t,!0),n=J.call(this,e);return!(this===H&&s(X,e)&&!s(K,e))&&(!(n||!s(this,e)||!s(X,e)||s(this,G)&&this[G][e])||n)},ft=function(t,e){var n=b(t),r=h(e,!0);if(n!==H||!s(X,r)||s(K,r)){var o=Y(n,r);return!o||!s(X,r)||s(n,G)&&n[G][r]||(o.enumerable=!0),o}},lt=function(t){var e=B(b(t)),n=[];return D(e,(function(t){s(X,t)||s(N,t)||n.push(t)})),n},st=function(t){var e=t===H,n=B(e?K:b(t)),r=[];return D(n,(function(t){!s(X,t)||e&&!s(H,t)||r.push(X[t])})),r};(u||(P((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=A(t),n=function(t){this===H&&n.call(K,t),s(this,G)&&s(this[G],e)&&(this[G][e]=!1),rt(this,e,g(1,t))};return c&&nt&&rt(H,e,{configurable:!0,set:n}),ot(e,t)}).prototype,"toString",(function(){return $(this).tag})),P(z,"withoutSetter",(function(t){return ot(A(t),t)})),_.f=ut,j.f=at,w.f=ft,S.f=O.f=lt,k.f=st,C.f=function(t){return ot(I(t),t)},c&&(q(z.prototype,"description",{configurable:!0,get:function(){return $(this).description}}),a||P(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:z}),D(x(tt),(function(t){L(t)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(s(Q,e))return Q[e];var n=z(e);return Q[e]=n,Z[n]=e,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(s(Z,t))return Z[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?m(t):ct(m(t),e)},defineProperty:at,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt,getOwnPropertySymbols:st}),r({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(t){return k.f(v(t))}}),W)&&r({target:"JSON",stat:!0,forced:!u||l((function(){var t=z();return"[null]"!=W([t])||"{}"!=W({a:t})||"{}"!=W(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(y(e)||void 0!==t)&&!it(t))return p(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!it(e))return e}),o[1]=e,W.apply(null,o)}});z.prototype[V]||E(z.prototype,V,z.prototype.valueOf),M(z,"Symbol"),N[G]=!0},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(0),o=n(40),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(27),o=n(22),i=n(46),a=n(10);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(9),o=n(45),i=n(63),a=function(t){return function(e,n,a){var c,u=r(e),f=o(u.length),l=i(a,f);if(t&&n!=n){for(;f>l;)if((c=u[l++])!=c)return!0}else for(;f>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var r=n(28),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r=n(2),o=n(3),i=n(10),a=n(50);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},function(t,e,n){var r=n(27);t.exports=r("document","documentElement")},function(t,e,n){var r=n(9),o=n(22).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(68),o=n(37),i=n(23),a=n(45),c=n(70),u=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,l=4==t,s=6==t,p=5==t||s;return function(y,d,v,b){for(var h,g,m=i(y),x=o(m),S=r(d,v,3),O=a(x.length),k=0,w=b||c,j=e?w(y,O):n?w(y,0):void 0;O>k;k++)if((p||k in x)&&(g=S(h=x[k],k,m),t))if(e)j[k]=g;else if(g)switch(t){case 3:return!0;case 5:return h;case 6:return k;case 2:u.call(j,h)}else if(l)return!1;return s?-1:f||l?l:j}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},function(t,e,n){var r=n(69);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(6),o=n(49),i=n(4)("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){"use strict";var r=n(8),o=n(2),i=n(0),a=n(1),c=n(6),u=n(3).f,f=n(42),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var s={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new l(t):void 0===t?l():l(t);return""===t&&(s[e]=!0),e};f(p,l);var y=p.prototype=l.prototype;y.constructor=p;var d=y.toString,v="Symbol(test)"==String(l("test")),b=/^Symbol\((.*)\)[^)]+$/;u(y,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=d.call(t);if(a(s,t))return"";var n=v?e.slice(7,-1):e.replace(b,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},function(t,e,n){n(52)("iterator")},function(t,e,n){var r=n(4),o=n(12),i=n(3),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},function(t,e,n){"use strict";var r=n(55).IteratorPrototype,o=n(12),i=n(14),a=n(31),c=n(32),u=function(){return this};t.exports=function(t,e,n){var f=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,f,!1,!0),c[f]=u,t}},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(2),o=n(3).f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;!r||"name"in i||o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(2),o=n(0),i=n(47),a=n(11),c=n(1),u=n(15),f=n(78),l=n(17),s=n(5),p=n(12),y=n(22).f,d=n(13).f,v=n(3).f,b=n(79).trim,h=o.Number,g=h.prototype,m="Number"==u(p(g)),x=function(t){var e,n,r,o,i,a,c,u,f=l(t,!1);if("string"==typeof f&&f.length>2)if(43===(e=(f=b(f)).charCodeAt(0))||45===e){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(a=(i=f.slice(2)).length,c=0;c<a;c++)if((u=i.charCodeAt(c))<48||u>o)return NaN;return parseInt(i,r)}return+f};if(i("Number",!h(" 0o1")||!h("0b1")||h("+0x1"))){for(var S,O=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof O&&(m?s((function(){g.valueOf.call(n)})):"Number"!=u(n))?f(new h(x(e)),n,O):x(e)},k=r?y(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;k.length>w;w++)c(h,S=k[w])&&!c(O,S)&&v(O,S,d(h,S));O.prototype=g,g.constructor=O,a(o,"Number",O)}},function(t,e,n){var r=n(6),o=n(34);t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},function(t,e,n){var r=n(16),o="["+n(80)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,n){n(8)({target:"Object",stat:!0,sham:!n(2)},{create:n(12)})},function(t,e,n){var r=n(8),o=n(2);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(3).f})},function(t,e,n){var r=n(8),o=n(5),i=n(23),a=n(33),c=n(56);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},function(t,e,n){n(8)({target:"Object",stat:!0},{setPrototypeOf:n(34)})},function(t,e,n){var r=n(35),o=n(11),i=n(86);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(35),o=n(87);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(35),o=n(15),i=n(4)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){"use strict";var r=n(89).charAt,o=n(18),i=n(54),a=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(28),o=n(16),i=function(t){return function(e,n){var i,a,c=String(o(e)),u=r(n),f=c.length;return u<0||u>=f?t?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===f||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){var r=n(0),o=n(91),i=n(53),a=n(7),c=n(4),u=c("iterator"),f=c("toStringTag"),l=i.values;for(var s in o){var p=r[s],y=p&&p.prototype;if(y){if(y[u]!==l)try{a(y,u,l)}catch(t){y[u]=l}if(y[f]||a(y,f,s),o[s])for(var d in i)if(y[d]!==i[d])try{a(y,d,i[d])}catch(t){y[d]=i[d]}}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,n){e.exports=t},function(t,e){t.exports='<button class="media-control-button media-control-icon" data-playback-rate-button>\n  <%= title %>\n</button>\n<ul>\n  <% for (var i = 0; i < playbackRates.length; i++) { %>\n    <li><a href="#" data-playback-rate-select="<%= playbackRates[i].value %>"><%= playbackRates[i].label %></a></li>\n  <% }; %>\n</ul>\n'},function(t,e,n){(e=n(95)(!1)).push([t.i,"button[data-playback-rate-button]{white-space:nowrap}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select]{float:right;margin-top:5px;position:relative}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select] button.media-control-button.media-control-icon{font-family:Roboto,\"Open Sans\",Arial,sans-serif;-webkit-font-smoothing:antialiased;font-size:12px;cursor:pointer;padding-top:10px;margin-right:10px}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select] button.media-control-button.media-control-icon:hover{color:#c9c9c9}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select] button.media-control-button.media-control-icon.changing{-webkit-animation:pulse 0.5s infinite alternate}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select]>ul{display:none;list-style-type:none;position:absolute;bottom:25px;border:1px solid black;border-radius:4px;background-color:rgba(0,0,0,0.7)}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select] li{position:relative;font-size:12px}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select] li[data-title]{padding:5px}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select] li a{color:#aaa;padding:2px 10px 2px 15px;display:block;text-decoration:none}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select] li a.active{background-color:#000;font-weight:bold;color:#fff}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select] li a.active:before{content:'\\2713';position:absolute;top:2px;left:4px}.media-control[data-media-control] .media-control-layer[data-controls] .playback_rate[data-playback-rate-select] li a:hover{color:#fff;text-decoration:none}@-webkit-keyframes pulse{0%{color:#fff}50%{color:#ff0101}100%{color:#B80000}}\n",""]),t.exports=e},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([o]).join("\n")}var a,c,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}}]).default}));
//# sourceMappingURL=clappr-playback-rate-plugin.min.js.map