1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="22dd2580-ccbb-4235-8a18-f1fb3faaf988",e._sentryDebugIdIdentifier="sentry-dbid-22dd2580-ccbb-4235-8a18-f1fb3faaf988")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12042],{46627:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(14232)),o=r(88352),a=r(41968);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");y.prototype=Object.create(e&&e.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),e&&u(y,e);var t,r,l=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r,n,o=s(y);return n=t?Reflect.construct(o,arguments,s(this).constructor):o.apply(this,arguments),e=this,(r=n)&&("object"===c(r)||"function"==typeof r)?r:p(e)});function y(){var e;if(!(this instanceof y))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return f(p(e=l.call.apply(l,[this].concat(r))),"callPlayer",o.callPlayer),f(p(e),"playerID",e.props.config.playerId||"".concat("twitch-player-").concat((0,o.randomString)())),f(p(e),"mute",function(){e.callPlayer("setMuted",!0)}),f(p(e),"unmute",function(){e.callPlayer("setMuted",!1)}),e}return r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var r=this,n=this.props,l=n.playsinline,c=n.onError,u=n.config,p=n.controls,s=a.MATCH_URL_TWITCH_CHANNEL.test(e),y=s?e.match(a.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(a.MATCH_URL_TWITCH_VIDEO)[1];t?s?this.player.setChannel(y):this.player.setVideo("v"+y):(0,o.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(function(t){r.player=new t.Player(r.playerID,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({video:s?"":y,channel:s?y:"",height:"100%",width:"100%",playsinline:l,autoplay:r.props.playing,muted:r.props.muted,controls:!!s||p,time:(0,o.parseStartTime)(e)},u.options));var n=t.Player,a=n.READY,c=n.PLAYING,d=n.PAUSE,b=n.ENDED,h=n.ONLINE,v=n.OFFLINE;r.player.addEventListener(a,r.props.onReady),r.player.addEventListener(c,r.props.onPlay),r.player.addEventListener(d,r.props.onPause),r.player.addEventListener(b,r.props.onEnded),r.player.addEventListener(h,r.props.onLoaded),r.player.addEventListener(v,r.props.onLoaded)},c)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){return n.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(y.prototype,r),y}(n.Component);t.default=y,f(y,"displayName","Twitch"),f(y,"canPlay",a.canPlay.twitch),f(y,"loopOnEnded",!0)}}]); 2//# sourceMappingURL=reactPlayerTwitch.9b9f49518ec9d459.js.map
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.