/*******************************************************************************
 * This source code is the proprietary property of Bitmovin, Inc. Unauthorized
 * copying, distribution, or use of this code, or any portion thereof, is
 * strictly prohibited. © 2026 Bitmovin, Inc. All rights reserved. This
 * source code is subject to the terms and conditions of the accompanying
 * license agreement.
 *
 * Bitmovin Player X Version 10.2.0-beta.16
 *******************************************************************************/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["dash-manifest-technology"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerx=e.bitmovin.playerx||{},e.bitmovin.playerx["dash-manifest-technology"]=t())}(self,(()=>(()=>{"use strict";var e={97085:(e,t)=>{function a(e,t,a){const o=t;return o._name=e,{onAdd:o,dependencies:a}}Object.defineProperty(t,"__esModule",{value:!0}),t.createPackage=void 0,t.createPackage=a},91270:(e,t)=>{function a(e,t){const a=t;return a._name=e,a}function o(e){return(...t)=>{const[o,r]=e(...t);return a(o,r)}}function r(e){var t;return null!==(t=e._name)&&void 0!==t?t:e.name}Object.defineProperty(t,"__esModule",{value:!0}),t.getTaskName=t.createTaskClosure=t.createTask=void 0,t.createTask=a,t.createTaskClosure=o,t.getTaskName=r},14809:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreExportNames=void 0,function(e){e.Utils="utils",e.Constants="constants",e.CoreEffects="core-effects",e.CoreStateAtoms="core-state-atoms"}(t.CoreExportNames||(t.CoreExportNames={}))},71943:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DashManifestPlaybackTechnologyTask=void 0;const o=a(91270),r=a(7269),s=a(88425),n=a(70558),c=a(21787),i=(0,o.createTaskClosure)((e=>["duration-propagation",(t,a)=>{a.effects.state.dispatch(e.playback.duration.setValue,t.value)}]));t.DashManifestPlaybackTechnologyTask=(0,o.createTaskClosure)((e=>["dash-manifest-playback-tech-task",(t,a)=>{const o=e.registry.get(s.CreateStreamingStateAtom),u=(0,n.createDashTechStateAtom)(a,t),l=o(e),y=a.registry.get(r.SourceExportNames.SourceState);return a.registry.set(s.StreamingState,l),a.registry.set(c.DashTechState,u),a.effects.state.subscribe(e,l.stream.duration,i(y)),a.abortSignal.addEventListener("abort",(()=>{a.registry.delete(s.StreamingState),a.registry.delete(c.DashTechState)})),a.effects.loop(a.abortSignal)}]))},45455:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DashManifestTechnologyPackage=void 0;const o=a(97085),r=a(14809),s=a(49753),n=a(94503),c=a(88425),i=a(71943);t.DashManifestTechnologyPackage=(0,o.createPackage)("dash-manifest-technology-package",((e,t)=>{const{StateEffectFactory:a,EventListenerEffectFactory:o}=t.registry.get(r.CoreExportNames.CoreEffects),n=t.using(a,o),c=n.registry.get(s.PlaybackTechnologyComponent),{ResourceType:u}=n.registry.get(r.CoreExportNames.Constants),l={name:"dash-manifest-playback-tech",type:n.registry.get(s.PlaybackTechnologyExportNames.EntryType).Manifest,depends:[],supported:e=>e.type===u.Dash,instantiate:(0,i.DashManifestPlaybackTechnologyTask)(n)};n.fork(c.addTechnology,l)}),[s.PlaybackTechnologyComponent,s.PlaybackTechnologyExportNames.EntryType,r.CoreExportNames.Constants,r.CoreExportNames.CoreStateAtoms,r.CoreExportNames.CoreEffects,r.CoreExportNames.Utils,n.StreamDataStructureStream,c.CreateStreamingStateAtom]),t.default=t.DashManifestTechnologyPackage},21787:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DashTechState=void 0,t.DashTechState="dash-tech-state"},70558:(e,t)=>{function a(e,t){return e.effects.state.create({resource:t},{})}Object.defineProperty(t,"__esModule",{value:!0}),t.createDashTechStateAtom=void 0,t.createDashTechStateAtom=a},49753:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackTechnologyExportNames=t.PlaybackTechnologyComponent=void 0,t.PlaybackTechnologyComponent="playback-technology-component",function(e){e.EntryType="playback-technology-entry-type"}(t.PlaybackTechnologyExportNames||(t.PlaybackTechnologyExportNames={}))},7269:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SourceExportNames=void 0,function(e){e.CreateSourceStateAtom="create-source-state-atom",e.CreateSourceReference="create-source-reference",e.SourceReferences="source-references",e.SourceState="source-state-atom"}(t.SourceExportNames||(t.SourceExportNames={}))},94503:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StreamDataStructureStream=void 0,t.StreamDataStructureStream="stream-data-structure-stream"},88425:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateStreamingStateAtom=t.StreamingState=void 0,t.StreamingState="streaming-state",t.CreateStreamingStateAtom="create-streaming-state-atom"}},t={};function a(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,a),s.exports}return a(45455)})()));