/*******************************************************************************
 * 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.playback=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerx=e.bitmovin.playerx||{},e.bitmovin.playerx.playback=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},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={}))},33177:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackPackage=void 0;const r=a(97085),o=a(56595),c=a(62293);t.PlaybackPackage=(0,r.createPackage)("playback-package",(e=>{const t=e.api.packages;t.add(c.default),t.add(o.default)}),[]),t.default=t.PlaybackPackage},56595:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PlayPausePackage=void 0;const r=a(97085),o=a(14809),c=a(7269),s=a(92694),u=a(36921);t.PlayPausePackage=(0,r.createPackage)("play-pause-package",((e,t)=>{const{StateEffectFactory:a,EventListenerEffectFactory:r}=t.registry.get(o.CoreExportNames.CoreEffects),l=t.using(a,r),i=l.registry.get(c.SourceExportNames.SourceState),{createPrimitiveAtom:n}=l.registry.get(o.CoreExportNames.CoreStateAtoms),p=n(l,i.playbackConfig.autoplay?s.TargetPlaybackState.Playing:s.TargetPlaybackState.Paused);l.registry.set(u.PlayPauseExportNames.TargetPlaybackState,s.TargetPlaybackState),l.registry.set(u.PlayPauseExportNames.TargetPlaybackStateAtom,p)}),[c.SourceExportNames.SourceState,o.CoreExportNames.CoreEffects,o.CoreExportNames.CoreStateAtoms]),t.default=t.PlayPausePackage},92694:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TargetPlaybackState=void 0,function(e){e.Paused="paused",e.Playing="playing"}(t.TargetPlaybackState||(t.TargetPlaybackState={}))},36921:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PlayPauseExportNames=void 0,function(e){e.TargetPlaybackStateAtom="target-playback-state-atom",e.TargetPlaybackState="target-playback-state"}(t.PlayPauseExportNames||(t.PlayPauseExportNames={}))},28422:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTargetVolumeState=void 0;const r=a(14809);function o(e,t,a){const{createPrimitiveAtom:o}=e.registry.get(r.CoreExportNames.CoreStateAtoms);return e.effects.state.create({volume:o(e,t),muted:o(e,a)},{})}t.createTargetVolumeState=o},17031:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TargetVolumeState=void 0,t.TargetVolumeState="target-volume-state"},62293:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VolumePackage=void 0;const r=a(97085),o=a(14809),c=a(7269),s=a(28422),u=a(17031);t.VolumePackage=(0,r.createPackage)("volume-package",((e,t)=>{const{EventListenerEffectFactory:a,StateEffectFactory:r}=t.registry.get(o.CoreExportNames.CoreEffects),l=t.using(a,r),i=l.registry.get(c.SourceExportNames.SourceState),n=(0,s.createTargetVolumeState)(l,1,i.playbackConfig.muted);l.registry.set(u.TargetVolumeState,n)}),[c.SourceExportNames.SourceState,o.CoreExportNames.CoreEffects,o.CoreExportNames.CoreStateAtoms]),t.default=t.VolumePackage},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={}))}},t={};function a(r){var o=t[r];if(void 0!==o)return o.exports;var c=t[r]={exports:{}};return e[r](c,c.exports,a),c.exports}return a(33177)})()));