PageSourceSearch

https://www.bbuc.co/build/_shared/Twitch-UH4RSTUB.js

js bbuc.co collected 2026-10-04 04:03:48 UTC 2,823 bytes, 2 lines download raw bytes

1import{b as T,c as I}from"/build/_shared/chunk-HHIOPWQS.js";import{a as C}from"/build/_shared/chunk-LEBH2O6Q.js";import{b as w}from"/build/_shared/chunk-2LOM2E4Y.js";var q=w((W,P)=>{var N=Object.create,l=Object.defineProperty,M=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,A=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},y=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(o=M(e,a))||o.enumerable});return t},U=(t,e,r)=>(r=t!=null?N(A(t)):{},y(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),x=t=>y(l({},"__esModule",{value:!0}),t),s=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),_={};j(_,{default:()=>n});P.exports=x(_);var d=U(C()),h=T(),u=I(),F="https://player.twitch.tv/js/embed/v1.js",K="Twitch",V="twitch-player-",n=class extends d.Component{constructor(){super(...arguments),s(this,"callPlayer",h.callPlayer),s(this,"playerID",this.props.config.playerId||`${V}${(0,h.randomString)()}`),s(this,"mute",()=>{this.callPlayer("setMuted",!0)}),s(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){let{playsinline:o,onError:a,config:v,controls:E}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,h.getSDK)(F,K).then(c=>{this.player=new c.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:o,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:E,time:(0,h.parseStartTime)(e),...v.options});let{READY:m,PLAYING:L,PAUSE:g,ENDED:f,ONLINE:O,OFFLINE:D,SEEK:b}=c.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(L,this.props.onPlay),this.player.addEventListener(g,this.props.onPause),this.player.addEventListener(f,this.props.onEnded),this.player.addEventListener(b,this.props.onSeek),this.player.addEventListener(O,this.props.onLoaded),this.player.addEventListener(D,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){let e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}};s(n,"displayName","Twitch");s(n,"canPlay",u.canPlay.twitch);s(n,"loopOnEnded",!0)});export default q();
2

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.