PageSourceSearch

https://www.ploom.pl/_next/static/chunks/reactPlayerHls.4a4510cff49b58c1.js

js ploom.pl collected 2026-10-07 00:06:41 UTC 7,472 bytes, 7 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2262],{24790:(e,t,i)=>{let a;i.r(t),i.d(t,{default:()=>_});var n,r,l,s,o,d,u,c,h,p,v,f,y,E=i(12900),g=i(49),m=i(87790),T=i(3235),b=i(7620),L=i(73448),w=i(36261),k=i(57384);let R=(a=(0,w.u6)(L.lB),class extends a{static shadowRootOptions={...a.shadowRootOptions};static getTemplateHTML=(e,t={})=>{let{src:i,...n}=e;return`
2        <script type="application/json" id="config">
3          ${JSON.stringify(t.config||{})}
4        </script>
5        ${a.getTemplateHTML(n)}
6      `};#e=null;#t=null;constructor(){super(),this.#i("config")}get config(){return this.#t}set config(e){this.#t=e}attributeChangedCallback(e,t,i){"src"!==e&&super.attributeChangedCallback(e,t,i),"src"===e&&t!=i&&this.load()}#a(){var e,t;null==(e=this.#e)||e.remove(),null==(t=this.nativeEl)||t.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#n),this.api&&(this.api.detachMedia(),this.api.destroy(),this.api=null)}async load(){var e,t;let i=!this.api;if(this.#a(),this.src){if(i&&!this.#t&&(this.#t=JSON.parse((null==(e=this.shadowRoot.getElementById("config"))?void 0:e.textContent)||"{}")),k.Ay.isSupported()){switch(await Promise.resolve(),this.api=new k.Ay({liveDurationInfinity:!0,autoStartLoad:!1,...this.config}),this.api.loadSource(this.src),this.api.attachMedia(this.nativeEl),this.nativeEl.preload){case"none":{let e=()=>this.api.startLoad();this.nativeEl.addEventListener("play",e,{once:!0}),this.api.on(k.Ay.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",e)});break}case"metadata":{let e=this.api.config.maxBufferLength,t=this.api.config.maxBufferSize;this.api.config.maxBufferLength=1,this.api.config.maxBufferSize=1;let i=()=>{this.api.config.maxBufferLength=e,this.api.config.maxBufferSize=t};this.nativeEl.addEventListener("play",i,{once:!0}),this.api.on(k.Ay.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",i)}),this.api.startLoad();break}default:this.api.startLoad()}this.nativeEl.webkitCurrentPlaybackTargetIsWireless&&this.api.stopLoad(),this.nativeEl.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#n),this.#e=document.createElement("source"),this.#e.setAttribute("type","application/x-mpegURL"),this.#e.setAttribute("src",this.src),this.nativeEl.disableRemotePlayback=!1,this.nativeEl.append(this.#e);let e=new WeakMap;this.api.on(k.Ay.Events.MANIFEST_PARSED,(t,i)=>{this.nativeEl.autoplay&&this.nativeEl.paused&&this.nativeEl.play().catch(e=>{console.warn("Autoplay failed:",e)}),n();let a=this.videoTracks.getTrackById("main");for(let[t,n]of(a||((a=this.addVideoTrack("main")).id="main",a.selected=!0),i.levels.entries())){let i=a.addRendition(n.url[0],n.width,n.height,n.videoCodec,n.bitrate);e.set(n,`${t}`),i.id=`${t}`}for(let[e,t]of i.audioTracks.entries()){let i=t.default?"main":"alternative",a=this.addAudioTrack(i,t.name,t.lang);a.id=`${e}`,t.default&&(a.enabled=!0)}}),this.audioTracks.addEventListener("change",()=>{var e;let t=+(null==(e=[...this.audioTracks].find(e=>e.enabled))?void 0:e.id),i=this.api.audioTracks.map(e=>e.id);t!=this.api.audioTrack&&i.includes(t)&&(this.api.audioTrack=t)}),this.api.on(k.Ay.Events.LEVELS_UPDATED,(t,i)=>{let a=this.videoTracks[this.videoTracks.selectedIndex??0];if(!a)return;let n=i.levels.map(t=>e.get(t));for(let e of this.videoRenditions)e.id&&!n.includes(e.id)&&a.removeRendition(e)});let i=null;this.api.on(k.Ay.Events.ERROR,(e,t)=>{t.type===k.Ay.ErrorTypes.NETWORK_ERROR&&t.details===k.Ay.ErrorDetails.FRAG_LOAD_ERROR&&(i=t.frag.level)}),this.api.on(k.Ay.Events.LEVEL_SWITCHED,(e,t)=>{let a=t.level;null!==i&&a<i&&(console.warn(`\u26A0\uFE0F hls.js downgraded quality from level ${i} to ${a} due to fragment load failure.`),this.videoRenditions.selectedIndex=a,i=null)});let a=e=>{let t=e.target.selectedIndex;t!=this.api.nextLevel&&(this.api.nextLevel=t)};null==(t=this.videoRenditions)||t.addEventListener("change",a);let n=()=>{for(let e of this.videoTracks)this.removeVideoTrack(e);for(let e of this.audioTracks)this.removeAudioTrack(e)};this.api.once(k.Ay.Events.DESTROYING,n);return}await Promise.resolve(),this.nativeEl.canPlayType("application/vnd.apple.mpegurl")&&(this.nativeEl.src=this.src)}}#n=()=>{var e,t,i;(null==(e=this.nativeEl)?void 0:e.webkitCurrentPlaybackTargetIsWireless)?null==(t=this.api)||t.stopLoad():null==(i=this.api)||i.startLoad()};#i(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}});globalThis.customElements&&!globalThis.customElements.get("hls-video")&&globalThis.customElements.define("hls-video",R);var A=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),S={className:"class",htmlFor:"for"};function C(e){return e.toLowerCase()}function N(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e?void 0:(void 0===e?"undefined":(0,T._)(e))!=="object"||null===e?e:void 0}function O(e,t,i){var a,n;e[t]=i,null==i&&t in(null!=(a=null==(n=globalThis.HTMLElement)?void 0:n.prototype)?a:{})&&e.removeAttribute(t)}var _=(r=(n={react:b,tagName:"hls-video",elementClass:R,toAttributeName:function(e){return"muted"===e?"":"defaultMuted"===e?"muted":C(e)}}).react,l=n.tagName,s=n.elementClass,o=n.events,d=n.displayName,u=n.defaultProps,h=void 0===(c=n.toAttributeName)?C:c,v=void 0===(p=n.toAttributeValue)?N:p,f=Number.parseInt(r.version)>=19,(y=r.forwardRef(function(e,t){var i=r.useRef(null),a=r.useRef(new Map),n={},d={},c={},p={},y=!0,T=!1,b=void 0;try{for(var L,w,k,R=Object.entries(e)[Symbol.iterator]();!(y=(k=R.next()).done);y=!0)!function(){var e,t,i=(0,m._)(k.value,2),a=i[0],r=i[1];if(A.has(a))return c[a]=r;var l=h(null!=(e=S[a])?e:a);
6if(s.prototype&&a in s.prototype&&!(a in(null!=(t=null==(L=globalThis.HTMLElement)?void 0:L.prototype)?t:{}))&&!(null==(w=s.observedAttributes)?void 0:w.some(function(e){return e===l})))return p[a]=r;if(a.startsWith("on"))return n[a]=r;var o=v(r);if(l&&null!=o&&(d[l]=String(o),f||(c[l]=o)),l&&f){var u=N(r);o!==u?c[l]=o:c[l]=r}}()}catch(e){T=!0,b=e}finally{try{y||null==R.return||R.return()}finally{if(T)throw b}}if("u">typeof window){for(var C in n)!function(e){var t,a=n[e],l=e.endsWith("Capture"),s=(null!=(t=null==o?void 0:o[e])?t:e.slice(2).toLowerCase()).slice(0,l?-7:void 0);r.useLayoutEffect(function(){var e=null==i?void 0:i.current;if(e&&"function"==typeof a)return e.addEventListener(s,a,l),function(){e.removeEventListener(s,a,l)}},[null==i?void 0:i.current,a])}(C);r.useLayoutEffect(function(){if(null!==i.current){var e=new Map;for(var t in p)O(i.current,t,p[t]),a.current.delete(t),e.set(t,p[t]);var n=!0,r=!1,l=void 0;try{for(var s,o=a.current[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var d=(0,m._)(s.value,2),u=d[0];d[1],O(i.current,u,void 0)}}catch(e){r=!0,l=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw l}}a.current=e}})}if("u"<typeof window&&(null==s?void 0:s.getTemplateHTML)&&(null==s?void 0:s.shadowRootOptions)){var _=s.shadowRootOptions,x=_.mode,I=_.delegatesFocus;c.children=[r.createElement("template",{shadowrootmode:x,shadowrootdelegatesfocus:I,dangerouslySetInnerHTML:{__html:s.getTemplateHTML(d,e)},key:"ce-la-react-ssr-template-shadow-root"}),c.children]}return r.createElement(l,(0,g._)((0,E._)({},u,c),{ref:r.useCallback(function(e){i.current=e,"function"==typeof t?t(e):null!==t&&(t.current=e)},[t])}),c.children)})).displayName=null!=d?d:s.name,y)}}]);
7//# sourceMappingURL=reactPlayerHls.4a4510cff49b58c1.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.