1let e=null;function c(){return document.querySelector('meta[name="recaptcha-site-key"]')?.content??null}function o(){if(e)return e;const t=c();return t?(e=new Promise((e,c)=>{const r=document.createElement("script");r.async=!0,r.src=`https://www.google.com/recaptcha/api.js?render=${t}`,r.onload=()=>e(),r.onerror=()=>c(new Error("reCAPTCHA api.js failed to load")),document.head.appendChild(r)}),e):(e=Promise.reject(new Error("reCAPTCHA site key meta tag missing")),e)}async function i(e){try{await o()}catch{return""}const t=c();return!t||typeof grecaptcha>"u"?"":new Promise(c=>{grecaptcha.ready(async()=>{try{c(await grecaptcha.execute(t,{action:e}))}catch{c("")}})})}export{o as ensureRecaptchaLoaded,i as getRecaptchaToken};
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.