/*******************************************************************************
 * 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.12
 *******************************************************************************/
!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 r=t;return r._name=e,{onAdd:r,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 r(e){return(...t)=>{const[r,o]=e(...t);return a(r,o)}}function o(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=r,t.getTaskName=o},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 r=a(91270),o=a(7269),n=a(88425),s=a(70558),c=a(21787);t.DashManifestPlaybackTechnologyTask=(0,r.createTaskClosure)((e=>["dash-manifest-playback-tech-task",(t,a)=>{const i=e.registry.get(n.CreateStreamingStateAtom),u=(0,s.createDashTechStateAtom)(a,t),y=i(e),l=a.registry.get(o.SourceExportNames.SourceState);return a.registry.set(n.StreamingState,y),a.registry.set(c.DashTechState,u),a.abortSignal.addEventListener("abort",(()=>{a.registry.delete(n.StreamingState),a.effects.state.subscribe(e,y.stream.duration,(0,r.createTask)("duration-propagation",((e,t)=>{t.effects.state.dispatch(l.playback.duration.setValue,e.value)}))),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 r=a(97085),o=a(14809),n=a(49753),s=a(94503),c=a(88425),i=a(71943);t.DashManifestTechnologyPackage=(0,r.createPackage)("dash-manifest-technology-package",((e,t)=>{const{StateEffectFactory:a,EventListenerEffectFactory:r}=t.registry.get(o.CoreExportNames.CoreEffects),s=t.using(a,r),c=s.registry.get(n.PlaybackTechnologyComponent),{ResourceType:u}=s.registry.get(o.CoreExportNames.Constants),y={name:"dash-manifest-playback-tech",type:n.PlaybackTechnologyEntryType.Manifest,depends:[],supported:e=>e.type===u.Dash,instantiate:(0,i.DashManifestPlaybackTechnologyTask)(s)};s.fork(c.addTechnology,y)}),[n.PlaybackTechnologyComponent,o.CoreExportNames.Constants,o.CoreExportNames.CoreStateAtoms,o.CoreExportNames.CoreEffects,o.CoreExportNames.Utils,s.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)=>{var a;function r(e){return e.type===a.Manifest}function o(e){return e.type===a.Presentation}Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackTechnologyComponent=t.isPresentationEntry=t.isManifestEntry=t.PlaybackTechnologyEntryType=void 0,function(e){e.Presentation="presentation",e.Manifest="manifest"}(a=t.PlaybackTechnologyEntryType||(t.PlaybackTechnologyEntryType={})),t.isManifestEntry=r,t.isPresentationEntry=o,t.PlaybackTechnologyComponent="playback-technology-component"},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(r){var o=t[r];if(void 0!==o)return o.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,a),n.exports}return a(45455)})()));