rails-jwplayer 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +73 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/lib/assets/javascripts/rails-jwplayer.js +4 -0
  13. data/lib/rails/jwplayer/engine.rb +5 -0
  14. data/lib/rails/jwplayer/helper.rb +29 -0
  15. data/lib/rails/jwplayer/version.rb +5 -0
  16. data/lib/rails/jwplayer.rb +14 -0
  17. data/rails-jwplayer.gemspec +26 -0
  18. data/vendor/assets/javascripts/jwplayer/jw-icons.ttf +0 -0
  19. data/vendor/assets/javascripts/jwplayer/jw-icons.woff +0 -0
  20. data/vendor/assets/javascripts/jwplayer/jwplayer.flash.swf +0 -0
  21. data/vendor/assets/javascripts/jwplayer/jwplayer.js +7 -0
  22. data/vendor/assets/javascripts/jwplayer/jwplayer.loader.swf +0 -0
  23. data/vendor/assets/javascripts/jwplayer/polyfills.base64.js +1 -0
  24. data/vendor/assets/javascripts/jwplayer/polyfills.intersection-observer.js +1 -0
  25. data/vendor/assets/javascripts/jwplayer/polyfills.promise.js +1 -0
  26. data/vendor/assets/javascripts/jwplayer/polyfills.vttrenderer.js +1 -0
  27. data/vendor/assets/javascripts/jwplayer/provider.airplay.js +1 -0
  28. data/vendor/assets/javascripts/jwplayer/provider.cast.js +1 -0
  29. data/vendor/assets/javascripts/jwplayer/provider.flash.js +1 -0
  30. data/vendor/assets/javascripts/jwplayer/provider.hlsjs.js +8 -0
  31. data/vendor/assets/javascripts/jwplayer/provider.html5.js +1 -0
  32. data/vendor/assets/javascripts/jwplayer/provider.shaka.js +6 -0
  33. data/vendor/assets/javascripts/jwplayer/provider.youtube.js +1 -0
  34. data/vendor/assets/javascripts/jwplayer/skins/beelden.css +1 -0
  35. data/vendor/assets/javascripts/jwplayer/skins/bekle.css +1 -0
  36. data/vendor/assets/javascripts/jwplayer/skins/five.css +1 -0
  37. data/vendor/assets/javascripts/jwplayer/skins/glow.css +1 -0
  38. data/vendor/assets/javascripts/jwplayer/skins/roundster.css +1 -0
  39. data/vendor/assets/javascripts/jwplayer/skins/seven.css +1 -0
  40. data/vendor/assets/javascripts/jwplayer/skins/six.css +1 -0
  41. data/vendor/assets/javascripts/jwplayer/skins/stormtrooper.css +1 -0
  42. data/vendor/assets/javascripts/jwplayer/skins/vapor.css +1 -0
  43. data/vendor/assets/javascripts/jwplayer/vttparser.js +1 -0
  44. metadata +128 -0
@@ -0,0 +1 @@
1
+ webpackJsonpjwplayer([10],{55:function(r,o,t){var e,n;e=[],n=function(){function r(r){this.message=r}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.name="InvalidCharacterError",window.btoa||(window.btoa=function(t){for(var e,n,a=String(t),i=0,c=o,d="";a.charAt(0|i)||(c="=",i%1);d+=c.charAt(63&e>>8-i%1*8)){if(n=a.charCodeAt(i+=.75),n>255)throw new r("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");e=e<<8|n}return d}),window.atob||(window.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,a,i=0,c=0,d="";a=e.charAt(c++);~a&&(n=i%4?64*n+a:a,i++%4)?d+=String.fromCharCode(255&n>>(-2*i&6)):0)a=o.indexOf(a);return d})}.apply(o,e),!(void 0!==n&&(r.exports=n))}});
@@ -0,0 +1 @@
1
+ webpackJsonpjwplayer([12],{48:function(t,e){!function(t,e){"use strict";function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||u(),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?i/n:0}function o(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=r(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function i(){return t.performance&&performance.now&&performance.now()}function r(t,e){var n=null;return function(){n||(n=setTimeout(function(){t(),n=null},e))}}function s(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function h(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function c(t,e){var n=Math.max(t.top,e.top),o=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),r=Math.min(t.right,e.right),s=r-i,h=o-n;return s>=0&&h>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:h}}function a(t){var e=t.getBoundingClientRect();if(e)return e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e}function u(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}if(!("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)){var l=e.documentElement,p=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},o.prototype._parseRootMargin=function(t){var e=t||"0px",n=e.split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this._checkForIntersections(),this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,h(t,"resize",this._checkForIntersections,!0),h(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():u();this._observationTargets.forEach(function(o){var r=o.element,s=a(r),h=this._rootContainsTarget(r),c=o.entry,u=t&&h&&this._computeTargetAndRootIntersection(r,e),l=o.entry=new n({time:i(),target:r,boundingClientRect:s,rootBounds:e,intersectionRect:u});t&&h?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=t.getComputedStyle(e).display){for(var o=a(e),i=o,r=e.parentNode,s=!1;!s;){var h=null;if(r==this.root||1!=r.nodeType?(s=!0,h=n):"visible"!=t.getComputedStyle(r).overflow&&(h=a(r)),h&&(i=c(h,i),!i))break;r=r.parentNode}return i}},o.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},o.prototype._rootIsInDom=function(){return!this.root||l.contains(this.root)},o.prototype._rootContainsTarget=function(t){return(this.root||l).contains(t)},o.prototype._registerInstance=function(){p.indexOf(this)<0&&p.push(this)},o.prototype._unregisterInstance=function(){var t=p.indexOf(this);t!=-1&&p.splice(t,1)},t.IntersectionObserver=o,t.IntersectionObserverEntry=n}}(window,document)}});
@@ -0,0 +1 @@
1
+ webpackJsonpjwplayer([9],{56:function(t,n,e){var r,o;r=[e(1)],o=function(t){function n(t,n){return function(){t.apply(n,arguments)}}function e(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],f(t,n(o,this),n(i,this))}function r(t){var n=this;return null===this._state?void this._deferreds.push(t):void l(function(){var e=n._state?t.onFulfilled:t.onRejected;if(null===e)return void(n._state?t.resolve:t.reject)(n._value);var r;try{r=e(n._value)}catch(o){return void t.reject(o)}t.resolve(r)})}function o(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var e=t.then;if("function"==typeof e)return void f(n(e,t),n(o,this),n(i,this))}this._state=!0,this._value=t,c.call(this)}catch(r){i.call(this,r)}}function i(t){this._state=!1,this._value=t,c.call(this)}function c(){for(var t=0,n=this._deferreds.length;t<n;t++)r.call(this,this._deferreds[t]);this._deferreds=null}function u(t,n,e,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.resolve=e,this.reject=r}function f(t,n,e){var r=!1;try{t(function(t){r||(r=!0,n(t))},function(t){r||(r=!0,e(t))})}catch(o){if(r)return;r=!0,e(o)}}var l=t.defer,s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};e.prototype["catch"]=function(t){return this.then(null,t)},e.prototype.then=function(t,n){var o=this;return new e(function(e,i){r.call(o,new u(t,n,e,i))})},e.all=function(){var t=Array.prototype.slice.call(1===arguments.length&&s(arguments[0])?arguments[0]:arguments);return new e(function(n,e){function r(i,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var u=c.then;if("function"==typeof u)return void u.call(c,function(t){r(i,t)},e)}t[i]=c,0===--o&&n(t)}catch(f){e(f)}}if(0===t.length)return n([]);for(var o=t.length,i=0;i<t.length;i++)r(i,t[i])})},e.resolve=function(t){return t&&"object"==typeof t&&t.constructor===e?t:new e(function(n){n(t)})},e.reject=function(t){return new e(function(n,e){e(t)})},e.race=function(t){return new e(function(n,e){for(var r=0,o=t.length;r<o;r++)t[r].then(n,e)})},e._setImmediateFn=function(t){l=t},window.Promise||(window.Promise=e)}.apply(n,r),!(void 0!==o&&(t.exports=o))}});
@@ -0,0 +1 @@
1
+ webpackJsonpjwplayer([8],{57:function(t,e){!function(t){function e(t,e){return void 0===e&&(e=1),"rgba("+[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16),e].join(",")+")"}function i(t,i,r){switch(r){case"webvtt.font.color":case"webvtt.font.opacity":var n=Services.prefs.getCharPref("webvtt.font.color"),o=Services.prefs.getIntPref("webvtt.font.opacity")/100;m.fontSet=e(n,o);break;case"webvtt.font.scale":g=Services.prefs.getIntPref("webvtt.font.scale")/100;break;case"webvtt.bg.color":case"webvtt.bg.opacity":var a=Services.prefs.getCharPref("webvtt.bg.color"),s=Services.prefs.getIntPref("webvtt.bg.opacity")/100;m.backgroundSet=e(a,s);break;case"webvtt.edge.color":case"webvtt.edge.type":var l=["","0px 0px ","4px 4px 4px ","-2px -2px ","2px 2px "],h=Services.prefs.getIntPref("webvtt.edge.type"),c=Services.prefs.getCharPref("webvtt.edge.color");m.edgeSet=l[h]+e(c)}}function r(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function n(t){function e(t,e,i,r){return 3600*(0|t)+60*(0|e)+(0|i)+(0|r)/1e3}var i=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null}function o(){this.values=Object.create(null)}function a(t,e){function i(){function t(t){return e=e.substr(t.length),t}if(!e)return null;var i=e.match(/^([^<]*)(<[^>]+>?)?/);return t(i[1]?i[1]:i[2])}function r(t){return b[t]}function o(t){for(;v=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(v[0],r);return t}function a(t,e){return!S[e.localName]||S[e.localName]===t.localName}function s(e,i){var r=y[e];if(!r)return null;var n=t.document.createElement(r);n.localName=r;var o=w[e];return o&&i&&(n[o]=i.trim()),n}for(var l,h=t.document.createElement("div"),c=h,p=[];null!==(l=i());)if("<"!==l[0])c.appendChild(t.document.createTextNode(o(l)));else{if("/"===l[1]){p.length&&p[p.length-1]===l.substr(2).replace(">","")&&(p.pop(),c=c.parentNode);continue}var f,u=n(l.substr(1,l.length-2));if(u){f=t.document.createProcessingInstruction("timestamp",u),c.appendChild(f);continue}var v=l.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(f=s(v[1],v[3]),!f)continue;if(!a(c,f))continue;v[2]&&(f.className=v[2].substr(1).replace("."," ")),p.push(v[1]),c.appendChild(f),c=f}return h}function s(t){for(var e=0;e<x.length;e++){var i=x[e];if(t>=i[0]&&t<=i[1])return!0}return!1}function l(t){function e(t,e){for(var i=e.childNodes.length-1;i>=0;i--)t.push(e.childNodes[i])}function i(t){if(!t||!t.length)return null;var r=t.pop(),n=r.textContent||r.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(t.length=0,o[0]):n}return"ruby"===r.tagName?i(t):r.childNodes?(e(t,r),i(t)):void 0}var r,n=[],o="";if(!t||!t.childNodes)return"ltr";for(e(n,t);o=i(n);)for(var a=0;a<o.length;a++)if(r=o.charCodeAt(a),s(r))return"rtl";return"ltr"}function h(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,i=e.textTrackList,r=0,n=0;n<i.length&&i[n]!==e;n++)"showing"===i[n].mode&&r++;return++r*-1}function c(){}function p(t,e){var i="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",n="rgba(0, 0, 0, 0.8)",o="";"undefined"!=typeof m&&(r=m.fontSet,n=m.backgroundSet,o=m.edgeSet),i&&(r="rgb(255, 255, 255)",n="rgb(0, 0, 0)"),c.call(this),this.cue=e,this.cueDiv=a(t,e.text),this.cueDiv.className="jw-text-track-cue jw-reset";var s={textShadow:o,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};i||(s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=t.document.createElement("div"),s={textAlign:"middle"===e.align?"center":e.align,whiteSpace:"pre-line",position:"absolute"},i||(s.direction=l(this.cueDiv),s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s),this.div.appendChild(this.cueDiv);var h=0;switch(e.align){case"start":h=e.position;break;case"middle":h=e.position-e.size/2;break;case"end":h=e.position-e.size}h=Math.max(Math.min(100,h),0),""===e.vertical?this.applyStyles({left:this.formatStyle(h,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(h,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:"auto",width:this.formatStyle(t.width,"px")})}}function f(t){var e,i,r,n,o="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){i=t.div.offsetHeight,r=t.div.offsetWidth,n=t.div.offsetTop;var a=(a=t.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();t=t.div.getBoundingClientRect(),e=a?Math.max(a[0]&&a[0].height||0,t.height/a.length):0}this.left=t.left,this.right=t.right,this.top=t.top||n,this.height=t.height||i,this.bottom=t.bottom||n+(t.height||i),this.width=t.width||r,this.lineHeight=void 0!==e?e:t.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function u(t,e,i,r,n){function o(t,e){for(var n,o=new f(t),a=1,s=0;s<e.length;s++){for(;t.overlapsOppositeAxis(i,e[s])||t.within(i)&&t.overlapsAny(r);)t.move(e[s]);if(t.within(i))return t;var l=t.intersectPercentage(i);a>l&&(n=new f(t),a=l),t=new f(o)}return n||o}var a=new f(e),s=e.cue,l=h(s),c=[];if(s.snapToLines){var p;switch(s.vertical){case"":c=["+y","-y"],p="height";break;case"rl":c=["+x","-x"],p="width";break;case"lr":c=["-x","+x"],p="width"}var u=a.lineHeight,v=Math.floor(i[p]/u),l=Math.min(l,v-n),d=u*Math.round(l),g=i[p]+u,m=c[0];if(Math.abs(d)>g&&(d=d<0?-1:1,d*=Math.ceil(g/u)*u),l<0){d+=""===s.vertical?i.height:i.width;var b=n*u;d-=b,c=c.reverse()}a.move(m,d)}else{var y=a.lineHeight/i.height*100;switch(s.lineAlign){case"middle":l-=y/2;break;case"end":l-=y}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(l,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(l,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(l,"%")})}c=["+y","-x","+x","-y"],a=new f(e)}var w=o(a,c);e.move(w.toCSSCompatValues(i))}function v(){}var d=["webvtt.font.color","webvtt.font.opacity","webvtt.font.scale","webvtt.bg.color","webvtt.bg.opacity","webvtt.edge.color","webvtt.edge.type"],g=1;if("undefined"!=typeof Services){var m={};d.forEach(function(t){i(void 0,void 0,t),Services.prefs.addObserver(t,i,!1)})}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,i){for(var r=0;r<i.length;++r)if(e===i[r]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){var i;return!!((i=e.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(e=parseFloat(e),e>=0&&e<=100))&&(this.set(t,e),!0)}};var b={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},y={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},w={v:"title",lang:"lang"},S={rt:"ruby"},x=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];c.prototype.applyStyles=function(t,e){e=e||this.div;for(var i in t)t.hasOwnProperty(i)&&(e.style[i]=t[i])},c.prototype.formatStyle=function(t,e){return 0===t?0:t+e},p.prototype=Object.create(c.prototype),p.prototype.constructor=p,f.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},f.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},f.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},f.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},f.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},f.prototype.intersectPercentage=function(t){var e=Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left)),i=Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top)),r=e*i;return r/(this.height*this.width)},f.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},f.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,i=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,r=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t;var n={left:t.left,right:t.right,top:t.top||r,height:t.height||e,bottom:t.bottom||r+(t.height||e),width:t.width||i};return n},v.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},v.convertCueToDOMTree=function(t,e){return t&&e?a(t,e):null};var C="1.5%";v.processCues=function(t,e,i,r){function n(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}if(!t||!e||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);if(!e.length)return null;var o=t.document.createElement("div");if(o.className="jw-text-track-container jw-reset",o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin=C,i.appendChild(o),n(e)||r){var a=[],s=f.getSimpleBoxPosition(o);!function(){for(var i,r,n=0;n<e.length;n++){r=e[n],i=new p(t,r),i.div.className="jw-text-track-display jw-reset",o.appendChild(i.div);var l=r.text.split("\n").length;u(t,i,s,a,l),r.displayState=i.div,a.push(f.getSimpleBoxPosition(i))}}()}else for(var l=0;l<e.length;l++)o.appendChild(e[l].displayState)},t.WebVTT=v}(this)}});
@@ -0,0 +1 @@
1
+ webpackJsonpjwplayer([6],{69:function(e,t,a){var i,l;i=[a(2)],l=function(e){return function(t,a){function i(){a.set("castState",{available:a.get("castAvailable"),active:a.get("castActive")})}function l(t){t&&t.forEach(function(t){t.file=e.getAbsolutePath(t.file)})}function n(t){t&&(t.image=e.getAbsolutePath(t.image),l(t.allSources),l(t.sources))}function c(){o.removeEventListener("webkitplaybacktargetavailabilitychanged",u.updateAvailability),o.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",u.updateActive)}function r(){o.addEventListener("webkitplaybacktargetavailabilitychanged",u.updateAvailability),o.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",u.updateActive)}function s(){o=null,a.getVideo()&&(o=a.getVideo().video),o&&(c(),r()),u.updateAvailability({}),u.updateActive()}var o=null,u=this;u.updateAvailability=function(e){a.set("castAvailable","available"===e.availability),i()},u.updateActive=function(){var e=!1;o&&(e=!!o.webkitCurrentPlaybackTargetIsWireless),a.off("change:playlistItem",n),e&&(t.instreamDestroy(),n(a.get("playlistItem")),a.on("change:playlistItem",n)),a.set("airplayActive",e),a.set("castActive",e),i()},u.airplayToggle=function(){o&&o.webkitShowPlaybackTargetPicker()},s(a,a.getVideo()),a.on("itemReady",s)}}.apply(t,i),!(void 0!==l&&(e.exports=l))}});
@@ -0,0 +1 @@
1
+ webpackJsonpjwplayer([3],{71:function(e,t,n){var a,i;a=[n(76),n(177),n(176),n(175),n(4),n(5),n(2),n(1)],i=function(e,t,n,a,i,r,o,s){var c=a.loadApi(),u={};return function(e,a){function d(){var e=a.get("cast")||{};a.set("castState",{available:!1,active:!1,deviceName:""}),C&&(C.off(),C.reset()),C=new t(e.customAppId),C.on("castState",I),C.on("mediaUpdate",y),C.on("setPlaylist",f),C.updateCastState(),u[a.get("id")]=C;var i=a.chooseProvider;a.chooseProvider=function(e){return a.get("castActive")?n:i(e)}}function l(){}function m(){return a.getVideo()}function v(){a.changeVideoProvider(n),A=m(),A.setService(C)}function f(){C.setPlaylist(a),a.set("state",r.BUFFERING);var e=a.get("playlistItem");A.updateScreen("Connecting",e.image)}function g(){var t,n=a.get("castClicked")&&!C.getPlayerId();n&&C.setPlayerId(a.get("id")),L()&&(e.setFullscreen(!1),v(),C.addListeners(),t=C.getMedia(),t?C.loaded(t):f(),a.on("change:playlist",f))}function p(){var t=a.get("state"),n=t===r.COMPLETE,o=t===r.IDLE,c=t===r.ERROR,u=a.get("item"),d=a.get("playlist"),l=a.get("playlistItem");C.removeListeners(),A&&A.remove(),l&&c?(l=d[u+1],void 0===l?n=!0:(a.set("item",u+1),a.set("playlistItem",l))):l&&!n&&(l=s.extend({},l),l.starttime=l.start=a.get("position")||0),a.set("castActive",!1),a.set("castClicked",!1),a.resetProvider(),a.setProvider(l),a.off("change:playlist",f),l&&(n?(a.stopVideo(),e.trigger(i.JWPLAYER_PLAYLIST_COMPLETE,{})):o||a.loadVideo(l))}function E(e){e?g():A&&p()}function y(e){var t=e.field,n=e.value;if(A){"media"===t&&S(n);var a=A.castEventHandlers[t];a&&a(n)}}function S(e){var t,n=a.get("playlist");if(e.media){t=e.media.metadata;var i=n[t.index];s.isNumber(t.index)&&t.index!==a.get("item")&&(a.set("item",t.index),a.set("playlistItem",i),a.trigger("itemReady",i));var r=a.get("castState").deviceName,o=r?"Casting to "+r:"";A.updateScreen(o,i.image)}}function I(e){var t=a.get("castActive"),n=e.active;t!==n&&E(n),n=n&&L(),a.set("castAvailable",e.available),a.set("castActive",n),a.set("castState",{available:e.available,active:n,deviceName:e.deviceName})}function L(){return C.getPlayerId()===a.get("id")}var A=null,C=u[a.get("id")];c.then(d)["catch"](l),this.castToggle=o.noop}}.apply(t,a),!(void 0!==i&&(e.exports=i))},83:function(e,t,n){var a=n(8);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,i){return'<div class="jw-cast jw-reset jw-preview">\n <div class="jw-cast-container">\n <div class="jw-cast-text jw-reset">\n '+e.escapeExpression(e.lambda(null!=t?t.message:t,t))+"\n </div>\n </div>\n</div>\n"},useData:!0})},175:function(e,t,n){var a,i;a=[n(4),n(14),n(3),n(1)],i=function(e,t,n,a){function i(){return o?s:s=new Promise(function(n,a){var i="__onGCastApiAvailable";o=new t(c),o.addEventListener(e.ERROR,r),o.load(),window[i]=function(e){e?n(e):a()}})}function r(){o.resetEventListeners(),o=null}var o,s,c="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",u=a.extend({loadApi:i},n);return u}.apply(t,a),!(void 0!==i&&(e.exports=i))},176:function(e,t,n){var a,i;a=[n(2),n(83),n(4),n(3),n(5),n(11),n(1)],i=function(e,t,n,a,i,r,o){function s(n,a){var i=e.createElement(t({message:n}));return a&&(i.style.backgroundImage='url("'+a+'")'),i}var c=function(){var t,c,u=this;o.extend(u,a),u.setState=function(e){return r.setState.call(this,e)},u.destroy=function(){clearInterval(u.timeInterval)},u.supportsFullscreen=function(){return!1},u.setService=function(e){c=e,u._castingScreen=u.updateScreen()},u.setup=function(e){u.setState(i.BUFFERING),u.sendCommand("setup",e)},u.init=function(e){u.sendCommand("item",e)},u.load=function(e){u.init(e),u.play()},u.play=function(){u.sendCommand("play")},u.pause=function(){u.sendCommand("pause")},u.seek=function(e){u.trigger(n.JWPLAYER_MEDIA_SEEK,{position:u.getRemote("currentTime"),offset:e}),u.sendCommand("seek",e,function(){u.trigger(n.JWPLAYER_MEDIA_SEEKED)})},u.next=function(e){u.sendCommand("next",e)},u.volume=function(e){u.sendCommand("volume",e)},u.mute=function(e){u.sendCommand("mute",e)},u.sendCommand=function(e){if(c){var t=Array.prototype.slice.call(arguments,1);c[e]&&c[e].apply(c,t)}},u.getRemote=function(e){if(c){var t=c.getMedia();return t?"currentTime"===e?t.getEstimatedTime():t[e]||t.media&&t.media[e]:null}},u.updateScreen=function(e,n){t.innerHTML=s(e,n).outerHTML},u.setContainer=function(e){t=e,u._castingScreen&&e.appendChild(u._castingScreen)},u.getContainer=function(){return t},u.remove=function(){clearInterval(u.timeInterval),u._castingScreen&&t===u._castingScreen.parentNode&&t.removeChild(u._castingScreen),u._castingScreen=null},u.getDuration=function(){return u.getRemote("duration")||1/0},u.stop=u.setControls=u.setCurrentQuality=u.resize=u.seekDrag=u.setVisibility=e.noop,u.setFullScreen=u.getFullScreen=u.checkComplete=o.constant(!1),u.getCurrentQuality=o.constant(0),u.getQualityLevels=o.constant(["Auto"]),u.castEventHandlers={media:function(e){var t=u.getRemote("items"),n="IDLE"===e.playerState&&"FINISHED"===e.idleReason,a="IDLE"===e.playerState&&"ERROR"===e.idleReason,i=n&&!t;u.castEventHandlers.playerState(i?"complete":e.playerState),u.castEventHandlers.currentTime(),clearInterval(u.timeInterval),"PLAYING"===e.playerState?u.timeInterval=setInterval(u.castEventHandlers.currentTime,100):i?(u.setState("complete"),c.disconnect()):a&&(u.setState("error"),c.disconnect())},volume:function(e){u.trigger("volume",{volume:Math.round(100*e.volume)}),u.trigger("mute",{mute:e.isMute})},playerState:function(e){if(e&&i[e.toUpperCase()]){var t=e.toLowerCase();t!==i.IDLE&&t!==i.BUFFERING||u.trigger(n.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0,position:u.getRemote("currentTime"),duration:u.getDuration()}),u.setState(t)}},currentTime:function(){u.trigger(n.JWPLAYER_MEDIA_TIME,{position:u.getRemote("currentTime"),duration:u.getDuration()})},duration:function(){u.trigger(n.JWPLAYER_MEDIA_TIME,{position:u.getRemote("currentTime"),duration:u.getDuration()})},isPaused:function(e){e?u.setState(i.PAUSED):u.setState(i.PLAYING)}}};return c.prototype={getName:function(){return{name:"chromecast"}}},c}.apply(t,a),!(void 0!==i&&(e.exports=i))},177:function(e,t,n){var a,i;a=[n(3),n(2),n(1)],i=function(e,t,n){return function(t){function a(e,t){var a=function(e){var t=!n.size(e.mediaTypes)||!n.contains(e.mediaTypes,'video/webm; codecs="vp9"'),a=!n.size(e.drm)||n.any(e.drm,function(e,t){return"fairplay"!==t});return t&&a},o=e.allSources.slice(0).sort(function(e,t){return!e["default"]&&t["default"]?1:0}),s=n.find(o,a);if(s){var u=r(s.type),d=i(s.file),m=e.image?i(e.image):null,v=s.drm,f=new l.MediaInfo(d,u);return f.metadata=new l.GenericMediaMetadata,f.metadata.title=e.title,f.metadata.subtitle=e.description,f.metadata.index=t||0,f.metadata.playerId=c.getPlayerId(),m&&(f.metadata.images=[{url:m}]),v&&(f.customData={drm:v}),f}}function i(e){var t=document.createElement("a");return t.href=e,t.href}function r(e){switch(e){case"mp4":case"webm":return"video/"+e;case"mpd":case"dash":return"application/dash+xml";case"m3u8":case"hls":return"application/x-mpegURL";case"aac":return"audio/x-aac";case"mp3":return"audio/mpeg";default:return e}}function o(){var e=v.getCastState()!==m.NO_DEVICES_AVAILABLE,t="";f=v.getCurrentSession(),f&&(t=f.getCastDevice().friendlyName||t),c.trigger("castState",{available:e,active:!!f,deviceName:t})}function s(){var e=c.getMedia();e&&c.trigger("mediaUpdate",{field:"media",value:e})}var c=this,u=window.chrome,d=u.cast,l=d.media,m=window.cast.framework,v=m.CastContext.getInstance(),f=null,g=m.CastContextEventType.CAST_STATE_CHANGED,p=t||l.DEFAULT_MEDIA_RECEIVER_APP_ID;n.extend(c,e),v.removeEventListener(g,o),v.addEventListener(g,o),v.setOptions({receiverApplicationId:p,autoJoinPolicy:d.AutoJoinPolicy.ORIGIN_SCOPED}),c.updateCastState=o,c.setPlaylist=function(e){var t,i,r,o=e.get("playlist"),s=e.get("item"),d=e.get("position"),m=e.get("repeat");"complete"===e.get("state")&&(s=0,d=0),i=n.reduce(o,function(e,t,n){var i,r=a(t,n);return r&&(i=new l.QueueItem(r),r.metadata.index===s&&(i.startTime=d),e.push(i)),e},[]),t=new l.QueueLoadRequest(i),t.startIndex=s,m&&(t.repeatMode=u.cast.media.RepeatMode.ALL),r=f.getSessionObj(),r.queueLoad(t,c.loaded,c.error)},c.getPlayerId=function(){var e,t,n=c.getMedia();return n&&n.media?(e=n.media.metadata,e.playerId):f?(t=f.getSessionObj(),t.playerId):null},c.setPlayerId=function(e){var t;f&&(t=f.getSessionObj(),t.playerId=e)},c.loaded=function(e){if(c.trigger("mediaUpdate",{field:"volume",value:{volume:f.getVolume(),isMute:f.isMute()}}),f){var t=f.getSessionObj();t.addMediaListener(function(e){e.addUpdateListener(s)})}e.addUpdateListener(s)},c.addListeners=function(){var e;return f?(e=f.getSessionObj(),e.addUpdateListener(o),void f.addEventListener(m.SessionEventType.VOLUME_CHANGED,function(e){c.trigger("mediaUpdate",{field:"volume",value:e})})):null},c.reset=function(){c.removeListeners(),v&&v.removeEventListener(g,o)},c.removeListeners=function(){var e;return f?(e=f.getSessionObj(),e.removeUpdateListener(o),e.media.forEach(function(e){e.removeUpdateListener(s)}),void f.removeEventListener(m.SessionEventType.VOLUME_CHANGED)):null},c.getMedia=function(){if(f){var e=f.getSessionObj(),t=e.media;if(t&&t.length)return t[0]}return null},c.error=function(e){console.error("Error:",e),c.disconnect()},c.item=function(e){var t=c.getMedia();if(!t)return void c.trigger("setPlaylist");var i=a(e),r=n.find(t.items,function(e){return e.media.contentId===i.contentId&&e.media.index===i.index});r?t.queueJumpToItem(r.itemId):c.trigger("setPlaylist")},c.play=function(){var e=c.getMedia();e&&c.getMedia().play()},c.pause=function(){c.getMedia().pause()},c.next=function(){c.getMedia().queueNext()},c.disconnect=function(){f.endSession(!0)},c.seek=function(e,t){var n=new l.SeekRequest;n.currentTime=e,n.resumeState=l.ResumeState.PLAYBACK_START,c.getMedia().seek(n,t)},c.mute=function(e){f.setMute(e)},c.volume=function(e){f.setVolume(e/100)}}}.apply(t,a),!(void 0!==i&&(e.exports=i))}});
@@ -0,0 +1 @@
1
+ webpackJsonpjwplayer([5],{12:function(t,e,i){var n,a;n=[i(1),i(13),i(2),i(19),i(18)],a=function(t,e,i,n,a){function s(e){if(this._currentTextTrackIndex=-1,e){if(this._textTracks?(this._textTracks=t.reject(this._textTracks,function(t){if(this.renderNatively&&"nativecaptions"===t._id)return delete this._tracksById[t._id],!0},this),delete this._tracksById.nativemetadata):this._initTextTracks(),e.length){var n=0,s=e.length;for(n;n<s;n++){var r=e[n];if(!r._id){if("captions"===r.kind||"metadata"===r.kind){if(r._id="native"+r.kind,!r.label&&"captions"===r.kind){var c=a.createLabel(r,this._unknownCount);r.name=c.label,this._unknownCount=c.unknownCount}}else r._id=a.createId(r,this._textTracks.length);if(this._tracksById[r._id])continue;r.inuse=!0}if(r.inuse&&!this._tracksById[r._id])if("metadata"===r.kind)r.mode="hidden",r.oncuechange=L.bind(this),this._tracksById[r._id]=r;else if(p(r.kind)){var d,u=r.mode;if(r.mode="hidden",!r.cues.length&&r.embedded)continue;if(r.mode=u,this._cuesByTrackId[r._id]&&!this._cuesByTrackId[r._id].loaded){for(var o=this._cuesByTrackId[r._id].cues;d=o.shift();)y(this.renderNatively,r,d);r.mode=u,this._cuesByTrackId[r._id].loaded=!0}b.call(this,r)}}}this.renderNatively&&(this.textTrackChangeHandler=this.textTrackChangeHandler||v.bind(this),this.addTracksListener(this.video.textTracks,"change",this.textTrackChangeHandler),(i.isEdge()||i.isFF()||i.isSafari())&&(this.addTrackHandler=this.addTrackHandler||g.bind(this),this.addTracksListener(this.video.textTracks,"addtrack",this.addTrackHandler))),this._textTracks.length&&this.trigger("subtitlesTracks",{tracks:this._textTracks})}}function r(t){if(this.renderNatively){var e=t===this._itemTracks;e||n.cancelXhr(this._itemTracks),this._itemTracks=t,t&&(e||(this.disableTextTrack(),A.call(this),this.addTextTracks(t)))}}function c(){return this._currentTextTrackIndex}function d(e){this._textTracks&&(0===e&&t.each(this._textTracks,function(t){t.mode=t.embedded?"hidden":"disabled"}),this._currentTextTrackIndex!==e-1&&(this.disableTextTrack(),this._currentTextTrackIndex=e-1,this.renderNatively&&(this._textTracks[this._currentTextTrackIndex]&&(this._textTracks[this._currentTextTrackIndex].mode="showing"),this.trigger("subtitlesTrackChanged",{currentTrack:this._currentTextTrackIndex+1,tracks:this._textTracks}))))}function u(t){if(t.text&&t.begin&&t.end){var e=t.trackid.toString(),i=this._tracksById&&this._tracksById[e];i||(i={kind:"captions",_id:e,data:[]},this.addTextTracks([i]),this.trigger("subtitlesTracks",{tracks:this._textTracks}));var a;t.useDTS&&(i.source||(i.source=t.source||"mpegts")),a=t.begin+"_"+t.text;var s=this._metaCuesByTextTime[a];if(!s){s={begin:t.begin,end:t.end,text:t.text},this._metaCuesByTextTime[a]=s;var r=n.convertToVTTCues([s])[0];i.data.push(r)}}}function o(t){this._tracksById||this._initTextTracks();var e="native"+t.type,i=this._tracksById[e],n="captions"===t.type?"Unknown CC":"ID3 Metadata",a=t.cue;if(!i){var s={kind:t.type,_id:e,label:n,embedded:!0};i=I.call(this,s),this.renderNatively||"metadata"===i.kind?this.setTextTracks(this.video.textTracks):x.call(this,[i])}B.call(this,i,a)&&(this.renderNatively||"metadata"===i.kind?y(this.renderNatively,i,a):i.data.push(a))}function h(t){var e=this._tracksById[t.name];if(e){e.source=t.source;for(var i=t.captions||[],a=[],s=!1,r=0;r<i.length;r++){var c=i[r],d=t.name+"_"+c.begin+"_"+c.end;this._metaCuesByTextTime[d]||(this._metaCuesByTextTime[d]=c,a.push(c),s=!0)}s&&a.sort(function(t,e){return t.begin-e.begin});var u=n.convertToVTTCues(a);Array.prototype.push.apply(e.data,u)}}function l(t,e,i){t&&(T(t,e,i),this.instreamMode||(t.addEventListener?t.addEventListener(e,i):t["on"+e]=i))}function T(t,e,i){t&&(t.removeEventListener?t.removeEventListener(e,i):t["on"+e]=null)}function _(){n.cancelXhr(this._itemTracks);var t=this._tracksById&&this._tracksById.nativemetadata;(this.renderNatively||t)&&(E(this.renderNatively,this.video.textTracks),t&&(t.oncuechange=null)),this._itemTracks=null,this._textTracks=null,this._tracksById=null,this._cuesByTrackId=null,this._metaCuesByTextTime=null,this._unknownCount=0,this._activeCuePosition=null,this.renderNatively&&(this.removeTracksListener(this.video.textTracks,"change",this.textTrackChangeHandler),E(this.renderNatively,this.video.textTracks))}function k(){if(this._textTracks){var t=this._textTracks[this._currentTextTrackIndex];t&&(t.mode="disabled",(t.embedded||"nativecaptions"===t._id)&&(t.mode="hidden"))}}function f(){if(this._textTracks){var t=this._textTracks[this._currentTextTrackIndex];t&&(t.mode="showing")}}function v(){var e=this.video.textTracks,i=t.filter(e,function(t){return(t.inuse||!t._id)&&p(t.kind)});if(!this._textTracks||R.call(this,i))return void this.setTextTracks(e);for(var n=-1,a=0;a<this._textTracks.length;a++)if("showing"===this._textTracks[a].mode){n=a;break}n!==this._currentTextTrackIndex&&this.setSubtitlesTrack(n+1)}function g(){this.setTextTracks(this.video.textTracks)}function x(t){if(t){this._textTracks||this._initTextTracks();for(var e=0;e<t.length;e++){var i=t[e];if(!i.kind||p(i.kind)){var a=I.call(this,i);b.call(this,a),i.file&&(i.data=[],n.loadFile(i,this.addVTTCuesToTrack.bind(this,a),w))}}!this.renderNatively&&this._textTracks&&this._textTracks.length&&this.trigger("subtitlesTracks",{tracks:this._textTracks})}}function m(t,e){if(this.renderNatively){var i=this._tracksById[t._id];if(!i)return this._cuesByTrackId||(this._cuesByTrackId={}),void(this._cuesByTrackId[t._id]={cues:e,loaded:!1});if(!this._cuesByTrackId[t._id]||!this._cuesByTrackId[t._id].loaded){var n;for(this._cuesByTrackId[t._id]={cues:e,loaded:!0};n=e.shift();)y(this.renderNatively,i,n)}}}function y(t,e,n){if(!i.isIE()||!t||!window.TextTrackCue)return void e.addCue(n);var a=new window.TextTrackCue(n.startTime,n.endTime,n.text);e.addCue(a)}function E(e,n){n.length&&t.each(n,function(t){if(!(i.isIE()&&e&&/^(native|subtitle|cc)/.test(t._id))){t.mode="disabled",t.mode="hidden";for(var n=t.cues.length;n--;)t.removeCue(t.cues[n]);t.embedded||(t.mode="disabled"),t.inuse=!1}})}function p(t){return"subtitles"===t||"captions"===t}function C(){this._textTracks=[],this._tracksById={},this._metaCuesByTextTime={},this._cuesByTrackId={},this._cachedVTTCues={},this._unknownCount=0}function I(e){var i,n=a.createLabel(e,this._unknownCount),s=n.label;if(this._unknownCount=n.unknownCount,this.renderNatively||"metadata"===e.kind){var r=this.video.textTracks;i=t.findWhere(r,{label:s}),i?(i.kind=e.kind,i.language=e.language||""):i=this.video.addTextTrack(e.kind,s,e.language||""),i["default"]=e["default"],i.mode="disabled",i.inuse=!0}else i=e,i.data=i.data||[];return i._id||(i._id=a.createId(e,this._textTracks.length)),i}function b(t){this._textTracks.push(t),this._tracksById[t._id]=t}function A(){if(this._textTracks){var e=t.filter(this._textTracks,function(t){return t.embedded||"subs"===t.groupid});this._initTextTracks(),t.each(e,function(t){this._tracksById[t._id]=t}),this._textTracks=e}}function L(i){var n=i.currentTarget.activeCues;if(n&&n.length){var a=n[n.length-1].startTime;if(this._activeCuePosition!==a){var s=[];if(t.each(n,function(t){t.startTime<a||(t.data||t.value?s.push(t):t.text&&this.trigger("meta",{metadataTime:a,metadata:JSON.parse(t.text)}))},this),s.length){var r=e.parseID3(s);this.trigger("meta",{metadataTime:a,metadata:r})}this._activeCuePosition=a}}}function B(t,e){var i=t.kind;this._cachedVTTCues[t._id]||(this._cachedVTTCues[t._id]={});var n,a=this._cachedVTTCues[t._id];switch(i){case"captions":n=Math.floor(20*e.startTime);var s=Math.floor(20*e.endTime),r=a[n]||a[n+1]||a[n-1];return!(r&&Math.abs(r-s)<=1)&&(a[n]=s,!0);case"metadata":var c=e.data?new Uint8Array(e.data).join(""):e.text;return n=e.startTime+c,!a[n]&&(a[n]=e.endTime,!0)}}function R(t){if(t.length>this._textTracks.length)return!0;for(var e=0;e<t.length;e++){var i=t[e];if(!i._id||!this._tracksById[i._id])return!0}return!1}function w(t){i.log("CAPTIONS("+t+")")}var D={_itemTracks:null,_textTracks:null,_tracksById:null,_cuesByTrackId:null,_cachedVTTCues:null,_metaCuesByTextTime:null,_currentTextTrackIndex:-1,_unknownCount:0,_activeCuePosition:null,_initTextTracks:C,addTracksListener:l,clearTracks:_,disableTextTrack:k,enableTextTrack:f,getSubtitlesTrack:c,removeTracksListener:T,addTextTracks:x,setTextTracks:s,setupSideloadedTracks:r,setSubtitlesTrack:d,textTrackChangeHandler:null,addTrackHandler:null,addCuesToTrack:h,addCaptionsCue:u,addVTTCue:o,addVTTCuesToTrack:m,renderNatively:!1};return D}.apply(e,n),!(void 0!==a&&(t.exports=a))},58:function(t,e,i){var n,a;n=[i(2),i(1),i(4),i(5),i(62),i(11),i(3),i(12)],a=function(t,e,i,n,a,s,r,c){function d(t){return t+"_swf_"+h++}function u(e){var i=document.createElement("a");i.href=e.flashplayer;var n=i.host===window.location.host;return t.isChrome()&&!n}function o(o,h){function l(){E=setTimeout(function(){r.trigger.call(L,"flashBlocked")},4e3),x.once("embedded",function(){_(),r.trigger.call(L,"flashUnblocked")},L)}function T(){_(),l()}function _(){clearTimeout(E),window.removeEventListener("focus",T)}function k(e){for(var i=e.levels,n=0;n<i.length;n++){var a=i[n];a.index=n,"Auto"!==a.label&&(a.label=t.generateLabel(a,h.qualityLabels))}e.levels=C=f(e.levels),e.currentQuality=p=v(C,e.currentQuality)}function f(t){return t.sort(function(t,e){return t.height&&e.height?e.height-t.height:e.bitrate-t.bitrate})}function v(t,e){for(var i=0;i<t.length;i++)if(t[i].index===e)return i}var g,x,m,y=null,E=-1,p=-1,C=null,I=-1,b=null,A=!1,L=this,B=function(){return x&&x.__ready},R=function(){x&&x.triggerFlash.apply(x,arguments)};e.extend(this,r,c,{init:function(t){t.preload&&"none"!==t.preload&&!h.autostart&&(y=t)},load:function(t){y=t,this.setState(n.LOADING),R("load",t),t.sources.length&&"hls"!==t.sources[0].type&&this.sendMediaType(t.sources)},play:function(){R("play")},pause:function(){R("pause"),this.setState(n.PAUSED)},stop:function(){R("stop"),p=-1,y=null,this.clearTracks(),this.setState(n.IDLE)},seek:function(t){R("seek",t)},volume:function(t){if(e.isNumber(t)){var i=Math.min(Math.max(0,t),100);B()&&R("volume",i)}},mute:function(t){B()&&R("mute",t)},setState:function(){return s.setState.apply(this,arguments)},getSwfObject:function(t){var e=t.querySelector("object");return e?(e.off(null,null,this),e):a.embed(h.flashplayer,t,d(o),h.wmode)},getContainer:function(){return g},setContainer:function(t){if(g!==t){g=t,x=this.getSwfObject(t),document.hasFocus()?l():window.addEventListener("focus",T),x.once("ready",function(){_(),x.once("pluginsLoaded",function(){R("setupCommandQueue",x.__commandQueue),x.__commandQueue=[]});var t=e.extend({},h),n=x.triggerFlash("setup",t);n===x?x.__ready=!0:this.trigger(i.JWPLAYER_MEDIA_ERROR,n),y&&R("init",y)},this);var a=[i.JWPLAYER_MEDIA_ERROR,i.JWPLAYER_MEDIA_SEEK,i.JWPLAYER_MEDIA_SEEKED,"subtitlesTrackChanged","mediaType"],s=[i.JWPLAYER_MEDIA_BUFFER,i.JWPLAYER_MEDIA_TIME],c=[i.JWPLAYER_MEDIA_BUFFER_FULL];x.on([i.JWPLAYER_MEDIA_LEVELS,i.JWPLAYER_MEDIA_LEVEL_CHANGED].join(" "),function(t){k(t),this.trigger(t.type,t)},this),x.on(i.JWPLAYER_AUDIO_TRACKS,function(t){I=t.currentTrack,b=t.tracks,this.trigger(t.type,t)},this),x.on(i.JWPLAYER_AUDIO_TRACK_CHANGED,function(t){I=t.currentTrack,b=t.tracks,this.trigger(t.type,t)},this),x.on(i.JWPLAYER_PLAYER_STATE,function(t){var e=t.newstate;e!==n.IDLE&&this.setState(e)},this),x.on(s.join(" "),function(t){"Infinity"===t.duration&&(t.duration=1/0),this.trigger(t.type,t)},this),x.on(a.join(" "),function(t){this.trigger(t.type,t)},this),x.on(c.join(" "),function(t){this.trigger(t.type)},this),x.on(i.JWPLAYER_MEDIA_BEFORECOMPLETE,function(){this.trigger(i.JWPLAYER_MEDIA_COMPLETE)},this),x.on("visualQuality",function(t){var i=0;C.length>1&&(i=v(C,t.level.index+1)),t.level=e.extend(t.level,{index:i}),t.reason=t.reason||"api",this.trigger("visualQuality",t),this.trigger("providerFirstFrame",{})},this),x.on(i.JWPLAYER_PROVIDER_CHANGED,function(t){m=t.message,this.trigger(i.JWPLAYER_PROVIDER_CHANGED,t)},this),x.on(i.JWPLAYER_ERROR,function(t){this.trigger(i.JWPLAYER_MEDIA_ERROR,t)},this),x.on("subtitlesTracks",function(t){this.addTextTracks(t.tracks)},this),x.on("subtitlesTrackData",function(t){this.addCuesToTrack(t)},this),x.on(i.JWPLAYER_MEDIA_META,function(t){t&&(t.metadata&&"textdata"===t.metadata.type?this.addCaptionsCue(t.metadata):this.trigger(t.type,t))},this),u(h)&&x.on("throttle",function(t){_(),"resume"===t.state?r.trigger.call(L,"flashThrottle",t):E=setTimeout(function(){r.trigger.call(L,"flashThrottle",t)},250)},this)}},remove:function(){p=-1,C=null,a.remove(x)},setVisibility:function(t){t=!!t,g.style.opacity=t?1:0},resize:function(t,e,i){i&&R("stretch",i)},setControls:function(t){R("setControls",t)},setFullscreen:function(t){A=t,R("fullscreen",t)},getFullScreen:function(){return A},setCurrentQuality:function(t){R("setCurrentQuality",C[t].index)},getCurrentQuality:function(){return p},setSubtitlesTrack:function(t){R("setSubtitlesTrack",t)},getName:function(){return m?{name:"flash_"+m}:{name:"flash"}},getQualityLevels:function(){return C||y&&y.sources},getAudioTracks:function(){return b},getCurrentAudioTrack:function(){return I},setCurrentAudioTrack:function(t){R("setCurrentAudioTrack",t)},destroy:function(){_(),this.remove(),x&&(x.off(),x=null),g=null,y=null,this.off()}})}var h=0,l=function(){};return l.prototype=s,o.prototype=new l,o.getName=function(){return{name:"flash"}},o}.apply(e,n),!(void 0!==a&&(t.exports=a))}});