UNPKG

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 kB
(function(s,l){typeof exports=="object"&&typeof module<"u"?l(exports):typeof define=="function"&&define.amd?define(["exports"],l):(s=typeof globalThis<"u"?globalThis:s||self,l(s["[name]"]={}))})(this,function(s){"use strict";const l=()=>{};function g(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 v(e,t,i){if(e==null)return t(void 0),l;const a=p(()=>e.subscribe(t,i));return a.unsubscribe?()=>a.unsubscribe():a}const r=[];function y(e,t=l){let i=null;const a=new Set;function f(o){if(g(e,o)&&(e=o,i)){const h=!r.length;for(const n of a)n[1](),r.push(n,e);if(h){for(let n=0;n<r.length;n+=2)r[n][0](r[n+1]);r.length=0}}}function d(o){f(o(e))}function T(o,h=l){const n=[o,h];return a.add(n),a.size===1&&(i=t(f,d)||l),o(e),()=>{a.delete(n),a.size===0&&i&&(i(),i=null)}}return{set:f,update:d,subscribe:T}}function c(e){let t;return v(e,i=>t=i)(),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:"Vieraile sivulla Altcha.org",enterCode:"Syötä koodi",enterCodeAria:"Kirjoita kuulemasi koodi. Paina välilyöntiä toistaaksesi äänen.",error:"Varmennus epäonnistui. Yritä myöhemmin uudelleen.",expired:"Varmennus vanhentui. Yritä uudelleen.",verificationRequired:"Vahvistus vaaditaan!",footer:'Suojattu <a href="https://altcha.org/" target="_blank" aria-label="Vieraile sivulla Altcha.org">ALTCHA</a>:lla',getAudioChallenge:"Hae äänitehtävä",label:"En ole robotti",loading:"Ladataan...",reload:"Lataa uudelleen",verify:"Vahvista",verified:"Vahvistettu",verifying:"Vahvistetaan...",waitAlert:"Vahvistetaan... odota hetki."};globalThis.altchaI18n.set("fi",b),s.i18n=b,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});