import{j as n,C as o,aa as u}from"./vidstack-pFwe7gvT.js";const s=navigator?.userAgent.toLowerCase()||"",i=/iphone|ipad|ipod|ios|crios|fxios/i.test(s),p=/(iphone|ipod)/gi.test(navigator?.platform||""),d=!!window.chrome,f=!!window.safari||i;function l(){return S()&&n(screen.orientation.unlock)}function S(){return!o(window.screen.orientation)&&!o(window.screen.orientation.lock)}function w(e,t){return e||(e=document.createElement("audio")),e.canPlayType(t).length>0}function m(e,t){return e||(e=document.createElement("video")),e.canPlayType(t).length>0}function y(e){return e||(e=document.createElement("video")),e.canPlayType("application/vnd.apple.mpegurl").length>0}function P(e){return e?!!document.pictureInPictureEnabled&&!e.disablePictureInPicture:!1}function g(e){return n(e?.webkitSupportsPresentationMode)&&n(e?.webkitSetPresentationMode)}async function I(){const e=document.createElement("video");return e.volume=.5,await u(0),e.volume===.5}function E(){return window?.ManagedMediaSource??window?.MediaSource??window?.WebKitMediaSource}function M(){return window?.SourceBuffer??window?.WebKitSourceBuffer}function a(){const e=E();if(o(e))return!1;const t=e&&n(e.isTypeSupported)&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=M(),c=o(r)||!o(r.prototype)&&n(r.prototype.appendBuffer)&&n(r.prototype.remove);return!!t&&!!c}function T(){return a()}export{p as I,d as a,i as b,l as c,I as d,w as e,m as f,a as g,P as h,T as i,g as j,y as k,f as l};
