PageSourceSearch

https://www.sonepar.fr/catalog/_next/static/chunks/reactPlayerFilePlayer.a589ffde9165e29e.js

js sonepar.fr collected 2026-09-28 08:39:46 UTC 32,944 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7458],{19908:(e,t,r)=>{var s=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||n(e,a,{get:()=>t[a],enumerable:!(s=i(t,a))||s.enumerable});return e},c=(e,t,r)=>(r=null!=e?s(a(e)):{},u(!t&&e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(h,{callPlayer:()=>j,getConfig:()=>_,getSDK:()=>M,isBlobUrl:()=>R,isMediaStream:()=>T,lazy:()=>y,omit:()=>I,parseEndTime:()=>P,parseStartTime:()=>w,queryString:()=>O,randomString:()=>S,supportsWebKitPresentationMode:()=>U}),e.exports=u(n({},"__esModule",{value:!0}),h);var p=c(r(60004)),d=c(r(25847)),f=c(r(91798));let y=e=>p.default.lazy(async()=>{let t=await e();return"function"==typeof t.default?t:t.default}),m=/[?&#](?:start|t)=([0-9hms]+)/,b=/[?&#]end=([0-9hms]+)/,v=/(\d+)(h|m|s)/g,g=/^\d+$/;function E(e,t){if(e instanceof Array)return;let r=e.match(t);if(r){let e=r[1];if(e.match(v)){var s=e;let t=0,r=v.exec(s);for(;null!==r;){let[,e,n]=r;"h"===n&&(t+=60*parseInt(e,10)*60),"m"===n&&(t+=60*parseInt(e,10)),"s"===n&&(t+=parseInt(e,10)),r=v.exec(s)}return t}if(g.test(e))return parseInt(e)}}function w(e){return E(e,m)}function P(e){return E(e,b)}function S(){return Math.random().toString(36).substr(2,5)}function O(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function L(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,n=d.default){let i=L(t);return i&&s(i)?Promise.resolve(i):new Promise((s,i)=>{if(A[e])return void A[e].push({resolve:s,reject:i});A[e]=[{resolve:s,reject:i}];let o=t=>{A[e].forEach(e=>e.resolve(t))};if(r){let e=window[r];window[r]=function(){e&&e(),o(L(t))}}n(e,s=>{s?(A[e].forEach(e=>e.reject(s)),A[e]=null):r||o(L(t))})})};function _(e,t){return(0,f.default)(t.config,e.config)}function I(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 T(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream}function R(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}},25847: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)}}e.exports=function(e,r,s){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");"function"==typeof r&&(s=r,r={}),s=s||function(){},i.type=(r=r||{}).type||"text/javascript",i.charset=r.charset||"utf8",i.async=!("async"in r)||!!r.async,i.src=e,r.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(i,r.attrs),r.text&&(i.text=""+r.text),("onload"in i?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(i,s),i.onload||t(i,s),n.appendChild(i)}},32498:(e,t,r)=>{"use strict";r.d(t,{q:()=>a});var s=r(57082),n=r(77852),i=(0,s.Ft)((e,t)=>{t.exports=function(e,t,s){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");"function"==typeof t&&(s=t,t={}),s||=function(){},i.type=(t||={}).type||"text/javascript",i.charset=t.charset||"utf8",i.async=!("async"in t)||!!t.async,i.src=e,t.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(i,t.attrs),t.text&&(i.text=""+t.text),("onload"in i?r:function(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}})(i,s),i.onload||r(i,s),n.appendChild(i)};function r(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)}}});i();var o=r(59899),a=(0,s.Ft)((e,t)=>{var r=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===r||s(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},p=(e,t,n)=>(n=null==e?{}
1:r(u(e)),h(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})})(d,{callPlayer:()=>R,getConfig:()=>j,getSDK:()=>I,isBlobUrl:()=>k,isMediaStream:()=>U,lazy:()=>b,omit:()=>T,parseEndTime:()=>O,parseStartTime:()=>S,queryString:()=>A,randomString:()=>L,supportsWebKitPresentationMode:()=>N}),t.exports=h(s({},"__esModule",{value:!0}),d);var f=p((0,n.W)()),y=p(i()),m=p((0,o.H)()),b=e=>f.default.lazy(async()=>{let t=await e();return"function"==typeof t.default?t:t.default}),v=/[?&#](?:start|t)=([0-9hms]+)/,g=/[?&#]end=([0-9hms]+)/,E=/(\d+)(h|m|s)/g,w=/^\d+$/;function P(e,t){if(e instanceof Array)return;let r=e.match(t);if(r){let e=r[1];if(e.match(E)){var s=e;let t=0,r=E.exec(s);for(;null!==r;){let[,e,n]=r;"h"===n&&(t+=60*parseInt(e,10)*60),"m"===n&&(t+=60*parseInt(e,10)),"s"===n&&(t+=parseInt(e,10)),r=E.exec(s)}return t}if(w.test(e))return parseInt(e)}}function S(e){return P(e,v)}function O(e){return P(e,g)}function L(){return Math.random().toString(36).substr(2,5)}function A(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function M(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}var _={},I=function(e,t,r=null,s=()=>!0,n=y.default){let i=M(t);return i&&s(i)?Promise.resolve(i):new Promise((s,i)=>{if(_[e])return void _[e].push({resolve:s,reject:i});_[e]=[{resolve:s,reject:i}];let o=t=>{_[e].forEach(e=>e.resolve(t))};if(r){let e=window[r];window[r]=function(){e&&e(),o(M(t))}}n(e,s=>{s?(_[e].forEach(e=>e.reject(s)),_[e]=null):r||o(M(t))})})};function j(e,t){return(0,m.default)(t.config,e.config)}function T(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 R(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 U(e){return"u">typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream}function k(e){return/^blob:/.test(e)}function N(e=document.createElement("video")){let t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}});a()},38690:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(57082),n=r(77852),i=r(32498),o=r(99169);let a=(0,s.Ft)((e,t)=>{var r=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===r||s(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},p=(e,t,r)=>(((e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"==typeof t?t:t+"",r),r),d={};((e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})})(d,{default:()=>S}),t.exports=h(s({},"__esModule",{value:!0}),d);var f=((e,t,n)=>(n=null==e?{}:r(u(e)),h(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)))((0,n.W)()),y=(0,i.q)(),m=(0,o.K)(),b="u">typeof navigator,v=b&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,g=b&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||v)&&!window.MSStream,E=b&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,w=/www\.dropbox\.com\/.+/,P=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,S=class extends f.Component{constructor(){super(...arguments),p(this,"onReady",(...e)=>this.props.onReady(...e)),p(this,"onPlay",(...e)=>this.props.onPlay(...e)),p(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),p(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),p(this,"onPause",(...e)=>this.props.onPause(...e)),p(this,"onEnded",(...e)=>this.props.onEnded(...e)),p(this,"onError",(...e)=>this.props.onError(...e)),p(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),p(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),p(this,"onDisablePIP",e=>{let{onDisablePIP:t,playing:r}=this.props;t(e),r&&this.play()}),p(this,"onPresentationModeChange",e=>
1{if(this.player&&(0,y.supportsWebKitPresentationMode)(this.player)){let{webkitPresentationMode:t}=this.player;"picture-in-picture"===t?this.onEnablePIP(e):"inline"===t&&this.onDisablePIP(e)}}),p(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),p(this,"mute",()=>{this.player.muted=!0}),p(this,"unmute",()=>{this.player.muted=!1}),p(this,"renderSourceElement",(e,t)=>"string"==typeof e?f.default.createElement("source",{key:t,src:e}):f.default.createElement("source",{key:t,...e})),p(this,"renderTrack",(e,t)=>f.default.createElement("track",{key:t,...e})),p(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,y.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&&(m.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}shouldUseHLS(e){return!!E&&!!this.props.config.forceSafariHLS||!!this.props.config.forceHLS||!g&&!this.props.config.forceDisableHls&&(m.HLS_EXTENSIONS.test(e)||P.test(e))}shouldUseDASH(e){return m.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return m.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){let{hlsVersion:t,hlsOptions:r,dashVersion:s,flvVersion:n}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,y.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)}),P.test(e)){let t=e.match(P)[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,y.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,y.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",n),"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,y.isMediaStream)(e))try{this.player.srcObject=e}catch{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,y.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,y.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);if(!(e instanceof Array||(0,y.isMediaStream)(e)||t||r||s))return w.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){let{url:e,playing:t,loop:r,controls:s,muted:n,config:i,width:o,height:a}=this.props,l=this.shouldUseAudio(this.props)?"audio":"video";return f.default.createElement(l,{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:n,loop:r,...i.attributes},e instanceof Array&&e.map(this.renderSourceElement),i.tracks.map(this.renderTrack))}};p(S,"displayName","FilePlayer"),p(S,"canPlay",m.canPlay.file)})()},59899:(e,t,r)=>{"use strict";r.d(t,{H:()=>s});var s=(0,r(57082).Ft)((e,t)=>{var r=function(e){var t,r,n;return!!(t=e)&&"object"==typeof t&&(r=e,"[object RegExp]"!==(n=Object.prototype.toString.call(r))&&"[object Date]"!==n&&r.$$typeof!==s)},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch{return!1}}function l(e,t,s){(s||={}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||r,s.cloneUnlessOtherwiseSpecified=n;var u,c,h=Array.isArray(t);return h===Array.isArray(e)?h?s.arrayMerge(e,t,s):(c={},(u=s).isMergeableObject(e)&&o(e).forEach(function(t){c[t]=n(e[t],u)}),o(t).forEach(function(r){a(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))||(a(e,r)&&u.isMergeableObject(t[r])?c[r]=(function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l})(r,u)(e[r],t[r],u):c[r]=n(t[r],u))}),c):n(t,s)}l.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return l(e,r,t)},{})},t.exports=l});s()},66308:(e,t,r)=>{var s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};((e,t)=>
1{for(var r in t)s(e,r,{get:t[r],enumerable:!0})})(a,{AUDIO_EXTENSIONS:()=>S,DASH_EXTENSIONS:()=>A,FLV_EXTENSIONS:()=>M,HLS_EXTENSIONS:()=>L,MATCH_URL_DAILYMOTION:()=>g,MATCH_URL_FACEBOOK:()=>d,MATCH_URL_FACEBOOK_WATCH:()=>f,MATCH_URL_KALTURA:()=>P,MATCH_URL_MIXCLOUD:()=>E,MATCH_URL_MUX:()=>p,MATCH_URL_SOUNDCLOUD:()=>c,MATCH_URL_STREAMABLE:()=>y,MATCH_URL_TWITCH_CHANNEL:()=>v,MATCH_URL_TWITCH_VIDEO:()=>b,MATCH_URL_VIDYARD:()=>w,MATCH_URL_VIMEO:()=>h,MATCH_URL_WISTIA:()=>m,MATCH_URL_YOUTUBE:()=>u,VIDEO_EXTENSIONS:()=>O,canPlay:()=>I}),e.exports=((e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))o.call(e,l)||l===r||s(e,l,{get:()=>t[l],enumerable:!(a=n(t,l))||a.enumerable});return e})(s({},"__esModule",{value:!0}),a);var l=r(19908);let u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,c=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,h=/vimeo\.com\/(?!progressive_redirect).+/,p=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,d=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,f=/^https?:\/\/fb\.watch\/.+$/,y=/streamable\.com\/([a-z0-9]+)$/,m=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,b=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,v=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,g=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,E=/mixcloud\.com\/([^/]+\/[^/]+)/,w=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,P=/^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-_].*)$/,S=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,O=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,L=/\.(m3u8)($|\?)/i,A=/\.(mpd)($|\?)/i,M=/\.(flv)($|\?)/i,_=e=>{if(e instanceof Array){for(let t of e)if("string"==typeof t&&_(t)||_(t.src))return!0;return!1}return!!((0,l.isMediaStream)(e)||(0,l.isBlobUrl)(e))||S.test(e)||O.test(e)||L.test(e)||A.test(e)||M.test(e)},I={youtube:e=>e instanceof Array?e.every(e=>u.test(e)):u.test(e),soundcloud:e=>c.test(e)&&!S.test(e),vimeo:e=>h.test(e)&&!O.test(e)&&!L.test(e),mux:e=>p.test(e),facebook:e=>d.test(e)||f.test(e),streamable:e=>y.test(e),wistia:e=>m.test(e),twitch:e=>b.test(e)||v.test(e),dailymotion:e=>g.test(e),mixcloud:e=>E.test(e),vidyard:e=>w.test(e),kaltura:e=>P.test(e),file:_}},69567:(e,t,r)=>{var s=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||n(e,a,{get:()=>t[a],enumerable:!(s=i(t,a))||s.enumerable});return e},c=(e,t,r)=>(((e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),r),h={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(h,{default:()=>w}),e.exports=u(n({},"__esModule",{value:!0}),h);var p=((e,t,r)=>(r=null!=e?s(a(e)):{},u(!t&&e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)))(r(60004)),d=r(19908),f=r(66308);let y="undefined"!=typeof navigator,m=y&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,b=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||m)&&!window.MSStream,v=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,g=/www\.dropbox\.com\/.+/,E=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/;class w extends p.Component{constructor(){super(...arguments),c(this,"onReady",(...e)=>this.props.onReady(...e)),c(this,"onPlay",(...e)=>this.props.onPlay(...e)),c(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),c(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),c(this,"onPause",(...e)=>this.props.onPause(...e)),c(this,"onEnded",(...e)=>this.props.onEnded(...e)),c(this,"onError",(...e)=>this.props.onError(...e)),c(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),c(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),c(this,"onDisablePIP",e=>{let{onDisablePIP:t,playing:r}=this.props;t(e),r&&this.play()}),c(this,"onPresentationModeChange",e=>
1{if(this.player&&(0,d.supportsWebKitPresentationMode)(this.player)){let{webkitPresentationMode:t}=this.player;"picture-in-picture"===t?this.onEnablePIP(e):"inline"===t&&this.onDisablePIP(e)}}),c(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),c(this,"mute",()=>{this.player.muted=!0}),c(this,"unmute",()=>{this.player.muted=!1}),c(this,"renderSourceElement",(e,t)=>"string"==typeof e?p.default.createElement("source",{key:t,src:e}):p.default.createElement("source",{key:t,...e})),c(this,"renderTrack",(e,t)=>p.default.createElement("track",{key:t,...e})),c(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),(b||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,d.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&&(f.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}shouldUseHLS(e){return!!v&&!!this.props.config.forceSafariHLS||!!this.props.config.forceHLS||!b&&!this.props.config.forceDisableHls&&(f.HLS_EXTENSIONS.test(e)||E.test(e))}shouldUseDASH(e){return f.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return f.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){let{hlsVersion:t,hlsOptions:r,dashVersion:s,flvVersion:n}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,d.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)}),E.test(e)){let t=e.match(E)[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,d.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,d.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",n),"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,d.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,d.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,d.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);if(!(e instanceof Array||(0,d.isMediaStream)(e))&&!t&&!r&&!s)return g.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){let{url:e,playing:t,loop:r,controls:s,muted:n,config:i,width:o,height:a}=this.props,l=this.shouldUseAudio(this.props);return p.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:n,loop:r,...i.attributes},e instanceof Array&&e.map(this.renderSourceElement),i.tracks.map(this.renderTrack))}}c(w,"displayName","FilePlayer"),c(w,"canPlay",f.canPlay.file)},91798:e=>{"use strict";var t=function(e){var t,s,n;return!!(t=e)&&"object"==typeof t&&(s=e,"[object RegExp]"!==(n=Object.prototype.toString.call(s))&&"[object Date]"!==n&&s.$$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 n(e,t,r){return e.concat(t).map(function(e){return s(e,r)})}function i(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||n,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=s;var u,c,h=Array.isArray(r);return h!==Array.isArray(e)?s(r,l):h?l.arrayMerge(e,r,l):(c={},(u=l).isMergeableObject(e)&&i(e).forEach(function(t){c[t]=s(e[t],u)}),i(r).forEach(function(t){o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))||(o(e,t)&&u.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a})(t,u)(e[t],r[t],u):c[t]=s(r[t],u))}),c)}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},99169:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});var s=r(57082),n=r(32498),i=(0,s.Ft)((e,t)=>{var r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};((e,t)=>
1{for(var s in t)r(e,s,{get:t[s],enumerable:!0})})(a,{AUDIO_EXTENSIONS:()=>S,DASH_EXTENSIONS:()=>A,FLV_EXTENSIONS:()=>M,HLS_EXTENSIONS:()=>L,MATCH_URL_DAILYMOTION:()=>g,MATCH_URL_FACEBOOK:()=>d,MATCH_URL_FACEBOOK_WATCH:()=>f,MATCH_URL_KALTURA:()=>P,MATCH_URL_MIXCLOUD:()=>E,MATCH_URL_MUX:()=>p,MATCH_URL_SOUNDCLOUD:()=>c,MATCH_URL_STREAMABLE:()=>y,MATCH_URL_TWITCH_CHANNEL:()=>v,MATCH_URL_TWITCH_VIDEO:()=>b,MATCH_URL_VIDYARD:()=>w,MATCH_URL_VIMEO:()=>h,MATCH_URL_WISTIA:()=>m,MATCH_URL_YOUTUBE:()=>u,VIDEO_EXTENSIONS:()=>O,canPlay:()=>I}),t.exports=((e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))o.call(e,l)||l===n||r(e,l,{get:()=>t[l],enumerable:!(a=s(t,l))||a.enumerable});return e})(r({},"__esModule",{value:!0}),a);var l=(0,n.q)(),u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,c=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,h=/vimeo\.com\/(?!progressive_redirect).+/,p=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,d=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,f=/^https?:\/\/fb\.watch\/.+$/,y=/streamable\.com\/([a-z0-9]+)$/,m=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,b=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,v=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,g=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,E=/mixcloud\.com\/([^/]+\/[^/]+)/,w=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,P=/^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-_].*)$/,S=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,O=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,L=/\.(m3u8)($|\?)/i,A=/\.(mpd)($|\?)/i,M=/\.(flv)($|\?)/i,_=e=>{if(e instanceof Array){for(let t of e)if("string"==typeof t&&_(t)||_(t.src))return!0;return!1}return!!((0,l.isMediaStream)(e)||(0,l.isBlobUrl)(e))||S.test(e)||O.test(e)||L.test(e)||A.test(e)||M.test(e)},I={youtube:e=>e instanceof Array?e.every(e=>u.test(e)):u.test(e),soundcloud:e=>c.test(e)&&!S.test(e),vimeo:e=>h.test(e)&&!O.test(e)&&!L.test(e),mux:e=>p.test(e),facebook:e=>d.test(e)||f.test(e),streamable:e=>y.test(e),wistia:e=>m.test(e),twitch:e=>b.test(e)||v.test(e),dailymotion:e=>g.test(e),mixcloud:e=>E.test(e),vidyard:e=>w.test(e),kaltura:e=>P.test(e),file:_}});i()}}]);

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.