altcha
Version:
Privacy-first CAPTCHA widget, compliant with global regulations (GDPR/HIPAA/CCPA/LGDP/DPDPA/PIPL) and WCAG accessible. No tracking, self-verifying.
2 lines (1 loc) • 2.04 kB
JavaScript
(function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s["[name]"]={}))})(this,function(s){"use strict";const o=()=>{};function h(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}let u=!1;function p(e){var t=u;try{return u=!0,e()}finally{u=t}}function T(e,t,n){if(e==null)return t(void 0),o;const r=p(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const l=[];function y(e,t=o){let n=null;const r=new Set;function f(a){if(h(e,a)&&(e=a,n)){const d=!l.length;for(const i of r)i[1](),l.push(i,e);if(d){for(let i=0;i<l.length;i+=2)l[i][0](l[i+1]);l.length=0}}}function g(a){f(a(e))}function v(a,d=o){const i=[a,d];return r.add(i),r.size===1&&(n=t(f,g)||o),a(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:f,update:g,subscribe:v}}function c(e){let t;return T(e,n=>t=n)(),t}globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>c(globalThis.altchaI18n.store)[e],set:(e,t)=>{Object.assign(c(globalThis.altchaI18n.store),{[e]:t}),globalThis.altchaI18n.store.set(c(globalThis.altchaI18n.store))},store:y({})};const b={ariaLinkLabel:"Visitar Altcha.org",enterCode:"Introduce el código",enterCodeAria:"Introduce el código que escuchas. Pulsa Espacio para reproducir el audio.",error:"Falló la verificación. Por favor intente nuevamente más tarde.",expired:"Verificación expirada. Por favor intente nuevamente.",verificationRequired:"¡Verificación requerida!",footer:'Protegido por <a href="https://altcha.org/" target="_blank" aria-label="Visitar Altcha.org">ALTCHA</a>',getAudioChallenge:"Obtener un desafío de audio",label:"No soy un robot",loading:"Cargando...",reload:"Recargar",verify:"Verificar",verified:"Verificado",verifying:"Verificando...",waitAlert:"Verificando... por favor espere."};globalThis.altchaI18n.set("es-es",b),s.i18n=b,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});