1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{2472:function(e,t,r){"use strict";r.r(t),r.d(t,{F:function(){return R},default:function(){return j}});var s,i,n=r(82061),o=r(2265),a=r(51163),l=r(58147),h=Object.create,p=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,f=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))y.call(e,i)||i===r||p(e,i,{get:()=>t[i],enumerable:!(s=u(t,i))||s.enumerable});return e},v=(e,t,r)=>(f(e,"symbol"!=typeof t?t+"":t,r),r),b={};((e,t)=>{for(var r in t)p(e,r,{get:t[r],enumerable:!0})})(b,{default:()=>_});var E=m(p({},"__esModule",{value:!0}),b),g=(s=null!=o?h(d(o)):{},m(o&&o.__esModule?s:p(s,"default",{value:o,enumerable:!0}),o)),P=a.u,S=l.p;let w="undefined"!=typeof navigator,L=w&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,O=w&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||L)&&!window.MSStream,A=w&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,M=/www\.dropbox\.com\/.+/,I=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/;class _ extends g.Component{constructor(){super(...arguments),v(this,"onReady",(...e)=>this.props.onReady(...e)),v(this,"onPlay",(...e)=>this.props.onPlay(...e)),v(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),v(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),v(this,"onPause",(...e)=>this.props.onPause(...e)),v(this,"onEnded",(...e)=>this.props.onEnded(...e)),v(this,"onError",(...e)=>this.props.onError(...e)),v(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),v(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),v(this,"onDisablePIP",e=>{let{onDisablePIP:t,playing:r}=this.props;t(e),r&&this.play()}),v(this,"onPresentationModeChange",e=>{if(this.player&&(0,P.supportsWebKitPresentationMode)(this.player)){let{webkitPresentationMode:t}=this.player;"picture-in-picture"===t?this.onEnablePIP(e):"inline"===t&&this.onDisablePIP(e)}}),v(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),v(this,"mute",()=>{this.player.muted=!0}),v(this,"unmute",()=>{this.player.muted=!1}),v(this,"renderSourceElement",(e,t)=>"string"==typeof e?g.default.createElement("source",{key:t,src:e}):g.default.createElement("source",{key:t,...e})),v(this,"renderTrack",(e,t)=>g.default.createElement("track",{key:t,...e})),v(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);let e=this.getSource(this.props.url);e&&(this.player.src=e),(O||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url===e.url||(0,P.isMediaStream)(this.props.url)||this.props.url instanceof Array||(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){let{url:t,playsinline:r}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),r&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return!e.config.forceVideo&&!e.config.attributes.poster&&(S.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}shouldUseHLS(e){return!!A&&!!this.props.config.forceSafariHLS||!!this.props.config.forceHLS||!O&&!this.props.config.forceDisableHls&&(S.HLS_EXTENSIONS.test(e)||I.test(e))}shouldUseDASH(e){return S.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return S.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){let{hlsVersion:t,hlsOptions:r,dashVersion:s,flvVersion:i}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,P.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js".replace("VERSION",t),"Hls").then(t=>{if(this.hls=new t(r),this.hls.on(t.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(t.Events.ERROR,(e,r)=>{this.props.onError(e,r,this.hls,t)}),I.test(e)){let t=e.match(I)[1];this.hls.loadSource("https://videodelivery.net/{id}/manifest/video.m3u8".replace("{id}",t))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,P.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",s),"dashjs").then(t=>{this.dash=t.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),3>
1parseInt(s)?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:t.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,P.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",i),"flvjs").then(t=>{this.flv=t.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(t.Events.ERROR,(e,r)=>{this.props.onError(e,r,this.flv,t)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,P.isMediaStream)(e))try{this.player.srcObject=e}catch(t){this.player.src=window.URL.createObjectURL(e)}}play(){let e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,P.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,P.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(e){this.props.onError(e)}}getDuration(){if(!this.player)return null;let{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;let{buffered:e}=this.player;if(0===e.length)return 0;let t=e.end(e.length-1),r=this.getDuration();return t>r?r:t}getSource(e){let t=this.shouldUseHLS(e),r=this.shouldUseDASH(e),s=this.shouldUseFLV(e);return e instanceof Array||(0,P.isMediaStream)(e)||t||r||s?void 0:M.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){let{url:e,playing:t,loop:r,controls:s,muted:i,config:n,width:o,height:a}=this.props,l=this.shouldUseAudio(this.props);return g.default.createElement(l?"audio":"video",{ref:this.ref,src:this.getSource(e),style:{width:"auto"===o?o:"100%",height:"auto"===a?a:"100%"},preload:"auto",autoPlay:t||void 0,controls:s,muted:i,loop:r,...n.attributes},e instanceof Array&&e.map(this.renderSourceElement),n.tracks.map(this.renderTrack))}}v(_,"displayName","FilePlayer"),v(_,"canPlay",S.canPlay.file);var j=(0,n.fm)(E),R=(i={__proto__:null,default:j},[E].forEach(function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach(function(t){if("default"!==t&&!(t in i)){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})}),Object.freeze(i))},7106:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return s(e,r)})}function n(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=s;var h,p,u=Array.isArray(r);return u!==Array.isArray(e)?s(r,l):u?l.arrayMerge(e,r,l):(p={},(h=l).isMergeableObject(e)&&n(e).forEach(function(t){p[t]=s(e[t],h)}),n(r).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&h.isMergeableObject(r[t])?p[t]=(function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a})(t,h)(e[t],r[t],h):p[t]=s(r[t],h))}),p)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})},e.exports=a},12451:function(e){function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}
1e.exports=function(e,r,s){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("script");"function"==typeof r&&(s=r,r={}),r=r||{},s=s||function(){},n.type=r.type||"text/javascript",n.charset=r.charset||"utf8",n.async=!("async"in r)||!!r.async,n.src=e,r.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(n,r.attrs),r.text&&(n.text=""+r.text),("onload"in n?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(n,s),n.onload||t(n,s),i.appendChild(n)}},65087:function(e,t,r){var s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})})(a,{AUDIO_EXTENSIONS:()=>w,DASH_EXTENSIONS:()=>A,FLV_EXTENSIONS:()=>M,HLS_EXTENSIONS:()=>O,MATCH_URL_DAILYMOTION:()=>E,MATCH_URL_FACEBOOK:()=>d,MATCH_URL_FACEBOOK_WATCH:()=>y,MATCH_URL_KALTURA:()=>S,MATCH_URL_MIXCLOUD:()=>g,MATCH_URL_MUX:()=>c,MATCH_URL_SOUNDCLOUD:()=>p,MATCH_URL_STREAMABLE:()=>f,MATCH_URL_TWITCH_CHANNEL:()=>b,MATCH_URL_TWITCH_VIDEO:()=>v,MATCH_URL_VIDYARD:()=>P,MATCH_URL_VIMEO:()=>u,MATCH_URL_WISTIA:()=>m,MATCH_URL_YOUTUBE:()=>h,VIDEO_EXTENSIONS:()=>L,canPlay:()=>_}),e.exports=((e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of n(t))o.call(e,r)||void 0===r||s(e,r,{get:()=>t[r],enumerable:!(a=i(t,r))||a.enumerable});return e})(s({},"__esModule",{value:!0}),a);var l=r(74117);let h=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,p=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,u=/vimeo\.com\/(?!progressive_redirect).+/,c=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,d=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,y=/^https?:\/\/fb\.watch\/.+$/,f=/streamable\.com\/([a-z0-9]+)$/,m=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,v=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,b=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,E=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,g=/mixcloud\.com\/([^/]+\/[^/]+)/,P=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,S=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,w=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,L=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,O=/\.(m3u8)($|\?)/i,A=/\.(mpd)($|\?)/i,M=/\.(flv)($|\?)/i,I=e=>{if(e instanceof Array){for(let t of e)if("string"==typeof t&&I(t)||I(t.src))return!0;return!1}return!!((0,l.isMediaStream)(e)||(0,l.isBlobUrl)(e))||w.test(e)||L.test(e)||O.test(e)||A.test(e)||M.test(e)},_={youtube:e=>e instanceof Array?e.every(e=>h.test(e)):h.test(e),soundcloud:e=>p.test(e)&&!w.test(e),vimeo:e=>u.test(e)&&!L.test(e)&&!O.test(e),mux:e=>c.test(e),facebook:e=>d.test(e)||y.test(e),streamable:e=>f.test(e),wistia:e=>m.test(e),twitch:e=>v.test(e)||b.test(e),dailymotion:e=>E.test(e),mixcloud:e=>g.test(e),vidyard:e=>P.test(e),kaltura:e=>S.test(e),file:I}},89737:function(e,t,r){var s,i,n=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,h=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,u=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))p.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(s=a(t,i))||s.enumerable});return e},d=(e,t,r)=>(u(e,"symbol"!=typeof t?t+"":t,r),r),y={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(y,{default:()=>L}),e.exports=c(o({},"__esModule",{value:!0}),y);var f=(i=null!=(s=r(2265))?n(h(s)):{},c(s&&s.__esModule?i:o(i,"default",{value:s,enumerable:!0}),s)),m=r(74117),v=r(65087);let b="undefined"!=typeof navigator,E=b&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,g=b&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||E)&&!window.MSStream,P
1=b&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,S=/www\.dropbox\.com\/.+/,w=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/;class L extends f.Component{constructor(){super(...arguments),d(this,"onReady",(...e)=>this.props.onReady(...e)),d(this,"onPlay",(...e)=>this.props.onPlay(...e)),d(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),d(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),d(this,"onPause",(...e)=>this.props.onPause(...e)),d(this,"onEnded",(...e)=>this.props.onEnded(...e)),d(this,"onError",(...e)=>this.props.onError(...e)),d(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),d(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),d(this,"onDisablePIP",e=>{let{onDisablePIP:t,playing:r}=this.props;t(e),r&&this.play()}),d(this,"onPresentationModeChange",e=>{if(this.player&&(0,m.supportsWebKitPresentationMode)(this.player)){let{webkitPresentationMode:t}=this.player;"picture-in-picture"===t?this.onEnablePIP(e):"inline"===t&&this.onDisablePIP(e)}}),d(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),d(this,"mute",()=>{this.player.muted=!0}),d(this,"unmute",()=>{this.player.muted=!1}),d(this,"renderSourceElement",(e,t)=>"string"==typeof e?f.default.createElement("source",{key:t,src:e}):f.default.createElement("source",{key:t,...e})),d(this,"renderTrack",(e,t)=>f.default.createElement("track",{key:t,...e})),d(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);let e=this.getSource(this.props.url);e&&(this.player.src=e),(g||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url===e.url||(0,m.isMediaStream)(this.props.url)||this.props.url instanceof Array||(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){let{url:t,playsinline:r}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),r&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return!e.config.forceVideo&&!e.config.attributes.poster&&(v.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}shouldUseHLS(e){return!!P&&!!this.props.config.forceSafariHLS||!!this.props.config.forceHLS||!g&&!this.props.config.forceDisableHls&&(v.HLS_EXTENSIONS.test(e)||w.test(e))}shouldUseDASH(e){return v.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return v.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){let{hlsVersion:t,hlsOptions:r,dashVersion:s,flvVersion:i}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,m.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js".replace("VERSION",t),"Hls").then(t=>{if(this.hls=new t(r),this.hls.on(t.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(t.Events.ERROR,(e,r)=>{this.props.onError(e,r,this.hls,t)}),w.test(e)){let t=e.match(w)[1];this.hls.loadSource("https://videodelivery.net/{id}/manifest/video.m3u8".replace("{id}",t))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,m.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",s),"dashjs").then(t=>{this.dash=t.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),3>
1parseInt(s)?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:t.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,m.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",i),"flvjs").then(t=>{this.flv=t.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(t.Events.ERROR,(e,r)=>{this.props.onError(e,r,this.flv,t)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,m.isMediaStream)(e))try{this.player.srcObject=e}catch(t){this.player.src=window.URL.createObjectURL(e)}}play(){let e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,m.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,m.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(e){this.props.onError(e)}}getDuration(){if(!this.player)return null;let{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;let{buffered:e}=this.player;if(0===e.length)return 0;let t=e.end(e.length-1),r=this.getDuration();return t>r?r:t}getSource(e){let t=this.shouldUseHLS(e),r=this.shouldUseDASH(e),s=this.shouldUseFLV(e);return e instanceof Array||(0,m.isMediaStream)(e)||t||r||s?void 0:S.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){let{url:e,playing:t,loop:r,controls:s,muted:i,config:n,width:o,height:a}=this.props,l=this.shouldUseAudio(this.props);return f.default.createElement(l?"audio":"video",{ref:this.ref,src:this.getSource(e),style:{width:"auto"===o?o:"100%",height:"auto"===a?a:"100%"},preload:"auto",autoPlay:t||void 0,controls:s,muted:i,loop:r,...n.attributes},e instanceof Array&&e.map(this.renderSourceElement),n.tracks.map(this.renderTrack))}}d(L,"displayName","FilePlayer"),d(L,"canPlay",v.canPlay.file)},74117:function(e,t,r){var s=Object.create,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||i(e,a,{get:()=>t[a],enumerable:!(s=n(t,a))||s.enumerable});return e},p=(e,t,r)=>(r=null!=e?s(a(e)):{},h(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),u={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(u,{callPlayer:()=>j,getConfig:()=>I,getSDK:()=>M,isBlobUrl:()=>k,isMediaStream:()=>R,lazy:()=>f,omit:()=>_,parseEndTime:()=>S,parseStartTime:()=>P,queryString:()=>L,randomString:()=>w,supportsWebKitPresentationMode:()=>U}),e.exports=h(i({},"__esModule",{value:!0}),u);var c=p(r(2265)),d=p(r(12451)),y=p(r(7106));let f=e=>c.default.lazy(async()=>{let t=await e();return"function"==typeof t.default?t:t.default}),m=/[?&#](?:start|t)=([0-9hms]+)/,v=/[?&#]end=([0-9hms]+)/,b=/(\d+)(h|m|s)/g,E=/^\d+$/;function g(e,t){if(e instanceof Array)return;let r=e.match(t);if(r){let e=r[1];if(e.match(b))return function(e){let t=0,r=b.exec(e);for(;null!==r;){let[,s,i]=r;"h"===i&&(t+=3600*parseInt(s,10)),"m"===i&&(t+=60*parseInt(s,10)),"s"===i&&(t+=parseInt(s,10)),r=b.exec(e)}return t}(e);if(E.test(e))return parseInt(e)}}function P(e){return g(e,m)}function S(e){return g(e,v)}function w(){return Math.random().toString(36).substr(2,5)}function L(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function O(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}let A={},M=function(e,t,r=null,s=()=>!0,i=d.default){let n=O(t);return n&&s(n)?Promise.resolve(n):new Promise((s,n)=>{if(A[e]){A[e].push({resolve:s,reject:n});return}A[e]=[{resolve:s,reject:n}];let o=t=>
1{A[e].forEach(e=>e.resolve(t))};if(r){let e=window[r];window[r]=function(){e&&e(),o(O(t))}}i(e,s=>{s?(A[e].forEach(e=>e.reject(s)),A[e]=null):r||o(O(t))})})};function I(e,t){return(0,y.default)(t.config,e.config)}function _(e,...t){let r=[].concat(...t),s={};for(let t of Object.keys(e))-1===r.indexOf(t)&&(s[t]=e[t]);return s}function j(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function R(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream}function k(e){return/^blob:/.test(e)}function U(e=document.createElement("video")){let t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.