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6nCCAVC,GAAU,ukDCAVC,GAAU,q1CCAVC,GAAU,4MCAVC,GAAU,qpCCAVC,GAAU,m0DCAVC,GAAU,ogBCAVC,GAAU,4qBCAVC,GAAU,ymCCAVC,GAAU,ooCCAVC,GAAW,2kCCAXC,GAAW,gnCCAXC,GAAW,qzBCAXC,GAAW,ynBCAXx0D,GAAW,03BCAXC,GAAW,wnBCAXw0D,GAAW","names":["IS_SERVER","SCOPE","scheduledEffects","runningEffects","currentScope","currentObserver","currentObservers","currentObserversIndex","effects","defaultContext","NOOP","STATE_CLEAN","STATE_CHECK","STATE_DIRTY","STATE_DISPOSED","flushEffects","runEffects","i","runTop","node","ancestors","updateCheck","root","init","scope","createScope","compute","dispose","peek","fn","untrack","tick","getScope","scoped","run2","error","handleError","getContext","key","setContext","value","onDispose","disposable","isFunction$1","self","parent","disposeNode","emptyDisposal","removeSourceObservers","callable","compute2","observer","prevScope","prevObserver","len","currentError","error2","read","write","newValue","notify","ScopeNode","ScopeProto","child","ComputeNode","initialValue","options","ComputeProto","isNotEqual","createComputation","a","b","update","cleanup","prevObservers","prevObserversIndex","result","updateObservers","source","state","index","swap","signal","signal2","isReadSignal","computed","effect$1","effect2","effectResult","isWriteSignal","noop","args","isNull","isUndefined","isNil","isObject","isNumber","isString","isBoolean","isFunction","isArray","effect","serverEffect","EVENT","DOM_EVENT","DOMEvent","_b","_a","type","__publicField","EventTriggers","trigger","event","isDOMEvent","e","callback","returnValue","walkTriggerEventChain","findTriggerEvent","hasTriggerEvent","appendTriggerEvent","EventsTarget","listenEvent","target","handler","EventsController","__privateAdd","_target","_controller","__privateSet","__privateGet","anySignal","reason","signals","controller","onAbort","isPointerEvent","isTouchEvent","isMouseEvent","isKeyboardEvent","wasEnterKeyPressed","isKeyboardClick","isDOMNode","setAttribute","host","name","attrValue","setStyle","property","toggleClass","unwrapDeep","createContext","provide","provideContext","context","hasProvidedValue","useContext","hasProvidedContext","PROPS","METHODS","ON_DISPATCH","EMPTY_PROPS","Instance","Component2","_Instance_instances","_setupCallbacks","_attachCallbacks","_connectCallbacks","_destroyCallbacks","stateFactory","props","_","prop2","createInstanceProps","el","__privateMethod","attachAttrs_fn","attachStyles_fn","setAttr_fn","setStyle_fn","$props","def","currentInstance","createComponent","component","ViewController","$$","attributes","styles","vars","Component","prop","propertyKey","descriptor","method","State","record","_descriptors","store","getter","filter","useState","camelToKebabCase","str","kebabToCamelCase","x","kebabToPascalCase","kebabToTitleCase","uppercaseFirstChar","ReactScopeContext","React.createContext","WithScope","children","React.createElement","useReactScope","React.useContext","useReactContext","React.useMemo","setRef","ref","composeRefs","refs","createClientComponent","forwardComponent","React.forwardRef","forwardRef","parentScopeRef","scopeRef","React.useRef","stateRef","state2","createInternalState","initComponent","onAttach","attachToHost","detachFromHost","onRefChange","state3","React.useEffect","renderProps","attrs","prevPropNames","newPropNames","_c","_d","_e","_h","_f","_g","AttachEffect","eventTypeToCallbackName","onDispatch","callbackProp","escape","isAttr","delimeter","escapeDelimeter","iDelimeter","isAmpersand","left","out","SETUP","classSplitRE","parseClassAttr","tokens","classes","token","styleSplitRE","stylesDelimeterRE","parseStyleAttr","MaverickServerElement","ServerAttributes","ServerStyle","ServerClassList","instance","_tokens","newToken","force","attrsToProps","createServerComponent","ServerComponent","style","attrName","propName","useStateContext","useSignal","scheduleReactUpdate","React.useState","ariaBool","createDisposalBin","disposal","callbacks","keysOf","obj","deferredPromise","resolve","reject","res","rej","waitTimeout","delay","animationFrameThrottle","func","id","lastArgs","throttle","requestIdleCallback","cb","waitIdlePeriod","deadline","useSignalRecord","$state","tracking","$update","scheduledUpdate","createReactComponent","webkit","moz","ms","document$1","vendor","fscreen","element","val","functionThrottle","interval","timeoutId","throttledFn","leading","trailing","cancel","flush","call","throttleWrapper","callNow","functionDebounce","debounce","wait","callFirst","timeout","debouncedFn","clear","debounceWrapper","t","t2","e2","n","n2","o2","t3","t4","o","l2","r2","s","l","r","d","h","c","f","u","g","p","m","w","W","H","y","M","v","E","C","I","R","T","B","F","V","e3","k","D","L","r3","i2","s2","d2","h2","a2","g2","p2","W2","T2","B2","F2","V2","S","X","h3","Icon$0","Icon$5","Icon$8","Icon$11","Icon$13","Icon$16","Icon$19","Icon$22","Icon$24","chromecast","Icon$26","Icon$27","Icon$31","Icon$33","Icon$34","Icon$35","Icon$39","Icon$40","Icon$53","Icon$54","Icon$56","Icon$59","Icon$60","Icon$61","Icon$62","Icon$63","Icon$74","Icon$77","Icon$81","Icon$88","Icon$104","Icon$105","isVideoQualitySrc","src","UA","IS_IOS","IS_IPHONE","IS_CHROME","IS_SAFARI","canOrientScreen","canRotateScreen","canPlayAudioType","audio","canPlayVideoType","video","canPlayHLSNatively","canUsePictureInPicture","canUseVideoPresentation","canChangeVolume","getMediaSource","getSourceBuffer","isHLSSupported","MediaSource","isTypeSupported","SourceBuffer","isSourceBufferValid","isDASHSupported","TimeRange","start","end","_ranges","getTimeRangesStart","range","min","getTimeRangesEnd","max","normalizeTimeIntervals","intervals","normalized","current","next","updateTimeIntervals","AUDIO_EXTENSIONS","AUDIO_TYPES","VIDEO_EXTENSIONS","VIDEO_TYPES","HLS_VIDEO_EXTENSIONS","DASH_VIDEO_EXTENSIONS","HLS_VIDEO_TYPES","DASH_VIDEO_TYPES","isAudioSrc","isVideoSrc","isHLSSrc","isDASHSrc","canGoogleCastSrc","isMediaStream","appendParamsToURL","baseUrl","params","url","preconnect","rel","exists","link","pendingRequests","loadScript","promise","script","getRequestCredentials","crossOrigin","CROSS_ORIGIN","READY_STATE","UPDATE_ACTIVE_CUES","CAN_LOAD","ON_MODE_CHANGE","NATIVE","NATIVE_HLS","TextTrackSymbol","isCueActive","cue","time","watchActiveTextTrack","tracks","kind","onChange","currentTrack","onModeChange","kinds","track","track2","off","TextTrack","_TextTrack_instances","_canLoad","_currentTime","_mode","_metadata","_regions","_cues","_activeCues","parseContent_fn","mode","length","isActive","activeCuesChanged_fn","load_fn","currentTime","activeCues","changed","__vitePreload","parseText","VTTCue","VTTRegion","parseJSON_fn","ready_fn","cues","regions","parseResponse","response","errors","metadata","error_fn","native","loadEvent","json","parseJSONCaptionsFile","captionRE","isTrackCaptionKind","Cue","Region","content","region","content2","mediaState","window","RESET_ON_SRC_QUALITY_CHANGE","RESET_ON_SRC_CHANGE","softResetMediaState","$media","isSourceQualityChange","boundTime","clippedTime","isStart","isEnd","mediaContext","useMediaContext","MediaRemoteControl","logger","_MediaRemoteControl_instances","_player","_prevTrackIndex","_logger","player","dispatchRequest_fn","lockType","duration","startTime","endTime","volume","rate","gain","prefersLoop","detail","request","noPlayerWarning_fn","LocalMediaStorage","_data","muted","ended","shouldClear","lang","enabled","quality","mediaId","playerId","savedData","savedTime","data","ADD","REMOVE","RESET","SELECT","READONLY","SET_READONLY","ON_RESET","ON_REMOVE","ON_USER_SELECT","ListSymbol","List","item","readonly","SELECTED","SelectList","selected","prev","AudioTrackList","round","num","decimalPlaces","getNumberOfDecimalPlaces","clampNumber","isEventInside","rafJobs","processJobs","job","scheduleRafJob","setAttributeIfEmpty","setARIALabel","$label","updateAriaDescription","isElementVisible","checkVisibility","observeVisibility","isElementParent","owner","test","onPress","isTouchPinchEvent","requestScopedAnimationFrame","autoPlacement","placement","offsetVarName","xOffset","yOffset","floatingPlacement","isTop","negateX","negateY","autoUpdate","computePosition","flip","shift","middlewareData","hasFlipped","hasAnimation","isHTMLElement","NativeTextRenderer","_NativeTextRenderer_instances","_display","_video","_track","_tracks","onChange_fn","attachTrack_fn","display","createTrackElement_fn","isDefault","isSupported","copyCues_fn","isShowing","TextRenderers","media","_TextRenderers_instances","_textTracks","_renderers","_media","_nativeDisplay","_nativeRenderer","_customRenderer","textTracks","watchControls_fn","detach_fn","onAddTrack_fn","onRemoveTrack_fn","update_fn","renderer","addNativeTrack_fn","nativeControls","removeNativeTrack_fn","customRenderer","TextTrackList","_TextTrackList_instances","_defaults","_storage","_preferredLang","_selectTracks","showCaptions","preferredTrack","defaultTrack","kind2","isCaptionsKind","saveCaptionsTrack_fn","_pendingRemoval","_onTrackModeChangeBind","onTrackModeChange_fn","saveLang_fn","isTrack","storage","SET_AUTO","ENABLE_AUTO","QualitySymbol","VideoQualityList","_auto","auto","sortVideoQualities","qualities","desc","compareVideoQualityAsc","isHLSProvider","provider","isHTMLAudioElement","isHTMLVideoElement","isHTMLMediaElement","MediaPlayerController","MEDIA_KEY_SHORTCUTS","MODIFIER_KEYS","BUTTON_SELECTORS","IGNORE_SELECTORS","MediaKeyboardController","_MediaKeyboardController_instances","_seekTotal","_timeSlider","onTargetChange_fn","keyDisabled","keyTarget","$active","activePlayer","onKeyUp_fn","onKeyDown_fn","onPreventVideoKeys_fn","focusedEl","getMatchingMethod_fn","forwardTimeKeyboardEvent_fn","volumeSlider","isNumberPress","seeking_fn","value2","playbackRate","keyShortcuts","method2","keys","combinations","replaceSymbolKeys","combo","modifierKeys","modKey","modKeyProp","calcSeekAmount_fn","seekBy","forward","SYMBOL_KEY_MAP","ARIAKeyShortcuts","shortcut","_shortcut","ariaKeys","shortcuts","keys2","MediaControls","_MediaControls_instances","_idleTimer","_pausedTracking","_hideOnMouseLeave","_isMouseOutside","_focusedItem","_canIdle","canIdle","hideControlsOnMouseLeave","hide","clearIdleTimer_fn","changeVisibility_fn","init_fn","viewType","watchMouse_fn","watchPaused_fn","onPlay","onPlay_fn","onPause","onPause_fn","onEnd","onEnd_fn","started","pointer","paused","events","shouldHideOnMouseLeave","onStopIdle_fn","onMouseEnter_fn","onMouseLeave_fn","autoPlayError","onStopIdle","isTouch","eventTypes","eventType","loop","visible","CAN_FULLSCREEN","FullscreenController","_FullscreenController_instances","_listening","_active","onError_fn","onDisconnect_fn","isFullscreen","assertFullscreenAPI","active","_ScreenOrientationController","_ScreenOrientationController_instances","_type","getScreenOrientation_fn","_locked","_currentLock","onOrientationChange_fn","query","assertScreenOrientationAPI_fn","ScreenOrientationController","AudioProviderLoader","ctx","AudioProvider","VideoProviderLoader","provider$1","_HLSProviderLoader","HLSProvider","HLSProviderLoader","audioContext","gainNodes","elAudioSources","getOrCreateAudioCtx","createGainNode","audioCtx","gainNode","createElementSource","destroyGainNode","idx","freeAudioCtxWhenAllResourcesFreed","destroyElementSource","AudioGain","_AudioGain_instances","_onChange","_gainNode","_srcAudioNode","currGain","destroyGainNode_fn","destroySrcNode_fn","PAGE_EVENTS","PageVisibility","_PageVisibility_instances","_state","determinePageState","_visibility","_safariBeforeUnloadTimeout","handlePageEvent","handlePageEvent_fn","RAFLoop","_RAFLoop_instances","_id","_callback","loop_fn","HTMLMediaEvents","_HTMLMediaEvents_instances","_provider","_ctx","_waiting","_attachedLoadStart","_attachedCanPlay","_timeRAF","onAnimationFrame_fn","_pageVisibility","_events","_lastSeenTime","_seekedTo","_devHandlers","_handleDevEvent","attachInitialListeners_fn","attachTimeUpdate_fn","onDispose_fn","media_get","newTime","updateCurrentTime_fn","attachEventListener_fn","onLoadStart_fn","onAbort_fn","onEmptied_fn","onVolumeChange_fn","attachLoadStartListeners_fn","onLoadedData_fn","onLoadedMetadata_fn","onCanPlay_fn","onCanPlayThrough_fn","onDurationChange_fn","onProgress_fn","onStalled_fn","onSuspend_fn","onRateChange_fn","attachCanPlayListeners_fn","onPlaying_fn","onSeeked_fn","onSeeking_fn","onEnded_fn","onWaiting_fn","onDevEvent_fn","event2","getCanPlayDetail_fn","isPaused","isPageHidden","onTimeUpdate_fn","NativeAudioTracks","_NativeAudioTracks_instances","nativeTracks_get","onAddNativeTrack_fn","onRemoveNativeTrack_fn","onChangeNativeTrack_fn","onChangeTrack_fn","nativeTrack","audioTrack","enabledTrack","getEnabledNativeTrack_fn","HTMLMediaProvider","_HTMLMediaProvider_instances","inline","preload","appendMediaFragment_fn","defaultType","prevSource","clipStartTime","clipEndTime","HTMLRemotePlaybackAdapter","_HTMLRemotePlaybackAdapter_instances","_supported","setup_fn","available","watchSupported_fn","onStateChange","onStateChange_fn","remoteEvents","HTMLAirPlayAdapter","NativeHLSTextTracks","_NativeHLSTextTracks_instances","findTextTrackElement","lastIndex","onCueChange","VideoPictureInPicture","_VideoPictureInPicture_instances","onEnter_fn","onExit_fn","VideoPresentation","_VideoPresentation_instances","onModeChange_fn","prevMode","FullscreenPresentationAdapter","presentation","_presentation","PIPPresentationAdapter","VideoProvider","getLangName","langCode","toDOMEventType","DASHController","_DASHController_instances","_instance","_callbacks","_stopLiveSync","_currentTrack","_cueTracker","_retryLoadingTimer","ctor","dispatcher","dispatchDASHEvent_fn","onFragmentLoadStart_fn","onFragmentLoadComplete_fn","onManifestLoaded_fn","onQualityChange_fn","onTextTracksAdded_fn","onTrackChange_fn","enableAutoQuality_fn","onUserQualityChange_fn","onUserAudioChange_fn","liveSync_fn","reset_fn","createDOMEvent_fn","raf","liveSyncPosition_fn","position","onTextFragmentLoaded_fn","startIndex","nativeTextTracks","textTrackInfo","nativeTextTrack","mediaType","newMediaInfo","mediaPresentationDuration","videoQualities","supportedVideoMimeType","type2","videoQuality","audioTracks","supportedAudioMimeType","bitrate","label","label2","language","localTrack","onNetworkError_fn","onFatalError_fn","clearRetryTimer_fn","switchAutoBitrate_fn","selectedTrack","coerceToError","assert","condition","message","DASHLibLoader","lib","_DASHLibLoader_instances","_lib","startLoading_fn","onLoaded_fn","onLoadError_fn","loadDASHScript","importDASH","loader","isDASHConstructor","isDASHNamespace","err","JS_DELIVR_CDN","DASHProvider","_ctor","_library","config","library","_DASHProviderLoader","DASHProviderLoader","VimeoProviderLoader","connections","VimeoProvider","abort","resolveVimeoVideoId","getVimeoVideoInfo","videoId","hash","info","YouTubeProviderLoader","findYouTubePoster","resolveYouTubeVideoId","padNumberWithZeroes","expectedLength","actualLength","padLength","parseTime","hours","minutes","seconds","fraction","formatTime","padHrs","padMins","showHrs","showMs","paddedHours","paddedMinutes","paddedSeconds","paddedMs","formatSpokenTime","spokenParts","MEDIA_ATTRIBUTES","mediaAttributes","mediaPlayerProps","MediaLoadController","load","entries","MediaPlayerDelegate","handle","_MediaPlayerDelegate_instances","_handle","autoPlay","canPlay","seekable","buffered","remotePlaybackInfo","playsInline","savedState","savedPlaybackTime","savedPausedState","storageTime","shouldAutoPlay","audioGain","prefQuality","currentQuality","currentScore","score","attemptAutoplay_fn","autoPlaying","attemptEvent","Queue","_queue","RequestQueue","_RequestQueue_instances","_serving","_pending","flush_fn","release_fn","MediaRequestManager","stateMgr","_MediaRequestManager_instances","_stateMgr","_request","_fullscreen","_orientation","_$provider","_providerQueue","_wasPIPActive","_googleCastLoader","onFullscreenChange_fn","names","handleRequest","handleRequest_fn","attachLoadPlayListener_fn","watchProvider_fn","watchControlsDelayChange_fn","watchAudioGainSupport_fn","watchAirPlaySupport_fn","watchGoogleCastSupport_fn","watchFullscreenSupport_fn","watchPiPSupport_fn","destroyEvent","pictureInPicture","fullscreen","handleLoadPlayStrategy_fn","isAutoPlaying","throwIfNotReadyForPlayback","errorEvent","canSetAudioGain","live","liveEdge","canSeek","liveSyncPosition","seekableEnd","userBehindLiveEdge","adapter","getFullscreenAdapter_fn","throwIfFullscreenNotSupported","throwIfPIPNotSupported_fn","canGoogleCast","$module","isConnecting","providedDuration","onFullscreenError_fn","onPictureInPictureError_fn","canSetPlaybackRate","seekTime","boundedTime","newVolume","canLoad","supported","canAirPlay","canFullscreen","canPictureInPicture","logError_fn","title","MediaRequestContext","TRACKED_EVENT","MediaStateManager","_MediaStateManager_instances","_trackedEvents","_clipEnded","_playedIntervals","_playedInterval","_firingWaiting","_waitingTrigger","_isPlayingOnDisconnect","_stopQualityResizeEffect","seeking","realCurrentTime","satisfyRequest_fn","_fireWaiting","waiting","playing","watchCanSetVolume_fn","addTextTrackListeners_fn","addQualityListeners_fn","addAudioTrackListeners_fn","resumePlaybackOnConnect_fn","pausePlaybackOnDisconnect_fn","stopWatchingQualityResize_fn","prevProvider","newProvider","resetMediaState_fn","resetTracking_fn","sourceChangeEvent","providedViewType","currentViewType","streamType","inferredStreamType","remotePlaybackState","remotePlaybackType","isConnected","requestEvent","prevSources","newSources","onSourceQualitiesChange_fn","canLoadEvent","abortEvent","loadStartEvent","loadedMetadata","onCanPlayDetail_fn","intrinsicDuration","onEndPrecisionChange_fn","newBuffered","newSeekable","newBufferedEnd","hasBufferedLengthChanged","hasBufferedEndChanged","newSeekableEnd","hasSeekableLengthChanged","hasSeekableEndChanged","resetPlaybackIfNeeded_fn","waitingEvent","playEvent","seekedEvent","played","updatePlayed_fn","saveTime_fn","seekingEvent","stopWaiting_fn","origin","isLocked","isPiP","onTextTracksChange_fn","onTextTrackModeChange_fn","onQualitiesChange_fn","onAutoQualityChange_fn","onCanSetQualityChange_fn","onAudioTracksChange_fn","onAudioTrackChange_fn","textTrack","isAuto","watchQualityResize_fn","mediaWidth","mediaHeight","selectedQuality","minScore","canSetVolume","isGoogleCastConnected","added","removed","prevSrc","seekableStart","shouldReset","MediaStateSync","_MediaStateSync_instances","watchMetadata_fn","watchAutoplay_fn","watchClipStartTime_fn","watchClipEndTime_fn","watchCrossOrigin_fn","watchDuration_fn","watchLive_fn","watchLiveEdge_fn","watchLiveTolerance_fn","watchLoop_fn","watchPlaysInline_fn","watchPoster_fn","watchProvidedTypes_fn","watchTitle_fn","providedProps","skip","poster","watchLogLevel_fn","artist","artwork","controls","actions","NavigatorMediaSession","_NavigatorMediaSession_instances","onMetadataChange_fn","onPlaybackStateChange_fn","handleAction","handleAction_fn","action","details","$keyboard","FocusVisibleController","_FocusVisibleController_instances","_focused","updateFocusAttr","onPointerEnter_fn","onPointerLeave_fn","onFocus_fn","onBlur_fn","updateHoverAttr","isFocused","isHovering","_MediaPlayer_instances","_requestMgr","_skipTitleUpdate","setupMediaAttributes_fn","watchCanPlay_fn","watchMuted_fn","watchVolume_fn","watchCurrentTime_fn","watchPlaybackRate_fn","watchStorage_fn","watchOrientation_fn","onFindPlayer_fn","pointerQuery","onPointerChange_fn","resize","onResize_fn","provider_get","props_get","newTitle","queuePausedUpdate_fn","queueMutedUpdate_fn","queueCurrentTimeUpdate_fn","queueVolumeUpdate_fn","queuePlaybackRateUpdate_fn","providedTitle","isLive","typeText","currentTitle","orientation","$attrs","alias","width","height","queryList","clampedVolume","queuePlaysInlineUpdate_fn","storageValue","computeMediaId_fn","mediaplayer__proto","MediaPlayer","resolveStreamTypeFromDASHManifest","manifestSrc","requestInit","manifest","resolveStreamTypeFromHLSManifest","renditionURI","resolveHLSRenditionURI","resolveTargetDuration","matches","lines","line","sourceTypes","SourceSelection","domSources","customLoaders","_SourceSelection_instances","_initialize","_loaders","_domSources","_loader","DASH_LOADER","HLS_LOADER","VIDEO_LOADER","AUDIO_LOADER","YOUTUBE_LOADER","VIMEO_LOADER","EMBED_LOADERS","remoteLoader","loaders","normalizeSrc","loader2","loader3","notifySourceChange_fn","notifyLoaderChange_fn","onSourcesChange_fn","onSourceChange_fn","onSetup_fn","onLoadSource_fn","onLoadPoster_fn","sources","currentSource","newSource","findNewSource_fn","credentials","sources2","newSource2","newLoader","triggerEvent","sourceQuality","isSameSrc","preferNativeHLS","providedPoster","canLoadPoster","src2","inferType","Tracks","domTracks","_Tracks_instances","_domTracks","_prevTracks","onTracksChange_fn","newTracks","oldTrack","newTrack","_MediaProvider_instances","_sources","_loadRafId","mutations","onMutation_fn","runLoader_fn","destroyProvider_fn","$provider","mediaprovider__proto","MediaProvider","_MediaAnnouncer_instances","_initializing","_startedSeekingAt","_seekTimer","busy","watchCaptions_fn","watchFullscreen_fn","watchPiP_fn","watchSeeking_fn","watchLabel_fn","setLabel_fn","translate_fn","isSeeking","isForward","spokenTime","word","translations","Controls","_Controls_instances","watchProps_fn","isShowing_fn","hideControls_fn","side","isHidden","hideDelay","hideOnMouseLeave","controlsVisible","ControlsGroup","Popper","delegate","_Popper_instances","_delegate","_showTimerId","_hideRafId","_stopAnimationEndListener","watchTrigger_fn","cancelShowing_fn","onHide","stop","show","tooltipContext","Tooltip","_Tooltip_instances","_trigger","_content","_showing","showDelay","onShowingChange_fn","attachTrigger_fn","detachTrigger_fn","attachContent_fn","detachContent_fn","tooltipName","TooltipTrigger","_TooltipTrigger_instances","attach_fn","tooltip","button","getButton_fn","candidate","TooltipContent","_TooltipContent_instances","watchPlacement_fn","showing","mainOffset","alignOffset","getTrigger_fn","ToggleButtonController","_ToggleButtonController_instances","disabled","isARIAPressed_fn","onMaybePress_fn","onInteraction_fn","ariaBool$1","onPressed_fn","_pressed","togglebutton__proto","ToggleButton","$ariaBool","_AirPlayButton_instances","isPressed_fn","onPress_fn","isAirPlayConnected","getState_fn","getDefaultLabel_fn","_GoogleCastButton_instances","_PlayButton_instances","remote","_CaptionButton_instances","isHidden_fn","hasCaptions","_FullscreenButton_instances","isSupported_fn","_MuteButton_instances","$volume","_PIPButton_instances","_SeekButton_instances","seekTo","_LiveButton_instances","sliderState","calcRate","offset","IntersectionObserverController","_IntersectionObserverController_instances","_init","_observer","sliderContext","sliderObserverContext","getClampedValue","step","getValueFromRate","boundRate","fill","stepRatio","steps","SliderKeyDirection","SliderEventsController","_SliderEventsController_instances","_touch","_touchStartValue","_lastDownKey","_repeatedKeys","_onDocumentPointerMove","updatePointerValue_fn","getPointerValue_fn","attachEventListeners_fn","attachPointerListeners_fn","watchSwipeGesture_fn","onTouchStart_fn","onTouchMove_fn","touch","xDiff","yDiff","isDragging","onStartDragging_fn","hidden","onPointerMove_fn","onPointerDown_fn","onDocumentPointerUp_fn","onDocumentTouchMove_fn","updateValue_fn","dragging","clampedValue","pointerValue","thumbPositionRate","rect","trackBottom","trackHeight","diff","trackLeft","trackWidth","onStopDragging_fn","jumpValue","calcJumpValue_fn","calcNewKeyValue_fn","shiftKey","shiftKeyMultiplier","keyStep","modifiedStep","direction","currentValue","sliderValueFormatContext","SliderController","_SliderController_instances","_isVisible","_isIntersecting","_updateSliderVars","fillPercent","pointerPercent","focus","watchValue_fn","watchStep_fn","watchDisabled_fn","setupAttrs_fn","onIntersectionChange_fn","watchCSSVars_fn","watchHidden_fn","pointing","getARIADisabled_fn","Slider","_Slider_instances","getARIAValueNow_fn","getARIAValueText_fn","watchMinMax_fn","cache","pending","_ThumbnailsLoader","_ThumbnailsLoader_instances","_src","_crossOrigin","onLoadCues_fn","firstKey","currentKey","processVTTCues_fn","image","processStoryboard_fn","images","processImages_fn","baseURL","resolveBaseUrl_fn","img","resolveURL_fn","board","tileWidth","tileHeight","tile","resolveData_fn","hashProps","values","hashValues","ThumbnailsLoader","_Thumbnail_instances","_styleResets","isLoading_fn","hasError_fn","watchImg_fn","onFindActiveThumbnail_fn","resize_fn","crossOriginProp","crossOriginState","mediaCrossOrigin","loading","resetStyles_fn","activeThumbnail","activeIndex","activeImage","rootEl","imgEl","thumbnail","maxWidth","maxHeight","minWidth","minHeight","elWidth","elHeight","minRatio","maxRatio","scale","style_fn","reset","SliderThumbnail","Thumbnail","_slider","SliderVideo","_SliderVideo_instances","watchVideo_fn","watchSrc_fn","onSrcChange_fn","onUpdateTime_fn","pointerRate","slidervideo__proto","SliderValue","_format","_text","$format","padHours","padMinutes","showHours","sliderValue","format","percent","slidervalue__proto","SliderPreview","_updatePlacement","noClamp","updateSliderPreviewPlacement","preview","clamp","computedStyle","widthHalf","leftClamp","rightClamp","heightHalf","topClamp","bottomClamp","VolumeSlider","_VolumeSlider_instances","_throttleVolumeChange","isDisabled_fn","getARIAValueMax_fn","onDragValueChange_fn","onValueChange_fn","mediaVolume","AudioGainSlider","_AudioGainSlider_instances","watchAudioGain_fn","onAudioGainChange_fn","SpeedSlider","_SpeedSlider_instances","_throttledSpeedChange","onPlaybackRateChange_fn","roundValue_fn","QualitySlider","_QualitySlider_instances","_sortedQualities","_throttledQualityChange","watchMax_fn","watchQuality_fn","canSetQuality","$supported","bitrateText","$qualities","TimeSlider","_TimeSlider_instances","_dispatchSeeking","_chapter","_playingBeforeDragStart","noSwipeGesture","getValue_fn","getStep_fn","getKeyStep_fn","onDragStart_fn","onDragEnd_fn","formatValue_fn","formatTime_fn","hasChapters_fn","calcBufferedPercent_fn","watchSeekingThrottle_fn","watchPreviewing_fn","bufferedEnd","seek_fn","pauseWhileDragging","percentToTime_fn","timeToPercent_fn","SliderChapters","_SliderChapters_instances","_sliderState","_updateScope","_titleRef","_refs","_$track","_$cues","_activeIndex","_activePointerIndex","_bufferedIndex","_updateBufferedPercent","bufferedPercent","getEndTime_fn","calcPercent_fn","_bufferedPercent","calcMediaBufferedPercent_fn","_onCuesChange","fillGaps_fn","setTrack_fn","watchSource_fn","watch_fn","watchUpdates_fn","watchContainerWidths_fn","watchFillPercent_fn","watchPointerPercent_fn","watchBufferedPercent_fn","remainingWidth","isLiveEdge","prevActiveIndex","currentChapter","currentActiveIndex","findActiveChapterIndex_fn","updateFillPercents_fn","updateFillPercent_fn","chapterPercent","cueStartTime","cueEndTime","startRatio","startPercent","endPercent","chapters","firstCue","currentCue","nextCue","timeDiff","lastCue","endTime2","onCuesChange","watchMediaDuration_fn","findChapterTitleRef_fn","onChapterTitleChange_fn","findParentSlider_fn","slider","sliderchapters__proto","menuContext","scrollIntoView","scrolls","el2","top","scrollIntoCenter","FOCUSABLE_ELEMENTS_SELECTOR","selector","VALID_KEYS","MenuFocusController","_MenuFocusController_instances","_index","_el","_elements","getFocusableElements_fn","findActiveIndex_fn","scroll","focusAt_fn","validateKeyEvent_fn","role","nextIndex_fn","delta","focusableElements","elements","is","__defProp","__getOwnPropDesc","__decorateClass","decorators","decorator","idCount","Menu","_Menu_instances","_menuId","_menuButtonId","_expanded","_disabled","_parentMenu","_submenus","_menuObserver","_popper","_focus","_isSliderActive","_isTriggerDisabled","_transitionCallbacks","_wasKeyboardExpand","_removeSubmenuBind","removeSubmenu_fn","_isSubmenuOpen","_onSubmenuOpenBind","onSubmenuOpen_fn","_onSubmenuCloseBind","onSubmenuClose_fn","_onResize","_isTransitionActive","closeTarget","getCloseTarget_fn","onExpandedChange_fn","currentIdCount","observeSliders_fn","disable_fn","attachMenuButton_fn","attachMenuItems_fn","attachObserver_fn","disableMenuButton_fn","addSubmenu_fn","watchExpanded_fn","sliderActiveTimer","parentSliderObserver","expanded","isExpanded_fn","updateMenuItemsHidden_fn","onPointerUp_fn","onWindowPointerUp_fn","isMenuItem","isARIADisabled","watchAttrs","items","onTransition","onResizeTransition_fn","isExpanded","toggleMediaControls_fn","updateFocus_fn","menu","MenuButton","_MenuButton_instances","_menu","_hintEl","watchHintEl_fn","text","hintEl","menubutton__proto","MenuItem","menuPortalContext","MenuItems","_MenuItems_instances","portal","hide_fn","radioControllerContext","RadioGroupController","_RadioGroupController_instances","_group","_value","_onChangeBind","radio","addRadio_fn","removeRadio_fn","currentRadio","findRadio_fn","newRadio","RadioGroup","_RadioGroup_instances","radiogroup__proto","Radio","_Radio_instances","_checked","check_fn","addToGroup_fn","onSelect_fn","radio__proto","_Gesture_instances","_presses","_pressTimerId","attachListener_fn","acceptEvent_fn","inBounds_fn","handleEvent_fn","__privateWrapper","isTopLayer_fn","performAction_fn","clientX","clientY","inBounds","gestures","willTriggerEvent","CaptionsTextRenderer","_CaptionsTextRenderer_instances","_renderer","changeTrack_fn","_Captions_instances","_hideExampleTimer","watchViewType_fn","iOSControls","setupAudioView_fn","setupVideoView_fn","listenToFontStyleChanges_fn","onCueChange_fn","onUpdateTimedNodes_fn","removeExample_fn","renderVTTCueString","displayEl","createCueDisplayElement_fn","cueEl","createCueElement_fn","updateTimedVTTCueNodes","CaptionsRenderer","textRenderer","watchTextDirection_fn","watchMediaTime_fn","onFontStyleChange_fn","hideExample_fn","showExample_fn","_Poster_instances","_prevSrc","watchAlt_fn","onPreconnect_fn","onLoad_fn","defaultPoster","inferredPoster","alt","_Time_instances","_invert","watchTime_fn","shouldInvert_fn","watchRole_fn","watchToggle_fn","onToggle_fn","timeText","getSeconds_fn","$duration","shouldInvert","formattedTime","toggle","MediaPlayerInstance","MediaProviderInstance","MediaAnnouncerInstance","MediaAnnouncer","ControlsInstance","ControlsGroupInstance","ToggleButtonInstance","CaptionButtonInstance","CaptionButton","FullscreenButtonInstance","FullscreenButton","LiveButtonInstance","LiveButton","MuteButtonInstance","MuteButton","PIPButtonInstance","PIPButton","PlayButtonInstance","PlayButton","AirPlayButtonInstance","AirPlayButton","GoogleCastButtonInstance","GoogleCastButton","SeekButtonInstance","SeekButton","TooltipInstance","TooltipTriggerInstance","TooltipContentInstance","SliderInstance","TimeSliderInstance","VolumeSliderInstance","AudioGainSliderInstance","SpeedSliderInstance","QualitySliderInstance","SliderThumbnailInstance","SliderValueInstance","SliderVideoInstance","SliderPreviewInstance","SliderChaptersInstance","MenuInstance","MenuButtonInstance","MenuItemsInstance","MenuItemInstance","RadioGroupInstance","RadioInstance","CaptionsInstance","Captions","GestureInstance","Gesture","PosterInstance","Poster","ThumbnailInstance","TimeInstance","Time","Slot","forwardedRef","slotProps","childrenArray","React.Children","slottable","isSlottable","newElement","newChildren","React.isValidElement","SlotClone","React.cloneElement","mergeProps","Slottable","React.Fragment","childProps","overrideProps","slotPropValue","childPropValue","NODES","Primitive","primitives","Node","asChild","primitiveProps","Comp","isRemotionProvider","sliderStateRecord","initialSliderStore","useSliderState","mediaStateRecord","initialMediaStore","useMediaState","AirPlayButtonBridge","props2","PlayButtonBridge","CaptionButtonBridge","FullscreenButtonBridge","MuteButtonBridge","PIPButtonBridge","SeekButtonBridge","LiveButtonBridge","sliderCallbacks","SliderValueBridge","SliderBridge","Root$5","Thumb","Track","TrackFill","PreviewBridge","Preview","Value","$text","Steps","$min","$max","$step","VolumeSliderBridge","Root$4","createVTTCue","ThumbnailBridge","Root$3","Img","$src","$crossOrigin","TimeSliderContext","TimeSliderBridge","Root$2","$chapters","SliderChaptersBridge","Chapters","ChapterTracks","$cues","emptyCue","ChapterTitle","setTitle","Progress","SliderThumbnailBridge","ThumbnailRoot","VideoBridge","Video","$canLoad","timeSlider","RadioGroupBridge","Root$1","ItemBridge$1","Item$1","MenuBridge","Root","ButtonBridge","Button","Portal","container","shouldPortal","createPortal","ItemsBridge","Items","ItemBridge","Item","GestureBridge","TimeBridge","TimeText","$timeText","MediaAnnouncerBridge","ControlsBridge","ControlsGroupBridge","Group","TooltipBridge","TriggerBridge","Trigger","ContentBridge","Content","GoogleCastButtonBridge","QualitySliderBridge","AudioGainSliderBridge","SpeedSliderBridge","Title","$title","useActiveTextCues","setActiveCues","useActiveTextTrack","setTrack","useChapterTitle","$track","defaultText","$chapterTitle","CaptionsBridge","size","Icon","paths","restProps","DEFAULT_AUDIO_GAINS","AudioGainRadioGroup","_AudioGainRadioGroup_instances","gains","watchHintText_fn","watchControllerDisabled_fn","normalLabel","audiogainradiogroup__proto","playerCallbacks","MediaPlayerBridge","aspectRatio","MediaProviderBridge","iframeProps","mediaProps","reactLoaders","Loader","MediaOutlet","$$provider","$$providerSetup","useMediaContext$1","$sources","$nativeControls","$poster","$loader","$providerSetup","$remoteInfo","$mediaType","$viewType","isAudioView","isYouTubeEmbed","isVimeoEmbed","isEmbed","isRemotion","isGoogleCast","googleCastIconPaths","setGoogleCastIconPaths","hasMounted","setHasMounted","vidstackCNjv_Zem","mod","ToggleButtonBridge","PosterBridge","PosterImg","$alt","$hidden","Text","activeCue","setActiveCue","Icon$1","Icon$2","Icon$3","Icon$4","Icon$6","Icon$7","Icon$9","Icon$10","Icon$12","Icon$14","Icon$15","Icon$17","Icon$18","Icon$20","Icon$21","Icon$23","Icon$25","Icon$28","Icon$29","Icon$30","Icon$32","Icon$36","Icon$37","Icon$38","Icon$41","Icon$42","Icon$43","Icon$44","Icon$45","Icon$46","Icon$47","Icon$48","Icon$49","Icon$50","Icon$51","Icon$52","Icon$55","Icon$57","Icon$58","Icon$64","Icon$65","Icon$66","Icon$67","Icon$68","Icon$69","Icon$70","Icon$71","Icon$72","Icon$73","Icon$75","Icon$76","Icon$78","Icon$79","Icon$80","Icon$82","Icon$83","Icon$84","Icon$85","Icon$86","Icon$87","Icon$89","Icon$90","Icon$91","Icon$92","Icon$93","Icon$94","Icon$95","Icon$96","Icon$97","Icon$98","Icon$99","Icon$100","Icon$101","Icon$102","Icon$103","Icon$106"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],"sources":["../../../../node_modules/@vidstack/react/prod/chunks/vidstack-CNjv_Zem.js","../../../../node_modules/@vidstack/react/prod/chunks/vidstack-WyKbSRm0.js","../../../../node_modules/@vidstack/react/prod/chunks/vidstack-B7xS8hE4.js","../../../../node_modules/@vidstack/react/prod/chunks/vidstack-G6lmWJUv.js","../../../../node_modules/@vidstack/react/prod/chunks/vidstack-CBF7iUqu.js","../../../../node_modules/@vidstack/react/prod/vidstack.js","../../../../node_modules/media-icons/dist/icons/accessibility.js","../../../../node_modules/media-icons/dist/icons/add-note.js","../../../../node_modules/media-icons/dist/icons/add-playlist.js","../../../../node_modules/media-icons/dist/icons/add-user.js","../../../../node_modules/media-icons/dist/icons/add.js","../../../../node_modules/media-icons/dist/icons/airplay.js","../../../../node_modules/media-icons/dist/icons/arrow-collapse-in.js","../../../../node_modules/media-icons/dist/icons/arrow-collapse.js","../../../../node_modules/media-icons/dist/icons/arrow-down.js","../../../../node_modules/media-icons/dist/icons/arrow-expand-out.js","../../../../node_modules/media-icons/dist/icons/arrow-expand.js","../../../../node_modules/media-icons/dist/icons/arrow-left.js","../../../../node_modules/media-icons/dist/icons/arrow-right.js","../../../../node_modules/media-icons/dist/icons/arrow-up.js","../../../../node_modules/media-icons/dist/icons/bookmark.js","../../../../node_modules/media-icons/dist/icons/camera.js","../../../../node_modules/media-icons/dist/icons/chapters.js","../../../../node_modules/media-icons/dist/icons/chat-collapse.js","../../../../node_modules/media-icons/dist/icons/chat.js","../../../../node_modules/media-icons/dist/icons/check.js","../../../../node_modules/media-icons/dist/icons/chevron-down.js","../../../../node_modules/media-icons/dist/icons/chevron-left.js","../../../../node_modules/media-icons/dist/icons/chevron-right.js","../../../../node_modules/media-icons/dist/icons/chevron-up.js","../../../../node_modules/media-icons/dist/icons/chromecast.js","../../../../node_modules/media-icons/dist/icons/clip.js","../../../../node_modules/media-icons/dist/icons/closed-captions-on.js","../../../../node_modules/media-icons/dist/icons/closed-captions.js","../../../../node_modules/media-icons/dist/icons/comment.js","../../../../node_modules/media-icons/dist/icons/computer.js","../../../../node_modules/media-icons/dist/icons/device.js","../../../../node_modules/media-icons/dist/icons/download.js","../../../../node_modules/media-icons/dist/icons/episodes.js","../../../../node_modules/media-icons/dist/icons/eye.js","../../../../node_modules/media-icons/dist/icons/fast-backward.js","../../../../node_modules/media-icons/dist/icons/fast-forward.js","../../../../node_modules/media-icons/dist/icons/flag.js","../../../../node_modules/media-icons/dist/icons/fullscreen-arrow-exit.js","../../../../node_modules/media-icons/dist/icons/fullscreen-arrow.js","../../../../node_modules/media-icons/dist/icons/fullscreen-exit.js","../../../../node_modules/media-icons/dist/icons/fullscreen.js","../../../../node_modules/media-icons/dist/icons/heart.js","../../../../node_modules/media-icons/dist/icons/info.js","../../../../node_modules/media-icons/dist/icons/language.js","../../../../node_modules/media-icons/dist/icons/link.js","../../../../node_modules/media-icons/dist/icons/lock-closed.js","../../../../node_modules/media-icons/dist/icons/lock-open.js","../../../../node_modules/media-icons/dist/icons/menu-horizontal.js","../../../../node_modules/media-icons/dist/icons/menu-vertical.js","../../../../node_modules/media-icons/dist/icons/microphone.js","../../../../node_modules/media-icons/dist/icons/mobile.js","../../../../node_modules/media-icons/dist/icons/moon.js","../../../../node_modules/media-icons/dist/icons/music-off.js","../../../../node_modules/media-icons/dist/icons/music.js","../../../../node_modules/media-icons/dist/icons/mute.js","../../../../node_modules/media-icons/dist/icons/next.js","../../../../node_modules/media-icons/dist/icons/no-eye.js","../../../../node_modules/media-icons/dist/icons/notification.js","../../../../node_modules/media-icons/dist/icons/odometer.js","../../../../node_modules/media-icons/dist/icons/pause.js","../../../../node_modules/media-icons/dist/icons/picture-in-picture-exit.js","../../../../node_modules/media-icons/dist/icons/picture-in-picture.js","../../../../node_modules/media-icons/dist/icons/play.js","../../../../node_modules/media-icons/dist/icons/playback-speed-circle.js","../../../../node_modules/media-icons/dist/icons/playlist.js","../../../../node_modules/media-icons/dist/icons/previous.js","../../../../node_modules/media-icons/dist/icons/question-mark.js","../../../../node_modules/media-icons/dist/icons/queue-list.js","../../../../node_modules/media-icons/dist/icons/radio-button-selected.js","../../../../node_modules/media-icons/dist/icons/radio-button.js","../../../../node_modules/media-icons/dist/icons/repeat-on.js","../../../../node_modules/media-icons/dist/icons/repeat-square-on.js","../../../../node_modules/media-icons/dist/icons/repeat-square.js","../../../../node_modules/media-icons/dist/icons/repeat.js","../../../../node_modules/media-icons/dist/icons/replay.js","../../../../node_modules/media-icons/dist/icons/rotate.js","../../../../node_modules/media-icons/dist/icons/search.js","../../../../node_modules/media-icons/dist/icons/seek-backward-10.js","../../../../node_modules/media-icons/dist/icons/seek-backward-15.js","../../../../node_modules/media-icons/dist/icons/seek-backward-30.js","../../../../node_modules/media-icons/dist/icons/seek-backward.js","../../../../node_modules/media-icons/dist/icons/seek-forward-10.js","../../../../node_modules/media-icons/dist/icons/seek-forward-15.js","../../../../node_modules/media-icons/dist/icons/seek-forward-30.js","../../../../node_modules/media-icons/dist/icons/seek-forward.js","../../../../node_modules/media-icons/dist/icons/send.js","../../../../node_modules/media-icons/dist/icons/settings-menu.js","../../../../node_modules/media-icons/dist/icons/settings-switch.js","../../../../node_modules/media-icons/dist/icons/settings.js","../../../../node_modules/media-icons/dist/icons/share-arrow.js","../../../../node_modules/media-icons/dist/icons/share.js","../../../../node_modules/media-icons/dist/icons/shuffle-on.js","../../../../node_modules/media-icons/dist/icons/shuffle.js","../../../../node_modules/media-icons/dist/icons/stop.js","../../../../node_modules/media-icons/dist/icons/subtitles.js","../../../../node_modules/media-icons/dist/icons/sun.js","../../../../node_modules/media-icons/dist/icons/theatre-mode-exit.js","../../../../node_modules/media-icons/dist/icons/theatre-mode.js","../../../../node_modules/media-icons/dist/icons/thumbs-down.js","../../../../node_modules/media-icons/dist/icons/thumbs-up.js","../../../../node_modules/media-icons/dist/icons/timer.js","../../../../node_modules/media-icons/dist/icons/transcript.js","../../../../node_modules/media-icons/dist/icons/tv.js","../../../../node_modules/media-icons/dist/icons/user.js","../../../../node_modules/media-icons/dist/icons/volume-high.js","../../../../node_modules/media-icons/dist/icons/volume-low.js","../../../../node_modules/media-icons/dist/icons/x-mark.js"],"sourcesContent":["\"use client\"\n\nimport * as React from 'react';\n\nconst IS_SERVER = typeof document === \"undefined\";\nconst SCOPE = Symbol(0);\nlet scheduledEffects = false, runningEffects = false, currentScope = null, currentObserver = null, currentObservers = null, currentObserversIndex = 0, effects = [], defaultContext = {};\nconst NOOP = () => {\n}, STATE_CLEAN = 0, STATE_CHECK = 1, STATE_DIRTY = 2, STATE_DISPOSED = 3;\nfunction flushEffects() {\n scheduledEffects = true;\n queueMicrotask(runEffects);\n}\nfunction runEffects() {\n if (!effects.length) {\n scheduledEffects = false;\n return;\n }\n runningEffects = true;\n for (let i = 0; i < effects.length; i++) {\n if (effects[i].$st !== STATE_CLEAN)\n runTop(effects[i]);\n }\n effects = [];\n scheduledEffects = false;\n runningEffects = false;\n}\nfunction runTop(node) {\n let ancestors = [node];\n while (node = node[SCOPE]) {\n if (node.$e && node.$st !== STATE_CLEAN)\n ancestors.push(node);\n }\n for (let i = ancestors.length - 1; i >= 0; i--) {\n updateCheck(ancestors[i]);\n }\n}\nfunction root(init) {\n const scope = createScope();\n return compute(scope, !init.length ? init : init.bind(null, dispose.bind(scope)), null);\n}\nfunction peek(fn) {\n return compute(currentScope, fn, null);\n}\nfunction untrack(fn) {\n return compute(null, fn, null);\n}\nfunction tick() {\n if (!runningEffects)\n runEffects();\n}\nfunction getScope() {\n return currentScope;\n}\nfunction scoped(run2, scope) {\n try {\n return compute(scope, run2, null);\n } catch (error) {\n handleError(scope, error);\n return;\n }\n}\nfunction getContext(key, scope = currentScope) {\n return scope?.$cx[key];\n}\nfunction setContext(key, value, scope = currentScope) {\n if (scope)\n scope.$cx = { ...scope.$cx, [key]: value };\n}\nfunction onDispose(disposable) {\n if (!disposable || !currentScope)\n return disposable || NOOP;\n const node = currentScope;\n if (!node.$d) {\n node.$d = disposable;\n } else if (Array.isArray(node.$d)) {\n node.$d.push(disposable);\n } else {\n node.$d = [node.$d, disposable];\n }\n return function removeDispose() {\n if (node.$st === STATE_DISPOSED)\n return;\n disposable.call(null);\n if (isFunction$1(node.$d)) {\n node.$d = null;\n } else if (Array.isArray(node.$d)) {\n node.$d.splice(node.$d.indexOf(disposable), 1);\n }\n };\n}\nfunction dispose(self = true) {\n if (this.$st === STATE_DISPOSED)\n return;\n if (this.$h) {\n if (Array.isArray(this.$h)) {\n for (let i = this.$h.length - 1; i >= 0; i--) {\n dispose.call(this.$h[i]);\n }\n } else {\n dispose.call(this.$h);\n }\n }\n if (self) {\n const parent = this[SCOPE];\n if (parent) {\n if (Array.isArray(parent.$h)) {\n parent.$h.splice(parent.$h.indexOf(this), 1);\n } else {\n parent.$h = null;\n }\n }\n disposeNode(this);\n }\n}\nfunction disposeNode(node) {\n node.$st = STATE_DISPOSED;\n if (node.$d)\n emptyDisposal(node);\n if (node.$s)\n removeSourceObservers(node, 0);\n node[SCOPE] = null;\n node.$s = null;\n node.$o = null;\n node.$h = null;\n node.$cx = defaultContext;\n node.$eh = null;\n}\nfunction emptyDisposal(scope) {\n try {\n if (Array.isArray(scope.$d)) {\n for (let i = scope.$d.length - 1; i >= 0; i--) {\n const callable = scope.$d[i];\n callable.call(callable);\n }\n } else {\n scope.$d.call(scope.$d);\n }\n scope.$d = null;\n } catch (error) {\n handleError(scope, error);\n }\n}\nfunction compute(scope, compute2, observer) {\n const prevScope = currentScope, prevObserver = currentObserver;\n currentScope = scope;\n currentObserver = observer;\n try {\n return compute2.call(scope);\n } finally {\n currentScope = prevScope;\n currentObserver = prevObserver;\n }\n}\nfunction handleError(scope, error) {\n if (!scope || !scope.$eh)\n throw error;\n let i = 0, len = scope.$eh.length, currentError = error;\n for (i = 0; i < len; i++) {\n try {\n scope.$eh[i](currentError);\n break;\n } catch (error2) {\n currentError = error2;\n }\n }\n if (i === len)\n throw currentError;\n}\nfunction read() {\n if (this.$st === STATE_DISPOSED)\n return this.$v;\n if (currentObserver && !this.$e) {\n if (!currentObservers && currentObserver.$s && currentObserver.$s[currentObserversIndex] == this) {\n currentObserversIndex++;\n } else if (!currentObservers)\n currentObservers = [this];\n else\n currentObservers.push(this);\n }\n if (this.$c)\n updateCheck(this);\n return this.$v;\n}\nfunction write(newValue) {\n const value = isFunction$1(newValue) ? newValue(this.$v) : newValue;\n if (this.$ch(this.$v, value)) {\n this.$v = value;\n if (this.$o) {\n for (let i = 0; i < this.$o.length; i++) {\n notify(this.$o[i], STATE_DIRTY);\n }\n }\n }\n return this.$v;\n}\nconst ScopeNode = function Scope() {\n this[SCOPE] = null;\n this.$h = null;\n if (currentScope)\n currentScope.append(this);\n};\nconst ScopeProto = ScopeNode.prototype;\nScopeProto.$cx = defaultContext;\nScopeProto.$eh = null;\nScopeProto.$c = null;\nScopeProto.$d = null;\nScopeProto.append = function(child) {\n child[SCOPE] = this;\n if (!this.$h) {\n this.$h = child;\n } else if (Array.isArray(this.$h)) {\n this.$h.push(child);\n } else {\n this.$h = [this.$h, child];\n }\n child.$cx = child.$cx === defaultContext ? this.$cx : { ...this.$cx, ...child.$cx };\n if (this.$eh) {\n child.$eh = !child.$eh ? this.$eh : [...child.$eh, ...this.$eh];\n }\n};\nScopeProto.dispose = function() {\n dispose.call(this);\n};\nfunction createScope() {\n return new ScopeNode();\n}\nconst ComputeNode = function Computation(initialValue, compute2, options) {\n ScopeNode.call(this);\n this.$st = compute2 ? STATE_DIRTY : STATE_CLEAN;\n this.$i = false;\n this.$e = false;\n this.$s = null;\n this.$o = null;\n this.$v = initialValue;\n if (compute2)\n this.$c = compute2;\n if (options && options.dirty)\n this.$ch = options.dirty;\n};\nconst ComputeProto = ComputeNode.prototype;\nObject.setPrototypeOf(ComputeProto, ScopeProto);\nComputeProto.$ch = isNotEqual;\nComputeProto.call = read;\nfunction createComputation(initialValue, compute2, options) {\n return new ComputeNode(initialValue, compute2, options);\n}\nfunction isNotEqual(a, b) {\n return a !== b;\n}\nfunction isFunction$1(value) {\n return typeof value === \"function\";\n}\nfunction updateCheck(node) {\n if (node.$st === STATE_CHECK) {\n for (let i = 0; i < node.$s.length; i++) {\n updateCheck(node.$s[i]);\n if (node.$st === STATE_DIRTY) {\n break;\n }\n }\n }\n if (node.$st === STATE_DIRTY)\n update(node);\n else\n node.$st = STATE_CLEAN;\n}\nfunction cleanup(node) {\n if (node.$h)\n dispose.call(node, false);\n if (node.$d)\n emptyDisposal(node);\n node.$eh = node[SCOPE] ? node[SCOPE].$eh : null;\n}\nfunction update(node) {\n let prevObservers = currentObservers, prevObserversIndex = currentObserversIndex;\n currentObservers = null;\n currentObserversIndex = 0;\n try {\n cleanup(node);\n const result = compute(node, node.$c, node);\n updateObservers(node);\n if (!node.$e && node.$i) {\n write.call(node, result);\n } else {\n node.$v = result;\n node.$i = true;\n }\n } catch (error) {\n updateObservers(node);\n handleError(node, error);\n } finally {\n currentObservers = prevObservers;\n currentObserversIndex = prevObserversIndex;\n node.$st = STATE_CLEAN;\n }\n}\nfunction updateObservers(node) {\n if (currentObservers) {\n if (node.$s)\n removeSourceObservers(node, currentObserversIndex);\n if (node.$s && currentObserversIndex > 0) {\n node.$s.length = currentObserversIndex + currentObservers.length;\n for (let i = 0; i < currentObservers.length; i++) {\n node.$s[currentObserversIndex + i] = currentObservers[i];\n }\n } else {\n node.$s = currentObservers;\n }\n let source;\n for (let i = currentObserversIndex; i < node.$s.length; i++) {\n source = node.$s[i];\n if (!source.$o)\n source.$o = [node];\n else\n source.$o.push(node);\n }\n } else if (node.$s && currentObserversIndex < node.$s.length) {\n removeSourceObservers(node, currentObserversIndex);\n node.$s.length = currentObserversIndex;\n }\n}\nfunction notify(node, state) {\n if (node.$st >= state)\n return;\n if (node.$e && node.$st === STATE_CLEAN) {\n effects.push(node);\n if (!scheduledEffects)\n flushEffects();\n }\n node.$st = state;\n if (node.$o) {\n for (let i = 0; i < node.$o.length; i++) {\n notify(node.$o[i], STATE_CHECK);\n }\n }\n}\nfunction removeSourceObservers(node, index) {\n let source, swap;\n for (let i = index; i < node.$s.length; i++) {\n source = node.$s[i];\n if (source.$o) {\n swap = source.$o.indexOf(node);\n source.$o[swap] = source.$o[source.$o.length - 1];\n source.$o.pop();\n }\n }\n}\nfunction signal(initialValue, options) {\n const node = createComputation(initialValue, null, options), signal2 = read.bind(node);\n signal2[SCOPE] = true;\n signal2.set = write.bind(node);\n return signal2;\n}\nfunction isReadSignal(fn) {\n return isFunction$1(fn) && SCOPE in fn;\n}\nfunction computed(compute2, options) {\n const node = createComputation(\n options?.initial,\n compute2,\n options\n ), signal2 = read.bind(node);\n signal2[SCOPE] = true;\n return signal2;\n}\nfunction effect$1(effect2, options) {\n const signal2 = createComputation(\n null,\n function runEffect() {\n let effectResult = effect2();\n isFunction$1(effectResult) && onDispose(effectResult);\n return null;\n },\n void 0\n );\n signal2.$e = true;\n update(signal2);\n return dispose.bind(signal2, true);\n}\nfunction isWriteSignal(fn) {\n return isReadSignal(fn) && \"set\" in fn;\n}\nfunction noop(...args) {\n}\nfunction isNull(value) {\n return value === null;\n}\nfunction isUndefined(value) {\n return typeof value === \"undefined\";\n}\nfunction isNil(value) {\n return isNull(value) || isUndefined(value);\n}\nfunction isObject(value) {\n return value?.constructor === Object;\n}\nfunction isNumber(value) {\n return typeof value === \"number\" && !Number.isNaN(value);\n}\nfunction isString(value) {\n return typeof value === \"string\";\n}\nfunction isBoolean(value) {\n return typeof value === \"boolean\";\n}\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\nfunction isArray(value) {\n return Array.isArray(value);\n}\nconst effect = IS_SERVER ? serverEffect : effect$1;\nfunction serverEffect(effect2, options) {\n if (typeof process !== \"undefined\" && process.env?.NODE_ENV === \"test\") {\n return effect$1(effect2);\n }\n return noop;\n}\nconst EVENT = IS_SERVER ? class Event2 {\n} : Event, DOM_EVENT = Symbol(\"DOM_EVENT\");\nclass DOMEvent extends EVENT {\n [DOM_EVENT] = true;\n /**\n * The event detail.\n */\n detail;\n /**\n * The event trigger chain.\n */\n triggers = new EventTriggers();\n /**\n * The preceding event that was responsible for this event being fired.\n */\n get trigger() {\n return this.triggers.source;\n }\n /**\n * The origin event that lead to this event being fired.\n */\n get originEvent() {\n return this.triggers.origin;\n }\n /**\n * Whether the origin event was triggered by the user.\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted}\n */\n get isOriginTrusted() {\n return this.triggers.origin?.isTrusted ?? false;\n }\n constructor(type, ...init) {\n super(type, init[0]);\n this.detail = init[0]?.detail;\n const trigger = init[0]?.trigger;\n if (trigger) this.triggers.add(trigger);\n }\n}\nclass EventTriggers {\n chain = [];\n get source() {\n return this.chain[0];\n }\n get origin() {\n return this.chain[this.chain.length - 1];\n }\n /**\n * Appends the event to the end of the chain.\n */\n add(event) {\n this.chain.push(event);\n if (isDOMEvent(event)) {\n this.chain.push(...event.triggers);\n }\n }\n /**\n * Removes the event from the chain and returns it (if found).\n */\n remove(event) {\n return this.chain.splice(this.chain.indexOf(event), 1)[0];\n }\n /**\n * Returns whether the chain contains the given `event`.\n */\n has(event) {\n return this.chain.some((e) => e === event);\n }\n /**\n * Returns whether the chain contains the given event type.\n */\n hasType(type) {\n return !!this.findType(type);\n }\n /**\n * Returns the first event with the given `type` found in the chain.\n */\n findType(type) {\n return this.chain.find((e) => e.type === type);\n }\n /**\n * Walks an event chain on a given `event`, and invokes the given `callback` for each trigger event.\n */\n walk(callback) {\n for (const event of this.chain) {\n const returnValue = callback(event);\n if (returnValue) return [event, returnValue];\n }\n }\n [Symbol.iterator]() {\n return this.chain.values();\n }\n}\nfunction isDOMEvent(event) {\n return !!event?.[DOM_EVENT];\n}\nfunction walkTriggerEventChain(event, callback) {\n if (!isDOMEvent(event)) return;\n return event.triggers.walk(callback);\n}\nfunction findTriggerEvent(event, type) {\n return isDOMEvent(event) ? event.triggers.findType(type) : void 0;\n}\nfunction hasTriggerEvent(event, type) {\n return !!findTriggerEvent(event, type);\n}\nfunction appendTriggerEvent(event, trigger) {\n if (trigger) event.triggers.add(trigger);\n}\nclass EventsTarget extends EventTarget {\n /** @internal type only */\n $ts__events;\n addEventListener(type, callback, options) {\n return super.addEventListener(type, callback, options);\n }\n removeEventListener(type, callback, options) {\n return super.removeEventListener(type, callback, options);\n }\n}\nfunction listenEvent(target, type, handler, options) {\n if (IS_SERVER) return noop;\n target.addEventListener(type, handler, options);\n return onDispose(() => target.removeEventListener(type, handler, options));\n}\nclass EventsController {\n #target;\n #controller;\n get signal() {\n return this.#controller.signal;\n }\n constructor(target) {\n this.#target = target;\n this.#controller = new AbortController();\n onDispose(this.abort.bind(this));\n }\n add(type, handler, options) {\n if (this.signal.aborted) throw Error(\"aborted\");\n this.#target.addEventListener(type, handler, {\n ...options,\n signal: options?.signal ? anySignal(this.signal, options.signal) : this.signal\n });\n return this;\n }\n remove(type, handler) {\n this.#target.removeEventListener(type, handler);\n return this;\n }\n abort(reason) {\n this.#controller.abort(reason);\n }\n}\nfunction anySignal(...signals) {\n const controller = new AbortController(), options = { signal: controller.signal };\n function onAbort(event) {\n controller.abort(event.target.reason);\n }\n for (const signal2 of signals) {\n if (signal2.aborted) {\n controller.abort(signal2.reason);\n break;\n }\n signal2.addEventListener(\"abort\", onAbort, options);\n }\n return controller.signal;\n}\nfunction isPointerEvent(event) {\n return !!event?.type.startsWith(\"pointer\");\n}\nfunction isTouchEvent(event) {\n return !!event?.type.startsWith(\"touch\");\n}\nfunction isMouseEvent(event) {\n return /^(click|mouse)/.test(event?.type ?? \"\");\n}\nfunction isKeyboardEvent(event) {\n return !!event?.type.startsWith(\"key\");\n}\nfunction wasEnterKeyPressed(event) {\n return isKeyboardEvent(event) && event.key === \"Enter\";\n}\nfunction isKeyboardClick(event) {\n return isKeyboardEvent(event) && (event.key === \"Enter\" || event.key === \" \");\n}\nfunction isDOMNode(node) {\n return node instanceof Node;\n}\nfunction setAttribute(host, name, value) {\n if (!host) return;\n else if (!value && value !== \"\" && value !== 0) {\n host.removeAttribute(name);\n } else {\n const attrValue = value === true ? \"\" : value + \"\";\n if (host.getAttribute(name) !== attrValue) {\n host.setAttribute(name, attrValue);\n }\n }\n}\nfunction setStyle(host, property, value) {\n if (!host) return;\n else if (!value && value !== 0) {\n host.style.removeProperty(property);\n } else {\n host.style.setProperty(property, value + \"\");\n }\n}\nfunction toggleClass(host, name, value) {\n host.classList[value ? \"add\" : \"remove\"](name);\n}\nfunction unwrapDeep(fn) {\n let value = fn;\n while (typeof value === \"function\") value = value.call(this);\n return value;\n}\nfunction createContext(provide) {\n return { id: Symbol(), provide };\n}\nfunction provideContext(context, value, scope = getScope()) {\n const hasProvidedValue = !isUndefined(value);\n setContext(context.id, hasProvidedValue ? value : context.provide?.(), scope);\n}\nfunction useContext(context) {\n const value = getContext(context.id);\n return value;\n}\nfunction hasProvidedContext(context) {\n return !isUndefined(getContext(context.id));\n}\nconst PROPS = /* @__PURE__ */ Symbol(0);\nconst METHODS = /* @__PURE__ */ Symbol(0);\nconst ON_DISPATCH = /* @__PURE__ */ Symbol(0);\nconst EMPTY_PROPS = {};\nclass Instance {\n /** @internal type only */\n $ts__events;\n /** @internal type only */\n $ts__vars;\n /* @internal */\n [ON_DISPATCH] = null;\n $el = signal(null);\n el = null;\n scope = null;\n attachScope = null;\n connectScope = null;\n component = null;\n destroyed = false;\n props = EMPTY_PROPS;\n attrs = null;\n styles = null;\n state;\n $state;\n #setupCallbacks = [];\n #attachCallbacks = [];\n #connectCallbacks = [];\n #destroyCallbacks = [];\n constructor(Component2, scope, init) {\n this.scope = scope;\n if (init?.scope) init.scope.append(scope);\n let stateFactory = Component2.state, props = Component2.props;\n if (stateFactory) {\n this.$state = stateFactory.create();\n this.state = new Proxy(this.$state, {\n get: (_, prop2) => this.$state[prop2]()\n });\n provideContext(stateFactory, this.$state);\n }\n if (props) {\n this.props = createInstanceProps(props);\n if (init?.props) {\n for (const prop2 of Object.keys(init.props)) {\n this.props[prop2]?.set(init.props[prop2]);\n }\n }\n }\n onDispose(this.destroy.bind(this));\n }\n setup() {\n scoped(() => {\n for (const callback of this.#setupCallbacks) callback();\n }, this.scope);\n }\n attach(el) {\n if (this.el) return;\n this.el = el;\n this.$el.set(el);\n scoped(() => {\n this.attachScope = createScope();\n scoped(() => {\n for (const callback of this.#attachCallbacks) callback(this.el);\n this.#attachAttrs();\n this.#attachStyles();\n }, this.attachScope);\n }, this.scope);\n el.dispatchEvent(new Event(\"attached\"));\n }\n detach() {\n this.attachScope?.dispose();\n this.attachScope = null;\n this.connectScope = null;\n this.el = null;\n this.$el.set(null);\n }\n connect() {\n if (!this.el || !this.attachScope || !this.#connectCallbacks.length) return;\n scoped(() => {\n this.connectScope = createScope();\n scoped(() => {\n for (const callback of this.#connectCallbacks) callback(this.el);\n }, this.connectScope);\n }, this.attachScope);\n }\n disconnect() {\n this.connectScope?.dispose();\n this.connectScope = null;\n }\n destroy() {\n if (this.destroyed) return;\n this.destroyed = true;\n scoped(() => {\n for (const callback of this.#destroyCallbacks) callback(this.el);\n }, this.scope);\n const el = this.el;\n this.detach();\n this.scope.dispose();\n this.#setupCallbacks.length = 0;\n this.#attachCallbacks.length = 0;\n this.#connectCallbacks.length = 0;\n this.#destroyCallbacks.length = 0;\n this.component = null;\n this.attrs = null;\n this.styles = null;\n this.props = EMPTY_PROPS;\n this.scope = null;\n this.state = EMPTY_PROPS;\n this.$state = null;\n if (el) delete el.$;\n }\n addHooks(target) {\n if (target.onSetup) this.#setupCallbacks.push(target.onSetup.bind(target));\n if (target.onAttach) this.#attachCallbacks.push(target.onAttach.bind(target));\n if (target.onConnect) this.#connectCallbacks.push(target.onConnect.bind(target));\n if (target.onDestroy) this.#destroyCallbacks.push(target.onDestroy.bind(target));\n }\n #attachAttrs() {\n if (!this.attrs) return;\n for (const name of Object.keys(this.attrs)) {\n if (IS_SERVER) {\n setAttribute(this.el, name, unwrapDeep.call(this.component, this.attrs[name]));\n } else if (isFunction(this.attrs[name])) {\n effect(this.#setAttr.bind(this, name));\n } else {\n setAttribute(this.el, name, this.attrs[name]);\n }\n }\n }\n #attachStyles() {\n if (!this.styles) return;\n for (const name of Object.keys(this.styles)) {\n if (IS_SERVER) {\n setStyle(this.el, name, unwrapDeep.call(this.component, this.styles[name]));\n } else if (isFunction(this.styles[name])) {\n effect(this.#setStyle.bind(this, name));\n } else {\n setStyle(this.el, name, this.styles[name]);\n }\n }\n }\n #setAttr(name) {\n setAttribute(this.el, name, this.attrs[name].call(this.component));\n }\n #setStyle(name) {\n setStyle(this.el, name, this.styles[name].call(this.component));\n }\n}\nfunction createInstanceProps(props) {\n const $props = {};\n for (const name of Object.keys(props)) {\n const def = props[name];\n $props[name] = signal(def, def);\n }\n return $props;\n}\nlet currentInstance = { $$: null };\nfunction createComponent(Component2, init) {\n return root(() => {\n currentInstance.$$ = new Instance(Component2, getScope(), init);\n const component = new Component2();\n currentInstance.$$.component = component;\n currentInstance.$$ = null;\n return component;\n });\n}\nclass ViewController extends EventTarget {\n /** @internal */\n $$;\n get el() {\n return this.$$.el;\n }\n get $el() {\n return this.$$.$el();\n }\n get scope() {\n return this.$$.scope;\n }\n get attachScope() {\n return this.$$.attachScope;\n }\n get connectScope() {\n return this.$$.connectScope;\n }\n /** @internal */\n get $props() {\n return this.$$.props;\n }\n /** @internal */\n get $state() {\n return this.$$.$state;\n }\n get state() {\n return this.$$.state;\n }\n constructor() {\n super();\n if (currentInstance.$$) this.attach(currentInstance);\n }\n attach({ $$ }) {\n this.$$ = $$;\n $$.addHooks(this);\n return this;\n }\n addEventListener(type, callback, options) {\n this.listen(type, callback, options);\n }\n removeEventListener(type, callback, options) {\n this.el?.removeEventListener(type, callback, options);\n }\n /**\n * The given callback is invoked when the component is ready to be set up.\n *\n * - This hook will run once.\n * - This hook is called both client-side and server-side.\n * - It's safe to use context inside this hook.\n * - The host element has not attached yet - wait for `onAttach`.\n */\n /**\n * This method can be used to specify attributes that should be set on the host element. Any\n * attributes that are assigned to a function will be considered a signal and updated accordingly.\n */\n setAttributes(attributes) {\n if (!this.$$.attrs) this.$$.attrs = {};\n Object.assign(this.$$.attrs, attributes);\n }\n /**\n * This method can be used to specify styles that should set be set on the host element. Any\n * styles that are assigned to a function will be considered a signal and updated accordingly.\n */\n setStyles(styles) {\n if (!this.$$.styles) this.$$.styles = {};\n Object.assign(this.$$.styles, styles);\n }\n /**\n * This method is used to satisfy the CSS variables contract specified on the current\n * component. Other CSS variables can be set via the `setStyles` method.\n */\n setCSSVars(vars) {\n this.setStyles(vars);\n }\n /**\n * Type-safe utility for creating component DOM events.\n */\n createEvent(type, ...init) {\n return new DOMEvent(type, init[0]);\n }\n /**\n * Creates a `DOMEvent` and dispatches it from the host element. This method is typed to\n * match all component events.\n */\n dispatch(type, ...init) {\n if (IS_SERVER || !this.el) return false;\n const event = type instanceof Event ? type : new DOMEvent(type, init[0]);\n Object.defineProperty(event, \"target\", {\n get: () => this.$$.component\n });\n return untrack(() => {\n this.$$[ON_DISPATCH]?.(event);\n return this.el.dispatchEvent(event);\n });\n }\n dispatchEvent(event) {\n return this.dispatch(event);\n }\n /**\n * Adds an event listener for the given `type` and returns a function which can be invoked to\n * remove the event listener.\n *\n * - The listener is removed if the current scope is disposed.\n * - This method is safe to use on the server (noop).\n */\n listen(type, handler, options) {\n if (IS_SERVER || !this.el) return noop;\n return listenEvent(this.el, type, handler, options);\n }\n}\nclass Component extends ViewController {\n subscribe(callback) {\n return scoped(() => effect(() => callback(this.state)), this.$$.scope);\n }\n destroy() {\n this.$$.destroy();\n }\n}\nfunction prop(target, propertyKey, descriptor) {\n if (!target[PROPS]) target[PROPS] = /* @__PURE__ */ new Set();\n target[PROPS].add(propertyKey);\n}\nfunction method(target, propertyKey, descriptor) {\n if (!target[METHODS]) target[METHODS] = /* @__PURE__ */ new Set();\n target[METHODS].add(propertyKey);\n}\nclass State {\n id = Symbol(0);\n record;\n #descriptors;\n constructor(record) {\n this.record = record;\n this.#descriptors = Object.getOwnPropertyDescriptors(record);\n }\n create() {\n const store = {}, state = new Proxy(store, { get: (_, prop2) => store[prop2]() });\n for (const name of Object.keys(this.record)) {\n const getter = this.#descriptors[name].get;\n store[name] = getter ? computed(getter.bind(state)) : signal(this.record[name]);\n }\n return store;\n }\n reset(record, filter) {\n for (const name of Object.keys(record)) {\n if (!this.#descriptors[name].get && (!filter || filter(name))) {\n record[name].set(this.record[name]);\n }\n }\n }\n}\nfunction useState(state) {\n return useContext(state);\n}\nfunction camelToKebabCase(str) {\n return str.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n}\nfunction kebabToCamelCase(str) {\n return str.replace(/-./g, (x) => x[1].toUpperCase());\n}\nfunction kebabToPascalCase(str) {\n return kebabToTitleCase(str).replace(/\\s/g, \"\");\n}\nfunction kebabToTitleCase(str) {\n return uppercaseFirstChar(str.replace(/-./g, (x) => \" \" + x[1].toUpperCase()));\n}\nfunction uppercaseFirstChar(str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\nconst ReactScopeContext = React.createContext({ current: null });\nReactScopeContext.displayName = \"Scope\";\nfunction WithScope(scope, ...children) {\n return React.createElement(ReactScopeContext.Provider, { value: scope }, ...children);\n}\nfunction useReactScope() {\n return React.useContext(ReactScopeContext).current;\n}\nfunction useReactContext(context) {\n const scope = useReactScope();\n return React.useMemo(() => getContext(context.id, scope), [scope]);\n}\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => refs.forEach((ref) => setRef(ref, node));\n}\nfunction createClientComponent(Component2, options) {\n const forwardComponent = React.forwardRef((props, forwardRef) => {\n let parentScopeRef = React.useContext(ReactScopeContext), scopeRef = React.useRef(null), stateRef = React.useRef();\n if (!stateRef.current) {\n const state2 = createInternalState(), component = initComponent(Component2, state2, props, parentScopeRef.current);\n state2.component = component;\n stateRef.current = state2;\n scopeRef.current = component.scope;\n }\n function onAttach() {\n let state2 = stateRef.current, scope = parentScopeRef.current;\n window.cancelAnimationFrame(state2.destroyId);\n state2.destroyId = -1;\n if (state2.component.$$.destroyed) {\n const component = initComponent(Component2, state2, props, scope);\n state2.component = component;\n state2.attached = false;\n state2.forwardRef = false;\n scopeRef.current = component.scope;\n }\n if (state2.el) {\n attachToHost(state2, state2.el);\n }\n if (!state2.forwardRef) {\n setRef(forwardRef, state2.component);\n state2.forwardRef = true;\n }\n return () => detachFromHost(state2);\n }\n function onRefChange(el) {\n const state2 = stateRef.current;\n if (!state2.forwardRef) {\n state2.el = el;\n return;\n }\n window.cancelAnimationFrame(state2.refChangeId);\n state2.refChangeId = window.requestAnimationFrame(() => {\n const state3 = stateRef.current;\n state3.refChangeId = -1;\n if (state3.el === el) return;\n detachFromHost(state3);\n if (el) attachToHost(state3, el);\n state3.el = el;\n });\n }\n React.useEffect(() => {\n const state2 = stateRef.current;\n window.cancelAnimationFrame(state2.destroyId);\n state2.destroyId = -1;\n return function onDestroy() {\n if (!isFunction(props.children)) return;\n window.cancelAnimationFrame(state2.refChangeId);\n state2.refChangeId = -1;\n window.cancelAnimationFrame(state2.connectId);\n state2.connectId = -1;\n window.cancelAnimationFrame(state2.destroyId);\n state2.destroyId = window.requestAnimationFrame(() => {\n state2.destroyId = -1;\n detachFromHost(state2);\n state2.component.$$.destroy();\n state2.component.$$[ON_DISPATCH] = null;\n state2.callbacks = {};\n state2.domCallbacks = {};\n scopeRef.current = null;\n });\n };\n }, []);\n React.useEffect(tick);\n let state = stateRef.current, { children, ...renderProps } = props, attrs = {}, prevPropNames = state.prevProps, newPropNames = Object.keys(renderProps);\n state.callbacks = {};\n for (const name of [...prevPropNames, ...newPropNames]) {\n if (options.props.has(name)) {\n state.component.$props[name].set(\n // If the prop was removed we'll use the default value provided on Component creation.\n isUndefined(renderProps[name]) ? Component2.props?.[name] : renderProps[name]\n );\n } else if (options.events?.has(name) || options.eventsRE?.test(name)) {\n state.callbacks[name] = renderProps[name];\n } else if (options.domEvents?.has(name) || options.domEventsRE?.test(name)) {\n let type = camelToKebabCase(name.slice(2));\n state.domCallbacks[type] = renderProps[name];\n if (!newPropNames.includes(name)) {\n state.el?.removeEventListener(type, state.onDOMEvent);\n state.listening?.delete(type);\n } else if (state.el && !state.listening?.has(type)) {\n if (!state.listening) state.listening = /* @__PURE__ */ new Set();\n state.listening.add(type);\n state.el.addEventListener(type, state.onDOMEvent);\n }\n } else {\n attrs[name] = renderProps[name];\n }\n }\n state.prevProps = newPropNames;\n return WithScope(\n scopeRef,\n React.createElement(AttachEffect, {\n effect: onAttach\n }),\n isFunction(children) ? children?.(\n {\n ...attrs,\n suppressHydrationWarning: true,\n ref: onRefChange\n },\n state.component\n ) : children\n );\n });\n forwardComponent.displayName = Component2.name + \"Bridge\";\n return forwardComponent;\n}\nfunction AttachEffect({ effect: effect2 }) {\n React.useEffect(effect2, []);\n return null;\n}\nconst eventTypeToCallbackName = /* @__PURE__ */ new Map();\nfunction createInternalState() {\n const state = {\n el: null,\n prevProps: [],\n callbacks: {},\n domCallbacks: {},\n refChangeId: -1,\n connectId: -1,\n destroyId: -1,\n attached: false,\n forwardRef: false,\n listening: null,\n onDOMEvent(event) {\n const args = !isUndefined(event.detail) ? [event.detail, event] : [event];\n state.domCallbacks[event.type]?.(...args);\n }\n };\n return state;\n}\nfunction attachToHost(state, el) {\n if (state.el === el && state.attached) return;\n else if (state.attached) detachFromHost(state);\n if (state.domCallbacks) {\n if (!state.listening) state.listening = /* @__PURE__ */ new Set();\n for (const type of Object.keys(state.domCallbacks)) {\n if (state.listening.has(type)) continue;\n el.addEventListener(type, state.onDOMEvent);\n state.listening.add(type);\n }\n }\n state.component.$$.attach(el);\n state.connectId = window.requestAnimationFrame(() => {\n state.component.$$.connect();\n state.connectId = -1;\n });\n state.attached = true;\n}\nfunction detachFromHost(state) {\n if (!state.attached) return;\n window.cancelAnimationFrame(state.connectId);\n state.connectId = -1;\n state.component.$$.detach();\n state.attached = false;\n if (state.el && state.listening) {\n for (const type of state.listening) {\n state.el.removeEventListener(type, state.onDOMEvent);\n }\n state.listening.clear();\n }\n}\nfunction onDispatch(event) {\n let callbackProp = eventTypeToCallbackName.get(event.type), args = !isUndefined(event.detail) ? [event.detail, event] : [event];\n if (!callbackProp) {\n eventTypeToCallbackName.set(event.type, callbackProp = `on${kebabToPascalCase(event.type)}`);\n }\n this.callbacks[callbackProp]?.(...args);\n}\nfunction initComponent(Component2, state, props, scope) {\n const component = createComponent(Component2, { props, scope });\n component.$$[ON_DISPATCH] = onDispatch.bind(state);\n component.$$.setup();\n return component;\n}\nfunction escape(value, isAttr = false) {\n const type = typeof value;\n if (type !== \"string\") {\n if (!isAttr && type === \"function\") return escape(value());\n if (isAttr && type === \"boolean\") return value + \"\";\n return value;\n }\n const delimeter = isAttr ? '\"' : \"<\", escapeDelimeter = isAttr ? \""\" : \"<\";\n let iDelimeter = value.indexOf(delimeter), isAmpersand = value.indexOf(\"&\");\n if (iDelimeter < 0 && isAmpersand < 0) return value;\n let left = 0, out = \"\";\n while (iDelimeter >= 0 && isAmpersand >= 0) {\n if (iDelimeter < isAmpersand) {\n if (left < iDelimeter) out += value.substring(left, iDelimeter);\n out += escapeDelimeter;\n left = iDelimeter + 1;\n iDelimeter = value.indexOf(delimeter, left);\n } else {\n if (left < isAmpersand) out += value.substring(left, isAmpersand);\n out += \"&\";\n left = isAmpersand + 1;\n isAmpersand = value.indexOf(\"&\", left);\n }\n }\n if (iDelimeter >= 0) {\n do {\n if (left < iDelimeter) out += value.substring(left, iDelimeter);\n out += escapeDelimeter;\n left = iDelimeter + 1;\n iDelimeter = value.indexOf(delimeter, left);\n } while (iDelimeter >= 0);\n } else\n while (isAmpersand >= 0) {\n if (left < isAmpersand) out += value.substring(left, isAmpersand);\n out += \"&\";\n left = isAmpersand + 1;\n isAmpersand = value.indexOf(\"&\", left);\n }\n return left < value.length ? out + value.substring(left) : out;\n}\nconst SETUP = /* @__PURE__ */ Symbol(0);\nconst classSplitRE = /\\s+/;\nfunction parseClassAttr(tokens, attrValue) {\n const classes = attrValue.trim().split(classSplitRE);\n for (const token of classes) tokens.add(token);\n}\nconst styleSplitRE = /\\s*:\\s*/;\nconst stylesDelimeterRE = /\\s*;\\s*/;\nfunction parseStyleAttr(tokens, attrValue) {\n const styles = attrValue.trim().split(stylesDelimeterRE);\n for (let i = 0; i < styles.length; i++) {\n if (styles[i] === \"\") continue;\n const [name, value] = styles[i].split(styleSplitRE);\n tokens.set(name, value);\n }\n}\nclass MaverickServerElement {\n keepAlive = false;\n forwardKeepAlive = true;\n $;\n attributes = new ServerAttributes();\n style = new ServerStyle();\n classList = new ServerClassList();\n get $props() {\n return this.$.$$.props;\n }\n get $state() {\n return this.$.$$.$state;\n }\n get state() {\n return this.$.state;\n }\n constructor(component) {\n this.$ = component;\n }\n setup() {\n const instance = this.$.$$;\n scoped(() => {\n if (this.hasAttribute(\"class\")) {\n parseClassAttr(this.classList.tokens, this.getAttribute(\"class\"));\n }\n if (this.hasAttribute(\"style\")) {\n parseStyleAttr(this.style.tokens, this.getAttribute(\"style\"));\n }\n instance.setup();\n instance.attach(this);\n if (this.classList.length > 0) {\n this.setAttribute(\"class\", this.classList.toString());\n }\n if (this.style.length > 0) {\n this.setAttribute(\"style\", this.style.toString());\n }\n if (this.keepAlive) {\n this.setAttribute(\"keep-alive\", \"\");\n }\n }, instance.scope);\n }\n getAttribute(name) {\n return this.attributes.getAttribute(name);\n }\n setAttribute(name, value) {\n this.attributes.setAttribute(name, value);\n }\n hasAttribute(name) {\n return this.attributes.hasAttribute(name);\n }\n removeAttribute(name) {\n return this.attributes.removeAttribute(name);\n }\n [SETUP]() {\n }\n addEventListener() {\n }\n removeEventListener() {\n }\n dispatchEvent() {\n return false;\n }\n subscribe() {\n return noop;\n }\n destroy() {\n this.$.destroy();\n }\n}\nclass ServerAttributes {\n #tokens = /* @__PURE__ */ new Map();\n get length() {\n return this.#tokens.size;\n }\n get tokens() {\n return this.#tokens;\n }\n getAttribute(name) {\n return this.#tokens.get(name) ?? null;\n }\n hasAttribute(name) {\n return this.#tokens.has(name);\n }\n setAttribute(name, value) {\n this.#tokens.set(name, value + \"\");\n }\n removeAttribute(name) {\n this.#tokens.delete(name);\n }\n toString() {\n if (this.#tokens.size === 0) return \"\";\n let result = \"\";\n for (const [name, value] of this.#tokens) {\n result += ` ${name}=\"${escape(value, true)}\"`;\n }\n return result;\n }\n}\nclass ServerStyle {\n #tokens = /* @__PURE__ */ new Map();\n get length() {\n return this.#tokens.size;\n }\n get tokens() {\n return this.#tokens;\n }\n getPropertyValue(prop2) {\n return this.#tokens.get(prop2) ?? \"\";\n }\n setProperty(prop2, value) {\n this.#tokens.set(prop2, value ?? \"\");\n }\n removeProperty(prop2) {\n const value = this.#tokens.get(prop2);\n this.#tokens.delete(prop2);\n return value ?? \"\";\n }\n toString() {\n if (this.#tokens.size === 0) return \"\";\n let result = \"\";\n for (const [name, value] of this.#tokens) {\n result += `${name}: ${value};`;\n }\n return result;\n }\n}\nclass ServerClassList {\n #tokens = /* @__PURE__ */ new Set();\n get length() {\n return this.#tokens.size;\n }\n get tokens() {\n return this.#tokens;\n }\n add(...tokens) {\n for (const token of tokens) {\n this.#tokens.add(token);\n }\n }\n contains(token) {\n return this.#tokens.has(token);\n }\n remove(token) {\n this.#tokens.delete(token);\n }\n replace(token, newToken) {\n if (!this.#tokens.has(token)) return false;\n this.#tokens.delete(token);\n this.#tokens.add(newToken);\n return true;\n }\n toggle(token, force) {\n if (force !== true && (this.#tokens.has(token) || force === false)) {\n this.#tokens.delete(token);\n return false;\n } else {\n this.#tokens.add(token);\n return true;\n }\n }\n toString() {\n return Array.from(this.#tokens).join(\" \");\n }\n}\nconst attrsToProps = {\n acceptcharset: \"acceptCharset\",\n \"accept-charset\": \"acceptCharset\",\n accesskey: \"accessKey\",\n allowfullscreen: \"allowFullScreen\",\n autocapitalize: \"autoCapitalize\",\n autocomplete: \"autoComplete\",\n autocorrect: \"autoCorrect\",\n autofocus: \"autoFocus\",\n autoplay: \"autoPlay\",\n autosave: \"autoSave\",\n cellpadding: \"cellPadding\",\n cellspacing: \"cellSpacing\",\n charset: \"charSet\",\n class: \"className\",\n classid: \"classID\",\n classname: \"className\",\n colspan: \"colSpan\",\n contenteditable: \"contentEditable\",\n contextmenu: \"contextMenu\",\n controlslist: \"controlsList\",\n crossorigin: \"crossOrigin\",\n dangerouslysetinnerhtml: \"dangerouslySetInnerHTML\",\n datetime: \"dateTime\",\n defaultchecked: \"defaultChecked\",\n defaultvalue: \"defaultValue\",\n disablepictureinpicture: \"disablePictureInPicture\",\n disableremoteplayback: \"disableRemotePlayback\",\n enctype: \"encType\",\n enterkeyhint: \"enterKeyHint\",\n fetchpriority: \"fetchPriority\",\n for: \"htmlFor\",\n formmethod: \"formMethod\",\n formaction: \"formAction\",\n formenctype: \"formEncType\",\n formnovalidate: \"formNoValidate\",\n formtarget: \"formTarget\",\n frameborder: \"frameBorder\",\n hreflang: \"hrefLang\",\n htmlfor: \"htmlFor\",\n httpequiv: \"httpEquiv\",\n \"http-equiv\": \"httpEquiv\",\n imagesizes: \"imageSizes\",\n imagesrcset: \"imageSrcSet\",\n innerhtml: \"innerHTML\",\n inputmode: \"inputMode\",\n itemid: \"itemID\",\n itemprop: \"itemProp\",\n itemref: \"itemRef\",\n itemscope: \"itemScope\",\n itemtype: \"itemType\",\n keyparams: \"keyParams\",\n keytype: \"keyType\",\n marginwidth: \"marginWidth\",\n marginheight: \"marginHeight\",\n maxlength: \"maxLength\",\n mediagroup: \"mediaGroup\",\n minlength: \"minLength\",\n nomodule: \"noModule\",\n novalidate: \"noValidate\",\n playsinline: \"playsInline\",\n radiogroup: \"radioGroup\",\n readonly: \"readOnly\",\n referrerpolicy: \"referrerPolicy\",\n rowspan: \"rowSpan\",\n spellcheck: \"spellCheck\",\n srcdoc: \"srcDoc\",\n srclang: \"srcLang\",\n srcset: \"srcSet\",\n tabindex: \"tabIndex\",\n usemap: \"useMap\"\n};\nfunction createServerComponent(Component2, options) {\n function ServerComponent(props) {\n let scope = React.useContext(ReactScopeContext), component = createComponent(Component2, {\n props,\n scope: scope.current\n }), host = new MaverickServerElement(component), attrs = {}, { style = {}, children, forwardRef, ...renderProps } = props;\n if (options.props.size) {\n for (const prop2 of Object.keys(renderProps)) {\n if (!options.props.has(prop2)) attrs[prop2] = renderProps[prop2];\n }\n } else {\n attrs = renderProps;\n }\n host.setup();\n if (host.hasAttribute(\"style\")) {\n for (const [name, value] of host.style.tokens) {\n style[name.startsWith(\"--\") ? name : kebabToCamelCase(name)] = value;\n }\n host.removeAttribute(\"style\");\n }\n for (const [attrName, attrValue] of host.attributes.tokens) {\n const propName = attrsToProps[attrName];\n if (propName) {\n if (!(propName in attrs)) {\n attrs[propName] = attrValue;\n }\n host.removeAttribute(attrName);\n }\n }\n return WithScope(\n { current: component.$$.scope },\n isFunction(children) ? children?.(\n {\n ...Object.fromEntries(host.attributes.tokens),\n ...attrs,\n style\n },\n component\n ) : children,\n React.createElement(() => {\n host.destroy();\n return null;\n })\n );\n }\n ServerComponent.displayName = Component2.name + \"Bridge\";\n return ServerComponent;\n}\nfunction useStateContext(state) {\n return useReactContext(state);\n}\nfunction useSignal(signal2, key) {\n const [, scheduleReactUpdate] = React.useState();\n React.useEffect(() => {\n return effect$1(() => {\n signal2();\n scheduleReactUpdate({});\n });\n }, [key ?? signal2]);\n return signal2();\n}\nfunction ariaBool(value) {\n return value ? \"true\" : \"false\";\n}\nfunction createDisposalBin() {\n const disposal = /* @__PURE__ */ new Set();\n return {\n add(...callbacks) {\n for (const callback of callbacks) disposal.add(callback);\n },\n empty() {\n for (const callback of disposal) callback();\n disposal.clear();\n }\n };\n}\nfunction keysOf(obj) {\n return Object.keys(obj);\n}\nfunction deferredPromise() {\n let resolve, reject;\n const promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n return { promise, resolve, reject };\n}\nfunction waitTimeout(delay) {\n return new Promise((resolve) => setTimeout(resolve, delay));\n}\nfunction animationFrameThrottle(func) {\n if (IS_SERVER) return noop;\n let id = -1, lastArgs;\n function throttle(...args) {\n lastArgs = args;\n if (id >= 0) return;\n id = window.requestAnimationFrame(() => {\n func.apply(this, lastArgs);\n id = -1;\n lastArgs = void 0;\n });\n }\n return throttle;\n}\nconst requestIdleCallback = IS_SERVER ? noop : typeof window !== \"undefined\" ? \"requestIdleCallback\" in window ? window.requestIdleCallback : (cb) => window.setTimeout(cb, 1) : noop;\nfunction waitIdlePeriod(callback, options) {\n if (IS_SERVER) return Promise.resolve();\n return new Promise((resolve) => {\n requestIdleCallback((deadline) => {\n callback?.(deadline);\n resolve();\n }, options);\n });\n}\nfunction useSignalRecord($state) {\n const [, scheduleReactUpdate] = React.useState(), tracking = React.useRef(null);\n if (tracking.current == null) {\n tracking.current = {\n state: {},\n $update: signal({}),\n props: /* @__PURE__ */ new Set()\n };\n }\n React.useEffect(() => {\n let { state, $update, props } = tracking.current;\n return effect(() => {\n for (const prop2 of props) {\n const value = $state[prop2]();\n state[prop2] = isArray(value) ? [...value] : value;\n }\n $update();\n scheduleReactUpdate({});\n });\n }, [$state]);\n return React.useMemo(() => {\n let { state, $update, props } = tracking.current, scheduledUpdate = false;\n props.clear();\n return new Proxy(state, {\n get(_, prop2) {\n if (!props.has(prop2) && prop2 in $state) {\n props.add(prop2);\n const value = $state[prop2]();\n state[prop2] = isArray(value) ? [...value] : value;\n if (!scheduledUpdate) {\n $update.set({});\n scheduledUpdate = true;\n queueMicrotask(() => scheduledUpdate = false);\n }\n }\n return state[prop2];\n },\n set(_, prop2, newValue) {\n if (!(prop2 in $state)) state[prop2] = newValue;\n return true;\n }\n });\n }, [$state]);\n}\nfunction createReactComponent(Component2, options) {\n if (IS_SERVER) {\n return createServerComponent(Component2, {\n props: new Set(Object.keys(Component2.props || {}))\n });\n } else {\n return createClientComponent(Component2, {\n props: new Set(Object.keys(Component2.props || {})),\n events: new Set(options?.events),\n eventsRE: options?.eventsRegex,\n domEvents: options?.domEvents,\n domEventsRE: options?.domEventsRegex\n });\n }\n}\n\nvar key = {\n fullscreenEnabled: 0,\n fullscreenElement: 1,\n requestFullscreen: 2,\n exitFullscreen: 3,\n fullscreenchange: 4,\n fullscreenerror: 5,\n fullscreen: 6\n};\nvar webkit = [\n \"webkitFullscreenEnabled\",\n \"webkitFullscreenElement\",\n \"webkitRequestFullscreen\",\n \"webkitExitFullscreen\",\n \"webkitfullscreenchange\",\n \"webkitfullscreenerror\",\n \"-webkit-full-screen\"\n];\nvar moz = [\n \"mozFullScreenEnabled\",\n \"mozFullScreenElement\",\n \"mozRequestFullScreen\",\n \"mozCancelFullScreen\",\n \"mozfullscreenchange\",\n \"mozfullscreenerror\",\n \"-moz-full-screen\"\n];\nvar ms = [\n \"msFullscreenEnabled\",\n \"msFullscreenElement\",\n \"msRequestFullscreen\",\n \"msExitFullscreen\",\n \"MSFullscreenChange\",\n \"MSFullscreenError\",\n \"-ms-fullscreen\"\n];\nvar document$1 = typeof window !== \"undefined\" && typeof window.document !== \"undefined\" ? window.document : {};\nvar vendor = \"fullscreenEnabled\" in document$1 && Object.keys(key) || webkit[0] in document$1 && webkit || moz[0] in document$1 && moz || ms[0] in document$1 && ms || [];\nvar fscreen = {\n requestFullscreen: function(element) {\n return element[vendor[key.requestFullscreen]]();\n },\n requestFullscreenFunction: function(element) {\n return element[vendor[key.requestFullscreen]];\n },\n get exitFullscreen() {\n return document$1[vendor[key.exitFullscreen]].bind(document$1);\n },\n get fullscreenPseudoClass() {\n return \":\" + vendor[key.fullscreen];\n },\n addEventListener: function(type, handler, options) {\n return document$1.addEventListener(vendor[key[type]], handler, options);\n },\n removeEventListener: function(type, handler, options) {\n return document$1.removeEventListener(vendor[key[type]], handler, options);\n },\n get fullscreenEnabled() {\n return Boolean(document$1[vendor[key.fullscreenEnabled]]);\n },\n set fullscreenEnabled(val) {\n },\n get fullscreenElement() {\n return document$1[vendor[key.fullscreenElement]];\n },\n set fullscreenElement(val) {\n },\n get onfullscreenchange() {\n return document$1[(\"on\" + vendor[key.fullscreenchange]).toLowerCase()];\n },\n set onfullscreenchange(handler) {\n return document$1[(\"on\" + vendor[key.fullscreenchange]).toLowerCase()] = handler;\n },\n get onfullscreenerror() {\n return document$1[(\"on\" + vendor[key.fullscreenerror]).toLowerCase()];\n },\n set onfullscreenerror(handler) {\n return document$1[(\"on\" + vendor[key.fullscreenerror]).toLowerCase()] = handler;\n }\n};\n\nvar functionThrottle = throttle;\n\nfunction throttle(fn, interval, options) {\n var timeoutId = null;\n var throttledFn = null;\n var leading = (options && options.leading);\n var trailing = (options && options.trailing);\n\n if (leading == null) {\n leading = true; // default\n }\n\n if (trailing == null) {\n trailing = !leading; //default\n }\n\n if (leading == true) {\n trailing = false; // forced because there should be invocation per call\n }\n\n var cancel = function() {\n if (timeoutId) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n };\n\n var flush = function() {\n var call = throttledFn;\n cancel();\n\n if (call) {\n call();\n }\n };\n\n var throttleWrapper = function() {\n var callNow = leading && !timeoutId;\n var context = this;\n var args = arguments;\n\n throttledFn = function() {\n return fn.apply(context, args);\n };\n\n if (!timeoutId) {\n timeoutId = setTimeout(function() {\n timeoutId = null;\n\n if (trailing) {\n return throttledFn();\n }\n }, interval);\n }\n\n if (callNow) {\n callNow = false;\n return throttledFn();\n }\n };\n\n throttleWrapper.cancel = cancel;\n throttleWrapper.flush = flush;\n\n return throttleWrapper;\n}\n\nvar functionDebounce = debounce;\n\nfunction debounce(fn, wait, callFirst) {\n var timeout = null;\n var debouncedFn = null;\n\n var clear = function() {\n if (timeout) {\n clearTimeout(timeout);\n\n debouncedFn = null;\n timeout = null;\n }\n };\n\n var flush = function() {\n var call = debouncedFn;\n clear();\n\n if (call) {\n call();\n }\n };\n\n var debounceWrapper = function() {\n if (!wait) {\n return fn.apply(this, arguments);\n }\n\n var context = this;\n var args = arguments;\n var callNow = callFirst && !timeout;\n clear();\n\n debouncedFn = function() {\n fn.apply(context, args);\n };\n\n timeout = setTimeout(function() {\n timeout = null;\n\n if (!callNow) {\n var call = debouncedFn;\n debouncedFn = null;\n\n return call();\n }\n }, wait);\n\n if (callNow) {\n return debouncedFn();\n }\n };\n\n debounceWrapper.cancel = clear;\n debounceWrapper.flush = flush;\n\n return debounceWrapper;\n}\n\nconst t = (t2) => \"object\" == typeof t2 && null != t2 && 1 === t2.nodeType, e = (t2, e2) => (!e2 || \"hidden\" !== t2) && (\"visible\" !== t2 && \"clip\" !== t2), n = (t2, n2) => {\n if (t2.clientHeight < t2.scrollHeight || t2.clientWidth < t2.scrollWidth) {\n const o2 = getComputedStyle(t2, null);\n return e(o2.overflowY, n2) || e(o2.overflowX, n2) || ((t3) => {\n const e2 = ((t4) => {\n if (!t4.ownerDocument || !t4.ownerDocument.defaultView) return null;\n try {\n return t4.ownerDocument.defaultView.frameElement;\n } catch (t5) {\n return null;\n }\n })(t3);\n return !!e2 && (e2.clientHeight < t3.scrollHeight || e2.clientWidth < t3.scrollWidth);\n })(t2);\n }\n return false;\n}, o = (t2, e2, n2, o2, l2, r2, i, s) => r2 < t2 && i > e2 || r2 > t2 && i < e2 ? 0 : r2 <= t2 && s <= n2 || i >= e2 && s >= n2 ? r2 - t2 - o2 : i > e2 && s < n2 || r2 < t2 && s > n2 ? i - e2 + l2 : 0, l = (t2) => {\n const e2 = t2.parentElement;\n return null == e2 ? t2.getRootNode().host || null : e2;\n}, r = (e2, r2) => {\n var i, s, d, h;\n if (\"undefined\" == typeof document) return [];\n const { scrollMode: c, block: f, inline: u, boundary: a, skipOverflowHiddenElements: g } = r2, p = \"function\" == typeof a ? a : (t2) => t2 !== a;\n if (!t(e2)) throw new TypeError(\"Invalid target\");\n const m = document.scrollingElement || document.documentElement, w = [];\n let W = e2;\n for (; t(W) && p(W); ) {\n if (W = l(W), W === m) {\n w.push(W);\n break;\n }\n null != W && W === document.body && n(W) && !n(document.documentElement) || null != W && n(W, g) && w.push(W);\n }\n const b = null != (s = null == (i = window.visualViewport) ? void 0 : i.width) ? s : innerWidth, H = null != (h = null == (d = window.visualViewport) ? void 0 : d.height) ? h : innerHeight, { scrollX: y, scrollY: M } = window, { height: v, width: E, top: x, right: C, bottom: I, left: R } = e2.getBoundingClientRect(), { top: T, right: B, bottom: F, left: V } = ((t2) => {\n const e3 = window.getComputedStyle(t2);\n return { top: parseFloat(e3.scrollMarginTop) || 0, right: parseFloat(e3.scrollMarginRight) || 0, bottom: parseFloat(e3.scrollMarginBottom) || 0, left: parseFloat(e3.scrollMarginLeft) || 0 };\n })(e2);\n let k = \"start\" === f || \"nearest\" === f ? x - T : \"end\" === f ? I + F : x + v / 2 - T + F, D = \"center\" === u ? R + E / 2 - V + B : \"end\" === u ? C + B : R - V;\n const L = [];\n for (let t2 = 0; t2 < w.length; t2++) {\n const e3 = w[t2], { height: n2, width: l2, top: r3, right: i2, bottom: s2, left: d2 } = e3.getBoundingClientRect();\n if (\"if-needed\" === c && x >= 0 && R >= 0 && I <= H && C <= b && x >= r3 && I <= s2 && R >= d2 && C <= i2) return L;\n const h2 = getComputedStyle(e3), a2 = parseInt(h2.borderLeftWidth, 10), g2 = parseInt(h2.borderTopWidth, 10), p2 = parseInt(h2.borderRightWidth, 10), W2 = parseInt(h2.borderBottomWidth, 10);\n let T2 = 0, B2 = 0;\n const F2 = \"offsetWidth\" in e3 ? e3.offsetWidth - e3.clientWidth - a2 - p2 : 0, V2 = \"offsetHeight\" in e3 ? e3.offsetHeight - e3.clientHeight - g2 - W2 : 0, S = \"offsetWidth\" in e3 ? 0 === e3.offsetWidth ? 0 : l2 / e3.offsetWidth : 0, X = \"offsetHeight\" in e3 ? 0 === e3.offsetHeight ? 0 : n2 / e3.offsetHeight : 0;\n if (m === e3) T2 = \"start\" === f ? k : \"end\" === f ? k - H : \"nearest\" === f ? o(M, M + H, H, g2, W2, M + k, M + k + v, v) : k - H / 2, B2 = \"start\" === u ? D : \"center\" === u ? D - b / 2 : \"end\" === u ? D - b : o(y, y + b, b, a2, p2, y + D, y + D + E, E), T2 = Math.max(0, T2 + M), B2 = Math.max(0, B2 + y);\n else {\n T2 = \"start\" === f ? k - r3 - g2 : \"end\" === f ? k - s2 + W2 + V2 : \"nearest\" === f ? o(r3, s2, n2, g2, W2 + V2, k, k + v, v) : k - (r3 + n2 / 2) + V2 / 2, B2 = \"start\" === u ? D - d2 - a2 : \"center\" === u ? D - (d2 + l2 / 2) + F2 / 2 : \"end\" === u ? D - i2 + p2 + F2 : o(d2, i2, l2, a2, p2 + F2, D, D + E, E);\n const { scrollLeft: t3, scrollTop: h3 } = e3;\n T2 = 0 === X ? 0 : Math.max(0, Math.min(h3 + T2 / X, e3.scrollHeight - n2 / X + V2)), B2 = 0 === S ? 0 : Math.max(0, Math.min(t3 + B2 / S, e3.scrollWidth - l2 / S + F2)), k += h3 - T2, D += t3 - B2;\n }\n L.push({ el: e3, top: T2, left: B2 });\n }\n return L;\n};\n\nvar Icon$0 = ` `;\n\nvar Icon$5 = ` `;\n\nvar Icon$8 = ``;\n\nvar Icon$11 = ``;\n\nvar Icon$13 = ``;\n\nvar Icon$16 = ` `;\n\nvar Icon$19 = ``;\n\nvar Icon$22 = ``;\n\nvar Icon$24 = ` `;\n\nvar chromecast = /*#__PURE__*/Object.freeze({\n __proto__: null,\n default: Icon$24\n});\n\nvar Icon$26 = ` `;\n\nvar Icon$27 = ``;\n\nvar Icon$31 = ` `;\n\nvar Icon$33 = ` `;\n\nvar Icon$34 = ``;\n\nvar Icon$35 = ``;\n\nvar Icon$39 = ` `;\n\nvar Icon$40 = ` `;\n\nvar Icon$53 = ``;\n\nvar Icon$54 = ` `;\n\nvar Icon$56 = ` `;\n\nvar Icon$59 = ` `;\n\nvar Icon$60 = ` `;\n\nvar Icon$61 = ` `;\n\nvar Icon$62 = ``;\n\nvar Icon$63 = ` `;\n\nvar Icon$74 = ``;\n\nvar Icon$77 = ` `;\n\nvar Icon$81 = ` `;\n\nvar Icon$88 = ``;\n\nvar Icon$104 = ` `;\n\nvar Icon$105 = ` `;\n\nexport { Component, DOMEvent, EventsController, EventsTarget, Icon$0, Icon$104, Icon$105, Icon$11, Icon$13, Icon$16, Icon$19, Icon$22, Icon$24, Icon$26, Icon$27, Icon$31, Icon$33, Icon$34, Icon$35, Icon$39, Icon$40, Icon$5, Icon$53, Icon$54, Icon$56, Icon$59, Icon$60, Icon$61, Icon$62, Icon$63, Icon$74, Icon$77, Icon$8, Icon$81, Icon$88, State, ViewController, animationFrameThrottle, appendTriggerEvent, ariaBool, camelToKebabCase, chromecast, composeRefs, computed, createContext, createDisposalBin, createReactComponent, createScope, deferredPromise, effect, findTriggerEvent, fscreen, functionDebounce, functionThrottle, getScope, hasProvidedContext, hasTriggerEvent, isArray, isBoolean, isDOMNode, isFunction, isKeyboardClick, isKeyboardEvent, isMouseEvent, isNil, isNull, isNumber, isObject, isPointerEvent, isString, isTouchEvent, isUndefined, isWriteSignal, kebabToCamelCase, keysOf, listenEvent, method, noop, onDispose, peek, prop, provideContext, r, scoped, setAttribute, setStyle, signal, tick, toggleClass, untrack, uppercaseFirstChar, useContext, useReactContext, useReactScope, useSignal, useSignalRecord, useState, useStateContext, waitIdlePeriod, waitTimeout, walkTriggerEventChain, wasEnterKeyPressed };\n","\"use client\"\n\nimport * as React from 'react';\nimport { isString, isNumber, isFunction, isUndefined, waitTimeout, isArray, isBoolean, isNull, deferredPromise, listenEvent, scoped, getScope, EventsTarget, DOMEvent, State, fscreen, tick, createContext, useContext, Component, functionThrottle, setAttribute, effect, isTouchEvent, isDOMNode, EventsController, isKeyboardClick, setStyle, onDispose, untrack, functionDebounce, ViewController, signal, peek, isKeyboardEvent, isNil, createScope, camelToKebabCase, waitIdlePeriod, prop, method, provideContext, animationFrameThrottle, uppercaseFirstChar, computed, noop, ariaBool as ariaBool$1, isWriteSignal, hasProvidedContext, isObject, useState, r, wasEnterKeyPressed, isPointerEvent, isMouseEvent, kebabToCamelCase, composeRefs, useStateContext, useSignal, useSignalRecord } from './vidstack-CNjv_Zem.js';\nimport { autoUpdate, computePosition, flip, shift } from '@floating-ui/dom';\n\nfunction isVideoQualitySrc(src) {\n return !isString(src) && \"width\" in src && \"height\" in src && isNumber(src.width) && isNumber(src.height);\n}\n\nconst IS_SERVER = typeof document === \"undefined\";\n\nconst UA = IS_SERVER ? \"\" : navigator?.userAgent.toLowerCase() || \"\";\nconst IS_IOS = !IS_SERVER && /iphone|ipad|ipod|ios|crios|fxios/i.test(UA);\nconst IS_IPHONE = !IS_SERVER && /(iphone|ipod)/gi.test(navigator?.platform || \"\");\nconst IS_CHROME = !IS_SERVER && !!window.chrome;\nconst IS_SAFARI = !IS_SERVER && (!!window.safari || IS_IOS);\nfunction canOrientScreen() {\n return canRotateScreen() && isFunction(screen.orientation.unlock);\n}\nfunction canRotateScreen() {\n return !IS_SERVER && !isUndefined(window.screen.orientation) && !isUndefined(window.screen.orientation.lock);\n}\nfunction canPlayAudioType(audio, type) {\n if (IS_SERVER) return false;\n if (!audio) audio = document.createElement(\"audio\");\n return audio.canPlayType(type).length > 0;\n}\nfunction canPlayVideoType(video, type) {\n if (IS_SERVER) return false;\n if (!video) video = document.createElement(\"video\");\n return video.canPlayType(type).length > 0;\n}\nfunction canPlayHLSNatively(video) {\n if (IS_SERVER) return false;\n if (!video) video = document.createElement(\"video\");\n return video.canPlayType(\"application/vnd.apple.mpegurl\").length > 0;\n}\nfunction canUsePictureInPicture(video) {\n if (IS_SERVER) return false;\n return !!document.pictureInPictureEnabled && !video?.disablePictureInPicture;\n}\nfunction canUseVideoPresentation(video) {\n if (IS_SERVER) return false;\n return isFunction(video?.webkitSupportsPresentationMode) && isFunction(video?.webkitSetPresentationMode);\n}\nasync function canChangeVolume() {\n const video = document.createElement(\"video\");\n video.volume = 0.5;\n await waitTimeout(0);\n return video.volume === 0.5;\n}\nfunction getMediaSource() {\n return IS_SERVER ? void 0 : window?.ManagedMediaSource ?? window?.MediaSource ?? window?.WebKitMediaSource;\n}\nfunction getSourceBuffer() {\n return IS_SERVER ? void 0 : window?.SourceBuffer ?? window?.WebKitSourceBuffer;\n}\nfunction isHLSSupported() {\n if (IS_SERVER) return false;\n const MediaSource = getMediaSource();\n if (isUndefined(MediaSource)) return false;\n const isTypeSupported = MediaSource && isFunction(MediaSource.isTypeSupported) && MediaSource.isTypeSupported('video/mp4; codecs=\"avc1.42E01E,mp4a.40.2\"');\n const SourceBuffer = getSourceBuffer();\n const isSourceBufferValid = isUndefined(SourceBuffer) || !isUndefined(SourceBuffer.prototype) && isFunction(SourceBuffer.prototype.appendBuffer) && isFunction(SourceBuffer.prototype.remove);\n return !!isTypeSupported && !!isSourceBufferValid;\n}\nfunction isDASHSupported() {\n return isHLSSupported();\n}\n\nclass TimeRange {\n #ranges;\n get length() {\n return this.#ranges.length;\n }\n constructor(start, end) {\n if (isArray(start)) {\n this.#ranges = start;\n } else if (!isUndefined(start) && !isUndefined(end)) {\n this.#ranges = [[start, end]];\n } else {\n this.#ranges = [];\n }\n }\n start(index) {\n return this.#ranges[index][0] ?? Infinity;\n }\n end(index) {\n return this.#ranges[index][1] ?? Infinity;\n }\n}\nfunction getTimeRangesStart(range) {\n if (!range.length) return null;\n let min = range.start(0);\n for (let i = 1; i < range.length; i++) {\n const value = range.start(i);\n if (value < min) min = value;\n }\n return min;\n}\nfunction getTimeRangesEnd(range) {\n if (!range.length) return null;\n let max = range.end(0);\n for (let i = 1; i < range.length; i++) {\n const value = range.end(i);\n if (value > max) max = value;\n }\n return max;\n}\nfunction normalizeTimeIntervals(intervals) {\n if (intervals.length <= 1) {\n return intervals;\n }\n intervals.sort((a, b) => a[0] - b[0]);\n let normalized = [], current = intervals[0];\n for (let i = 1; i < intervals.length; i++) {\n const next = intervals[i];\n if (current[1] >= next[0] - 1) {\n current = [current[0], Math.max(current[1], next[1])];\n } else {\n normalized.push(current);\n current = next;\n }\n }\n normalized.push(current);\n return normalized;\n}\nfunction updateTimeIntervals(intervals, interval, value) {\n let start = interval[0], end = interval[1];\n if (value < start) {\n return [value, -1];\n } else if (value === start) {\n return interval;\n } else if (start === -1) {\n interval[0] = value;\n return interval;\n } else if (value > start) {\n interval[1] = value;\n if (end === -1) intervals.push(interval);\n }\n normalizeTimeIntervals(intervals);\n return interval;\n}\n\nconst AUDIO_EXTENSIONS = /\\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx|flac)($|\\?)/i;\nconst AUDIO_TYPES = /* @__PURE__ */ new Set([\n \"audio/mpeg\",\n \"audio/ogg\",\n \"audio/3gp\",\n \"audio/mp3\",\n \"audio/webm\",\n \"audio/flac\",\n \"audio/m4a\",\n \"audio/m4b\",\n \"audio/mp4a\",\n \"audio/mp4\"\n]);\nconst VIDEO_EXTENSIONS = /\\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\\d+]+)?($|\\?)/i;\nconst VIDEO_TYPES = /* @__PURE__ */ new Set([\n \"video/mp4\",\n \"video/webm\",\n \"video/3gp\",\n \"video/ogg\",\n \"video/avi\",\n \"video/mpeg\"\n]);\nconst HLS_VIDEO_EXTENSIONS = /\\.(m3u8)($|\\?)/i;\nconst DASH_VIDEO_EXTENSIONS = /\\.(mpd)($|\\?)/i;\nconst HLS_VIDEO_TYPES = /* @__PURE__ */ new Set([\n // Apple sanctioned\n \"application/vnd.apple.mpegurl\",\n // Apple sanctioned for backwards compatibility\n \"audio/mpegurl\",\n // Very common\n \"audio/x-mpegurl\",\n // Very common\n \"application/x-mpegurl\",\n // Included for completeness\n \"video/x-mpegurl\",\n \"video/mpegurl\",\n \"application/mpegurl\"\n]);\nconst DASH_VIDEO_TYPES = /* @__PURE__ */ new Set([\"application/dash+xml\"]);\nfunction isAudioSrc({ src, type }) {\n return isString(src) ? AUDIO_EXTENSIONS.test(src) || AUDIO_TYPES.has(type) || src.startsWith(\"blob:\") && type === \"audio/object\" : type === \"audio/object\";\n}\nfunction isVideoSrc(src) {\n return isString(src.src) ? VIDEO_EXTENSIONS.test(src.src) || VIDEO_TYPES.has(src.type) || src.src.startsWith(\"blob:\") && src.type === \"video/object\" || isHLSSrc(src) && (IS_SERVER || canPlayHLSNatively()) : src.type === \"video/object\";\n}\nfunction isHLSSrc({ src, type }) {\n return isString(src) && HLS_VIDEO_EXTENSIONS.test(src) || HLS_VIDEO_TYPES.has(type);\n}\nfunction isDASHSrc({ src, type }) {\n return isString(src) && DASH_VIDEO_EXTENSIONS.test(src) || DASH_VIDEO_TYPES.has(type);\n}\nfunction canGoogleCastSrc(src) {\n return isString(src.src) && (isAudioSrc(src) || isVideoSrc(src) || isHLSSrc(src));\n}\nfunction isMediaStream(src) {\n return !IS_SERVER && typeof window.MediaStream !== \"undefined\" && src instanceof window.MediaStream;\n}\n\nfunction appendParamsToURL(baseUrl, params) {\n const url = new URL(baseUrl);\n for (const key of Object.keys(params)) {\n url.searchParams.set(key, params[key] + \"\");\n }\n return url.toString();\n}\nfunction preconnect(url, rel = \"preconnect\") {\n if (IS_SERVER) return false;\n const exists = document.querySelector(`link[href=\"${url}\"]`);\n if (!isNull(exists)) return true;\n const link = document.createElement(\"link\");\n link.rel = rel;\n link.href = url;\n link.crossOrigin = \"true\";\n document.head.append(link);\n return true;\n}\nconst pendingRequests = {};\nfunction loadScript(src) {\n if (pendingRequests[src]) return pendingRequests[src].promise;\n const promise = deferredPromise(), exists = document.querySelector(`script[src=\"${src}\"]`);\n if (!isNull(exists)) {\n promise.resolve();\n return promise.promise;\n }\n pendingRequests[src] = promise;\n const script = document.createElement(\"script\");\n script.src = src;\n script.onload = () => {\n promise.resolve();\n delete pendingRequests[src];\n };\n script.onerror = () => {\n promise.reject();\n delete pendingRequests[src];\n };\n setTimeout(() => document.head.append(script), 0);\n return promise.promise;\n}\nfunction getRequestCredentials(crossOrigin) {\n return crossOrigin === \"use-credentials\" ? \"include\" : isString(crossOrigin) ? \"same-origin\" : void 0;\n}\nfunction getDownloadFile({\n title,\n src,\n download\n}) {\n const url = isBoolean(download) || download === \"\" ? src.src : isString(download) ? download : download?.url;\n if (!isValidFileDownload({ url, src, download })) return null;\n return {\n url,\n name: !isBoolean(download) && !isString(download) && download?.filename || title.toLowerCase() || \"media\"\n };\n}\nfunction isValidFileDownload({\n url,\n src,\n download\n}) {\n return isString(url) && (download && download !== true || isAudioSrc(src) || isVideoSrc(src));\n}\n\nconst CROSS_ORIGIN = Symbol(0), READY_STATE = Symbol(0), UPDATE_ACTIVE_CUES = Symbol(0), CAN_LOAD = Symbol(0), ON_MODE_CHANGE = Symbol(0), NATIVE = Symbol(0), NATIVE_HLS = Symbol(0);\nconst TextTrackSymbol = {\n crossOrigin: CROSS_ORIGIN,\n readyState: READY_STATE,\n updateActiveCues: UPDATE_ACTIVE_CUES,\n canLoad: CAN_LOAD,\n onModeChange: ON_MODE_CHANGE,\n native: NATIVE,\n nativeHLS: NATIVE_HLS\n};\n\nfunction findActiveCue(cues, time) {\n for (let i = 0, len = cues.length; i < len; i++) {\n if (isCueActive(cues[i], time)) return cues[i];\n }\n return null;\n}\nfunction isCueActive(cue, time) {\n return time >= cue.startTime && time < cue.endTime;\n}\nfunction watchActiveTextTrack(tracks, kind, onChange) {\n let currentTrack = null, scope = getScope();\n function onModeChange() {\n const kinds = isString(kind) ? [kind] : kind, track = tracks.toArray().find((track2) => kinds.includes(track2.kind) && track2.mode === \"showing\");\n if (track === currentTrack) return;\n if (!track) {\n onChange(null);\n currentTrack = null;\n return;\n }\n if (track.readyState == 2) {\n onChange(track);\n } else {\n onChange(null);\n scoped(() => {\n const off = listenEvent(\n track,\n \"load\",\n () => {\n onChange(track);\n off();\n },\n { once: true }\n );\n }, scope);\n }\n currentTrack = track;\n }\n onModeChange();\n return listenEvent(tracks, \"mode-change\", onModeChange);\n}\nfunction watchCueTextChange(tracks, kind, callback) {\n watchActiveTextTrack(tracks, kind, (track) => {\n if (!track) {\n callback(\"\");\n return;\n }\n const onCueChange = () => {\n const activeCue = track?.activeCues[0];\n callback(activeCue?.text || \"\");\n };\n onCueChange();\n listenEvent(track, \"cue-change\", onCueChange);\n });\n}\n\nclass TextTrack extends EventsTarget {\n static createId(track) {\n return `vds-${track.type}-${track.kind}-${track.src ?? track.label ?? \"?\"}`;\n }\n src;\n content;\n type;\n encoding;\n id = \"\";\n label = \"\";\n language = \"\";\n kind;\n default = false;\n #canLoad = false;\n #currentTime = 0;\n #mode = \"disabled\";\n #metadata = {};\n #regions = [];\n #cues = [];\n #activeCues = [];\n /** @internal */\n [TextTrackSymbol.readyState] = 0;\n /** @internal */\n [TextTrackSymbol.crossOrigin];\n /** @internal */\n [TextTrackSymbol.onModeChange] = null;\n /** @internal */\n [TextTrackSymbol.native] = null;\n get metadata() {\n return this.#metadata;\n }\n get regions() {\n return this.#regions;\n }\n get cues() {\n return this.#cues;\n }\n get activeCues() {\n return this.#activeCues;\n }\n /**\n * - 0: Not Loading\n * - 1: Loading\n * - 2: Ready\n * - 3: Error\n */\n get readyState() {\n return this[TextTrackSymbol.readyState];\n }\n get mode() {\n return this.#mode;\n }\n set mode(mode) {\n this.setMode(mode);\n }\n constructor(init) {\n super();\n for (const prop of Object.keys(init)) this[prop] = init[prop];\n if (!this.type) this.type = \"vtt\";\n if (!IS_SERVER && init.content) {\n this.#parseContent(init);\n } else if (!init.src) {\n this[TextTrackSymbol.readyState] = 2;\n }\n }\n addCue(cue, trigger) {\n let i = 0, length = this.#cues.length;\n for (i = 0; i < length; i++) if (cue.endTime <= this.#cues[i].startTime) break;\n if (i === length) this.#cues.push(cue);\n else this.#cues.splice(i, 0, cue);\n if (!(cue instanceof TextTrackCue)) {\n this[TextTrackSymbol.native]?.track.addCue(cue);\n }\n this.dispatchEvent(new DOMEvent(\"add-cue\", { detail: cue, trigger }));\n if (isCueActive(cue, this.#currentTime)) {\n this[TextTrackSymbol.updateActiveCues](this.#currentTime, trigger);\n }\n }\n removeCue(cue, trigger) {\n const index = this.#cues.indexOf(cue);\n if (index >= 0) {\n const isActive = this.#activeCues.includes(cue);\n this.#cues.splice(index, 1);\n this[TextTrackSymbol.native]?.track.removeCue(cue);\n this.dispatchEvent(new DOMEvent(\"remove-cue\", { detail: cue, trigger }));\n if (isActive) {\n this[TextTrackSymbol.updateActiveCues](this.#currentTime, trigger);\n }\n }\n }\n setMode(mode, trigger) {\n if (this.#mode === mode) return;\n this.#mode = mode;\n if (mode === \"disabled\") {\n this.#activeCues = [];\n this.#activeCuesChanged();\n } else if (this.readyState === 2) {\n this[TextTrackSymbol.updateActiveCues](this.#currentTime, trigger);\n } else {\n this.#load();\n }\n this.dispatchEvent(new DOMEvent(\"mode-change\", { detail: this, trigger }));\n this[TextTrackSymbol.onModeChange]?.();\n }\n /** @internal */\n [TextTrackSymbol.updateActiveCues](currentTime, trigger) {\n this.#currentTime = currentTime;\n if (this.mode === \"disabled\" || !this.#cues.length) return;\n const activeCues = [];\n for (let i = 0, length = this.#cues.length; i < length; i++) {\n const cue = this.#cues[i];\n if (isCueActive(cue, currentTime)) activeCues.push(cue);\n }\n let changed = activeCues.length !== this.#activeCues.length;\n if (!changed) {\n for (let i = 0; i < activeCues.length; i++) {\n if (!this.#activeCues.includes(activeCues[i])) {\n changed = true;\n break;\n }\n }\n }\n this.#activeCues = activeCues;\n if (changed) this.#activeCuesChanged(trigger);\n }\n /** @internal */\n [TextTrackSymbol.canLoad]() {\n this.#canLoad = true;\n if (this.#mode !== \"disabled\") this.#load();\n }\n #parseContent(init) {\n import('media-captions').then(({ parseText, VTTCue, VTTRegion }) => {\n if (!isString(init.content) || init.type === \"json\") {\n this.#parseJSON(init.content, VTTCue, VTTRegion);\n if (this.readyState !== 3) this.#ready();\n } else {\n parseText(init.content, { type: init.type }).then(({ cues, regions }) => {\n this.#cues = cues;\n this.#regions = regions;\n this.#ready();\n });\n }\n });\n }\n async #load() {\n if (!this.#canLoad || this[TextTrackSymbol.readyState] > 0) return;\n this[TextTrackSymbol.readyState] = 1;\n this.dispatchEvent(new DOMEvent(\"load-start\"));\n if (!this.src) {\n this.#ready();\n return;\n }\n try {\n const { parseResponse, VTTCue, VTTRegion } = await import('media-captions'), crossOrigin = this[TextTrackSymbol.crossOrigin]?.();\n const response = fetch(this.src, {\n headers: this.type === \"json\" ? { \"Content-Type\": \"application/json\" } : void 0,\n credentials: getRequestCredentials(crossOrigin)\n });\n if (this.type === \"json\") {\n this.#parseJSON(await (await response).text(), VTTCue, VTTRegion);\n } else {\n const { errors, metadata, regions, cues } = await parseResponse(response, {\n type: this.type,\n encoding: this.encoding\n });\n if (errors[0]?.code === 0) {\n throw errors[0];\n } else {\n this.#metadata = metadata;\n this.#regions = regions;\n this.#cues = cues;\n }\n }\n this.#ready();\n } catch (error) {\n this.#error(error);\n }\n }\n #ready() {\n this[TextTrackSymbol.readyState] = 2;\n if (!this.src || this.type !== \"vtt\") {\n const native = this[TextTrackSymbol.native];\n if (native && !native.managed) {\n for (const cue of this.#cues) native.track.addCue(cue);\n }\n }\n const loadEvent = new DOMEvent(\"load\");\n this[TextTrackSymbol.updateActiveCues](this.#currentTime, loadEvent);\n this.dispatchEvent(loadEvent);\n }\n #error(error) {\n this[TextTrackSymbol.readyState] = 3;\n this.dispatchEvent(new DOMEvent(\"error\", { detail: error }));\n }\n #parseJSON(json, VTTCue, VTTRegion) {\n try {\n const { regions, cues } = parseJSONCaptionsFile(json, VTTCue, VTTRegion);\n this.#regions = regions;\n this.#cues = cues;\n } catch (error) {\n this.#error(error);\n }\n }\n #activeCuesChanged(trigger) {\n this.dispatchEvent(new DOMEvent(\"cue-change\", { trigger }));\n }\n}\nconst captionRE = /captions|subtitles/;\nfunction isTrackCaptionKind(track) {\n return captionRE.test(track.kind);\n}\nfunction parseJSONCaptionsFile(json, Cue, Region) {\n const content = isString(json) ? JSON.parse(json) : json;\n let regions = [], cues = [];\n if (content.regions && Region) {\n regions = content.regions.map((region) => Object.assign(new Region(), region));\n }\n if (content.cues || isArray(content)) {\n cues = (isArray(content) ? content : content.cues).filter((content2) => isNumber(content2.startTime) && isNumber(content2.endTime)).map((cue) => Object.assign(new Cue(0, 0, \"\"), cue));\n }\n return { regions, cues };\n}\n\nconst mediaState = new State({\n artist: \"\",\n artwork: null,\n audioTrack: null,\n audioTracks: [],\n autoPlay: false,\n autoPlayError: null,\n audioGain: null,\n buffered: new TimeRange(),\n canLoad: false,\n canLoadPoster: false,\n canFullscreen: false,\n canOrientScreen: canOrientScreen(),\n canPictureInPicture: false,\n canPlay: false,\n clipStartTime: 0,\n clipEndTime: 0,\n controls: false,\n get iOSControls() {\n return IS_IPHONE && this.mediaType === \"video\" && (!this.playsInline || !fscreen.fullscreenEnabled && this.fullscreen);\n },\n get nativeControls() {\n return this.controls || this.iOSControls;\n },\n controlsVisible: false,\n get controlsHidden() {\n return !this.controlsVisible;\n },\n crossOrigin: null,\n ended: false,\n error: null,\n fullscreen: false,\n get loop() {\n return this.providedLoop || this.userPrefersLoop;\n },\n logLevel: \"silent\",\n mediaType: \"unknown\",\n muted: false,\n paused: true,\n played: new TimeRange(),\n playing: false,\n playsInline: false,\n pictureInPicture: false,\n preload: \"metadata\",\n playbackRate: 1,\n qualities: [],\n quality: null,\n autoQuality: false,\n canSetQuality: true,\n canSetPlaybackRate: true,\n canSetVolume: false,\n canSetAudioGain: false,\n seekable: new TimeRange(),\n seeking: false,\n source: { src: \"\", type: \"\" },\n sources: [],\n started: false,\n textTracks: [],\n textTrack: null,\n get hasCaptions() {\n return this.textTracks.filter(isTrackCaptionKind).length > 0;\n },\n volume: 1,\n waiting: false,\n realCurrentTime: 0,\n get currentTime() {\n return this.ended ? this.duration : this.clipStartTime > 0 ? Math.max(0, Math.min(this.realCurrentTime - this.clipStartTime, this.duration)) : this.realCurrentTime;\n },\n providedDuration: -1,\n intrinsicDuration: 0,\n get duration() {\n return this.seekableWindow;\n },\n get title() {\n return this.providedTitle || this.inferredTitle;\n },\n get poster() {\n return this.providedPoster || this.inferredPoster;\n },\n get viewType() {\n return this.providedViewType !== \"unknown\" ? this.providedViewType : this.inferredViewType;\n },\n get streamType() {\n return this.providedStreamType !== \"unknown\" ? this.providedStreamType : this.inferredStreamType;\n },\n get currentSrc() {\n return this.source;\n },\n get bufferedStart() {\n const start = getTimeRangesStart(this.buffered) ?? 0;\n return Math.max(start, this.clipStartTime);\n },\n get bufferedEnd() {\n const end = getTimeRangesEnd(this.buffered) ?? 0;\n return Math.min(this.seekableEnd, Math.max(0, end - this.clipStartTime));\n },\n get bufferedWindow() {\n return Math.max(0, this.bufferedEnd - this.bufferedStart);\n },\n get seekableStart() {\n if (this.isLiveDVR && this.liveDVRWindow > 0) {\n return Math.max(0, this.seekableEnd - this.liveDVRWindow);\n }\n const start = getTimeRangesStart(this.seekable) ?? 0;\n return Math.max(start, this.clipStartTime);\n },\n get seekableEnd() {\n if (this.providedDuration > 0) return this.providedDuration;\n const end = this.liveSyncPosition > 0 ? this.liveSyncPosition : this.canPlay ? getTimeRangesEnd(this.seekable) ?? Infinity : 0;\n return this.clipEndTime > 0 ? Math.min(this.clipEndTime, end) : end;\n },\n get seekableWindow() {\n const window = this.seekableEnd - this.seekableStart;\n return !isNaN(window) ? Math.max(0, window) : Infinity;\n },\n // ~~ remote playback ~~\n canAirPlay: false,\n canGoogleCast: false,\n remotePlaybackState: \"disconnected\",\n remotePlaybackType: \"none\",\n remotePlaybackLoader: null,\n remotePlaybackInfo: null,\n get isAirPlayConnected() {\n return this.remotePlaybackType === \"airplay\" && this.remotePlaybackState === \"connected\";\n },\n get isGoogleCastConnected() {\n return this.remotePlaybackType === \"google-cast\" && this.remotePlaybackState === \"connected\";\n },\n // ~~ responsive design ~~\n pointer: \"fine\",\n orientation: \"landscape\",\n width: 0,\n height: 0,\n mediaWidth: 0,\n mediaHeight: 0,\n lastKeyboardAction: null,\n // ~~ user props ~~\n userBehindLiveEdge: false,\n // ~~ live props ~~\n liveEdgeTolerance: 10,\n minLiveDVRWindow: 60,\n get canSeek() {\n return /unknown|on-demand|:dvr/.test(this.streamType) && Number.isFinite(this.duration) && (!this.isLiveDVR || this.duration >= this.liveDVRWindow);\n },\n get live() {\n return this.streamType.includes(\"live\") || !Number.isFinite(this.duration);\n },\n get liveEdgeStart() {\n return this.live && Number.isFinite(this.seekableEnd) ? Math.max(0, this.seekableEnd - this.liveEdgeTolerance) : 0;\n },\n get liveEdge() {\n return this.live && (!this.canSeek || !this.userBehindLiveEdge && this.currentTime >= this.liveEdgeStart);\n },\n get liveEdgeWindow() {\n return this.live && Number.isFinite(this.seekableEnd) ? this.seekableEnd - this.liveEdgeStart : 0;\n },\n get isLiveDVR() {\n return /:dvr/.test(this.streamType);\n },\n get liveDVRWindow() {\n return Math.max(this.inferredLiveDVRWindow, this.minLiveDVRWindow);\n },\n // ~~ internal props ~~\n autoPlaying: false,\n providedTitle: \"\",\n inferredTitle: \"\",\n providedLoop: false,\n userPrefersLoop: false,\n providedPoster: \"\",\n inferredPoster: \"\",\n inferredViewType: \"unknown\",\n providedViewType: \"unknown\",\n providedStreamType: \"unknown\",\n inferredStreamType: \"unknown\",\n liveSyncPosition: null,\n inferredLiveDVRWindow: 0,\n savedState: null\n});\nconst RESET_ON_SRC_QUALITY_CHANGE = /* @__PURE__ */ new Set([\n \"autoPlayError\",\n \"autoPlaying\",\n \"buffered\",\n \"canPlay\",\n \"error\",\n \"paused\",\n \"played\",\n \"playing\",\n \"seekable\",\n \"seeking\",\n \"waiting\"\n]);\nconst RESET_ON_SRC_CHANGE = /* @__PURE__ */ new Set([\n ...RESET_ON_SRC_QUALITY_CHANGE,\n \"ended\",\n \"inferredPoster\",\n \"inferredStreamType\",\n \"inferredTitle\",\n \"intrinsicDuration\",\n \"inferredLiveDVRWindow\",\n \"liveSyncPosition\",\n \"realCurrentTime\",\n \"savedState\",\n \"started\",\n \"userBehindLiveEdge\"\n]);\nfunction softResetMediaState($media, isSourceQualityChange = false) {\n const filter = isSourceQualityChange ? RESET_ON_SRC_QUALITY_CHANGE : RESET_ON_SRC_CHANGE;\n mediaState.reset($media, (prop) => filter.has(prop));\n tick();\n}\nfunction boundTime(time, store) {\n const clippedTime = time + store.clipStartTime(), isStart = Math.floor(time) === Math.floor(store.seekableStart()), isEnd = Math.floor(clippedTime) === Math.floor(store.seekableEnd());\n if (isStart) {\n return store.seekableStart();\n }\n if (isEnd) {\n return store.seekableEnd();\n }\n if (store.isLiveDVR() && store.liveDVRWindow() > 0 && clippedTime < store.seekableEnd() - store.liveDVRWindow()) {\n return store.bufferedStart();\n }\n return Math.min(Math.max(store.seekableStart() + 0.1, clippedTime), store.seekableEnd() - 0.1);\n}\n\nconst mediaContext = createContext();\nfunction useMediaContext() {\n return useContext(mediaContext);\n}\n\nclass MediaRemoteControl {\n #target = null;\n #player = null;\n #prevTrackIndex = -1;\n #logger;\n constructor(logger = void 0) {\n this.#logger = logger;\n }\n /**\n * Set the target from which to dispatch media requests events from. The events should bubble\n * up from this target to the player element.\n *\n * @example\n * ```ts\n * const button = document.querySelector('button');\n * remote.setTarget(button);\n * ```\n */\n setTarget(target) {\n this.#target = target;\n }\n /**\n * Returns the current player element. This method will attempt to find the player by\n * searching up from either the given `target` or default target set via `remote.setTarget`.\n *\n * @example\n * ```ts\n * const player = remote.getPlayer();\n * ```\n */\n getPlayer(target) {\n if (this.#player) return this.#player;\n (target ?? this.#target)?.dispatchEvent(\n new DOMEvent(\"find-media-player\", {\n detail: (player) => void (this.#player = player),\n bubbles: true,\n composed: true\n })\n );\n return this.#player;\n }\n /**\n * Set the current player element so the remote can support toggle methods such as\n * `togglePaused` as they rely on the current media state.\n */\n setPlayer(player) {\n this.#player = player;\n }\n /**\n * Dispatch a request to start the media loading process. This will only work if the media\n * player has been initialized with a custom loading strategy `load=\"custom\">`.\n *\n * @docs {@link https://www.vidstack.io/docs/player/core-concepts/loading#load-strategies}\n */\n startLoading(trigger) {\n this.#dispatchRequest(\"media-start-loading\", trigger);\n }\n /**\n * Dispatch a request to start the poster loading process. This will only work if the media\n * player has been initialized with a custom poster loading strategy `posterLoad=\"custom\">`.\n *\n * @docs {@link https://www.vidstack.io/docs/player/core-concepts/loading#load-strategies}\n */\n startLoadingPoster(trigger) {\n this.#dispatchRequest(\"media-poster-start-loading\", trigger);\n }\n /**\n * Dispatch a request to connect to AirPlay.\n *\n * @see {@link https://www.apple.com/au/airplay}\n */\n requestAirPlay(trigger) {\n this.#dispatchRequest(\"media-airplay-request\", trigger);\n }\n /**\n * Dispatch a request to connect to Google Cast.\n *\n * @see {@link https://developers.google.com/cast/docs/overview}\n */\n requestGoogleCast(trigger) {\n this.#dispatchRequest(\"media-google-cast-request\", trigger);\n }\n /**\n * Dispatch a request to begin/resume media playback.\n */\n play(trigger) {\n this.#dispatchRequest(\"media-play-request\", trigger);\n }\n /**\n * Dispatch a request to pause media playback.\n */\n pause(trigger) {\n this.#dispatchRequest(\"media-pause-request\", trigger);\n }\n /**\n * Dispatch a request to set the media volume to mute (0).\n */\n mute(trigger) {\n this.#dispatchRequest(\"media-mute-request\", trigger);\n }\n /**\n * Dispatch a request to unmute the media volume and set it back to it's previous state.\n */\n unmute(trigger) {\n this.#dispatchRequest(\"media-unmute-request\", trigger);\n }\n /**\n * Dispatch a request to enter fullscreen.\n *\n * @docs {@link https://www.vidstack.io/docs/player/api/fullscreen#remote-control}\n */\n enterFullscreen(target, trigger) {\n this.#dispatchRequest(\"media-enter-fullscreen-request\", trigger, target);\n }\n /**\n * Dispatch a request to exit fullscreen.\n *\n * @docs {@link https://www.vidstack.io/docs/player/api/fullscreen#remote-control}\n */\n exitFullscreen(target, trigger) {\n this.#dispatchRequest(\"media-exit-fullscreen-request\", trigger, target);\n }\n /**\n * Dispatch a request to lock the screen orientation.\n *\n * @docs {@link https://www.vidstack.io/docs/player/screen-orientation#remote-control}\n */\n lockScreenOrientation(lockType, trigger) {\n this.#dispatchRequest(\"media-orientation-lock-request\", trigger, lockType);\n }\n /**\n * Dispatch a request to unlock the screen orientation.\n *\n * @docs {@link https://www.vidstack.io/docs/player/api/screen-orientation#remote-control}\n */\n unlockScreenOrientation(trigger) {\n this.#dispatchRequest(\"media-orientation-unlock-request\", trigger);\n }\n /**\n * Dispatch a request to enter picture-in-picture mode.\n *\n * @docs {@link https://www.vidstack.io/docs/player/api/picture-in-picture#remote-control}\n */\n enterPictureInPicture(trigger) {\n this.#dispatchRequest(\"media-enter-pip-request\", trigger);\n }\n /**\n * Dispatch a request to exit picture-in-picture mode.\n *\n * @docs {@link https://www.vidstack.io/docs/player/api/picture-in-picture#remote-control}\n */\n exitPictureInPicture(trigger) {\n this.#dispatchRequest(\"media-exit-pip-request\", trigger);\n }\n /**\n * Notify the media player that a seeking process is happening and to seek to the given `time`.\n */\n seeking(time, trigger) {\n this.#dispatchRequest(\"media-seeking-request\", trigger, time);\n }\n /**\n * Notify the media player that a seeking operation has completed and to seek to the given `time`.\n * This is generally called after a series of `remote.seeking()` calls.\n */\n seek(time, trigger) {\n this.#dispatchRequest(\"media-seek-request\", trigger, time);\n }\n seekToLiveEdge(trigger) {\n this.#dispatchRequest(\"media-live-edge-request\", trigger);\n }\n /**\n * Dispatch a request to update the length of the media in seconds.\n *\n * @example\n * ```ts\n * remote.changeDuration(100); // 100 seconds\n * ```\n */\n changeDuration(duration, trigger) {\n this.#dispatchRequest(\"media-duration-change-request\", trigger, duration);\n }\n /**\n * Dispatch a request to update the clip start time. This is the time at which media playback\n * should start at.\n *\n * @example\n * ```ts\n * remote.changeClipStart(100); // start at 100 seconds\n * ```\n */\n changeClipStart(startTime, trigger) {\n this.#dispatchRequest(\"media-clip-start-change-request\", trigger, startTime);\n }\n /**\n * Dispatch a request to update the clip end time. This is the time at which media playback\n * should end at.\n *\n * @example\n * ```ts\n * remote.changeClipEnd(100); // end at 100 seconds\n * ```\n */\n changeClipEnd(endTime, trigger) {\n this.#dispatchRequest(\"media-clip-end-change-request\", trigger, endTime);\n }\n /**\n * Dispatch a request to update the media volume to the given `volume` level which is a value\n * between 0 and 1.\n *\n * @docs {@link https://www.vidstack.io/docs/player/api/audio-gain#remote-control}\n * @example\n * ```ts\n * remote.changeVolume(0); // 0%\n * remote.changeVolume(0.05); // 5%\n * remote.changeVolume(0.5); // 50%\n * remote.changeVolume(0.75); // 70%\n * remote.changeVolume(1); // 100%\n * ```\n */\n changeVolume(volume, trigger) {\n this.#dispatchRequest(\"media-volume-change-request\", trigger, Math.max(0, Math.min(1, volume)));\n }\n /**\n * Dispatch a request to change the current audio track.\n *\n * @example\n * ```ts\n * remote.changeAudioTrack(1); // track at index 1\n * ```\n */\n changeAudioTrack(index, trigger) {\n this.#dispatchRequest(\"media-audio-track-change-request\", trigger, index);\n }\n /**\n * Dispatch a request to change the video quality. The special value `-1` represents auto quality\n * selection.\n *\n * @example\n * ```ts\n * remote.changeQuality(-1); // auto\n * remote.changeQuality(1); // quality at index 1\n * ```\n */\n changeQuality(index, trigger) {\n this.#dispatchRequest(\"media-quality-change-request\", trigger, index);\n }\n /**\n * Request auto quality selection.\n */\n requestAutoQuality(trigger) {\n this.changeQuality(-1, trigger);\n }\n /**\n * Dispatch a request to change the mode of the text track at the given index.\n *\n * @example\n * ```ts\n * remote.changeTextTrackMode(1, 'showing'); // track at index 1\n * ```\n */\n changeTextTrackMode(index, mode, trigger) {\n this.#dispatchRequest(\"media-text-track-change-request\", trigger, {\n index,\n mode\n });\n }\n /**\n * Dispatch a request to change the media playback rate.\n *\n * @example\n * ```ts\n * remote.changePlaybackRate(0.5); // Half the normal speed\n * remote.changePlaybackRate(1); // Normal speed\n * remote.changePlaybackRate(1.5); // 50% faster than normal\n * remote.changePlaybackRate(2); // Double the normal speed\n * ```\n */\n changePlaybackRate(rate, trigger) {\n this.#dispatchRequest(\"media-rate-change-request\", trigger, rate);\n }\n /**\n * Dispatch a request to change the media audio gain.\n *\n * @example\n * ```ts\n * remote.changeAudioGain(1); // Disable audio gain\n * remote.changeAudioGain(1.5); // 50% louder\n * remote.changeAudioGain(2); // 100% louder\n * ```\n */\n changeAudioGain(gain, trigger) {\n this.#dispatchRequest(\"media-audio-gain-change-request\", trigger, gain);\n }\n /**\n * Dispatch a request to resume idle tracking on controls.\n */\n resumeControls(trigger) {\n this.#dispatchRequest(\"media-resume-controls-request\", trigger);\n }\n /**\n * Dispatch a request to pause controls idle tracking. Pausing tracking will result in the\n * controls being visible until `remote.resumeControls()` is called. This method\n * is generally used when building custom controls and you'd like to prevent the UI from\n * disappearing.\n *\n * @example\n * ```ts\n * // Prevent controls hiding while menu is being interacted with.\n * function onSettingsOpen() {\n * remote.pauseControls();\n * }\n *\n * function onSettingsClose() {\n * remote.resumeControls();\n * }\n * ```\n */\n pauseControls(trigger) {\n this.#dispatchRequest(\"media-pause-controls-request\", trigger);\n }\n /**\n * Dispatch a request to toggle the media playback state.\n */\n togglePaused(trigger) {\n const player = this.getPlayer(trigger?.target);\n if (!player) {\n return;\n }\n if (player.state.paused) this.play(trigger);\n else this.pause(trigger);\n }\n /**\n * Dispatch a request to toggle the controls visibility.\n */\n toggleControls(trigger) {\n const player = this.getPlayer(trigger?.target);\n if (!player) {\n return;\n }\n if (!player.controls.showing) {\n player.controls.show(0, trigger);\n } else {\n player.controls.hide(0, trigger);\n }\n }\n /**\n * Dispatch a request to toggle the media muted state.\n */\n toggleMuted(trigger) {\n const player = this.getPlayer(trigger?.target);\n if (!player) {\n return;\n }\n if (player.state.muted) this.unmute(trigger);\n else this.mute(trigger);\n }\n /**\n * Dispatch a request to toggle the media fullscreen state.\n *\n * @docs {@link https://www.vidstack.io/docs/player/api/fullscreen#remote-control}\n */\n toggleFullscreen(target, trigger) {\n const player = this.getPlayer(trigger?.target);\n if (!player) {\n return;\n }\n if (player.state.fullscreen) this.exitFullscreen(target, trigger);\n else this.enterFullscreen(target, trigger);\n }\n /**\n * Dispatch a request to toggle the media picture-in-picture mode.\n *\n * @docs {@link https://www.vidstack.io/docs/player/api/picture-in-picture#remote-control}\n */\n togglePictureInPicture(trigger) {\n const player = this.getPlayer(trigger?.target);\n if (!player) {\n return;\n }\n if (player.state.pictureInPicture) this.exitPictureInPicture(trigger);\n else this.enterPictureInPicture(trigger);\n }\n /**\n * Show captions.\n */\n showCaptions(trigger) {\n const player = this.getPlayer(trigger?.target);\n if (!player) {\n return;\n }\n let tracks = player.state.textTracks, index = this.#prevTrackIndex;\n if (!tracks[index] || !isTrackCaptionKind(tracks[index])) {\n index = -1;\n }\n if (index === -1) {\n index = tracks.findIndex((track) => isTrackCaptionKind(track) && track.default);\n }\n if (index === -1) {\n index = tracks.findIndex((track) => isTrackCaptionKind(track));\n }\n if (index >= 0) this.changeTextTrackMode(index, \"showing\", trigger);\n this.#prevTrackIndex = -1;\n }\n /**\n * Turn captions off.\n */\n disableCaptions(trigger) {\n const player = this.getPlayer(trigger?.target);\n if (!player) {\n return;\n }\n const tracks = player.state.textTracks, track = player.state.textTrack;\n if (track) {\n const index = tracks.indexOf(track);\n this.changeTextTrackMode(index, \"disabled\", trigger);\n this.#prevTrackIndex = index;\n }\n }\n /**\n * Dispatch a request to toggle the current captions mode.\n */\n toggleCaptions(trigger) {\n const player = this.getPlayer(trigger?.target);\n if (!player) {\n return;\n }\n if (player.state.textTrack) {\n this.disableCaptions();\n } else {\n this.showCaptions();\n }\n }\n userPrefersLoopChange(prefersLoop, trigger) {\n this.#dispatchRequest(\"media-user-loop-change-request\", trigger, prefersLoop);\n }\n #dispatchRequest(type, trigger, detail) {\n const request = new DOMEvent(type, {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail,\n trigger\n });\n let target = trigger?.target || null;\n if (target && target instanceof Component) target = target.el;\n const shouldUsePlayer = !target || target === document || target === window || target === document.body || this.#player?.el && target instanceof Node && !this.#player.el.contains(target);\n target = shouldUsePlayer ? this.#target ?? this.getPlayer()?.el : target ?? this.#target;\n if (this.#player) {\n if (type === \"media-play-request\" && !this.#player.state.canLoad) {\n target?.dispatchEvent(request);\n } else {\n this.#player.canPlayQueue.enqueue(type, () => target?.dispatchEvent(request));\n }\n } else {\n target?.dispatchEvent(request);\n }\n }\n #noPlayerWarning(method) {\n }\n}\n\nclass LocalMediaStorage {\n playerId = \"vds-player\";\n mediaId = null;\n #data = {\n volume: null,\n muted: null,\n audioGain: null,\n time: null,\n lang: null,\n captions: null,\n rate: null,\n quality: null\n };\n async getVolume() {\n return this.#data.volume;\n }\n async setVolume(volume) {\n this.#data.volume = volume;\n this.save();\n }\n async getMuted() {\n return this.#data.muted;\n }\n async setMuted(muted) {\n this.#data.muted = muted;\n this.save();\n }\n async getTime() {\n return this.#data.time;\n }\n async setTime(time, ended) {\n const shouldClear = time < 0;\n this.#data.time = !shouldClear ? time : null;\n if (shouldClear || ended) this.saveTime();\n else this.saveTimeThrottled();\n }\n async getLang() {\n return this.#data.lang;\n }\n async setLang(lang) {\n this.#data.lang = lang;\n this.save();\n }\n async getCaptions() {\n return this.#data.captions;\n }\n async setCaptions(enabled) {\n this.#data.captions = enabled;\n this.save();\n }\n async getPlaybackRate() {\n return this.#data.rate;\n }\n async setPlaybackRate(rate) {\n this.#data.rate = rate;\n this.save();\n }\n async getAudioGain() {\n return this.#data.audioGain;\n }\n async setAudioGain(gain) {\n this.#data.audioGain = gain;\n this.save();\n }\n async getVideoQuality() {\n return this.#data.quality;\n }\n async setVideoQuality(quality) {\n this.#data.quality = quality;\n this.save();\n }\n onChange(src, mediaId, playerId = \"vds-player\") {\n const savedData = playerId ? localStorage.getItem(playerId) : null, savedTime = mediaId ? localStorage.getItem(mediaId) : null;\n this.playerId = playerId;\n this.mediaId = mediaId;\n this.#data = {\n volume: null,\n muted: null,\n audioGain: null,\n lang: null,\n captions: null,\n rate: null,\n quality: null,\n ...savedData ? JSON.parse(savedData) : {},\n time: savedTime ? +savedTime : null\n };\n }\n save() {\n if (IS_SERVER || !this.playerId) return;\n const data = JSON.stringify({ ...this.#data, time: void 0 });\n localStorage.setItem(this.playerId, data);\n }\n saveTimeThrottled = functionThrottle(this.saveTime.bind(this), 1e3);\n saveTime() {\n if (IS_SERVER || !this.mediaId) return;\n const data = (this.#data.time ?? 0).toString();\n localStorage.setItem(this.mediaId, data);\n }\n}\n\nconst ADD = Symbol(0), REMOVE = Symbol(0), RESET = Symbol(0), SELECT = Symbol(0), READONLY = Symbol(0), SET_READONLY = Symbol(0), ON_RESET = Symbol(0), ON_REMOVE = Symbol(0), ON_USER_SELECT = Symbol(0);\nconst ListSymbol = {\n add: ADD,\n remove: REMOVE,\n reset: RESET,\n select: SELECT,\n readonly: READONLY,\n setReadonly: SET_READONLY,\n onReset: ON_RESET,\n onRemove: ON_REMOVE,\n onUserSelect: ON_USER_SELECT\n};\n\nclass List extends EventsTarget {\n items = [];\n /** @internal */\n [ListSymbol.readonly] = false;\n get length() {\n return this.items.length;\n }\n get readonly() {\n return this[ListSymbol.readonly];\n }\n /**\n * Returns the index of the first occurrence of the given item, or -1 if it is not present.\n */\n indexOf(item) {\n return this.items.indexOf(item);\n }\n /**\n * Returns an item matching the given `id`, or `null` if not present.\n */\n getById(id) {\n if (id === \"\") return null;\n return this.items.find((item) => item.id === id) ?? null;\n }\n /**\n * Transform list to an array.\n */\n toArray() {\n return [...this.items];\n }\n [Symbol.iterator]() {\n return this.items.values();\n }\n /** @internal */\n [ListSymbol.add](item, trigger) {\n const index = this.items.length;\n if (!(\"\" + index in this)) {\n Object.defineProperty(this, index, {\n get() {\n return this.items[index];\n }\n });\n }\n if (this.items.includes(item)) return;\n this.items.push(item);\n this.dispatchEvent(new DOMEvent(\"add\", { detail: item, trigger }));\n }\n /** @internal */\n [ListSymbol.remove](item, trigger) {\n const index = this.items.indexOf(item);\n if (index >= 0) {\n this[ListSymbol.onRemove]?.(item, trigger);\n this.items.splice(index, 1);\n this.dispatchEvent(new DOMEvent(\"remove\", { detail: item, trigger }));\n }\n }\n /** @internal */\n [ListSymbol.reset](trigger) {\n for (const item of [...this.items]) this[ListSymbol.remove](item, trigger);\n this.items = [];\n this[ListSymbol.setReadonly](false, trigger);\n this[ListSymbol.onReset]?.();\n }\n /** @internal */\n [ListSymbol.setReadonly](readonly, trigger) {\n if (this[ListSymbol.readonly] === readonly) return;\n this[ListSymbol.readonly] = readonly;\n this.dispatchEvent(new DOMEvent(\"readonly-change\", { detail: readonly, trigger }));\n }\n}\n\nconst SELECTED = Symbol(0);\nclass SelectList extends List {\n get selected() {\n return this.items.find((item) => item.selected) ?? null;\n }\n get selectedIndex() {\n return this.items.findIndex((item) => item.selected);\n }\n /** @internal */\n [ListSymbol.onRemove](item, trigger) {\n this[ListSymbol.select](item, false, trigger);\n }\n /** @internal */\n [ListSymbol.add](item, trigger) {\n item[SELECTED] = false;\n Object.defineProperty(item, \"selected\", {\n get() {\n return this[SELECTED];\n },\n set: (selected) => {\n if (this.readonly) return;\n this[ListSymbol.onUserSelect]?.();\n this[ListSymbol.select](item, selected);\n }\n });\n super[ListSymbol.add](item, trigger);\n }\n /** @internal */\n [ListSymbol.select](item, selected, trigger) {\n if (selected === item?.[SELECTED]) return;\n const prev = this.selected;\n if (item) item[SELECTED] = selected;\n const changed = !selected ? prev === item : prev !== item;\n if (changed) {\n if (prev) prev[SELECTED] = false;\n this.dispatchEvent(\n new DOMEvent(\"change\", {\n detail: {\n prev,\n current: this.selected\n },\n trigger\n })\n );\n }\n }\n}\n\nclass AudioTrackList extends SelectList {\n}\n\nfunction round(num, decimalPlaces = 2) {\n return Number(num.toFixed(decimalPlaces));\n}\nfunction getNumberOfDecimalPlaces(num) {\n return String(num).split(\".\")[1]?.length ?? 0;\n}\nfunction clampNumber(min, value, max) {\n return Math.max(min, Math.min(max, value));\n}\n\nfunction isEventInside(el, event) {\n const target = event.composedPath()[0];\n return isDOMNode(target) && el.contains(target);\n}\nconst rafJobs = /* @__PURE__ */ new Set();\nif (!IS_SERVER) {\n let processJobs = function() {\n for (const job of rafJobs) {\n try {\n job();\n } catch (e) {\n }\n }\n window.requestAnimationFrame(processJobs);\n };\n processJobs();\n}\nfunction scheduleRafJob(job) {\n rafJobs.add(job);\n return () => rafJobs.delete(job);\n}\nfunction setAttributeIfEmpty(target, name, value) {\n if (!target.hasAttribute(name)) target.setAttribute(name, value);\n}\nfunction setARIALabel(target, $label) {\n if (target.hasAttribute(\"aria-label\") || target.hasAttribute(\"data-no-label\")) return;\n if (!isFunction($label)) {\n setAttribute(target, \"aria-label\", $label);\n return;\n }\n function updateAriaDescription() {\n setAttribute(target, \"aria-label\", $label());\n }\n if (IS_SERVER) updateAriaDescription();\n else effect(updateAriaDescription);\n}\nfunction isElementVisible(el) {\n const style = getComputedStyle(el);\n return style.display !== \"none\" && parseInt(style.opacity) > 0;\n}\nfunction checkVisibility(el) {\n return !!el && (\"checkVisibility\" in el ? el.checkVisibility({ checkOpacity: true, checkVisibilityCSS: true }) : isElementVisible(el));\n}\nfunction observeVisibility(el, callback) {\n return scheduleRafJob(() => callback(checkVisibility(el)));\n}\nfunction isElementParent(owner, node, test) {\n while (node) {\n if (node === owner) {\n return true;\n } else if (test?.(node)) {\n break;\n } else {\n node = node.parentElement;\n }\n }\n return false;\n}\nfunction onPress(target, handler) {\n return new EventsController(target).add(\"pointerup\", (event) => {\n if (event.button === 0 && !event.defaultPrevented) handler(event);\n }).add(\"keydown\", (event) => {\n if (isKeyboardClick(event)) handler(event);\n });\n}\nfunction isTouchPinchEvent(event) {\n return isTouchEvent(event) && (event.touches.length > 1 || event.changedTouches.length > 1);\n}\nfunction requestScopedAnimationFrame(callback) {\n if (IS_SERVER) return callback();\n let scope = getScope(), id = window.requestAnimationFrame(() => {\n scoped(callback, scope);\n id = -1;\n });\n return () => void window.cancelAnimationFrame(id);\n}\nfunction autoPlacement(el, trigger, placement, {\n offsetVarName,\n xOffset,\n yOffset,\n ...options\n}) {\n if (!el) return;\n const floatingPlacement = placement.replace(\" \", \"-\").replace(\"-center\", \"\");\n setStyle(el, \"visibility\", !trigger ? \"hidden\" : null);\n if (!trigger) return;\n let isTop = placement.includes(\"top\");\n const negateX = (x) => placement.includes(\"left\") ? `calc(-1 * ${x})` : x, negateY = (y) => isTop ? `calc(-1 * ${y})` : y;\n return autoUpdate(trigger, el, () => {\n computePosition(trigger, el, {\n placement: floatingPlacement,\n middleware: [\n ...options.middleware ?? [],\n flip({ fallbackAxisSideDirection: \"start\", crossAxis: false }),\n shift()\n ],\n ...options\n }).then(({ x, y, middlewareData }) => {\n const hasFlipped = !!middlewareData.flip?.index;\n isTop = placement.includes(hasFlipped ? \"bottom\" : \"top\");\n el.setAttribute(\n \"data-placement\",\n hasFlipped ? placement.startsWith(\"top\") ? placement.replace(\"top\", \"bottom\") : placement.replace(\"bottom\", \"top\") : placement\n );\n Object.assign(el.style, {\n top: `calc(${y + \"px\"} + ${negateY(\n yOffset ? yOffset + \"px\" : `var(--${offsetVarName}-y-offset, 0px)`\n )})`,\n left: `calc(${x + \"px\"} + ${negateX(\n xOffset ? xOffset + \"px\" : `var(--${offsetVarName}-x-offset, 0px)`\n )})`\n });\n });\n });\n}\nfunction hasAnimation(el) {\n const styles = getComputedStyle(el);\n return styles.animationName !== \"none\";\n}\nfunction isHTMLElement(el) {\n return el instanceof HTMLElement;\n}\n\nclass NativeTextRenderer {\n priority = 0;\n #display = true;\n #video = null;\n #track = null;\n #tracks = /* @__PURE__ */ new Set();\n canRender(_, video) {\n return !!video;\n }\n attach(video) {\n this.#video = video;\n if (video) video.textTracks.onchange = this.#onChange.bind(this);\n }\n addTrack(track) {\n this.#tracks.add(track);\n this.#attachTrack(track);\n }\n removeTrack(track) {\n track[TextTrackSymbol.native]?.remove?.();\n track[TextTrackSymbol.native] = null;\n this.#tracks.delete(track);\n }\n changeTrack(track) {\n const current = track?.[TextTrackSymbol.native];\n if (current && current.track.mode !== \"showing\") {\n current.track.mode = \"showing\";\n }\n this.#track = track;\n }\n setDisplay(display) {\n this.#display = display;\n this.#onChange();\n }\n detach() {\n if (this.#video) this.#video.textTracks.onchange = null;\n for (const track of this.#tracks) this.removeTrack(track);\n this.#tracks.clear();\n this.#video = null;\n this.#track = null;\n }\n #attachTrack(track) {\n if (!this.#video) return;\n const el = track[TextTrackSymbol.native] ??= this.#createTrackElement(track);\n if (isHTMLElement(el)) {\n this.#video.append(el);\n el.track.mode = el.default ? \"showing\" : \"disabled\";\n }\n }\n #createTrackElement(track) {\n const el = document.createElement(\"track\"), isDefault = track.default || track.mode === \"showing\", isSupported = track.src && track.type === \"vtt\";\n el.id = track.id;\n el.src = isSupported ? track.src : \"\";\n el.label = track.label;\n el.kind = track.kind;\n el.default = isDefault;\n track.language && (el.srclang = track.language);\n if (isDefault && !isSupported) {\n this.#copyCues(track, el.track);\n }\n return el;\n }\n #copyCues(track, native) {\n if (track.src && track.type === \"vtt\" || native.cues?.length) return;\n for (const cue of track.cues) native.addCue(cue);\n }\n #onChange(event) {\n for (const track of this.#tracks) {\n const native = track[TextTrackSymbol.native];\n if (!native) continue;\n if (!this.#display) {\n native.track.mode = native.managed ? \"hidden\" : \"disabled\";\n continue;\n }\n const isShowing = native.track.mode === \"showing\";\n if (isShowing) this.#copyCues(track, native.track);\n track.setMode(isShowing ? \"showing\" : \"disabled\", event);\n }\n }\n}\n\nclass TextRenderers {\n #video = null;\n #textTracks;\n #renderers = [];\n #media;\n #nativeDisplay = false;\n #nativeRenderer = null;\n #customRenderer = null;\n constructor(media) {\n this.#media = media;\n const textTracks = media.textTracks;\n this.#textTracks = textTracks;\n effect(this.#watchControls.bind(this));\n onDispose(this.#detach.bind(this));\n new EventsController(textTracks).add(\"add\", this.#onAddTrack.bind(this)).add(\"remove\", this.#onRemoveTrack.bind(this)).add(\"mode-change\", this.#update.bind(this));\n }\n #watchControls() {\n const { nativeControls } = this.#media.$state;\n this.#nativeDisplay = nativeControls();\n this.#update();\n }\n add(renderer) {\n this.#renderers.push(renderer);\n untrack(this.#update.bind(this));\n }\n remove(renderer) {\n renderer.detach();\n this.#renderers.splice(this.#renderers.indexOf(renderer), 1);\n untrack(this.#update.bind(this));\n }\n /** @internal */\n attachVideo(video) {\n requestAnimationFrame(() => {\n this.#video = video;\n if (video) {\n this.#nativeRenderer = new NativeTextRenderer();\n this.#nativeRenderer.attach(video);\n for (const track of this.#textTracks) this.#addNativeTrack(track);\n }\n this.#update();\n });\n }\n #addNativeTrack(track) {\n if (!isTrackCaptionKind(track)) return;\n this.#nativeRenderer?.addTrack(track);\n }\n #removeNativeTrack(track) {\n if (!isTrackCaptionKind(track)) return;\n this.#nativeRenderer?.removeTrack(track);\n }\n #onAddTrack(event) {\n this.#addNativeTrack(event.detail);\n }\n #onRemoveTrack(event) {\n this.#removeNativeTrack(event.detail);\n }\n #update() {\n const currentTrack = this.#textTracks.selected;\n if (this.#video && (this.#nativeDisplay || currentTrack?.[TextTrackSymbol.nativeHLS])) {\n this.#customRenderer?.changeTrack(null);\n this.#nativeRenderer?.setDisplay(true);\n this.#nativeRenderer?.changeTrack(currentTrack);\n return;\n }\n this.#nativeRenderer?.setDisplay(false);\n this.#nativeRenderer?.changeTrack(null);\n if (!currentTrack) {\n this.#customRenderer?.changeTrack(null);\n return;\n }\n const customRenderer = this.#renderers.sort((a, b) => a.priority - b.priority).find((renderer) => renderer.canRender(currentTrack, this.#video));\n if (this.#customRenderer !== customRenderer) {\n this.#customRenderer?.detach();\n customRenderer?.attach(this.#video);\n this.#customRenderer = customRenderer ?? null;\n }\n customRenderer?.changeTrack(currentTrack);\n }\n #detach() {\n this.#nativeRenderer?.detach();\n this.#nativeRenderer = null;\n this.#customRenderer?.detach();\n this.#customRenderer = null;\n }\n}\n\nclass TextTrackList extends List {\n #canLoad = false;\n #defaults = {};\n #storage = null;\n #preferredLang = null;\n /** @internal */\n [TextTrackSymbol.crossOrigin];\n constructor() {\n super();\n }\n get selected() {\n const track = this.items.find((t) => t.mode === \"showing\" && isTrackCaptionKind(t));\n return track ?? null;\n }\n get selectedIndex() {\n const selected = this.selected;\n return selected ? this.indexOf(selected) : -1;\n }\n get preferredLang() {\n return this.#preferredLang;\n }\n set preferredLang(lang) {\n this.#preferredLang = lang;\n this.#saveLang(lang);\n }\n add(init, trigger) {\n const isTrack = init instanceof TextTrack, track = isTrack ? init : new TextTrack(init), kind = init.kind === \"captions\" || init.kind === \"subtitles\" ? \"captions\" : init.kind;\n if (this.#defaults[kind] && init.default) delete init.default;\n track.addEventListener(\"mode-change\", this.#onTrackModeChangeBind);\n this[ListSymbol.add](track, trigger);\n track[TextTrackSymbol.crossOrigin] = this[TextTrackSymbol.crossOrigin];\n if (this.#canLoad) track[TextTrackSymbol.canLoad]();\n if (init.default) this.#defaults[kind] = track;\n this.#selectTracks();\n return this;\n }\n remove(track, trigger) {\n this.#pendingRemoval = track;\n if (!this.items.includes(track)) return;\n if (track === this.#defaults[track.kind]) delete this.#defaults[track.kind];\n track.mode = \"disabled\";\n track[TextTrackSymbol.onModeChange] = null;\n track.removeEventListener(\"mode-change\", this.#onTrackModeChangeBind);\n this[ListSymbol.remove](track, trigger);\n this.#pendingRemoval = null;\n return this;\n }\n clear(trigger) {\n for (const track of [...this.items]) {\n this.remove(track, trigger);\n }\n return this;\n }\n getByKind(kind) {\n const kinds = Array.isArray(kind) ? kind : [kind];\n return this.items.filter((track) => kinds.includes(track.kind));\n }\n /** @internal */\n [TextTrackSymbol.canLoad]() {\n if (this.#canLoad) return;\n for (const track of this.items) track[TextTrackSymbol.canLoad]();\n this.#canLoad = true;\n this.#selectTracks();\n }\n #selectTracks = functionDebounce(async () => {\n if (!this.#canLoad) return;\n if (!this.#preferredLang && this.#storage) {\n this.#preferredLang = await this.#storage.getLang();\n }\n const showCaptions = await this.#storage?.getCaptions(), kinds = [\n [\"captions\", \"subtitles\"],\n \"chapters\",\n \"descriptions\",\n \"metadata\"\n ];\n for (const kind of kinds) {\n const tracks = this.getByKind(kind);\n if (tracks.find((t) => t.mode === \"showing\")) continue;\n const preferredTrack = this.#preferredLang ? tracks.find((track2) => track2.language === this.#preferredLang) : null;\n const defaultTrack = isArray(kind) ? this.#defaults[kind.find((kind2) => this.#defaults[kind2]) || \"\"] : this.#defaults[kind];\n const track = preferredTrack ?? defaultTrack, isCaptionsKind = track && isTrackCaptionKind(track);\n if (track && (!isCaptionsKind || showCaptions !== false)) {\n track.mode = \"showing\";\n if (isCaptionsKind) this.#saveCaptionsTrack(track);\n }\n }\n }, 300);\n #pendingRemoval = null;\n #onTrackModeChangeBind = this.#onTrackModeChange.bind(this);\n #onTrackModeChange(event) {\n const track = event.detail;\n if (this.#storage && isTrackCaptionKind(track) && track !== this.#pendingRemoval) {\n this.#saveCaptionsTrack(track);\n }\n if (track.mode === \"showing\") {\n const kinds = isTrackCaptionKind(track) ? [\"captions\", \"subtitles\"] : [track.kind];\n for (const t of this.items) {\n if (t.mode === \"showing\" && t != track && kinds.includes(t.kind)) {\n t.mode = \"disabled\";\n }\n }\n }\n this.dispatchEvent(\n new DOMEvent(\"mode-change\", {\n detail: event.detail,\n trigger: event\n })\n );\n }\n #saveCaptionsTrack(track) {\n if (track.mode !== \"disabled\") {\n this.#saveLang(track.language);\n }\n this.#storage?.setCaptions?.(track.mode === \"showing\");\n }\n #saveLang(lang) {\n this.#storage?.setLang?.(this.#preferredLang = lang);\n }\n setStorage(storage) {\n this.#storage = storage;\n }\n}\n\nconst SET_AUTO = Symbol(0), ENABLE_AUTO = Symbol(0);\nconst QualitySymbol = {\n setAuto: SET_AUTO,\n enableAuto: ENABLE_AUTO\n};\n\nclass VideoQualityList extends SelectList {\n #auto = false;\n /**\n * Configures quality switching:\n *\n * - `current`: Trigger an immediate quality level switch. This will abort the current fragment\n * request if any, flush the whole buffer, and fetch fragment matching with current position\n * and requested quality level.\n *\n * - `next`: Trigger a quality level switch for next fragment. This could eventually flush\n * already buffered next fragment.\n *\n * - `load`: Set quality level for next loaded fragment.\n *\n * @see {@link https://www.vidstack.io/docs/player/api/video-quality#switch}\n * @see {@link https://github.com/video-dev/hls.js/blob/master/docs/API.md#quality-switch-control-api}\n */\n switch = \"current\";\n /**\n * Whether automatic quality selection is enabled.\n */\n get auto() {\n return this.#auto || this.readonly;\n }\n /** @internal */\n [QualitySymbol.enableAuto];\n /** @internal */\n [ListSymbol.onUserSelect]() {\n this[QualitySymbol.setAuto](false);\n }\n /** @internal */\n [ListSymbol.onReset](trigger) {\n this[QualitySymbol.enableAuto] = void 0;\n this[QualitySymbol.setAuto](false, trigger);\n }\n /**\n * Request automatic quality selection (if supported). This will be a no-op if the list is\n * `readonly` as that already implies auto-selection.\n */\n autoSelect(trigger) {\n if (this.readonly || this.#auto || !this[QualitySymbol.enableAuto]) return;\n this[QualitySymbol.enableAuto]?.(trigger);\n this[QualitySymbol.setAuto](true, trigger);\n }\n getBySrc(src) {\n return this.items.find((quality) => quality.src === src);\n }\n /** @internal */\n [QualitySymbol.setAuto](auto, trigger) {\n if (this.#auto === auto) return;\n this.#auto = auto;\n this.dispatchEvent(\n new DOMEvent(\"auto-change\", {\n detail: auto,\n trigger\n })\n );\n }\n}\n\nfunction sortVideoQualities(qualities, desc) {\n return [...qualities].sort(desc ? compareVideoQualityDesc : compareVideoQualityAsc);\n}\nfunction compareVideoQualityAsc(a, b) {\n return a.height === b.height ? (a.bitrate ?? 0) - (b.bitrate ?? 0) : a.height - b.height;\n}\nfunction compareVideoQualityDesc(a, b) {\n return b.height === a.height ? (b.bitrate ?? 0) - (a.bitrate ?? 0) : b.height - a.height;\n}\n\nfunction isAudioProvider(provider) {\n return provider?.$$PROVIDER_TYPE === \"AUDIO\";\n}\nfunction isVideoProvider(provider) {\n return provider?.$$PROVIDER_TYPE === \"VIDEO\";\n}\nfunction isHLSProvider(provider) {\n return provider?.$$PROVIDER_TYPE === \"HLS\";\n}\nfunction isDASHProvider(provider) {\n return provider?.$$PROVIDER_TYPE === \"DASH\";\n}\nfunction isYouTubeProvider(provider) {\n return provider?.$$PROVIDER_TYPE === \"YOUTUBE\";\n}\nfunction isVimeoProvider(provider) {\n return provider?.$$PROVIDER_TYPE === \"VIMEO\";\n}\nfunction isGoogleCastProvider(provider) {\n return provider?.$$PROVIDER_TYPE === \"GOOGLE_CAST\";\n}\nfunction isHTMLAudioElement(element) {\n return !IS_SERVER && element instanceof HTMLAudioElement;\n}\nfunction isHTMLVideoElement(element) {\n return !IS_SERVER && element instanceof HTMLVideoElement;\n}\nfunction isHTMLMediaElement(element) {\n return isHTMLAudioElement(element) || isHTMLVideoElement(element);\n}\nfunction isHTMLIFrameElement(element) {\n return !IS_SERVER && element instanceof HTMLIFrameElement;\n}\n\nclass MediaPlayerController extends ViewController {\n}\n\nconst MEDIA_KEY_SHORTCUTS = {\n togglePaused: \"k Space\",\n toggleMuted: \"m\",\n toggleFullscreen: \"f\",\n togglePictureInPicture: \"i\",\n toggleCaptions: \"c\",\n seekBackward: \"j J ArrowLeft\",\n seekForward: \"l L ArrowRight\",\n volumeUp: \"ArrowUp\",\n volumeDown: \"ArrowDown\",\n speedUp: \">\",\n slowDown: \"<\"\n};\nconst MODIFIER_KEYS = /* @__PURE__ */ new Set([\"Shift\", \"Alt\", \"Meta\", \"Ctrl\"]), BUTTON_SELECTORS = 'button, [role=\"button\"]', IGNORE_SELECTORS = 'input, textarea, select, [contenteditable], [role^=\"menuitem\"], [role=\"timer\"]';\nclass MediaKeyboardController extends MediaPlayerController {\n #media;\n constructor(media) {\n super();\n this.#media = media;\n }\n onConnect() {\n effect(this.#onTargetChange.bind(this));\n }\n #onTargetChange() {\n const { keyDisabled, keyTarget } = this.$props;\n if (keyDisabled()) return;\n const target = keyTarget() === \"player\" ? this.el : document, $active = signal(false);\n if (target === this.el) {\n new EventsController(this.el).add(\"focusin\", () => $active.set(true)).add(\"focusout\", (event) => {\n if (!this.el.contains(event.target)) $active.set(false);\n });\n } else {\n if (!peek($active)) $active.set(document.querySelector(\"[data-media-player]\") === this.el);\n listenEvent(document, \"focusin\", (event) => {\n const activePlayer = event.composedPath().find((el) => el instanceof Element && el.localName === \"media-player\");\n if (activePlayer !== void 0) $active.set(this.el === activePlayer);\n });\n }\n effect(() => {\n if (!$active()) return;\n new EventsController(target).add(\"keyup\", this.#onKeyUp.bind(this)).add(\"keydown\", this.#onKeyDown.bind(this)).add(\"keydown\", this.#onPreventVideoKeys.bind(this), { capture: true });\n });\n }\n #onKeyUp(event) {\n const focusedEl = document.activeElement;\n if (!event.key || !this.$state.canSeek() || focusedEl?.matches(IGNORE_SELECTORS)) {\n return;\n }\n let { method, value } = this.#getMatchingMethod(event);\n if (!isString(value) && !isArray(value)) {\n value?.onKeyUp?.({\n event,\n player: this.#media.player,\n remote: this.#media.remote\n });\n value?.callback?.(event, this.#media.remote);\n return;\n }\n if (method?.startsWith(\"seek\")) {\n event.preventDefault();\n event.stopPropagation();\n if (this.#timeSlider) {\n this.#forwardTimeKeyboardEvent(event, method === \"seekForward\");\n this.#timeSlider = null;\n } else {\n this.#media.remote.seek(this.#seekTotal, event);\n this.#seekTotal = void 0;\n }\n }\n if (method?.startsWith(\"volume\")) {\n const volumeSlider = this.el.querySelector(\"[data-media-volume-slider]\");\n volumeSlider?.dispatchEvent(\n new KeyboardEvent(\"keyup\", {\n key: method === \"volumeUp\" ? \"Up\" : \"Down\",\n shiftKey: event.shiftKey,\n trigger: event\n })\n );\n }\n }\n #onKeyDown(event) {\n if (!event.key || MODIFIER_KEYS.has(event.key)) return;\n const focusedEl = document.activeElement;\n if (focusedEl?.matches(IGNORE_SELECTORS) || isKeyboardClick(event) && focusedEl?.matches(BUTTON_SELECTORS)) {\n return;\n }\n let { method, value } = this.#getMatchingMethod(event), isNumberPress = !event.metaKey && /^[0-9]$/.test(event.key);\n if (!isString(value) && !isArray(value) && !isNumberPress) {\n value?.onKeyDown?.({\n event,\n player: this.#media.player,\n remote: this.#media.remote\n });\n value?.callback?.(event, this.#media.remote);\n return;\n }\n if (!method && isNumberPress) {\n event.preventDefault();\n event.stopPropagation();\n this.#media.remote.seek(this.$state.duration() / 10 * Number(event.key), event);\n return;\n }\n if (!method) return;\n event.preventDefault();\n event.stopPropagation();\n switch (method) {\n case \"seekForward\":\n case \"seekBackward\":\n this.#seeking(event, method, method === \"seekForward\");\n break;\n case \"volumeUp\":\n case \"volumeDown\":\n const volumeSlider = this.el.querySelector(\"[data-media-volume-slider]\");\n if (volumeSlider) {\n volumeSlider.dispatchEvent(\n new KeyboardEvent(\"keydown\", {\n key: method === \"volumeUp\" ? \"Up\" : \"Down\",\n shiftKey: event.shiftKey,\n trigger: event\n })\n );\n } else {\n const value2 = event.shiftKey ? 0.1 : 0.05;\n this.#media.remote.changeVolume(\n this.$state.volume() + (method === \"volumeUp\" ? +value2 : -value2),\n event\n );\n }\n break;\n case \"toggleFullscreen\":\n this.#media.remote.toggleFullscreen(\"prefer-media\", event);\n break;\n case \"speedUp\":\n case \"slowDown\":\n const playbackRate = this.$state.playbackRate();\n this.#media.remote.changePlaybackRate(\n Math.max(0.25, Math.min(2, playbackRate + (method === \"speedUp\" ? 0.25 : -0.25))),\n event\n );\n break;\n default:\n this.#media.remote[method]?.(event);\n }\n this.$state.lastKeyboardAction.set({\n action: method,\n event\n });\n }\n #onPreventVideoKeys(event) {\n if (isHTMLMediaElement(event.target) && this.#getMatchingMethod(event).method) {\n event.preventDefault();\n }\n }\n #getMatchingMethod(event) {\n const keyShortcuts = {\n ...this.$props.keyShortcuts(),\n ...this.#media.ariaKeys\n };\n const method = Object.keys(keyShortcuts).find((method2) => {\n const value = keyShortcuts[method2], keys = isArray(value) ? value.join(\" \") : isString(value) ? value : value?.keys;\n const combinations = (isArray(keys) ? keys : keys?.split(\" \"))?.map(\n (key) => replaceSymbolKeys(key).replace(/Control/g, \"Ctrl\").split(\"+\")\n );\n return combinations?.some((combo) => {\n const modifierKeys = new Set(combo.filter((key) => MODIFIER_KEYS.has(key)));\n for (const modKey of MODIFIER_KEYS) {\n const modKeyProp = modKey.toLowerCase() + \"Key\";\n if (!modifierKeys.has(modKey) && event[modKeyProp]) {\n return false;\n }\n }\n return combo.every((key) => {\n return MODIFIER_KEYS.has(key) ? event[key.toLowerCase() + \"Key\"] : event.key === key.replace(\"Space\", \" \");\n });\n });\n });\n return {\n method,\n value: method ? keyShortcuts[method] : null\n };\n }\n #seekTotal;\n #calcSeekAmount(event, type) {\n const seekBy = event.shiftKey ? 10 : 5;\n return this.#seekTotal = Math.max(\n 0,\n Math.min(\n (this.#seekTotal ?? this.$state.currentTime()) + (type === \"seekForward\" ? +seekBy : -seekBy),\n this.$state.duration()\n )\n );\n }\n #timeSlider = null;\n #forwardTimeKeyboardEvent(event, forward) {\n this.#timeSlider?.dispatchEvent(\n new KeyboardEvent(event.type, {\n key: !forward ? \"Left\" : \"Right\",\n shiftKey: event.shiftKey,\n trigger: event\n })\n );\n }\n #seeking(event, type, forward) {\n if (!this.$state.canSeek()) return;\n if (!this.#timeSlider) {\n this.#timeSlider = this.el.querySelector(\"[data-media-time-slider]\");\n }\n if (this.#timeSlider) {\n this.#forwardTimeKeyboardEvent(event, forward);\n } else {\n this.#media.remote.seeking(this.#calcSeekAmount(event, type), event);\n }\n }\n}\nconst SYMBOL_KEY_MAP = [\"!\", \"@\", \"#\", \"$\", \"%\", \"^\", \"&\", \"*\", \"(\", \")\"];\nfunction replaceSymbolKeys(key) {\n return key.replace(/Shift\\+(\\d)/g, (_, num) => SYMBOL_KEY_MAP[num - 1]);\n}\n\nclass ARIAKeyShortcuts extends ViewController {\n #shortcut;\n constructor(shortcut) {\n super();\n this.#shortcut = shortcut;\n }\n onAttach(el) {\n const { $props, ariaKeys } = useMediaContext(), keys = el.getAttribute(\"aria-keyshortcuts\");\n if (keys) {\n ariaKeys[this.#shortcut] = keys;\n if (!IS_SERVER) {\n onDispose(() => {\n delete ariaKeys[this.#shortcut];\n });\n }\n return;\n }\n const shortcuts = $props.keyShortcuts()[this.#shortcut];\n if (shortcuts) {\n const keys2 = isArray(shortcuts) ? shortcuts.join(\" \") : isString(shortcuts) ? shortcuts : shortcuts?.keys;\n el.setAttribute(\"aria-keyshortcuts\", isArray(keys2) ? keys2.join(\" \") : keys2);\n }\n }\n}\n\nclass MediaControls extends MediaPlayerController {\n #idleTimer = -2;\n #pausedTracking = false;\n #hideOnMouseLeave = signal(false);\n #isMouseOutside = signal(false);\n #focusedItem = null;\n #canIdle = signal(true);\n /**\n * The default amount of delay in milliseconds while media playback is progressing without user\n * activity to indicate an idle state (i.e., hide controls).\n *\n * @defaultValue 2000\n */\n defaultDelay = 2e3;\n /**\n * Whether controls can hide after a delay in user interaction. If this is false, controls will\n * not hide and be user controlled.\n */\n get canIdle() {\n return this.#canIdle();\n }\n set canIdle(canIdle) {\n this.#canIdle.set(canIdle);\n }\n /**\n * Whether controls visibility should be toggled when the mouse enters and leaves the player\n * container.\n *\n * @defaultValue false\n */\n get hideOnMouseLeave() {\n const { hideControlsOnMouseLeave } = this.$props;\n return this.#hideOnMouseLeave() || hideControlsOnMouseLeave();\n }\n set hideOnMouseLeave(hide) {\n this.#hideOnMouseLeave.set(hide);\n }\n /**\n * Whether media controls are currently visible.\n */\n get showing() {\n return this.$state.controlsVisible();\n }\n /**\n * Show controls.\n */\n show(delay = 0, trigger) {\n this.#clearIdleTimer();\n if (!this.#pausedTracking) {\n this.#changeVisibility(true, delay, trigger);\n }\n }\n /**\n * Hide controls.\n */\n hide(delay = this.defaultDelay, trigger) {\n this.#clearIdleTimer();\n if (!this.#pausedTracking) {\n this.#changeVisibility(false, delay, trigger);\n }\n }\n /**\n * Whether all idle tracking on controls should be paused until resumed again.\n */\n pause(trigger) {\n this.#pausedTracking = true;\n this.#clearIdleTimer();\n this.#changeVisibility(true, 0, trigger);\n }\n resume(trigger) {\n this.#pausedTracking = false;\n if (this.$state.paused()) return;\n this.#changeVisibility(false, this.defaultDelay, trigger);\n }\n onConnect() {\n effect(this.#init.bind(this));\n }\n #init() {\n const { viewType } = this.$state;\n if (!this.el || !this.#canIdle()) return;\n if (viewType() === \"audio\") {\n this.show();\n return;\n }\n effect(this.#watchMouse.bind(this));\n effect(this.#watchPaused.bind(this));\n const onPlay = this.#onPlay.bind(this), onPause = this.#onPause.bind(this), onEnd = this.#onEnd.bind(this);\n new EventsController(this.el).add(\"can-play\", (event) => this.show(0, event)).add(\"play\", onPlay).add(\"pause\", onPause).add(\"end\", onEnd).add(\"auto-play-fail\", onPause);\n }\n #watchMouse() {\n if (!this.el) return;\n const { started, pointer, paused } = this.$state;\n if (!started() || pointer() !== \"fine\") return;\n const events = new EventsController(this.el), shouldHideOnMouseLeave = this.hideOnMouseLeave;\n if (!shouldHideOnMouseLeave || !this.#isMouseOutside()) {\n effect(() => {\n if (!paused()) events.add(\"pointermove\", this.#onStopIdle.bind(this));\n });\n }\n if (shouldHideOnMouseLeave) {\n events.add(\"mouseenter\", this.#onMouseEnter.bind(this)).add(\"mouseleave\", this.#onMouseLeave.bind(this));\n }\n }\n #watchPaused() {\n const { paused, started, autoPlayError } = this.$state;\n if (paused() || autoPlayError() && !started()) return;\n const onStopIdle = this.#onStopIdle.bind(this);\n effect(() => {\n if (!this.el) return;\n const pointer = this.$state.pointer(), isTouch = pointer === \"coarse\", events = new EventsController(this.el), eventTypes = [isTouch ? \"touchend\" : \"pointerup\", \"keydown\"];\n for (const eventType of eventTypes) {\n events.add(eventType, onStopIdle, { passive: false });\n }\n });\n }\n #onPlay(event) {\n if (event.triggers.hasType(\"ended\")) return;\n this.show(0, event);\n this.hide(void 0, event);\n }\n #onPause(event) {\n this.show(0, event);\n }\n #onEnd(event) {\n const { loop } = this.$state;\n if (loop()) this.hide(0, event);\n }\n #onMouseEnter(event) {\n this.#isMouseOutside.set(false);\n this.show(0, event);\n this.hide(void 0, event);\n }\n #onMouseLeave(event) {\n this.#isMouseOutside.set(true);\n this.hide(0, event);\n }\n #clearIdleTimer() {\n window.clearTimeout(this.#idleTimer);\n this.#idleTimer = -1;\n }\n #onStopIdle(event) {\n if (\n // @ts-expect-error\n event.MEDIA_GESTURE || this.#pausedTracking || isTouchPinchEvent(event)\n ) {\n return;\n }\n if (isKeyboardEvent(event)) {\n if (event.key === \"Escape\") {\n this.el?.focus();\n this.#focusedItem = null;\n } else if (this.#focusedItem) {\n event.preventDefault();\n requestAnimationFrame(() => {\n this.#focusedItem?.focus();\n this.#focusedItem = null;\n });\n }\n }\n this.show(0, event);\n this.hide(this.defaultDelay, event);\n }\n #changeVisibility(visible, delay, trigger) {\n if (delay === 0) {\n this.#onChange(visible, trigger);\n return;\n }\n this.#idleTimer = window.setTimeout(() => {\n if (!this.scope) return;\n this.#onChange(visible && !this.#pausedTracking, trigger);\n }, delay);\n }\n #onChange(visible, trigger) {\n if (this.$state.controlsVisible() === visible) return;\n this.$state.controlsVisible.set(visible);\n if (!visible && document.activeElement && this.el?.contains(document.activeElement)) {\n this.#focusedItem = document.activeElement;\n requestAnimationFrame(() => {\n this.el?.focus({ preventScroll: true });\n });\n }\n this.dispatch(\"controls-change\", {\n detail: visible,\n trigger\n });\n }\n}\n\nconst CAN_FULLSCREEN = fscreen.fullscreenEnabled;\nclass FullscreenController extends ViewController {\n /**\n * Tracks whether we're the active fullscreen event listener. Fullscreen events can only be\n * listened to globally on the document so we need to know if they relate to the current host\n * element or not.\n */\n #listening = false;\n #active = false;\n get active() {\n return this.#active;\n }\n get supported() {\n return CAN_FULLSCREEN;\n }\n onConnect() {\n new EventsController(fscreen).add(\"fullscreenchange\", this.#onChange.bind(this)).add(\"fullscreenerror\", this.#onError.bind(this));\n onDispose(this.#onDisconnect.bind(this));\n }\n async #onDisconnect() {\n if (CAN_FULLSCREEN) await this.exit();\n }\n #onChange(event) {\n const active = isFullscreen(this.el);\n if (active === this.#active) return;\n if (!active) this.#listening = false;\n this.#active = active;\n this.dispatch(\"fullscreen-change\", { detail: active, trigger: event });\n }\n #onError(event) {\n if (!this.#listening) return;\n this.dispatch(\"fullscreen-error\", { detail: null, trigger: event });\n this.#listening = false;\n }\n async enter() {\n try {\n this.#listening = true;\n if (!this.el || isFullscreen(this.el)) return;\n assertFullscreenAPI();\n return fscreen.requestFullscreen(this.el);\n } catch (error) {\n this.#listening = false;\n throw error;\n }\n }\n async exit() {\n if (!this.el || !isFullscreen(this.el)) return;\n assertFullscreenAPI();\n return fscreen.exitFullscreen();\n }\n}\nfunction canFullscreen() {\n return CAN_FULLSCREEN;\n}\nfunction isFullscreen(host) {\n if (fscreen.fullscreenElement === host) return true;\n try {\n return host.matches(\n // @ts-expect-error - `fullscreenPseudoClass` is missing from `@types/fscreen`.\n fscreen.fullscreenPseudoClass\n );\n } catch (error) {\n return false;\n }\n}\nfunction assertFullscreenAPI() {\n if (CAN_FULLSCREEN) return;\n throw Error(\n \"[vidstack] no fullscreen API\"\n );\n}\n\nclass ScreenOrientationController extends ViewController {\n #type = signal(this.#getScreenOrientation());\n #locked = signal(false);\n #currentLock;\n /**\n * The current screen orientation type.\n *\n * @signal\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation}\n * @see https://w3c.github.io/screen-orientation/#screen-orientation-types-and-locks\n */\n get type() {\n return this.#type();\n }\n /**\n * Whether the screen orientation is currently locked.\n *\n * @signal\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation}\n * @see https://w3c.github.io/screen-orientation/#screen-orientation-types-and-locks\n */\n get locked() {\n return this.#locked();\n }\n /**\n * Whether the viewport is in a portrait orientation.\n *\n * @signal\n */\n get portrait() {\n return this.#type().startsWith(\"portrait\");\n }\n /**\n * Whether the viewport is in a landscape orientation.\n *\n * @signal\n */\n get landscape() {\n return this.#type().startsWith(\"landscape\");\n }\n /**\n * Whether the native Screen Orientation API is available.\n */\n static supported = canOrientScreen();\n /**\n * Whether the native Screen Orientation API is available.\n */\n get supported() {\n return ScreenOrientationController.supported;\n }\n onConnect() {\n if (this.supported) {\n listenEvent(screen.orientation, \"change\", this.#onOrientationChange.bind(this));\n } else {\n const query = window.matchMedia(\"(orientation: landscape)\");\n query.onchange = this.#onOrientationChange.bind(this);\n onDispose(() => query.onchange = null);\n }\n onDispose(this.#onDisconnect.bind(this));\n }\n async #onDisconnect() {\n if (this.supported && this.#locked()) await this.unlock();\n }\n #onOrientationChange(event) {\n this.#type.set(this.#getScreenOrientation());\n this.dispatch(\"orientation-change\", {\n detail: {\n orientation: peek(this.#type),\n lock: this.#currentLock\n },\n trigger: event\n });\n }\n /**\n * Locks the orientation of the screen to the desired orientation type using the\n * Screen Orientation API.\n *\n * @param lockType - The screen lock orientation type.\n * @throws Error - If screen orientation API is unavailable.\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation}\n * @see {@link https://w3c.github.io/screen-orientation}\n */\n async lock(lockType) {\n if (peek(this.#locked) || this.#currentLock === lockType) return;\n this.#assertScreenOrientationAPI();\n await screen.orientation.lock(lockType);\n this.#locked.set(true);\n this.#currentLock = lockType;\n }\n /**\n * Unlocks the orientation of the screen to it's default state using the Screen Orientation\n * API. This method will throw an error if the API is unavailable.\n *\n * @throws Error - If screen orientation API is unavailable.\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation}\n * @see {@link https://w3c.github.io/screen-orientation}\n */\n async unlock() {\n if (!peek(this.#locked)) return;\n this.#assertScreenOrientationAPI();\n this.#currentLock = void 0;\n await screen.orientation.unlock();\n this.#locked.set(false);\n }\n #assertScreenOrientationAPI() {\n if (this.supported) return;\n throw Error(\n \"[vidstack] no orientation API\"\n );\n }\n #getScreenOrientation() {\n if (IS_SERVER) return \"portrait-primary\";\n if (this.supported) return window.screen.orientation.type;\n return window.innerWidth >= window.innerHeight ? \"landscape-primary\" : \"portrait-primary\";\n }\n}\n\nclass AudioProviderLoader {\n name = \"audio\";\n target;\n canPlay(src) {\n if (!isAudioSrc(src)) return false;\n return IS_SERVER || !isString(src.src) || src.type === \"?\" || canPlayAudioType(this.target, src.type);\n }\n mediaType() {\n return \"audio\";\n }\n async load(ctx) {\n if (IS_SERVER) {\n throw Error(\"[vidstack] can not load audio provider server-side\");\n }\n return new (await import('./vidstack-i8ZXTtoj.js')).AudioProvider(this.target, ctx);\n }\n}\n\nclass VideoProviderLoader {\n name = \"video\";\n target;\n canPlay(src) {\n if (!isVideoSrc(src)) return false;\n return IS_SERVER || !isString(src.src) || src.type === \"?\" || canPlayVideoType(this.target, src.type);\n }\n mediaType() {\n return \"video\";\n }\n async load(ctx) {\n if (IS_SERVER) {\n throw Error(\"[vidstack] can not load video provider server-side\");\n }\n return new (await Promise.resolve().then(function () { return provider$1; })).VideoProvider(this.target, ctx);\n }\n}\n\nclass HLSProviderLoader extends VideoProviderLoader {\n static supported = isHLSSupported();\n name = \"hls\";\n canPlay(src) {\n return HLSProviderLoader.supported && isHLSSrc(src);\n }\n async load(context) {\n if (IS_SERVER) {\n throw Error(\"[vidstack] can not load hls provider server-side\");\n }\n return new (await import('./vidstack-Dj0oEz46.js')).HLSProvider(this.target, context);\n }\n}\n\nlet audioContext = null, gainNodes = [], elAudioSources = [];\nfunction getOrCreateAudioCtx() {\n return audioContext ??= new AudioContext();\n}\nfunction createGainNode() {\n const audioCtx = getOrCreateAudioCtx(), gainNode = audioCtx.createGain();\n gainNode.connect(audioCtx.destination);\n gainNodes.push(gainNode);\n return gainNode;\n}\nfunction createElementSource(el, gainNode) {\n const audioCtx = getOrCreateAudioCtx(), src = audioCtx.createMediaElementSource(el);\n if (gainNode) {\n src.connect(gainNode);\n }\n elAudioSources.push(src);\n return src;\n}\nfunction destroyGainNode(node) {\n const idx = gainNodes.indexOf(node);\n if (idx !== -1) {\n gainNodes.splice(idx, 1);\n node.disconnect();\n freeAudioCtxWhenAllResourcesFreed();\n }\n}\nfunction destroyElementSource(src) {\n const idx = elAudioSources.indexOf(src);\n if (idx !== -1) {\n elAudioSources.splice(idx, 1);\n src.disconnect();\n freeAudioCtxWhenAllResourcesFreed();\n }\n}\nfunction freeAudioCtxWhenAllResourcesFreed() {\n if (audioContext && gainNodes.length === 0 && elAudioSources.length === 0) {\n audioContext.close().then(() => {\n audioContext = null;\n });\n }\n}\n\nclass AudioGain {\n #media;\n #onChange;\n #gainNode = null;\n #srcAudioNode = null;\n get currentGain() {\n return this.#gainNode?.gain?.value ?? null;\n }\n get supported() {\n return true;\n }\n constructor(media, onChange) {\n this.#media = media;\n this.#onChange = onChange;\n }\n setGain(gain) {\n const currGain = this.currentGain;\n if (gain === this.currentGain) {\n return;\n }\n if (gain === 1 && currGain !== 1) {\n this.removeGain();\n return;\n }\n if (!this.#gainNode) {\n this.#gainNode = createGainNode();\n if (this.#srcAudioNode) {\n this.#srcAudioNode.connect(this.#gainNode);\n }\n }\n if (!this.#srcAudioNode) {\n this.#srcAudioNode = createElementSource(this.#media, this.#gainNode);\n }\n this.#gainNode.gain.value = gain;\n this.#onChange(gain);\n }\n removeGain() {\n if (!this.#gainNode) return;\n if (this.#srcAudioNode) {\n this.#srcAudioNode.connect(getOrCreateAudioCtx().destination);\n }\n this.#destroyGainNode();\n this.#onChange(null);\n }\n destroy() {\n this.#destroySrcNode();\n this.#destroyGainNode();\n }\n #destroySrcNode() {\n if (!this.#srcAudioNode) return;\n try {\n destroyElementSource(this.#srcAudioNode);\n } catch (e) {\n } finally {\n this.#srcAudioNode = null;\n }\n }\n #destroyGainNode() {\n if (!this.#gainNode) return;\n try {\n destroyGainNode(this.#gainNode);\n } catch (e) {\n } finally {\n this.#gainNode = null;\n }\n }\n}\n\nconst PAGE_EVENTS = [\"focus\", \"blur\", \"visibilitychange\", \"pageshow\", \"pagehide\"];\nclass PageVisibility {\n #state = signal(determinePageState());\n #visibility = signal(IS_SERVER ? \"visible\" : document.visibilityState);\n #safariBeforeUnloadTimeout;\n connect() {\n const events = new EventsController(window), handlePageEvent = this.#handlePageEvent.bind(this);\n for (const eventType of PAGE_EVENTS) {\n events.add(eventType, handlePageEvent);\n }\n if (IS_SAFARI) {\n events.add(\"beforeunload\", (event) => {\n this.#safariBeforeUnloadTimeout = setTimeout(() => {\n if (!(event.defaultPrevented || event.returnValue.length > 0)) {\n this.#state.set(\"hidden\");\n this.#visibility.set(\"hidden\");\n }\n }, 0);\n });\n }\n }\n /**\n * The current page state. Important to note we only account for a subset of page states, as\n * the rest aren't valuable to the player at the moment.\n *\n * - **active:** A page is in the active state if it is visible and has input focus.\n * - **passive:** A page is in the passive state if it is visible and does not have input focus.\n * - **hidden:** A page is in the hidden state if it is not visible.\n *\n * @see https://developers.google.com/web/updates/2018/07/page-lifecycle-api#states\n */\n get pageState() {\n return this.#state();\n }\n /**\n * The current document visibility state.\n *\n * - **visible:** The page content may be at least partially visible. In practice, this means that\n * the page is the foreground tab of a non-minimized window.\n * - **hidden:** The page content is not visible to the user. In practice this means that the\n * document is either a background tab or part of a minimized window, or the OS screen lock is\n * active.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState\n */\n get visibility() {\n return this.#visibility();\n }\n #handlePageEvent(event) {\n if (IS_SAFARI) window.clearTimeout(this.#safariBeforeUnloadTimeout);\n if (event.type !== \"blur\" || this.#state() === \"active\") {\n this.#state.set(determinePageState(event));\n this.#visibility.set(document.visibilityState == \"hidden\" ? \"hidden\" : \"visible\");\n }\n }\n}\nfunction determinePageState(event) {\n if (IS_SERVER) return \"hidden\";\n if (event?.type === \"blur\" || document.visibilityState === \"hidden\") return \"hidden\";\n if (document.hasFocus()) return \"active\";\n return \"passive\";\n}\n\nclass RAFLoop {\n #id;\n #callback;\n constructor(callback) {\n this.#callback = callback;\n }\n start() {\n if (!isUndefined(this.#id)) return;\n this.#loop();\n }\n stop() {\n if (isNumber(this.#id)) window.cancelAnimationFrame(this.#id);\n this.#id = void 0;\n }\n #loop() {\n this.#id = window.requestAnimationFrame(() => {\n if (isUndefined(this.#id)) return;\n this.#callback();\n this.#loop();\n });\n }\n}\n\nclass HTMLMediaEvents {\n #provider;\n #ctx;\n #waiting = false;\n #attachedLoadStart = false;\n #attachedCanPlay = false;\n #timeRAF = new RAFLoop(this.#onAnimationFrame.bind(this));\n #pageVisibility = new PageVisibility();\n #events;\n get #media() {\n return this.#provider.media;\n }\n constructor(provider, ctx) {\n this.#provider = provider;\n this.#ctx = ctx;\n this.#events = new EventsController(provider.media);\n this.#attachInitialListeners();\n this.#pageVisibility.connect();\n effect(this.#attachTimeUpdate.bind(this));\n onDispose(this.#onDispose.bind(this));\n }\n #onDispose() {\n this.#attachedLoadStart = false;\n this.#attachedCanPlay = false;\n this.#timeRAF.stop();\n this.#events.abort();\n this.#devHandlers?.clear();\n }\n /**\n * The `timeupdate` event fires surprisingly infrequently during playback, meaning your progress\n * bar (or whatever else is synced to the currentTime) moves in a choppy fashion. This helps\n * resolve that by retrieving time updates in a request animation frame loop.\n */\n #lastSeenTime = 0;\n #seekedTo = -1;\n #onAnimationFrame() {\n const newTime = this.#media.currentTime;\n const didStutter = IS_SAFARI && newTime - this.#seekedTo < 0.35;\n if (!didStutter && this.#lastSeenTime !== newTime) {\n this.#updateCurrentTime(newTime);\n this.#lastSeenTime = newTime;\n }\n }\n #attachInitialListeners() {\n this.#attachEventListener(\"loadstart\", this.#onLoadStart);\n this.#attachEventListener(\"abort\", this.#onAbort);\n this.#attachEventListener(\"emptied\", this.#onEmptied);\n this.#attachEventListener(\"error\", this.#onError);\n this.#attachEventListener(\"volumechange\", this.#onVolumeChange);\n }\n #attachLoadStartListeners() {\n if (this.#attachedLoadStart) return;\n this.#attachEventListener(\"loadeddata\", this.#onLoadedData);\n this.#attachEventListener(\"loadedmetadata\", this.#onLoadedMetadata);\n this.#attachEventListener(\"canplay\", this.#onCanPlay);\n this.#attachEventListener(\"canplaythrough\", this.#onCanPlayThrough);\n this.#attachEventListener(\"durationchange\", this.#onDurationChange);\n this.#attachEventListener(\"play\", this.#onPlay);\n this.#attachEventListener(\"progress\", this.#onProgress);\n this.#attachEventListener(\"stalled\", this.#onStalled);\n this.#attachEventListener(\"suspend\", this.#onSuspend);\n this.#attachEventListener(\"ratechange\", this.#onRateChange);\n this.#attachedLoadStart = true;\n }\n #attachCanPlayListeners() {\n if (this.#attachedCanPlay) return;\n this.#attachEventListener(\"pause\", this.#onPause);\n this.#attachEventListener(\"playing\", this.#onPlaying);\n this.#attachEventListener(\"seeked\", this.#onSeeked);\n this.#attachEventListener(\"seeking\", this.#onSeeking);\n this.#attachEventListener(\"ended\", this.#onEnded);\n this.#attachEventListener(\"waiting\", this.#onWaiting);\n this.#attachedCanPlay = true;\n }\n #devHandlers = void 0;\n #handleDevEvent = void 0;\n #attachEventListener(eventType, handler) {\n this.#events.add(eventType, handler.bind(this));\n }\n #onDevEvent(event2) {\n return;\n }\n #updateCurrentTime(time, trigger) {\n const newTime = Math.min(time, this.#ctx.$state.seekableEnd());\n this.#ctx.notify(\"time-change\", newTime, trigger);\n }\n #onLoadStart(event2) {\n if (this.#media.networkState === 3) {\n this.#onAbort(event2);\n return;\n }\n this.#attachLoadStartListeners();\n this.#ctx.notify(\"load-start\", void 0, event2);\n }\n #onAbort(event2) {\n this.#ctx.notify(\"abort\", void 0, event2);\n }\n #onEmptied() {\n this.#ctx.notify(\"emptied\", void 0, event);\n }\n #onLoadedData(event2) {\n this.#ctx.notify(\"loaded-data\", void 0, event2);\n }\n #onLoadedMetadata(event2) {\n this.#lastSeenTime = 0;\n this.#seekedTo = -1;\n this.#attachCanPlayListeners();\n this.#ctx.notify(\"loaded-metadata\", void 0, event2);\n if (IS_IOS || IS_SAFARI && isHLSSrc(this.#ctx.$state.source())) {\n this.#ctx.delegate.ready(this.#getCanPlayDetail(), event2);\n }\n }\n #getCanPlayDetail() {\n return {\n provider: peek(this.#ctx.$provider),\n duration: this.#media.duration,\n buffered: this.#media.buffered,\n seekable: this.#media.seekable\n };\n }\n #onPlay(event2) {\n if (!this.#ctx.$state.canPlay) return;\n this.#ctx.notify(\"play\", void 0, event2);\n }\n #onPause(event2) {\n if (this.#media.readyState === 1 && !this.#waiting) return;\n this.#waiting = false;\n this.#timeRAF.stop();\n this.#ctx.notify(\"pause\", void 0, event2);\n }\n #onCanPlay(event2) {\n this.#ctx.delegate.ready(this.#getCanPlayDetail(), event2);\n }\n #onCanPlayThrough(event2) {\n if (this.#ctx.$state.started()) return;\n this.#ctx.notify(\"can-play-through\", this.#getCanPlayDetail(), event2);\n }\n #onPlaying(event2) {\n if (this.#media.paused) return;\n this.#waiting = false;\n this.#ctx.notify(\"playing\", void 0, event2);\n this.#timeRAF.start();\n }\n #onStalled(event2) {\n this.#ctx.notify(\"stalled\", void 0, event2);\n if (this.#media.readyState < 3) {\n this.#waiting = true;\n this.#ctx.notify(\"waiting\", void 0, event2);\n }\n }\n #onWaiting(event2) {\n if (this.#media.readyState < 3) {\n this.#waiting = true;\n this.#ctx.notify(\"waiting\", void 0, event2);\n }\n }\n #onEnded(event2) {\n this.#timeRAF.stop();\n this.#updateCurrentTime(this.#media.duration, event2);\n this.#ctx.notify(\"end\", void 0, event2);\n if (this.#ctx.$state.loop()) {\n const hasCustomControls = isNil(this.#media.controls);\n if (hasCustomControls) this.#media.controls = false;\n }\n }\n #attachTimeUpdate() {\n const isPaused = this.#ctx.$state.paused(), isPageHidden = this.#pageVisibility.visibility === \"hidden\", shouldListenToTimeUpdates = isPaused || isPageHidden;\n if (shouldListenToTimeUpdates) {\n listenEvent(this.#media, \"timeupdate\", this.#onTimeUpdate.bind(this));\n }\n }\n #onTimeUpdate(event2) {\n this.#updateCurrentTime(this.#media.currentTime, event2);\n }\n #onDurationChange(event2) {\n if (this.#ctx.$state.ended()) {\n this.#updateCurrentTime(this.#media.duration, event2);\n }\n this.#ctx.notify(\"duration-change\", this.#media.duration, event2);\n }\n #onVolumeChange(event2) {\n const detail = {\n volume: this.#media.volume,\n muted: this.#media.muted\n };\n this.#ctx.notify(\"volume-change\", detail, event2);\n }\n #onSeeked(event2) {\n this.#seekedTo = this.#media.currentTime;\n this.#updateCurrentTime(this.#media.currentTime, event2);\n this.#ctx.notify(\"seeked\", this.#media.currentTime, event2);\n if (Math.trunc(this.#media.currentTime) === Math.trunc(this.#media.duration) && getNumberOfDecimalPlaces(this.#media.duration) > getNumberOfDecimalPlaces(this.#media.currentTime)) {\n this.#updateCurrentTime(this.#media.duration, event2);\n if (!this.#media.ended) {\n this.#ctx.player.dispatch(\n new DOMEvent(\"media-play-request\", {\n trigger: event2\n })\n );\n }\n }\n }\n #onSeeking(event2) {\n this.#ctx.notify(\"seeking\", this.#media.currentTime, event2);\n }\n #onProgress(event2) {\n const detail = {\n buffered: this.#media.buffered,\n seekable: this.#media.seekable\n };\n this.#ctx.notify(\"progress\", detail, event2);\n }\n #onSuspend(event2) {\n this.#ctx.notify(\"suspend\", void 0, event2);\n }\n #onRateChange(event2) {\n this.#ctx.notify(\"rate-change\", this.#media.playbackRate, event2);\n }\n #onError(event2) {\n const error = this.#media.error;\n if (!error) return;\n const detail = {\n message: error.message,\n code: error.code,\n mediaError: error\n };\n this.#ctx.notify(\"error\", detail, event2);\n }\n}\n\nclass NativeAudioTracks {\n #provider;\n #ctx;\n get #nativeTracks() {\n return this.#provider.media.audioTracks;\n }\n constructor(provider, ctx) {\n this.#provider = provider;\n this.#ctx = ctx;\n this.#nativeTracks.onaddtrack = this.#onAddNativeTrack.bind(this);\n this.#nativeTracks.onremovetrack = this.#onRemoveNativeTrack.bind(this);\n this.#nativeTracks.onchange = this.#onChangeNativeTrack.bind(this);\n listenEvent(this.#ctx.audioTracks, \"change\", this.#onChangeTrack.bind(this));\n }\n #onAddNativeTrack(event) {\n const nativeTrack = event.track;\n if (nativeTrack.label === \"\") return;\n const id = nativeTrack.id.toString() || `native-audio-${this.#ctx.audioTracks.length}`, audioTrack = {\n id,\n label: nativeTrack.label,\n language: nativeTrack.language,\n kind: nativeTrack.kind,\n selected: false\n };\n this.#ctx.audioTracks[ListSymbol.add](audioTrack, event);\n if (nativeTrack.enabled) audioTrack.selected = true;\n }\n #onRemoveNativeTrack(event) {\n const track = this.#ctx.audioTracks.getById(event.track.id);\n if (track) this.#ctx.audioTracks[ListSymbol.remove](track, event);\n }\n #onChangeNativeTrack(event) {\n let enabledTrack = this.#getEnabledNativeTrack();\n if (!enabledTrack) return;\n const track = this.#ctx.audioTracks.getById(enabledTrack.id);\n if (track) this.#ctx.audioTracks[ListSymbol.select](track, true, event);\n }\n #getEnabledNativeTrack() {\n return Array.from(this.#nativeTracks).find((track) => track.enabled);\n }\n #onChangeTrack(event) {\n const { current } = event.detail;\n if (!current) return;\n const track = this.#nativeTracks.getTrackById(current.id);\n if (track) {\n const prev = this.#getEnabledNativeTrack();\n if (prev) prev.enabled = false;\n track.enabled = true;\n }\n }\n}\n\nclass HTMLMediaProvider {\n constructor(media, ctx) {\n this.media = media;\n this.ctx = ctx;\n this.audioGain = new AudioGain(media, (gain) => {\n this.ctx.notify(\"audio-gain-change\", gain);\n });\n }\n scope = createScope();\n currentSrc = null;\n audioGain;\n setup() {\n new HTMLMediaEvents(this, this.ctx);\n if (\"audioTracks\" in this.media) new NativeAudioTracks(this, this.ctx);\n onDispose(() => {\n this.audioGain.destroy();\n this.media.srcObject = null;\n this.media.removeAttribute(\"src\");\n for (const source of this.media.querySelectorAll(\"source\")) source.remove();\n this.media.load();\n });\n }\n get type() {\n return \"\";\n }\n setPlaybackRate(rate) {\n this.media.playbackRate = rate;\n }\n async play() {\n return this.media.play();\n }\n async pause() {\n return this.media.pause();\n }\n setMuted(muted) {\n this.media.muted = muted;\n }\n setVolume(volume) {\n this.media.volume = volume;\n }\n setCurrentTime(time) {\n this.media.currentTime = time;\n }\n setPlaysInline(inline) {\n setAttribute(this.media, \"playsinline\", inline);\n }\n async loadSource({ src, type }, preload) {\n this.media.preload = preload || \"\";\n if (isMediaStream(src)) {\n this.removeSource();\n this.media.srcObject = src;\n } else {\n this.media.srcObject = null;\n if (isString(src)) {\n if (type !== \"?\") {\n this.appendSource({ src, type });\n } else {\n this.removeSource();\n this.media.src = this.#appendMediaFragment(src);\n }\n } else {\n this.removeSource();\n this.media.src = window.URL.createObjectURL(src);\n }\n }\n this.media.load();\n this.currentSrc = { src, type };\n }\n /**\n * Append source so it works when requesting AirPlay since hls.js will remove it.\n */\n appendSource(src, defaultType) {\n const prevSource = this.media.querySelector(\"source[data-vds]\"), source = prevSource ?? document.createElement(\"source\");\n setAttribute(source, \"src\", this.#appendMediaFragment(src.src));\n setAttribute(source, \"type\", src.type !== \"?\" ? src.type : defaultType);\n setAttribute(source, \"data-vds\", \"\");\n if (!prevSource) this.media.append(source);\n }\n removeSource() {\n this.media.querySelector(\"source[data-vds]\")?.remove();\n }\n #appendMediaFragment(src) {\n const { clipStartTime, clipEndTime } = this.ctx.$state, startTime = clipStartTime(), endTime = clipEndTime();\n if (startTime > 0 && endTime > 0) {\n return `${src}#t=${startTime},${endTime}`;\n } else if (startTime > 0) {\n return `${src}#t=${startTime}`;\n } else if (endTime > 0) {\n return `${src}#t=0,${endTime}`;\n }\n return src;\n }\n}\n\nclass HTMLRemotePlaybackAdapter {\n #media;\n #ctx;\n #state;\n #supported = signal(false);\n get supported() {\n return this.#supported();\n }\n constructor(media, ctx) {\n this.#media = media;\n this.#ctx = ctx;\n this.#setup();\n }\n #setup() {\n if (IS_SERVER || !this.#media?.remote || !this.canPrompt) return;\n this.#media.remote.watchAvailability((available) => {\n this.#supported.set(available);\n }).catch(() => {\n this.#supported.set(false);\n });\n effect(this.#watchSupported.bind(this));\n }\n #watchSupported() {\n if (!this.#supported()) return;\n const events = [\"connecting\", \"connect\", \"disconnect\"], onStateChange = this.#onStateChange.bind(this);\n onStateChange();\n listenEvent(this.#media, \"playing\", onStateChange);\n const remoteEvents = new EventsController(this.#media.remote);\n for (const type of events) {\n remoteEvents.add(type, onStateChange);\n }\n }\n async prompt() {\n if (!this.supported) throw Error(\"Not supported on this platform.\");\n if (this.type === \"airplay\" && this.#media.webkitShowPlaybackTargetPicker) {\n return this.#media.webkitShowPlaybackTargetPicker();\n }\n return this.#media.remote.prompt();\n }\n #onStateChange(event) {\n const state = this.#media.remote.state;\n if (state === this.#state) return;\n const detail = { type: this.type, state };\n this.#ctx.notify(\"remote-playback-change\", detail, event);\n this.#state = state;\n }\n}\nclass HTMLAirPlayAdapter extends HTMLRemotePlaybackAdapter {\n type = \"airplay\";\n get canPrompt() {\n return \"WebKitPlaybackTargetAvailabilityEvent\" in window;\n }\n}\n\nclass NativeHLSTextTracks {\n #video;\n #ctx;\n constructor(video, ctx) {\n this.#video = video;\n this.#ctx = ctx;\n video.textTracks.onaddtrack = this.#onAddTrack.bind(this);\n onDispose(this.#onDispose.bind(this));\n }\n #onAddTrack(event) {\n const nativeTrack = event.track;\n if (!nativeTrack || findTextTrackElement(this.#video, nativeTrack)) return;\n const track = new TextTrack({\n id: nativeTrack.id,\n kind: nativeTrack.kind,\n label: nativeTrack.label ?? \"\",\n language: nativeTrack.language,\n type: \"vtt\"\n });\n track[TextTrackSymbol.native] = { track: nativeTrack };\n track[TextTrackSymbol.readyState] = 2;\n track[TextTrackSymbol.nativeHLS] = true;\n let lastIndex = 0;\n const onCueChange = (event2) => {\n if (!nativeTrack.cues) return;\n for (let i = lastIndex; i < nativeTrack.cues.length; i++) {\n track.addCue(nativeTrack.cues[i], event2);\n lastIndex++;\n }\n };\n onCueChange(event);\n nativeTrack.oncuechange = onCueChange;\n this.#ctx.textTracks.add(track, event);\n track.setMode(nativeTrack.mode, event);\n }\n #onDispose() {\n this.#video.textTracks.onaddtrack = null;\n for (const track of this.#ctx.textTracks) {\n const nativeTrack = track[TextTrackSymbol.native]?.track;\n if (nativeTrack?.oncuechange) nativeTrack.oncuechange = null;\n }\n }\n}\nfunction findTextTrackElement(video, track) {\n return Array.from(video.children).find((el) => el.track === track);\n}\n\nclass VideoPictureInPicture {\n #video;\n #media;\n constructor(video, media) {\n this.#video = video;\n this.#media = media;\n new EventsController(video).add(\"enterpictureinpicture\", this.#onEnter.bind(this)).add(\"leavepictureinpicture\", this.#onExit.bind(this));\n }\n get active() {\n return document.pictureInPictureElement === this.#video;\n }\n get supported() {\n return canUsePictureInPicture(this.#video);\n }\n async enter() {\n return this.#video.requestPictureInPicture();\n }\n exit() {\n return document.exitPictureInPicture();\n }\n #onEnter(event) {\n this.#onChange(true, event);\n }\n #onExit(event) {\n this.#onChange(false, event);\n }\n #onChange = (active, event) => {\n this.#media.notify(\"picture-in-picture-change\", active, event);\n };\n}\n\nclass VideoPresentation {\n #video;\n #media;\n #mode = \"inline\";\n get mode() {\n return this.#mode;\n }\n constructor(video, media) {\n this.#video = video;\n this.#media = media;\n listenEvent(video, \"webkitpresentationmodechanged\", this.#onModeChange.bind(this));\n }\n get supported() {\n return canUseVideoPresentation(this.#video);\n }\n async setPresentationMode(mode) {\n if (this.#mode === mode) return;\n this.#video.webkitSetPresentationMode(mode);\n }\n #onModeChange(event) {\n const prevMode = this.#mode;\n this.#mode = this.#video.webkitPresentationMode;\n this.#media.player?.dispatch(\n new DOMEvent(\"video-presentation-change\", {\n detail: this.#mode,\n trigger: event\n })\n );\n [\"fullscreen\", \"picture-in-picture\"].forEach((type) => {\n if (this.#mode === type || prevMode === type) {\n this.#media.notify(`${type}-change`, this.#mode === type, event);\n }\n });\n }\n}\nclass FullscreenPresentationAdapter {\n #presentation;\n get active() {\n return this.#presentation.mode === \"fullscreen\";\n }\n get supported() {\n return this.#presentation.supported;\n }\n constructor(presentation) {\n this.#presentation = presentation;\n }\n async enter() {\n this.#presentation.setPresentationMode(\"fullscreen\");\n }\n async exit() {\n this.#presentation.setPresentationMode(\"inline\");\n }\n}\nclass PIPPresentationAdapter {\n #presentation;\n get active() {\n return this.#presentation.mode === \"picture-in-picture\";\n }\n get supported() {\n return this.#presentation.supported;\n }\n constructor(presentation) {\n this.#presentation = presentation;\n }\n async enter() {\n this.#presentation.setPresentationMode(\"picture-in-picture\");\n }\n async exit() {\n this.#presentation.setPresentationMode(\"inline\");\n }\n}\n\nclass VideoProvider extends HTMLMediaProvider {\n $$PROVIDER_TYPE = \"VIDEO\";\n get type() {\n return \"video\";\n }\n airPlay;\n fullscreen;\n pictureInPicture;\n constructor(video, ctx) {\n super(video, ctx);\n scoped(() => {\n this.airPlay = new HTMLAirPlayAdapter(video, ctx);\n if (canUseVideoPresentation(video)) {\n const presentation = new VideoPresentation(video, ctx);\n this.fullscreen = new FullscreenPresentationAdapter(presentation);\n this.pictureInPicture = new PIPPresentationAdapter(presentation);\n } else if (canUsePictureInPicture(video)) {\n this.pictureInPicture = new VideoPictureInPicture(video, ctx);\n }\n }, this.scope);\n }\n setup() {\n super.setup();\n if (canPlayHLSNatively(this.video)) {\n new NativeHLSTextTracks(this.video, this.ctx);\n }\n this.ctx.textRenderers.attachVideo(this.video);\n onDispose(() => {\n this.ctx.textRenderers.attachVideo(null);\n });\n if (this.type === \"video\") this.ctx.notify(\"provider-setup\", this);\n }\n /**\n * The native HTML `