1import{N as k,d as x,c as b}from"./index-D3dDkeUH.js";var c={},E=t=>{const o=Promise.withResolvers(),e=setTimeout(()=>{o.reject(new Error("Timed out loading Google Font"))},18e3);return Promise.race([t.load().then(()=>{clearTimeout(e)}),o.promise])},R=(t,o,e)=>{var g,h;const d=Array.isArray(e==null?void 0:e.weights)&&Array.isArray(e==null?void 0:e.subsets)&&e.weights.length>0&&e.subsets.length>0;if(k.ENABLE_V5_BREAKING_CHANGES&&!d)throw new Error("Loading Google Fonts without specifying weights and subsets is not supported in Remotion v5. Please specify the weights and subsets you need.");const r=[],v=o?[o]:Object.keys(t.fonts);let i=0;for(const n of v){if(typeof FontFace>"u")continue;if(!t.fonts[n])throw new Error(`The font ${t.fontFamily} does not have a style ${n}`);const C=(e==null?void 0:e.weights)??Object.keys(t.fonts[n]);for(const s of C){if(!t.fonts[n][s])throw new Error(`The font ${t.fontFamily} does not have a weight ${s} in style ${n}`);const $=(e==null?void 0:e.subsets)??Object.keys(t.fonts[n][s]);for(const a of $){let u=(h=(g=t.fonts[n])==null?void 0:g[s])==null?void 0:h[a];if(!u)throw new Error(`weight: ${s} subset: ${a} is not available for '${t.fontFamily}'`);let l=`${t.fontFamily}-${n}-${s}-${a}`;const m=c[l];if(m){r.push(m);continue}const w=`Fetching ${t.fontFamily} font ${JSON.stringify({style:n,weight:s,subset:a})}`,B=d?w:`${w}. This might be caused by loading too many font variations. Read more: https://www.remotion.dev/docs/troubleshooting/font-loading-errors#render-timeout-when-loading-google-fonts`,F=x(B,{timeoutInMilliseconds:6e4});i++;const f=new FontFace(t.fontFamily,`url(${u}) format('woff2')`,{weight:s,style:n,unicodeRange:t.unicodeRanges[a]});let y=2;const U=()=>{if(f.status==="loaded"){b(F);return}const A=E(f).then(()=>{((e==null?void 0:e.document)??document).fonts.add(f),b(F)}).catch(T=>{if(c[l]=void 0,y===0)throw T;y--,U()});c[l]=A,r.push(A)};U()}}i>20&&console.warn(`Made ${i} network requests to load fonts for ${t.fontFamily}. Consider loading fewer weights and subsets by passing options to loadFont(). Disable this warning by passing "ignoreTooManyRequestsWarning: true" to "options".`)}return{fontFamily:t.fontFamily,fonts:t.fonts,unicodeRanges:t.unicodeRanges,waitUntilDone:()=>Promise.all(r).then(()=>{})}},D=()=>({fontFamily:"Almendra",importName:"Almendra",version:"v26",url:"https://fonts.googleapis.com/css2?family=Almendra:ital,wght@0,400;0,700;1,400;1,700",unicodeRanges:{"latin-ext":"U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",latin:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},fonts:{italic:{400:{"latin-ext":"https://fonts.gstatic.com/s/almendra/v26/H4ciBXKAlMnTn0CskxY4-LKYh563.woff2",latin:"https://fonts.gstatic.com/s/almendra/v26/H4ciBXKAlMnTn0CskxY4-LyYhw.woff2"},700:{"latin-ext":"https://fonts.gstatic.com/s/almendra/v26/H4chBXKAlMnTn0CskxY48Ae9kq-Wbghq.woff2",latin:"https://fonts.gstatic.com/s/almendra/v26/H4chBXKAlMnTn0CskxY48Ae9kqGWbg.woff2"}},normal:{400:{"latin-ext":"https://fonts.gstatic.com/s/almendra/v26/H4ckBXKAlMnTn0CskxYzyL6Agw.woff2",latin:"https://fonts.gstatic.com/s/almendra/v26/H4ckBXKAlMnTn0CskxY9yL4.woff2"},700:{"latin-ext":"https://fonts.gstatic.com/s/almendra/v26/H4cjBXKAlMnTn0Cskx6G7auxoqOOag.woff2",latin:"https://fonts.gstatic.com/s/almendra/v26/H4cjBXKAlMnTn0Cskx6G7au_oqM.woff2"}}},subsets:["latin","latin-ext"]}),K="Almendra",H=(t,o)=>R(D(),t,o);export{K as fontFamily,D as getInfo,H as loadFont};
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.