UNPKG

altcha

Version:

Privacy-first CAPTCHA widget, compliant with global regulations (GDPR/HIPAA/CCPA/LGDP/DPDPA/PIPL) and WCAG accessible. No tracking, self-verifying.

1 lines 172 kB
const e=!1;var t=Array.isArray,a=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.keys,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.prototype,d=Array.prototype,u=Object.getPrototypeOf,f=Object.isExtensible;const h=()=>{};function v(){var e,t;return{promise:new Promise((a,n)=>{e=a,t=n}),resolve:e,reject:t}}const g=1<<24,p=16,b=32,m=64,y=512,k=1024,w=2048,A=4096,C=8192,x=16384,_=32768,$=1<<25,L=65536,T=1<<17,S=1<<19,j=65536,z=1<<21,E=1<<23,I=Symbol("$state"),V=Symbol("legacy props"),P=Symbol(""),R=Symbol("attributes"),O=Symbol("class"),F=Symbol("style"),H=Symbol("text"),M=Symbol("form reset"),q=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},D=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function N(e){return e===this.v}function U(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function B(e){return!U(e,this.v)}const K={},G=Symbol("uninitialized"),W="http://www.w3.org/1999/xhtml";let Y=null;function Z(e){Y=e}function J(e,t=!1,a){Y={p:Y,i:!1,c:null,e:null,s:e,x:null,r:qt,l:null}}function X(e){var t=Y,a=t.e;if(null!==a)for(var n of(t.e=null,a))ga(n);return void 0!==e&&(t.x=e),t.i=!0,Y=t.p,e??{}}let Q=[];function ee(){var e=Q;Q=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}function te(e){if(0===Q.length&&!Ye){var t=Q;queueMicrotask(()=>{t===Q&&ee()})}Q.push(e)}function ae(){for(;Q.length>0;)ee()}function ne(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let re,ie=!1;function oe(e){ie=e}function le(e){if(null===e)throw ne(),K;return re=e}function se(){return le(xe(re))}function ce(e){if(ie){if(null!==xe(re))throw ne(),K;re=e}}function de(e=1){if(ie){for(var t=e,a=re;t--;)a=xe(a);re=a}}function ue(e=!0){for(var t=0,a=re;;){if(8===a.nodeType){var n=a.data;if("]"===n){if(0===t)return a;t-=1}else("["===n||"[!"===n||"["===n[0]&&!isNaN(Number(n.slice(1))))&&(t+=1)}var r=xe(a);e&&a.remove(),a=r}}function fe(e){if(!e||8!==e.nodeType)throw ne(),K;return e.data}function he(e){if("object"!=typeof e||null===e||I in e)return e;const a=u(e);if(a!==c&&a!==d)return e;var n=new Map,r=t(e),i=_t(0),o=Zt,s=e=>{if(Zt===o)return e();var t=Ft,a=Zt;Mt(null),Jt(o);var n=e();return Mt(t),Jt(a),n};return r&&n.set("length",_t(e.length)),new Proxy(e,{defineProperty(e,t,a){"value"in a&&!1!==a.configurable&&!1!==a.enumerable&&!1!==a.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var r=n.get(t);return void 0===r?s(()=>{var e=_t(a.value);return n.set(t,e),e}):Lt(r,a.value,!0),!0},deleteProperty(e,t){var a=n.get(t);if(void 0===a){if(t in e){const e=s(()=>_t(G));n.set(t,e),St(i)}}else Lt(a,G),St(i);return!0},get(t,a,r){if(a===I)return e;var i=n.get(a),o=a in t;if(void 0!==i||o&&!l(t,a)?.writable||(i=s(()=>_t(he(o?t[a]:G))),n.set(a,i)),void 0!==i){var c=oa(i);return c===G?void 0:c}return Reflect.get(t,a,r)},getOwnPropertyDescriptor(e,t){var a=Reflect.getOwnPropertyDescriptor(e,t);if(a&&"value"in a){var r=n.get(t);r&&(a.value=oa(r))}else if(void 0===a){var i=n.get(t),o=i?.v;if(void 0!==i&&o!==G)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return a},has(e,t){if(t===I)return!0;var a=n.get(t),r=void 0!==a&&a.v!==G||Reflect.has(e,t);if((void 0!==a||null!==qt&&(!r||l(e,t)?.writable))&&(void 0===a&&(a=s(()=>_t(r?he(e[t]):G)),n.set(t,a)),oa(a)===G))return!1;return r},set(e,t,a,o){var c=n.get(t),d=t in e;if(r&&"length"===t)for(var u=a;u<c.v;u+=1){var f=n.get(u+"");void 0!==f?Lt(f,G):u in e&&(f=s(()=>_t(G)),n.set(u+"",f))}void 0===c?d&&!l(e,t)?.writable||(Lt(c=s(()=>_t(void 0)),he(a)),n.set(t,c)):(d=c.v!==G,Lt(c,s(()=>he(a))));var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(o,a),!d){if(r&&"string"==typeof t){var v=n.get("length"),g=Number(t);Number.isInteger(g)&&g>=v.v&&Lt(v,g+1)}St(i)}return!0},ownKeys(e){oa(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return void 0===t||t.v!==G});for(var[a,r]of n)r.v===G||a in e||t.push(a);return t},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function ve(e){try{if(null!==e&&"object"==typeof e&&I in e)return e[I]}catch{}return e}function ge(e,t){return Object.is(ve(e),ve(t))}var pe,be,me,ye,ke;function we(){if(void 0===pe){pe=window,be=document,me=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,a=Text.prototype;ye=l(t,"firstChild").get,ke=l(t,"nextSibling").get,f(e)&&(e[O]=void 0,e[R]=null,e[F]=void 0,e.__e=void 0),f(a)&&(a[H]=void 0)}}function Ae(e=""){return document.createTextNode(e)}function Ce(e){return ye.call(e)}function xe(e){return ke.call(e)}function _e(e,t){if(!ie)return Ce(e);var a=Ce(re);if(null===a)a=re.appendChild(Ae());else if(t&&3!==a.nodeType){var n=Ae();return a?.before(n),le(n),n}return t&&Se(a),le(a),a}function $e(e,t=!1){if(!ie){var a=Ce(e);return a instanceof Comment&&""===a.data?xe(a):a}if(t){if(3!==re?.nodeType){var n=Ae();return re?.before(n),le(n),n}Se(re)}return re}function Le(e,t=1,a=!1){let n=ie?re:e;for(var r;t--;)r=n,n=xe(n);if(!ie)return n;if(a){if(3!==n?.nodeType){var i=Ae();return null===n?r?.after(i):n.before(i),le(i),i}Se(n)}return le(n),n}function Te(e,t,a){let n;return document.createElementNS(t??W,e,n)}function Se(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;null!==t&&3===t.nodeType;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function je(e){var t=qt;if(null===t)return Ft.f|=E,e;if(0===(t.f&_)&&!(4&t.f))throw e;ze(e,t)}function ze(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&_))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw e}const Ee=-7169;function Ie(e,t){e.f=e.f&Ee|t}function Ve(e){0!==(e.f&y)||null===e.deps?Ie(e,k):Ie(e,A)}function Pe(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&j)&&(t.f^=j,Pe(t.deps))}function Re(e,t,a){0!==(e.f&w)?t.add(e):0!==(e.f&A)&&a.add(e),Pe(e.deps),Ie(e,k)}function Oe(e,t,a){if(null==e)return t(void 0),h;const n=ca(()=>e.subscribe(t,a));return n.unsubscribe?()=>n.unsubscribe():n}const Fe=[];function He(e,t=h){let a=null;const n=new Set;function r(t){if(U(e,t)&&(e=t,a)){const t=!Fe.length;for(const t of n)t[1](),Fe.push(t,e);if(t){for(let e=0;e<Fe.length;e+=2)Fe[e][0](Fe[e+1]);Fe.length=0}}}function i(t){r(t(e))}return{set:r,update:i,subscribe:function(o,l=h){const s=[o,l];return n.add(s),1===n.size&&(a=t(r,i)||h),o(e),()=>{n.delete(s),0===n.size&&a&&(a(),a=null)}}}}function Me(e){let t;return Oe(e,e=>t=e)(),t}let qe=Symbol("unmounted");function De(e,t,a){const n=a[t]??={store:null,source:$t(void 0),unsubscribe:h};if(n.store!==e&&!(qe in a))if(n.unsubscribe(),n.store=e??null,null==e)n.source.v=void 0,n.unsubscribe=h;else{var r=!0;n.unsubscribe=Oe(e,e=>{r?n.source.v=e:Lt(n.source,e)}),r=!1}return e&&qe in a?Me(e):oa(n.source)}let Ne=null,Ue=null,Be=null,Ke=null,Ge=null,We=null,Ye=!1,Ze=!1,Je=null,Xe=null;var Qe=0;let et=1;class tt{id=et++;#e=!1;linked=!0;#t=null;#a=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#n=new Set;#r=new Set;#i=new Set;#o=0;#l=new Map;#s=null;#c=[];#d=[];#u=new Set;#f=new Set;#h=new Map;#v=new Set;is_fork=!1;#g=!1;#p(){if(this.is_fork)return!0;for(const a of this.#l.keys()){for(var e=a,t=!1;null!==e.parent;){if(this.#h.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#h.has(e)||this.#h.set(e,{d:[],m:[]}),this.#v.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var a=this.#h.get(e);if(a){for(var n of(this.#h.delete(e),a.d))Ie(n,w),t(n);for(n of a.m)Ie(n,A),t(n)}this.#v.add(e)}#b(){if(this.#e=!0,Qe++>1e3&&(this.#m(),function(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){ze(e,We)}}()),!this.#p()){for(const e of this.#u)this.#f.delete(e),Ie(e,w),this.schedule(e);for(const e of this.#f)Ie(e,A),this.schedule(e)}const e=this.#c;this.#c=[],this.apply();var t=Je=[],a=[],n=Xe=[];for(const n of e)try{this.#y(n,t,a)}catch(e){throw ct(n),e}if(Be=null,n.length>0){var r=tt.ensure();for(const e of n)r.schedule(e)}if(Je=null,Xe=null,this.#p()){this.#k(a),this.#k(t);for(const[e,t]of this.#h)st(e,t);return void(n.length>0&&Be.#b())}const i=this.#w();if(i)i.#A(this);else{this.#u.clear(),this.#f.clear();for(const e of this.#n)e(this);this.#n.clear(),Ke=this,rt(a),rt(t),Ke=null,this.#s?.resolve();var o=Be;if(this.linked&&0===this.#o&&this.#m(),this.#c.length>0){null===o&&(o=this,this.#C());const e=o;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}null!==o&&o.#b()}}#y(e,t,a){e.f^=k;for(var n=e.first;null!==n;){var r=n.f,i=!!(96&r);if(!(i&&0!==(r&k)||0!==(r&C)||this.#h.has(n))&&null!==n.fn){i?n.f^=k:4&r?t.push(n):Qt(n)&&(0!==(r&p)&&this.#f.add(n),ra(n));var o=n.first;if(null!==o){n=o;continue}}for(;null!==n;){var l=n.next;if(null!==l){n=l;break}n=n.parent}}}#w(){for(var e=this.#t;null!==e;){if(!e.is_fork)for(const[t,[,a]]of this.current)if(e.current.has(t)&&!a)return e;e=e.#t}return null}#A(e){for(const[t,a]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,a);for(const[t,a]of e.async_deriveds){const e=this.async_deriveds.get(t);e&&a.promise.then(e.resolve)}const t=e=>{var a=e.reactions;if(null!==a)for(const e of a){var n=e.f;if(2&n)t(e);else{var r=e;4194320&n&&!this.async_deriveds.has(r)&&(this.#f.delete(r),Ie(r,w),this.schedule(r))}}};for(const e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#m(),Be=this,this.#b()}#k(e){for(var t=0;t<e.length;t+=1)Re(e[t],this.#u,this.#f)}capture(e,t,a=!1){e.v===G||this.previous.has(e)||this.previous.set(e,e.v),0===(e.f&E)&&(this.current.set(e,[t,a]),Ge?.set(e,t)),this.is_fork||(e.v=t)}activate(){Be=this}deactivate(){Be=null,Ge=null}flush(){try{e,Ze=!0,Be=this,this.#b()}finally{Qe=0,We=null,Je=null,Xe=null,Ze=!1,Be=null,Ge=null,At.clear()}}discard(){for(const e of this.#r)e(this);this.#r.clear(),this.#i.clear(),this.#m()}register_created_effect(e){this.#d.push(e)}#x(){this.#m();for(let c=Ne;null!==c;c=c.#a){var e=c.id<this.id,t=[];for(const[n,[r,i]]of this.current){if(c.current.has(n)){var a=c.current.get(n)[0];if(!e||r===a)continue;c.current.set(n,[r,i])}t.push(n)}if(e)for(const[e,t]of this.async_deriveds){const a=c.async_deriveds.get(e);a&&t.promise.then(a.resolve)}if(c.#e){var n=[...c.current.keys()].filter(e=>!this.current.has(e));if(0===n.length)e&&c.discard();else if(t.length>0){if(e)for(const e of this.#v)c.unskip_effect(e,e=>{4194320&e.f?c.schedule(e):c.#k([e])});c.activate();var r=new Set,i=new Map;for(var o of t)it(o,n,r,i);i=new Map;var l=[...c.current.keys()].filter(e=>!this.current.has(e)||this.current.get(e)[0]!==e.v);if(l.length>0)for(const e of this.#d)155648&e.f||!ot(e,l,i)||(4194320&e.f?(Ie(e,w),c.schedule(e)):c.#u.add(e));if(c.#c.length>0){for(var s of(c.apply(),c.#c))c.#y(s,[],[]);c.#c=[]}c.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#l.get(t)??0;this.#l.set(t,e+1)}}decrement(e,t){if(this.#o-=1,e){let e=this.#l.get(t)??0;1===e?this.#l.delete(t):this.#l.set(t,e-1)}this.#g||(this.#g=!0,te(()=>{this.#g=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(const t of e)this.#u.add(t);for(const e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#n.add(e)}ondiscard(e){this.#r.add(e)}on_fork_commit(e){this.#i.add(e)}run_fork_commit_callbacks(){for(const e of this.#i)e(this);this.#i.clear()}settled(){return(this.#s??=v()).promise}static ensure(){if(null===Be){const e=Be=new tt;e.#C(),Ze||Ye||te(()=>{e.#e||e.flush()})}return Be}apply(){Ge=null}schedule(e){if(We=e,e.b?.is_pending&&16777228&e.f&&0===(e.f&_))e.b.defer_effect(e);else{for(var t=e;null!==t.parent;){var a=(t=t.parent).f;if(!(null===Je||t!==qt||null!==Ft&&2&Ft.f))return;if(96&a){if(0===(a&k))return;t.f^=k}}this.#c.push(t)}}#C(){null===Ue?Ne=Ue=this:(Ue.#a=this,this.#t=Ue),Ue=this}#m(){var e=this.#t,t=this.#a;null===e?Ne=t:e.#a=t,null===t?Ue=e:t.#t=e,this.linked=!1}}function at(e){var t=Ye;Ye=!0;try{for(;;){if(ae(),null===Be)return;Be.flush()}}finally{Ye=t}}let nt=null;function rt(e){var t=e.length;if(0!==t){for(var a=0;a<t;){var n=e[a++];if(!(24576&n.f)&&Qt(n)&&(nt=new Set,ra(n),null===n.deps&&null===n.first&&null===n.nodes&&null===n.teardown&&null===n.ac&&$a(n),nt?.size>0)){At.clear();for(const e of nt){if(24576&e.f)continue;const t=[e];let a=e.parent;for(;null!==a;)nt.has(a)&&(nt.delete(a),t.push(a)),a=a.parent;for(let e=t.length-1;e>=0;e--){const a=t[e];24576&a.f||ra(a)}}nt.clear()}}nt=null}}function it(e,t,a,n){if(!a.has(e)&&(a.add(e),null!==e.reactions))for(const r of e.reactions){const e=r.f;2&e?it(r,t,a,n):4194320&e&&0===(e&w)&&ot(r,t,n)&&(Ie(r,w),lt(r))}}function ot(e,t,a){const r=a.get(e);if(void 0!==r)return r;if(null!==e.deps)for(const r of e.deps){if(n.call(t,r))return!0;if(2&r.f&&ot(r,t,a))return a.set(r,!0),!0}return a.set(e,!1),!1}function lt(e){Be.schedule(e)}function st(e,t){if(0===(e.f&b)||0===(e.f&k)){0!==(e.f&w)?t.d.push(e):0!==(e.f&A)&&t.m.push(e),Ie(e,k);for(var a=e.first;null!==a;)st(a,t),a=a.next}}function ct(e){Ie(e,k);for(var t=e.first;null!==t;)ct(t),t=t.next}class dt{parent;is_pending=!1;transform_error;#_;#$=ie?re:null;#L;#T;#S;#j=null;#z=null;#E=null;#I=null;#V=0;#P=0;#R=!1;#u=new Set;#f=new Set;#O=null;#F=function(e){let t,a=0,n=xt(0);return()=>{fa()&&(oa(n),ba(()=>(0===a&&(t=ca(()=>e(()=>St(n)))),a+=1,()=>{te(()=>{a-=1,0===a&&(t?.(),t=void 0,St(n))})})))}}(()=>(this.#O=xt(this.#V),()=>{this.#O=null}));constructor(e,t,a,n){this.#_=e,this.#L=t,this.#T=e=>{var t=qt;t.b=this,t.f|=128,a(e)},this.parent=qt.b,this.transform_error=n??this.parent?.transform_error??(e=>e),this.#S=ya(()=>{if(ie){const e=this.#$;se();const t="[!"===e.data;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice(2));this.#H(t)}else t?this.#M():this.#q()}else this.#D()},589824),ie&&(this.#_=re)}#q(){try{this.#j=wa(()=>this.#T(this.#_))}catch(e){this.error(e)}}#H(e){const t=this.#L.failed;t&&(this.#E=wa(()=>{t(this.#_,()=>e,()=>()=>{})}))}#M(){const e=this.#L.pending;e&&(this.is_pending=!0,this.#z=wa(()=>e(this.#_)),te(()=>{var e=this.#I=document.createDocumentFragment(),t=Ae();e.append(t),this.#j=this.#N(()=>wa(()=>this.#T(t))),0===this.#P&&(this.#_.before(e),this.#I=null,La(this.#z,()=>{this.#z=null}),this.#U(Be))}))}#D(){try{if(this.is_pending=this.has_pending_snippet(),this.#P=0,this.#V=0,this.#j=wa(()=>{this.#T(this.#_)}),this.#P>0){var e=this.#I=document.createDocumentFragment();za(this.#j,e);const t=this.#L.pending;this.#z=wa(()=>t(this.#_))}else this.#U(Be)}catch(e){this.error(e)}}#U(e){this.is_pending=!1,e.transfer_effects(this.#u,this.#f)}defer_effect(e){Re(e,this.#u,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#L.pending}#N(e){var t=qt,a=Ft,n=Y;Dt(this.#S),Mt(this.#S),Z(this.#S.ctx);try{return tt.ensure(),e()}catch(e){return je(e),null}finally{Dt(t),Mt(a),Z(n)}}#B(e,t){this.has_pending_snippet()?(this.#P+=e,0===this.#P&&(this.#U(t),this.#z&&La(this.#z,()=>{this.#z=null}),this.#I&&(this.#_.before(this.#I),this.#I=null))):this.parent&&this.parent.#B(e,t)}update_pending_count(e,t){this.#B(e,t),this.#V+=e,this.#O&&!this.#R&&(this.#R=!0,te(()=>{this.#R=!1,this.#O&&Tt(this.#O,this.#V)}))}get_effect_pending(){return this.#F(),oa(this.#O)}error(e){if(!this.#L.onerror&&!this.#L.failed)throw e;Be?.is_fork?(this.#j&&Be.skip_effect(this.#j),this.#z&&Be.skip_effect(this.#z),this.#E&&Be.skip_effect(this.#E),Be.on_fork_commit(()=>{this.#K(e)})):this.#K(e)}#K(e){this.#j&&(xa(this.#j),this.#j=null),this.#z&&(xa(this.#z),this.#z=null),this.#E&&(xa(this.#E),this.#E=null),ie&&(le(this.#$),de(),le(ue()));var t=this.#L.onerror;let a=this.#L.failed;var n=!1,r=!1;const i=()=>{n?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(n=!0,r&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#E&&La(this.#E,()=>{this.#E=null}),this.#N(()=>{this.#D()}))},o=e=>{try{r=!0,t?.(e,i),r=!1}catch(e){ze(e,this.#S&&this.#S.parent)}a&&(this.#E=this.#N(()=>{try{return wa(()=>{var t=qt;t.b=this,t.f|=128,a(this.#_,()=>e,()=>i)})}catch(e){return ze(e,this.#S.parent),null}}))};te(()=>{var t;try{t=this.transform_error(e)}catch(e){return void ze(e,this.#S&&this.#S.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(o,e=>ze(e,this.#S&&this.#S.parent)):o(t)})}}function ut(e,t,a,n){const r=vt;var i=e.filter(e=>!e.settled);if(0!==a.length||0!==i.length){var o,l,s,c,d=qt,u=(o=qt,l=Ft,s=Y,c=Be,function(e=!0){Dt(o),Mt(l),Z(s),e&&0===(o.f&x)&&(c?.activate(),c?.apply())}),f=1===i.length?i[0].promise:i.length>1?Promise.all(i.map(e=>e.promise)):null,h=ht();0!==a.length?f?f.then(()=>{u(),g(),ft()}):g():f.then(()=>v(t.map(r))).finally(h)}else n(t.map(r));function v(e){if(0===(d.f&x)){u();try{n(e)}catch(e){ze(e,d)}ft()}}function g(){Promise.all(a.map(e=>pt(e))).then(e=>v([...t.map(r),...e])).catch(e=>ze(e,d)).finally(h)}}function ft(e=!0){Dt(null),Mt(null),Z(null),e&&Be?.deactivate()}function ht(){var e=qt,t=e.b,a=Be,n=t.is_rendered();return t.update_pending_count(1,a),a.increment(n,e),()=>{t.update_pending_count(-1,a),a.decrement(n,e)}}function vt(e){null!==qt&&(qt.f|=S);return{ctx:Y,deps:null,effects:null,equals:N,f:2050,fn:e,reactions:null,rv:0,v:G,wv:0,parent:qt,ac:null}}const gt=Symbol("obsolete");function pt(e,t,a){let n=qt;null===n&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var r=void 0,i=xt(G),o=!Ft,l=new Set;return function(e){ua(4718592,e)}(()=>{var t=qt,a=v();r=a.promise;try{Promise.resolve(e()).then(a.resolve,e=>{e!==q&&a.reject(e)}).finally(ft)}catch(e){a.reject(e),ft()}var s=Be;if(o){if(0!==(t.f&_))var c=ht();if(n.b.is_rendered())s.async_deriveds.get(t)?.reject(gt);else for(const e of l.values())e.reject(gt);l.add(a),s.async_deriveds.set(t,a)}const d=(e,t=void 0)=>{c?.(),l.delete(a),t!==gt&&(s.activate(),t?(i.f|=E,Tt(i,t)):(0!==(i.f&E)&&(i.f^=E),Tt(i,e)),s.deactivate())};a.promise.then(d,e=>d(null,e||"unknown"))}),ha(()=>{for(const e of l)e.reject(gt)}),new Promise(e=>{!function t(a){function n(){a===r?e(i):t(r)}a.then(n,n)}(r)})}function bt(e){const t=vt(e);return Ut(t),t}function mt(e){var t,a=qt,n=e.parent;if(!Rt&&null!==n&&e.v!==G&&24576&n.f)return console.warn("https://svelte.dev/e/derived_inert"),e.v;Dt(n);try{e.f&=-65537,function(e){var t=e.effects;if(null!==t){e.effects=null;for(var a=0;a<t.length;a+=1)xa(t[a])}}(e),t=ta(e)}finally{Dt(a)}return t}function yt(e){var t=mt(e);e.equals(t)||(e.wv=Xt(),Be?.is_fork&&null!==e.deps||(null!==Be?(Be.capture(e,t,!0),Ke?.capture(e,t,!0)):e.v=t,null!==e.deps))?Rt||(null!==Ge?(fa()||Be?.is_fork)&&Ge.set(e,t):Ve(e)):Ie(e,k)}function kt(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&null!==t.fn&&ra(t)}let wt=new Set;const At=new Map;let Ct=!1;function xt(e,t){return{f:0,v:e,reactions:null,equals:N,rv:0,wv:0}}function _t(e,t){const a=xt(e);return Ut(a),a}function $t(e,t=!1,a=!0){const n=xt(e);return t||(n.equals=B),n}function Lt(e,t,a=!1){return null===Ft||Ht&&0===(Ft.f&T)||!(4325394&Ft.f)||null!==Nt&&n.call(Nt,e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),Tt(e,a?he(t):t,Xe)}function Tt(e,t,a=null){if(!e.equals(t)){At.set(e,Rt?t:e.v);var n=tt.ensure();if(n.capture(e,t),2&e.f){const t=e;0!==(e.f&w)&&mt(t),null===Ge&&Ve(t)}e.wv=Xt(),jt(e,w,a),null===qt||0===(qt.f&k)||96&qt.f||(null===Gt?function(e){Gt=e}([e]):Gt.push(e)),!n.is_fork&&wt.size>0&&!Ct&&function(){Ct=!1;for(const e of wt){let t;0!==(e.f&k)&&Ie(e,A);try{t=Qt(e)}catch{t=!0}t&&ra(e)}wt.clear()}()}return t}function St(e){Lt(e,e.v+1)}function jt(e,t,a){var n=e.reactions;if(null!==n)for(var r=n.length,i=0;i<r;i++){var o=n[i],l=o.f,s=0===(l&w);if(s&&Ie(o,t),0!==(l&T))wt.add(o);else if(2&l){var c=o;Ge?.delete(c),0===(l&j)&&(l&y&&(null===qt||0===(qt.f&z))&&(o.f|=j),jt(c,A,a))}else if(s){var d=o;0!==(l&p)&&null!==nt&&nt.add(d),null!==a?a.push(d):lt(d)}}}function zt(e,t){if(t){const t=document.body;e.autofocus=!0,te(()=>{document.activeElement===t&&e.focus()})}}let Et=!1;function It(){Et||(Et=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t[M]?.()})},{capture:!0}))}function Vt(e){var t=Ft,a=qt;Mt(null),Dt(null);try{return e()}finally{Mt(t),Dt(a)}}let Pt=!1,Rt=!1;function Ot(e){Rt=e}let Ft=null,Ht=!1;function Mt(e){Ft=e}let qt=null;function Dt(e){qt=e}let Nt=null;function Ut(e){null!==Ft&&(null===Nt?Nt=[e]:Nt.push(e))}let Bt=null,Kt=0,Gt=null;let Wt=1,Yt=0,Zt=Yt;function Jt(e){Zt=e}function Xt(){return++Wt}function Qt(e){var t=e.f;if(0!==(t&w))return!0;if(2&t&&(e.f&=-65537),0!==(t&A)){for(var a=e.deps,n=a.length,r=0;r<n;r++){var i=a[r];if(Qt(i)&&yt(i),i.wv>e.wv)return!0}0!==(t&y)&&null===Ge&&Ie(e,k)}return!1}function ea(e,t,a=!0){var r=e.reactions;if(null!==r&&(null===Nt||!n.call(Nt,e)))for(var i=0;i<r.length;i++){var o=r[i];2&o.f?ea(o,t,!1):t===o&&(a?Ie(o,w):0!==(o.f&k)&&Ie(o,A),lt(o))}}function ta(e){var t=Bt,a=Kt,n=Gt,r=Ft,i=Nt,o=Y,l=Ht,s=Zt,c=e.f;Bt=null,Kt=0,Gt=null,Ft=96&c?null:e,Nt=null,Z(e.ctx),Ht=!1,Zt=++Yt,null!==e.ac&&(Vt(()=>{e.ac.abort(q)}),e.ac=null);try{e.f|=z;var d=(0,e.fn)();e.f|=_;var u=e.deps,f=Be?.is_fork;if(null!==Bt){var h;if(f||na(e,Kt),null!==u&&Kt>0)for(u.length=Kt+Bt.length,h=0;h<Bt.length;h++)u[Kt+h]=Bt[h];else e.deps=u=Bt;if(fa()&&0!==(e.f&y))for(h=Kt;h<u.length;h++)(u[h].reactions??=[]).push(e)}else!f&&null!==u&&Kt<u.length&&(na(e,Kt),u.length=Kt);if(!(null===Gt||Ht||null===u||6146&e.f))for(h=0;h<Gt.length;h++)ea(Gt[h],e);if(null!==r&&r!==e){if(Yt++,null!==r.deps)for(let e=0;e<a;e+=1)r.deps[e].rv=Yt;if(null!==t)for(const e of t)e.rv=Yt;null!==Gt&&(null===n?n=Gt:n.push(...Gt))}return 0!==(e.f&E)&&(e.f^=E),d}catch(e){return je(e)}finally{e.f^=z,Bt=t,Kt=a,Gt=n,Ft=r,Nt=i,Z(o),Ht=l,Zt=s}}function aa(e,t){let r=t.reactions;if(null!==r){var i=a.call(r,e);if(-1!==i){var o=r.length-1;0===o?r=t.reactions=null:(r[i]=r[o],r.pop())}}if(null===r&&2&t.f&&(null===Bt||!n.call(Bt,t))){var l=t;0!==(l.f&y)&&(l.f^=y,l.f&=-65537),l.v!==G&&Ve(l),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(q),null!==t.fn&&(t.teardown=h),t.ac=null,na(t,0),Ca(t))}(l),na(l,0)}}function na(e,t){var a=e.deps;if(null!==a)for(var n=t;n<a.length;n++)aa(e,a[n])}function ra(e){var t=e.f;if(0===(t&x)){Ie(e,k);var a=qt,n=Pt;qt=e,Pt=!0;try{16777232&t?function(e){var t=e.first;for(;null!==t;){var a=t.next;0===(t.f&b)&&xa(t),t=a}}(e):Ca(e),Aa(e);var r=ta(e);e.teardown="function"==typeof r?r:null,e.wv=Wt}finally{Pt=n,qt=a}}}async function ia(){await Promise.resolve(),at()}function oa(e){var t=!!(2&e.f);if(null!==Ft&&!Ht&&!(null!==qt&&0!==(qt.f&x)||null!==Nt&&n.call(Nt,e))){var a=Ft.deps;if(0!==(Ft.f&z))e.rv<Yt&&(e.rv=Yt,null===Bt&&null!==a&&a[Kt]===e?Kt++:null===Bt?Bt=[e]:Bt.push(e));else{(Ft.deps??=[]).push(e);var r=e.reactions;null===r?e.reactions=[Ft]:n.call(r,Ft)||r.push(Ft)}}if(Rt&&At.has(e))return At.get(e);if(t){var i=e;if(Rt){var o=i.v;return(0===(i.f&k)&&null!==i.reactions||sa(i))&&(o=mt(i)),At.set(i,o),o}var l=0===(i.f&y)&&!Ht&&null!==Ft&&(Pt||0!==(Ft.f&y)),s=0===(i.f&_);Qt(i)&&(l&&(i.f|=y),yt(i)),l&&!s&&(kt(i),la(i))}if(Ge?.has(e))return Ge.get(e);if(0!==(e.f&E))throw e.v;return e.v}function la(e){if(e.f|=y,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&y)&&(kt(t),la(t))}function sa(e){if(e.v===G)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(At.has(t))return!0;if(2&t.f&&sa(t))return!0}return!1}function ca(e){var t=Ht;try{return Ht=!0,e()}finally{Ht=t}}function da(e){null===qt&&(null===Ft&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),Rt&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function ua(e,t){var a=qt;null!==a&&0!==(a.f&C)&&(e|=C);var n={ctx:Y,deps:null,nodes:null,f:e|w|y,first:null,fn:t,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,wv:0,ac:null};Be?.register_created_effect(n);var r=n;if(4&e)null!==Je?Je.push(n):tt.ensure().schedule(n);else if(null!==t){try{ra(n)}catch(e){throw xa(n),e}null===r.deps&&null===r.teardown&&null===r.nodes&&r.first===r.last&&0===(r.f&S)&&(r=r.first,0!==(e&p)&&0!==(e&L)&&null!==r&&(r.f|=L))}if(null!==r&&(r.parent=a,null!==a&&function(e,t){var a=t.last;null===a?t.last=t.first=e:(a.next=e,e.prev=a,t.last=e)}(r,a),null!==Ft&&2&Ft.f&&0===(e&m))){var i=Ft;(i.effects??=[]).push(r)}return n}function fa(){return null!==Ft&&!Ht}function ha(e){const t=ua(8,null);return Ie(t,k),t.teardown=e,t}function va(e){da();var t=qt.f;if(!(!Ft&&0!==(t&b)&&0===(t&_)))return ga(e);var a=Y;(a.e??=[]).push(e)}function ga(e){return ua(1048580,e)}function pa(e){return ua(4,e)}function ba(e,t=0){return ua(8|t,e)}function ma(e,t=[],a=[],n=[]){ut(n,t,a,t=>{ua(8,()=>e(...t.map(oa)))})}function ya(e,t=0){return ua(p|t,e)}function ka(e,t=0){return ua(g|t,e)}function wa(e){return ua(524320,e)}function Aa(e){var t=e.teardown;if(null!==t){const e=Rt,a=Ft;Ot(!0),Mt(null);try{t.call(null)}finally{Ot(e),Mt(a)}}}function Ca(e,t=!1){var a=e.first;for(e.first=e.last=null;null!==a;){const e=a.ac;null!==e&&Vt(()=>{e.abort(q)});var n=a.next;0!==(a.f&m)?a.parent=null:xa(a,t),a=n}}function xa(e,t=!0){var a=!1;(t||262144&e.f)&&null!==e.nodes&&null!==e.nodes.end&&(_a(e.nodes.start,e.nodes.end),a=!0),Ie(e,$),Ca(e,t&&!a),na(e,0);var n=e.nodes&&e.nodes.t;if(null!==n)for(const e of n)e.stop();Aa(e),e.f^=$,e.f|=x;var r=e.parent;null!==r&&null!==r.first&&$a(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function _a(e,t){for(;null!==e;){var a=e===t?null:xe(e);e.remove(),e=a}}function $a(e){var t=e.parent,a=e.prev,n=e.next;null!==a&&(a.next=n),null!==n&&(n.prev=a),null!==t&&(t.first===e&&(t.first=n),t.last===e&&(t.last=a))}function La(e,t,a=!0){var n=[];Ta(e,n,!0);var r=()=>{a&&xa(e),t&&t()},i=n.length;if(i>0){var o=()=>--i||r();for(var l of n)l.out(o)}else r()}function Ta(e,t,a){if(0===(e.f&C)){e.f^=C;var n=e.nodes&&e.nodes.t;if(null!==n)for(const e of n)(e.is_global||a)&&t.push(e);for(var r=e.first;null!==r;){var i=r.next;if(0===(r.f&m))Ta(r,t,!!(0!==(r.f&L)||0!==(r.f&b)&&0!==(e.f&p))&&a);r=i}}}function Sa(e){ja(e,!0)}function ja(e,t){if(0!==(e.f&C)){e.f^=C,0===(e.f&k)&&(Ie(e,w),tt.ensure().schedule(e));for(var a=e.first;null!==a;){var n=a.next;ja(a,!!(0!==(a.f&L)||0!==(a.f&b))&&t),a=n}var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||t)&&e.in()}}function za(e,t){if(e.nodes)for(var a=e.nodes.start,n=e.nodes.end;null!==a;){var r=a===n?null:xe(a);t.append(a),a=r}}function Ea(e){const t={get:e=>Me(t.store)[e],set:(e,a)=>{"string"==typeof e?Object.assign(Me(t.store),{[e]:a}):Object.assign(Me(t.store),e),t.store.set(Me(t.store))},store:He(e)};return t}globalThis.$altcha=globalThis.$altcha||{algorithms:new Map,defaults:Ea({}),i18n:Ea({}),instances:new Set,plugins:new Set};globalThis.$altcha.i18n.set("en",{ariaLinkLabel:"Altcha (official website)",cancel:"Cancel",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",enterCodeFromImage:"To proceed, please enter the code from the image below.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (official website)">ALTCHA</a>',getAudioChallenge:"Get an audio challenge",label:"I'm not a robot",loading:"Loading...",reload:"Reload",verify:"Verify",verificationRequired:"Verification required!",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait."});"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");const Ia=Symbol("events"),Va=new Set,Pa=new Set;function Ra(e,t,a,n={}){function r(e){if(n.capture||qa.call(t,e),!e.cancelBubble)return Vt(()=>a?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?te(()=>{t.addEventListener(e,r,n)}):t.addEventListener(e,r,n),r}function Oa(e,t,a,n,r){var i={capture:n,passive:r},o=Ra(e,t,a,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ha(()=>{t.removeEventListener(e,o,i)})}function Fa(e,t,a){(t[Ia]??={})[e]=a}function Ha(e){for(var t=0;t<e.length;t++)Va.add(e[t]);for(var a of Pa)a(e)}let Ma=null;function qa(e){var t=this,a=t.ownerDocument,n=e.type,r=e.composedPath?.()||[],i=r[0]||e.target;Ma=e;var l=0,s=Ma===e&&e[Ia];if(s){var c=r.indexOf(s);if(-1!==c&&(t===document||t===window))return void(e[Ia]=t);var d=r.indexOf(t);if(-1===d)return;c<=d&&(l=c)}if((i=r[l]||e.target)!==t){o(e,"currentTarget",{configurable:!0,get:()=>i||a});var u=Ft,f=qt;Mt(null),Dt(null);try{for(var h,v=[];null!==i;){var g=i.assignedSlot||i.parentNode||i.host||null;try{var p=i[Ia]?.[n];null==p||i.disabled&&e.target!==i||p.call(i,e)}catch(e){h?v.push(e):h=e}if(e.cancelBubble||g===t||null===g)break;i=g}if(h){for(let e of v)queueMicrotask(()=>{throw e});throw h}}finally{e[Ia]=t,delete e.currentTarget,Mt(u),Dt(f)}}}const Da=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Na(e){var t=Te("template");return t.innerHTML=function(e){return Da?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Ua(e,t){var a=qt;null===a.nodes&&(a.nodes={start:e,end:t,a:null,t:null})}function Ba(e,t){var a,n=!!(1&t),r=!!(2&t),i=!e.startsWith("<!>");return()=>{if(ie)return Ua(re,null),re;void 0===a&&(a=Na(i?e:"<!>"+e),n||(a=Ce(a)));var t=r||me?document.importNode(a,!0):a.cloneNode(!0);n?Ua(Ce(t),t.lastChild):Ua(t,t);return t}}function Ka(e,t,a="svg"){var n,r=`<${a}>${!e.startsWith("<!>")?e:"<!>"+e}</${a}>`;return()=>{if(ie)return Ua(re,null),re;if(!n){var e=Na(r);n=Ce(Ce(e))}var t=n.cloneNode(!0);return Ua(t,t),t}}function Ga(e,t){return Ka(e,0,"svg")}function Wa(e=""){if(!ie){var t=Ae(e+"");return Ua(t,t),t}var a=re;return 3!==a.nodeType?(a.before(a=Ae()),le(a)):Se(a),Ua(a,a),a}function Ya(){if(ie)return Ua(re,null),re;var e=document.createDocumentFragment(),t=document.createComment(""),a=Ae();return e.append(t,a),Ua(t,a),e}function Za(e,t){if(ie){var a=qt;return 0!==(a.f&_)&&null!==a.nodes.end||(a.nodes.end=re),void se()}null!==e&&e.before(t)}function Ja(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const Xa=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Qa(e){return Xa.includes(e)}const en={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function tn(e){return e=e.toLowerCase(),en[e]??e}const an=["touchstart","touchmove"];function nn(e){return an.includes(e)}function rn(e,t){var a=null==t?"":"object"==typeof t?`${t}`:t;a!==(e[H]??=e.nodeValue)&&(e[H]=a,e.nodeValue=`${a}`)}function on(e,t){return cn(e,t)}function ln(e,t){we(),t.intro=t.intro??!1;const a=t.target,n=ie,r=re;try{for(var i=Ce(a);i&&(8!==i.nodeType||"["!==i.data);)i=xe(i);if(!i)throw K;oe(!0),le(i);const n=cn(e,{...t,anchor:i});return oe(!1),n}catch(n){if(n instanceof Error&&n.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw n;return n!==K&&console.warn("Failed to hydrate: ",n),!1===t.recover&&function(){throw new Error("https://svelte.dev/e/hydration_failed")}(),we(),a.textContent="",oe(!1),on(e,t)}finally{oe(n),le(r)}}const sn=new Map;function cn(e,{target:t,anchor:a,props:n={},events:i,context:o,intro:l=!0,transformError:s}){we();var c=void 0,d=function(e){tt.ensure();const t=ua(524352,e);return(e={})=>new Promise(a=>{e.outro?La(t,()=>{xa(t),a(void 0)}):(xa(t),a(void 0))})}(()=>{var l=a??t.appendChild(Ae());!function(e,t,a,n){new dt(e,t,a,n)}(l,{pending:()=>{}},t=>{if(J({}),o&&(Y.c=o),i&&(n.$$events=i),ie&&Ua(t,null),c=e(t,n)||{},ie&&(qt.nodes.end=re,null===re||8!==re.nodeType||"]"!==re.data))throw ne(),K;X()},s);var d=new Set,u=e=>{for(var a=0;a<e.length;a++){var n=e[a];if(!d.has(n)){d.add(n);var r=nn(n);for(const e of[t,document]){var i=sn.get(e);void 0===i&&(i=new Map,sn.set(e,i));var o=i.get(n);void 0===o?(e.addEventListener(n,qa,{passive:r}),i.set(n,1)):i.set(n,o+1)}}}};return u(r(Va)),Pa.add(u),()=>{for(var e of d)for(const a of[t,document]){var n=sn.get(a),r=n.get(e);0==--r?(a.removeEventListener(e,qa),n.delete(e),0===n.size&&sn.delete(a)):n.set(e,r)}Pa.delete(u),l!==a&&l.parentNode?.removeChild(l)}});return dn.set(c,d),c}let dn=new WeakMap;class un{anchor;#G=new Map;#W=new Map;#Y=new Map;#Z=new Set;#J=!0;constructor(e,t=!0){this.anchor=e,this.#J=t}#x=e=>{if(this.#G.has(e)){var t=this.#G.get(e),a=this.#W.get(t);if(a)Sa(a),this.#Z.delete(t);else{var n=this.#Y.get(t);n&&(this.#W.set(t,n.effect),this.#Y.delete(t),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),a=n.effect)}for(const[t,a]of this.#G){if(this.#G.delete(t),t===e)break;const n=this.#Y.get(a);n&&(xa(n.effect),this.#Y.delete(a))}for(const[e,n]of this.#W){if(e===t||this.#Z.has(e))continue;const r=()=>{if(Array.from(this.#G.values()).includes(e)){var t=document.createDocumentFragment();za(n,t),t.append(Ae()),this.#Y.set(e,{effect:n,fragment:t})}else xa(n);this.#Z.delete(e),this.#W.delete(e)};this.#J||!a?(this.#Z.add(e),La(n,r,!1)):r()}}};#X=e=>{this.#G.delete(e);const t=Array.from(this.#G.values());for(const[e,a]of this.#Y)t.includes(e)||(xa(a.effect),this.#Y.delete(e))};ensure(e,t){var a=Be;!t||this.#W.has(e)||this.#Y.has(e)||this.#W.set(e,wa(()=>t(this.anchor)));this.#G.set(a,e),ie&&(this.anchor=re),this.#x(a)}}function fn(e){null===Y&&function(){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),va(()=>{const t=ca(e);if("function"==typeof t)return t})}function hn(e,t,a=!1){var n;ie&&(n=re,se());var r=new un(e);function i(e,t){if(ie){var a=fe(n);if(e!==parseInt(a.substring(1))){var i=ue();return le(i),r.anchor=i,oe(!1),r.ensure(e,t),void oe(!0)}}r.ensure(e,t)}ya(()=>{var e=!1;t((t,a=0)=>{e=!0,i(a,t)}),e||i(-1,null)},a?L:0)}const vn=Symbol("NaN");function gn(e,t,a=!1,n=!1,r=!1,i=!1){var o=e,l="";if(a){var s=e;ie&&(o=le(Ce(s)))}ma(()=>{var e=qt;if(l!==(l=t()??"")){if(a&&!ie)return e.nodes=null,s.innerHTML=l,void(""!==l&&Ua(Ce(s),s.lastChild));if(null!==e.nodes&&(_a(e.nodes.start,e.nodes.end),e.nodes=null),""!==l){if(ie){re.data;for(var i=se(),c=i;null!==i&&(8!==i.nodeType||""!==i.data);)c=i,i=xe(i);if(null===i)throw ne(),K;return Ua(re,c),void(o=le(i))}var d=Te(n?"svg":r?"math":"template",n?"http://www.w3.org/2000/svg":r?"http://www.w3.org/1998/Math/MathML":void 0);d.innerHTML=l;var u=n||r?d:d.content;if(Ua(Ce(u),u.lastChild),n||r)for(;Ce(u);)o.before(Ce(u));else o.before(u)}}else ie&&se()})}function pn(e,t){var a,n=void 0;ka(()=>{n!==(n=t())&&(a&&(xa(a),a=null),n&&(a=wa(()=>{pa(()=>n(e))})))})}function bn(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=bn(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function mn(e){return"object"==typeof e?function(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=bn(e))&&(n&&(n+=" "),n+=t);return n}(e):e??""}const yn=[..." \t\n\r\f \v\ufeff"];function kn(e,t=!1){var a=t?" !important;":";",n="";for(var r of Object.keys(e)){var i=e[r];null!=i&&""!==i&&(n+=" "+r+": "+i+a)}return n}function wn(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function An(e,t,a,n,r,i){var o=e[O];if(ie||o!==a||void 0===o){var l=function(e,t,a){var n=null==e?"":""+e;if(a)for(var r of Object.keys(a))if(a[r])n=n?n+" "+r:r;else if(n.length)for(var i=r.length,o=0;(o=n.indexOf(r,o))>=0;){var l=o+i;0!==o&&!yn.includes(n[o-1])||l!==n.length&&!yn.includes(n[l])?o=l:n=(0===o?"":n.substring(0,o))+n.substring(l+1)}return""===n?null:n}(a,0,i);ie&&l===e.getAttribute("class")||(null==l?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e[O]=a}else if(i&&r!==i)for(var s in i){var c=!!i[s];null!=r&&c===!!r[s]||e.classList.toggle(s,c)}return i}function Cn(e,t={},a,n){for(var r in a){var i=a[r];t[r]!==i&&(null==a[r]?e.style.removeProperty(r):e.style.setProperty(r,i,n))}}function xn(e,t,a,n){var r=e[F];if(ie||r!==t){var i=function(e,t){if(t){var a,n,r="";if(Array.isArray(t)?(a=t[0],n=t[1]):a=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,o=0,l=!1,s=[];a&&s.push(...Object.keys(a).map(wn)),n&&s.push(...Object.keys(n).map(wn));var c=0,d=-1;const t=e.length;for(var u=0;u<t;u++){var f=e[u];if(l?"/"===f&&"*"===e[u-1]&&(l=!1):i?i===f&&(i=!1):"/"===f&&"*"===e[u+1]?l=!0:'"'===f||"'"===f?i=f:"("===f?o++:")"===f&&o--,!l&&!1===i&&0===o)if(":"===f&&-1===d)d=u;else if(";"===f||u===t-1){if(-1!==d){var h=wn(e.substring(c,d).trim());s.includes(h)||(";"!==f&&u++,r+=" "+e.substring(c,u).trim()+";")}c=u+1,d=-1}}}return a&&(r+=kn(a)),n&&(r+=kn(n,!0)),""===(r=r.trim())?null:r}return null==e?null:String(e)}(t,n);ie&&i===e.getAttribute("style")||(null==i?e.removeAttribute("style"):e.style.cssText=i),e[F]=t}else n&&(Array.isArray(n)?(Cn(e,a?.[0],n[0]),Cn(e,a?.[1],n[1],"important")):Cn(e,a,n));return n}function _n(e,a,n=!1){if(e.multiple){if(null==a)return;if(!t(a))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var r of e.options)r.selected=a.includes($n(r))}else{for(r of e.options){if(ge($n(r),a))return void(r.selected=!0)}n&&void 0===a||(e.selectedIndex=-1)}}function $n(e){return"__value"in e?e.__value:e.value}const Ln=Symbol("class"),Tn=Symbol("style"),Sn=Symbol("is custom element"),jn=Symbol("is html"),zn=D?"link":"LINK",En=D?"input":"INPUT",In=D?"option":"OPTION",Vn=D?"select":"SELECT",Pn=D?"progress":"PROGRESS";function Rn(e){if(ie){var t=!1,a=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var a=e.value;Fn(e,"value",null),e.value=a}if(e.hasAttribute("checked")){var n=e.checked;Fn(e,"checked",null),e.checked=n}}};e[M]=a,te(a),It()}}function On(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Fn(e,t,a,n){var r=Mn(e);ie&&(r[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===zn)||r[t]!==(r[t]=a)&&("loading"===t&&(e[P]=a),null==a?e.removeAttribute(t):"string"!=typeof a&&Dn(e).includes(t)?e[t]=a:e.setAttribute(t,a))}function Hn(e,t,a=[],n=[],r=[],i,o=!1,l=!1){ut(r,a,n,a=>{var n=void 0,r={},i=e.nodeName===Vn,s=!1;if(ka(()=>{var c=t(...a.map(oa)),d=function(e,t,a,n,r=!1){if(ie&&r&&e.nodeName===En){var i=e;("checkbox"===i.type?"defaultChecked":"defaultValue")in a||Rn(i)}var o=Mn(e),l=o[Sn],s=!o[jn];let c=ie&&l;c&&oe(!1);var d=t||{},u=e.nodeName===In;for(var f in t)f in a||(a[f]=null);a.class?a.class=mn(a.class):a[Ln]&&(a.class=null),a[Tn]&&(a.style??=null);var h=Dn(e);for(const n in a){let r=a[n];if(u&&"value"===n&&null==r)e.value=e.__value="",d[n]=r;else if("class"!==n)if("style"!==n){var v=d[n];if(r!==v||void 0===r&&e.hasAttribute(n)){d[n]=r;var g=n[0]+n[1];if("$$"!==g)if("on"===g){const t={},a="$$"+n;let i=n.slice(2);var p=Qa(i);if(Ja(i)&&(i=i.slice(0,-7),t.capture=!0),!p&&v){if(null!=r)continue;e.removeEventListener(i,d[a],t),d[a]=null}if(p)Fa(i,e,r),Ha([i]);else if(null!=r){let r=function(e){d[n].call(this,e)};d[a]=Ra(i,e,r,t)}}else if("style"===n)Fn(e,n,r);else if("autofocus"===n)zt(e,Boolean(r));else if(l||"__value"!==n&&("value"!==n||null==r))if("selected"===n&&u)On(e,r);else{var b=n;s||(b=tn(b));var m="defaultValue"===b||"defaultChecked"===b;if(null!=r||l||m)m||h.includes(b)&&(l||"string"!=typeof r)?(e[b]=r,b in o&&(o[b]=G)):"function"!=typeof r&&Fn(e,b,r);else if(o[n]=null,"value"===b||"checked"===b){let a=e;const n=void 0===t;if("value"===b){let e=a.defaultValue;a.removeAttribute(b),a.defaultValue=e,a.value=a.__value=n?e:null}else{let e=a.defaultChecked;a.removeAttribute(b),a.defaultChecked=e,a.checked=!!n&&e}}else e.removeAttribute(n)}else e.value=e.__value=r}}else xn(e,r,t?.[Tn],a[Tn]),d[n]=r,d[Tn]=a[Tn];else An(e,"http://www.w3.org/1999/xhtml"===e.namespaceURI,r,0,t?.[Ln],a[Ln]),d[n]=r,d[Ln]=a[Ln]}return c&&oe(!0),d}(e,n,c,0,o,l);s&&i&&"value"in c&&_n(e,c.value);for(let e of Object.getOwnPropertySymbols(r))c[e]||xa(r[e]);for(let t of Object.getOwnPropertySymbols(c)){var u=c[t];"@attach"!==t.description||n&&u===n[t]||(r[t]&&xa(r[t]),r[t]=wa(()=>pn(e,()=>u))),d[t]=u}n=d}),i){var c=e;pa(()=>{_n(c,n.value,!0),function(e){var t=new MutationObserver(()=>{_n(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ha(()=>{t.disconnect()})}(c)})}s=!0})}function Mn(e){return e[R]??={[Sn]:e.nodeName.includes("-"),[jn]:e.namespaceURI===W}}var qn=new Map;function Dn(e){var t,a=e.getAttribute("is")||e.nodeName,n=qn.get(a);if(n)return n;qn.set(a,n=[]);for(var r=e,i=Element.prototype;i!==r;){for(var o in t=s(r))t[o].set&&"innerHTML"!==o&&"textContent"!==o&&"innerText"!==o&&n.push(o);r=u(r)}return n}function Nn(e,t,a=t){var n=new WeakSet;!function(e,t,a,n=a){e.addEventListener(t,()=>Vt(a));const r=e[M];e[M]=r?()=>{r(),n(!0)}:()=>n(!0),It()}(e,"input",async r=>{var i=r?e.defaultValue:e.value;if(i=Un(e)?Bn(i):i,a(i),null!==Be&&n.add(Be),await ia(),i!==(i=t())){var o=e.selectionStart,l=e.selectionEnd,s=e.value.length;if(e.value=i??"",null!==l){var c=e.value.length;o===l&&l===s&&c>s?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=o,e.selectionEnd=Math.min(l,c))}}}),(ie&&e.defaultValue!==e.value||null==ca(t)&&e.value)&&(a(Un(e)?Bn(e.value):e.value),null!==Be&&n.add(Be)),ba(()=>{var a=t();if(e===document.activeElement){var r=Be;if(n.has(r))return}Un(e)&&a===Bn(e.value)||("date"!==e.type||a||e.value)&&a!==e.value&&(e.value=a??"")})}function Un(e){var t=e.type;return"number"===t||"range"===t}function Bn(e){return""===e?null:+e}function Kn(e,t){return e===t||e?.[I]===t}function Gn(e={},t,a,n){var r=Y.r,i=qt;return pa(()=>{var n,o;return ba(()=>{n=o,o=[],ca(()=>{Kn(a(...o),e)||(t(e,...o),n&&Kn(a(...n),e)&&t(null,...n))})}),()=>{let n=i;for(;n!==r&&null!==n.parent&&n.parent.f&$;)n=n.parent;const l=n.teardown;n.teardown=()=>{o&&Kn(a(...o),e)&&t(null,...o),l?.()}}}),e}const Wn={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t))return t in e.props?{enumerable:!0,configurable:!0,value:e.props[t]}:void 0},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))};function Yn(e,t,a){return new Proxy({props:e,exclude:t},Wn)}function Zn(e,t,a,n){var r,i=n,o=!0,l=()=>(o&&(o=!1,i=n),i);void 0===e[t]&&void 0!==n&&l(),r=()=>{var a=e[t];return void 0===a?l():(o=!0,a)};var s=!1,c=vt(()=>(s=!1,r())),d=qt;return function(e,t){if(arguments.length>0){const a=t?oa(c):e;return Lt(c,a),s=!0,void 0!==i&&(i=a),e}return Rt&&s||0!==(d.f&x)?c.v:oa(c)}}class Jn{#Q;#ee;constructor(e){var t=new Map,a=(e,a)=>{var n=$t(a,!1,!1);return t.set(e,n),n};const n=new Proxy({...e.props||{},$$events:{}},{get:(e,n)=>oa(t.get(n)??a(n,Reflect.get(e,n))),has:(e,n)=>n===V||(oa(t.get(n)??a(n,Reflect.get(e,n))),Reflect.has(e,n)),set:(e,n,r)=>(Lt(t.get(n)??a(n,r),r),Reflect.set(e,n,r))});this.#ee=(e.hydrate?ln:on)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&!1!==e.sync||at(),this.#Q=n.$$events;for(const e of Object.keys(this.#ee))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&o(this,e,{get(){return this.#ee[e]},set(t){this.#ee[e]=t},enumerable:!0});this.#ee.$set=e=>{Object.assign(n,e)},this.#ee.$destroy=()=>{!function(e,t){const a=dn.get(e);a?(dn.delete(e),a(t)):Promise.resolve()}(this.#ee)}}$set(e){this.#ee.$set(e)}$on(e,t){this.#Q[e]=this.#Q[e]||[];const a=(...e)=>t.call(this,...e);return this.#Q[e].push(a),()=>{this.#Q[e]=this.#Q[e].filter(e=>e!==a)}}$destroy(){this.#ee.$destroy()}}let Xn=class{};function Qn(e,t,a,n){const r=a[e]?.type;if(t="Boolean"===r&&"boolean"!=typeof t?null!=t:t,!n||!a[e])return t;if("toAttribute"===n)switch(r){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function er(e,t,a,n,r,s){let c=class extends Xn{constructor(){super(e,a,r),this.$$p_d=t}static get observedAttributes(){return i(t).map(e=>(t[e].attribute||e).toLowerCase())}};return i(t).forEach(e=>{o(c.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(a){a=Qn(e,a,t),this.$$d[e]=a;var n=this.$$c;if(n){var r=l(n,e)?.get;r?n[e]=a:n.$set({[e]:a})}}})}),n.forEach(e=>{o(c.prototype,e,{get(){return this.$$c?.[e]}})}),e.element=c,c}"function"==typeof HTMLElement&&(Xn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,a){super(),this.$$ctor=e,this.$$s=t,a&&(this.$$shadowRoot=this.attachShadow(a))}addEventListener(e,t,a){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const a=this.$$c.$on(e,t);this.$$l_u.set(t,a)}super.addEventListener(e,t,a)}removeEventListener(e,t,a){if(super.removeEventListener(e,t,a),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(e){return t=>{const a=Te("slot");"default"!==e&&(a.name=e),Za(t,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const a={},n=function(e){const t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(const e of this.$$s)e in n&&("default"!==e||this.$$d.children?a[e]=t(e):(this.$$d.children=t(e),a.default=!0));for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Qn(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)e in this.$$d||void 0===this[e]||(this.$$d[e]=this[e],delete this[e]);this.$$c=(e={component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:a,$$host:this}},new Jn(e)),this.$$me=function(e){tt.ensure();const t=ua(524352,e);return()=>{xa(t)}}(()=>{ba(()=>{this.$$r=!0;for(const e of i(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];const t=Qn(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(const e in this.$$l)for(const t of this.$$l[e]){const a=this.$$c.$on(e,t);this.$$l_u.set(t,a)}this.$$l={}}var e}attributeChangedCallback(e,t,a){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Qn(e,a,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return i(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});var tr=Ba('<div class="altcha-checkbox"><input/> <svg aria-hidden="true" width="12" height="9" viewBox="0 0 12 9"><polyline points="1 5 4 8 11 1"></polyline></svg> <div class="altcha-spinner altcha-checkbox-spinner" aria-hidden="true"></div></div>');function ar(e,t){J(t,!0);let a,n=Zn(t,"loading"),r=Yn(t,["$$slots","$$events","$$legacy","$$host","loading"]);var i={get loading(){return n()},set loading(e){n(e),at()}},o=tr(),l=_e(o);Hn(l,()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),Gn(l,e=>a=e,()=>a);var s=Le(l,2);return de(2),ce(o),ma(()=>Fn(o,"data-loading",n())),Fa("click",s,function(){a?.click()}),Za(e,o),X(i)}Ha(["click"]),er(ar,{loading:{}},[],[],{mode:"open"});var nr=Ba('<div class="altcha-checkbox-native"><input/> <div class="altcha-spinner altcha-checkbox-native-spinner"></div></div>');function rr(e,t){J(t,!0);let a=Zn(t,"loading"),n=Yn(t,["$$slots","$$events","$$legacy","$$host","loading"]);var r={get loading(){return a()},set loading(e){a(e),at()}},i=nr();return Hn(_e(i),()=>({type:"checkbox",...n}),void 0,void 0,void 0,0,!0),de(2),ce(i),ma(()=>Fn(i,"data-loading",a())),Za(e,i),X(r)}er(rr,{loading:{}},[],[],{mode:"open"});var ir=Ba('<div><a target="_blank" class="altcha-logo" aria-hidden="true" tabindex="-1"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>');function or(e,t){J(t,!0);let a=Zn(t,"strings");var n={get strings(){return a()},set strings(e){a(e),at()}},r=ir(),i=_e(r);return Fn(i,"href","https://altcha.org"),ce(r),ma(()=>Fn(i,"aria-label",a().ariaLinkLabel)),Za(e,r),X(n)}er(or,{strings:{}},[],[],{mode:"open"});var lr=Ba('<div class="altcha-footer"><p></p> <!></div>');function sr(e,t){J(t,!0);let a=Zn(t,"logo"),n=Zn(t,"strings");var r={get logo(){return a()},set logo(e){a(e),at()},get strings(){return n()},set strings(e){n(e),at()}},i=lr(),o=_e(i);gn(o,()=>n().footer,!0),ce(o);var l=Le(o,2