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.01 kB
(function(s,a){typeof exports=="object"&&typeof module<"u"?a(exports):typeof define=="function"&&define.amd?define(["exports"],a):(s=typeof globalThis<"u"?globalThis:s||self,a(s["[name]"]={}))})(this,function(s){"use strict";const a=()=>{};function d(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}let l=!1;function j(e){var t=l;try{return l=!0,e()}finally{l=t}}function k(e,t,n){if(e==null)return t(void 0),a;const o=j(()=>e.subscribe(t,n));return o.unsubscribe?()=>o.unsubscribe():o}const u=[];function p(e,t=a){let n=null;const o=new Set;function f(r){if(d(e,r)&&(e=r,n)){const b=!u.length;for(const i of o)i[1](),u.push(i,e);if(b){for(let i=0;i<u.length;i+=2)u[i][0](u[i+1]);u.length=0}}}function g(r){f(r(e))}function T(r,b=a){const i=[r,b];return o.add(i),o.size===1&&(n=t(f,g)||a),r(e),()=>{o.delete(i),o.size===0&&n&&(n(),n=null)}}return{set:f,update:g,subscribe:T}}function c(e){let t;return k(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:p({})};const h={ariaLinkLabel:"Posjetite Altcha.org",enterCode:"Unesite kod",enterCodeAria:"Unesite kod koji čujete. Pritisnite Space za puštanje zvuka.",error:"Verifikacija nije uspjela. Pokušajte ponovo kasnije.",expired:"Verifikacija je istekla. Pokušajte ponovo.",footer:'Zaštićeno putem <a href="https://altcha.org/" target="_blank" aria-label="Posjetite Altcha.org">ALTCHA</a>',getAudioChallenge:"Preuzmi audio izazov",label:"Nijesam robot",loading:"Učitavanje...",reload:"Ponovo učitaj",verify:"Verifikuj",verificationRequired:"Potrebna je verifikacija!",verified:"Verifikovano",verifying:"Verifikacija u toku...",waitAlert:"Verifikujem... molimo sačekajte."};globalThis.altchaI18n.set("me",h),s.i18n=h,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});