PageSourceSearch

https://www.simplemedia.ai/_next/static/chunks/reactPlayerYouTube.4f2389bb130d3da9.js

js simplemedia.ai collected 2026-10-05 15:51:14 UTC 4,431 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dae85284-ddc4-4d1f-917a-c83ac9b39151",e._sentryDebugIdIdentifier="sentry-dbid-dae85284-ddc4-4d1f-917a-c83ac9b39151")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4439],{56028:function(e,t,a){let l,s,r;var i=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,c=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,p=(e,t,a)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,d=(e,t,a,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of y(t))u.call(e,s)||s===a||n(e,s,{get:()=>t[s],enumerable:!(l=o(t,s))||l.enumerable});return e},h=(e,t,a)=>(p(e,"symbol"!=typeof t?t+"":t,a),a),f={};((e,t)=>{for(var a in t)n(e,a,{get:t[a],enumerable:!0})})(f,{default:()=>k}),e.exports=d(n({},"__esModule",{value:!0}),f);var b=(r=null!=(l=a(53552))?i(c(l)):{},d(!s&&l&&l.__esModule?r:n(r,"default",{value:l,enumerable:!0}),l)),g=a(56547),P=a(35883);let m=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,w=/user\/([a-zA-Z0-9_-]+)\/?/,T=/youtube-nocookie\.com/;class k extends b.Component{constructor(){super(...arguments),h(this,"callPlayer",g.callPlayer),h(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(m.test(e)){let[,t]=e.match(m);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(w.test(e)){let[,t]=e.match(w);return{listType:"user_uploads",list:t}}return{}}),h(this,"onStateChange",e=>{let{data:t}=e,{onPlay:a,onPause:l,onBuffer:s,onBufferEnd:r,onEnded:i,onReady:n,loop:o,config:{playerVars:y,onUnstarted:c}}=this.props,{UNSTARTED:u,PLAYING:p,PAUSED:d,BUFFERING:h,ENDED:f,CUED:b}=window.YT.PlayerState;if(t===u&&c(),t===p&&(a(),r()),t===d&&l(),t===h&&s(),t===f){let e=!!this.callPlayer("getPlaylist");o&&!e&&(y.start?this.seekTo(y.start):this.play()),i()}t===b&&n()}),h(this,"mute",()=>{this.callPlayer("mute")}),h(this,"unmute",()=>{this.callPlayer("unMute")}),h(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||m.test(e)?null:e.match(P.MATCH_URL_YOUTUBE)[1]}load(e,t){let{playing:a,muted:l,playsinline:s,controls:r,loop:i,config:n,onError:o}=this.props,{playerVars:y,embedOptions:c}=n,u=this.getID(e);if(t){if(m.test(e)||w.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:u,startSeconds:(0,g.parseStartTime)(e)||y.start,endSeconds:(0,g.parseEndTime)(e)||y.end});return}(0,g.getSDK)("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady",e=>e.loaded).then(t=>{this.container&&(this.player=new t.Player(this.container,{width:"100%",height:"100%",videoId:u,playerVars:{autoplay:a?1:0,mute:l?1:0,controls:r?1:0,start:(0,g.parseStartTime)(e),end:(0,g.parseEndTime)(e),origin:window.location.origin,playsinline:s?1:0,...this.parsePlaylist(e),...y},events:{onReady:()=>{i&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:e=>this.props.onPlaybackRateChange(e.data),onPlaybackQualityChange:e=>this.props.onPlaybackQualityChange(e),onStateChange:this.onStateChange,onError:e=>o(e.data)},host:T.test(e)?"https://www.youtube-nocookie.com":void 0,...c}))},o),c.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),t||this.props.playing||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){let{display:e}=this.props;return b.default.createElement("div",{style:{width:"100%",height:"100%",display:e}},b.default.createElement("div",{ref:this.ref}))}}h(k,"displayName","YouTube"),h(k,"canPlay",P.canPlay.youtube)}}]);

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.