PageSourceSearch

https://lamtakam.com/static/js/reactPlayerHls.dfb89926.chunk.js

js lamtakam.com collected 2026-10-02 19:58:44 UTC 7,300 bytes, 3 lines download raw bytes

1/*! For license information please see reactPlayerHls.dfb89926.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunklamtakam_ai=self.webpackChunklamtakam_ai||[]).push([[2262],{67890:(t,e,i)=>{i.r(e),i.d(e,{default:()=>T});var n=i(89379),a=i(65043),s=i(80045),o=i(39790),r=i(55149),l=i(64467),c=i(24558),d=i(38458),u=i(26562),h=i(78068),p=i(9769),v=i(49788);const f=["src"],m=(t=>{var e,i,a,h,p;return i=new WeakMap,a=new WeakMap,h=new WeakSet,p=new WeakMap,e=class extends t{constructor(){super(),(0,o.A)(this,h),(0,r.A)(this,i,null),(0,r.A)(this,a,null),(0,r.A)(this,p,(()=>{var t,e,i;(null==(t=this.nativeEl)?void 0:t.webkitCurrentPlaybackTargetIsWireless)?null==(e=this.api)||e.stopLoad():null==(i=this.api)||i.startLoad()})),(0,u.A)(h,this,g).call(this,"config")}get config(){return(0,d.A)(a,this)}set config(t){(0,c.A)(a,this,t)}attributeChangedCallback(t,e,i){"src"!==t&&super.attributeChangedCallback(t,e,i),"src"===t&&e!=i&&this.load()}async load(){var t,e;const s=!this.api;if((0,u.A)(h,this,m).call(this),this.src)if(s&&!(0,d.A)(a,this)&&(0,c.A)(a,this,JSON.parse((null==(t=this.shadowRoot.getElementById("config"))?void 0:t.textContent)||"{}")),v.Ay.isSupported()){switch(await Promise.resolve(),this.api=new v.Ay((0,n.A)({liveDurationInfinity:!0,autoStartLoad:!1},this.config)),this.api.loadSource(this.src),this.api.attachMedia(this.nativeEl),this.nativeEl.preload){case"none":{const t=()=>this.api.startLoad();this.nativeEl.addEventListener("play",t,{once:!0}),this.api.on(v.Ay.Events.DESTROYING,(()=>{this.nativeEl.removeEventListener("play",t)}));break}case"metadata":{const t=this.api.config.maxBufferLength,e=this.api.config.maxBufferSize;this.api.config.maxBufferLength=1,this.api.config.maxBufferSize=1;const i=()=>{this.api.config.maxBufferLength=t,this.api.config.maxBufferSize=e};this.nativeEl.addEventListener("play",i,{once:!0}),this.api.on(v.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",(0,d.A)(p,this)),(0,c.A)(i,this,document.createElement("source")),(0,d.A)(i,this).setAttribute("type","application/x-mpegURL"),(0,d.A)(i,this).setAttribute("src",this.src),this.nativeEl.disableRemotePlayback=!1,this.nativeEl.append((0,d.A)(i,this));const t=new WeakMap;this.api.on(v.Ay.Events.MANIFEST_PARSED,((e,i)=>{this.nativeEl.autoplay&&this.nativeEl.paused&&this.nativeEl.play().catch((t=>{console.warn("Autoplay failed:",t)})),s();let n=this.videoTracks.getTrackById("main");n||(n=this.addVideoTrack("main"),n.id="main",n.selected=!0);for(const[a,s]of i.levels.entries()){const e=n.addRendition(s.url[0],s.width,s.height,s.videoCodec,s.bitrate);t.set(s,"".concat(a)),e.id="".concat(a)}for(let[t,a]of i.audioTracks.entries()){const e=a.default?"main":"alternative",i=this.addAudioTrack(e,a.name,a.lang);i.id="".concat(t),a.default&&(i.enabled=!0)}})),this.audioTracks.addEventListener("change",(()=>{var t;const e=+(null==(t=[...this.audioTracks].find((t=>t.enabled)))?void 0:t.id),i=this.api.audioTracks.map((t=>t.id));e!=this.api.audioTrack&&i.includes(e)&&(this.api.audioTrack=e)})),this.api.on(v.Ay.Events.LEVELS_UPDATED,((e,i)=>{var n;const a=this.videoTracks[null!==(n=this.videoTracks.selectedIndex)&&void 0!==n?n:0];if(!a)return;const s=i.levels.map((e=>t.get(e)));for(const t of this.videoRenditions)t.id&&!s.includes(t.id)&&a.removeRendition(t)}));const a=t=>{const e=t.target.selectedIndex;e!=this.api.nextLevel&&(this.api.nextLevel=e)};null==(e=this.videoRenditions)||e.addEventListener("change",a);const s=()=>{for(const t of this.videoTracks)this.removeVideoTrack(t);for(const t of this.audioTracks)this.removeAudioTrack(t)};this.api.once(v.Ay.Events.DESTROYING,s)}else await Promise.resolve(),this.nativeEl.canPlayType("application/vnd.apple.mpegurl")&&(this.nativeEl.src=this.src)}},(0,l.A)(e,"shadowRootOptions",(0,n.A)({},t.shadowRootOptions)),(0,l.A)(e,"getTemplateHTML",(function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{src:n}=e,a=(0,s.A)(e,f);return'\n        <script type="application/json" id="config">\n          '.concat(JSON.stringify(i.config||{}),"\n        <\/script>\n        ").concat(t.getTemplateHTML(a),"\n      ")})),e;function m(){var t,e;null==(t=(0,d.A)(i,this))||t.remove(),null==(e=this.nativeEl)||e.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",(0,d.A)(p,this)),this.api&&(this.api.detachMedia(),this.api.destroy(),this.api=null)}function g(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}})((0,p.u6)(h.lB));globalThis.customElements&&!globalThis.customElements.get("hls-video")&&globalThis.customElements.define("hls-video",m);var g=m,E=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),y={className:"class",htmlFor:"for"};function A(t){return t.toLowerCase()}function k(t){return"boolean"===typeof t?t?"":void 0:"function"===typeof t||"object"===typeof t&&null!==t?void 0:t}function b(t,e,i){var n,a;t[e]=i,null==i&&e in(null!==(n=null==(a=globalThis.HTMLElement)?void 0:a.prototype)&&void 0!==n?n:{})&&t.removeAttribute(e)}var T=function(t){let{react:e,tagName:i,elementClass:a,events:s,displayName:o,defaultProps:r,toAttributeName:l=A,toAttributeValue:c=k}=t;const d=Number.parseInt(e.version)>=19,u=e.forwardRef(((t,o)=>{var u,h;const p=e.useRef(null),v=e.useRef(new Map),f={},m={},g={},A={};for(const[e,i]of Object.entries(t)){var T,w;if(E.has(e)){g[e]=i;continue}const t=l(null!==(T=y[e])&&void 0!==T?T:e);if(a.prototype&&e in a.prototype&&!(e in(null!==(w=null==(u=globalThis.HTMLElement)?void 0:u.prototype)&&void 0!==w?w:{}))&&!(null==(h=a.observedAttributes)?void 0:h.some((e=>e===t)))){A[e]=i;continue}if(e.startsWith("on")){f[e]=i;continue}const n=c(i);if(t&&null!=n&&(m[t]=String(n),d||(g[t]=n)),t&&d){const e=k(i);g[t]=n!==e?n:i}}if("undefined"!==typeof window){for(const t in f){var L;const i=f[t],n=t.endsWith("Capture"),a=(null!==(L=null==s?void 0:s[t])&&void 0!==L?L:t.slice(2).toLowerCase()).slice(0,n?-7:void 0);e.useLayoutEffect((()=>{const t=null==p?void 0:p.current;if(t&&"function"===typeof i)return t.addEventListener(a,i,n),()=>{t.removeEventListener(a,i,n)}}),[null==p?void 0:p.current,i])}e.useLayoutEffect((()=>
2{if(null===p.current)return;const t=new Map;for(const e in A)b(p.current,e,A[e]),v.current.delete(e),t.set(e,A[e]);for(const[e,i]of v.current)b(p.current,e,void 0);v.current=t}))}if("undefined"===typeof window&&(null==a?void 0:a.getTemplateHTML)&&(null==a?void 0:a.shadowRootOptions)){const{mode:i,delegatesFocus:n}=a.shadowRootOptions,s=e.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:a.getTemplateHTML(m,t)}});g.children=[s,g.children]}return e.createElement(i,(0,n.A)((0,n.A)((0,n.A)({},r),g),{},{ref:e.useCallback((t=>{p.current=t,"function"===typeof o?o(t):null!==o&&(o.current=t)}),[o])}))}));return u.displayName=null!==o&&void 0!==o?o:a.name,u}({react:a,tagName:"hls-video",elementClass:g,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":A(t)})}}]);
3//# sourceMappingURL=reactPlayerHls.dfb89926.chunk.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.