1import{_ as p}from"./vidstack-BLEs9rMG-BEGOAj1J.js";var v=p({getVimeoVideoInfo:()=>w,resolveVimeoVideoId:()=>g});const f=/(?:https:\/\/)?(?:player\.)?vimeo(?:\.com)?\/(?:video\/)?(\d+)(?:(?:\?hash=|\?h=|\/)(.*))?/,c=new Map,h=new Map,s=1920;function g(e){const o=e.match(f);return{videoId:o==null?void 0:o[1],hash:o==null?void 0:o[2]}}async function w(e,o,i){if(c.has(e))return c.get(e);if(h.has(e))return h.get(e);let t="https://vimeo.com/api/oembed.json?url=https://player.vimeo.com/video/".concat(e);i&&(t=t.concat("?h=".concat(i)));const r=window.fetch(t,{mode:"cors",signal:o.signal}).then(n=>n.json()).then(n=>{var l,m;const u={title:(l=n==null?void 0:n.title)!=null?l:"",duration:(m=n==null?void 0:n.duration)!=null?m:0,poster:_(n),pro:n.account_type!=="basic"};return c.set(e,u),u}).finally(()=>h.delete(e));return h.set(e,r),r}function _(e){var r,n;const o=(r=e==null?void 0:e.thumbnail_url)!=null?r:"",i=(n=o.match(/vimeocdn\.com\/video\/([^_/?#]+)_/))==null?void 0:n[1];if(!i)return o;const t=b(e);return t?"https://i.vimeocdn.com/video/".concat(i,"_").concat(t.width,"x").concat(t.height,".webp"):o}function b(e){const o=e.width||e.thumbnail_width,i=e.height||e.thumbnail_height;return!o||!i?null:o>i?{width:s,height:Math.round(s*i/o)}:{width:Math.round(s*o/i),height:s}}export{w as getVimeoVideoInfo,g as resolveVimeoVideoId,v as utils_exports}; 2//# sourceMappingURL=vidstack-q-9soyHT-QrF2GqoY.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.