1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1542],{87049:function(){var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,a=Object.keys,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,u=Object.getPrototypeOf,f=Object.isExtensible;const d=()=>{};function h(){var e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}}const p=1<<24,v=16,g=32,m=64,b=512,y=1024,w=2048,k=4096,x=8192,_=16384,$=32768,S=1<<25,C=65536,E=1<<17,T=1<<19,A=65536,I=1<<21,P=1<<23,O=Symbol("$state"),R=Symbol("legacy props"),L=Symbol(""),M=Symbol("attributes"),D=Symbol("class"),U=Symbol("style"),V=Symbol("text"),N=Symbol("form reset"),z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},j=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function B(e){return e===this.v}function F(e,t){return e!=e?t==t:e!==t||null!==e&&"object"===typeof e||"function"===typeof e}function H(e){return!F(e,this.v)}const K={},q=Symbol("uninitialized"),Y="http://www.w3.org/1999/xhtml";let G=null;function W(e){G=e}function J(e,t=!1,n){G={p:G,i:!1,c:null,e:null,s:e,x:null,r:Vt,l:null}}function Z(e){var t=G,n=t.e;if(null!==n)for(var r of(t.e=null,n))hn(r);return void 0!==e&&(t.x=e),t.i=!0,G=t.p,e??{}}let X=[];function Q(){var e=X;X=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}function ee(e){if(0===X.length&&!qe){var t=X;queueMicrotask((()=>{t===X&&Q()}))}X.push(e)}function te(){for(;X.length>0;)Q()}function ne(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let re,ae=!1;function oe(e){ae=e}function ie(e){if(null===e)throw ne(),K;return re=e}function le(){return ie(xe(re))}function se(e){if(ae){if(null!==xe(re))throw ne(),K;re=e}}function ce(e=1){if(ae){for(var t=e,n=re;t--;)n=xe(n);re=n}}function ue(e=!0){for(var t=0,n=re;;){if(8===n.nodeType){var r=n.data;if("]"===r){if(0===t)return n;t-=1}else("["===r||"[!"===r||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(t+=1)}var a=xe(n);e&&n.remove(),n=a}}function fe(e){if(!e||8!==e.nodeType)throw ne(),K;return e.data}function de(t){if("object"!==typeof t||null===t||O in t)return t;const n=u(t);if(n!==s&&n!==c)return t;var r=new Map,a=e(t),o=xt(0),l=Yt,f=e=>{if(Yt===l)return e();var t=Mt,n=Yt;Ut(null),Gt(l);var r=e();return Ut(t),Gt(n),r};return a&&r.set("length",xt(t.length)),new Proxy(t,{defineProperty(e,t,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var a=r.get(t);return void 0===a?f((()=>{var e=xt(n.value);return r.set(t,e),e})):$t(a,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(void 0===n){if(t in e){const e=f((()=>xt(q)));r.set(t,e),Ct(o)}}else $t(n,q),Ct(o);return!0},get(e,n,a){if(n===O)return t;var o=r.get(n),l=n in e;if(void 0!==o||l&&!i(e,n)?.writable||(o=f((()=>
1xt(de(l?e[n]:q)))),r.set(n,o)),void 0!==o){var s=rn(o);return s===q?void 0:s}return Reflect.get(e,n,a)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&"value"in n){var a=r.get(t);a&&(n.value=rn(a))}else if(void 0===n){var o=r.get(t),i=o?.v;if(void 0!==o&&i!==q)return{enumerable:!0,configurable:!0,value:i,writable:!0}}return n},has(e,t){if(t===O)return!0;var n=r.get(t),a=void 0!==n&&n.v!==q||Reflect.has(e,t);if((void 0!==n||null!==Vt&&(!a||i(e,t)?.writable))&&(void 0===n&&(n=f((()=>xt(a?de(e[t]):q))),r.set(t,n)),rn(n)===q))return!1;return a},set(e,t,n,l){var s=r.get(t),c=t in e;if(a&&"length"===t)for(var u=n;u<s.v;u+=1){var d=r.get(u+"");void 0!==d?$t(d,q):u in e&&(d=f((()=>xt(q))),r.set(u+"",d))}void 0===s?c&&!i(e,t)?.writable||($t(s=f((()=>xt(void 0))),de(n)),r.set(t,s)):(c=s.v!==q,$t(s,f((()=>de(n)))));var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(l,n),!c){if(a&&"string"===typeof t){var p=r.get("length"),v=Number(t);Number.isInteger(v)&&v>=p.v&&$t(p,v+1)}Ct(o)}return!0},ownKeys(e){rn(o);var t=Reflect.ownKeys(e).filter((e=>{var t=r.get(e);return void 0===t||t.v!==q}));for(var[n,a]of r)a.v===q||n in e||t.push(n);return t},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function he(e){try{if(null!==e&&"object"===typeof e&&O in e)return e[O]}catch{}return e}var pe,ve,ge,me,be;function ye(){if(void 0===pe){pe=window,ve=document,ge=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;me=i(t,"firstChild").get,be=i(t,"nextSibling").get,f(e)&&(e[D]=void 0,e[M]=null,e[U]=void 0,e.__e=void 0),f(n)&&(n[V]=void 0)}}function we(e=""){return document.createTextNode(e)}function ke(e){return me.call(e)}function xe(e){return be.call(e)}function _e(e,t){if(!ae)return ke(e);var n=ke(re);if(null===n)n=re.appendChild(we());else if(t&&3!==n.nodeType){var r=we();return n?.before(r),ie(r),r}return t&&Ee(n),ie(n),n}function $e(e,t=!1){if(!ae){var n=ke(e);return n instanceof Comment&&""===n.data?xe(n):n}if(t){if(3!==re?.nodeType){var r=we();return re?.before(r),ie(r),r}Ee(re)}return re}function Se(e,t=1,n=!1){let r=ae?re:e;for(var a;t--;)a=r,r=xe(r);if(!ae)return r;if(n){if(3!==r?.nodeType){var o=we();return null===r?a?.after(o):r.before(o),ie(o),o}Ee(r)}return ie(r),r}function Ce(e,t,n){let r;return document.createElementNS(t??Y,e,r)}function Ee(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 Te(e){var t=Vt;if(null===t)return Mt.f|=P,e;if(0===(t.f&$)&&0===(4&t.f))throw e;Ae(e,t)}function Ae(e,t){for(;null!==t;){if(0!==(128&t.f)){if(0===(t.f&$))throw e;try{return void t.b.error(e)}catch(n){e=n}}t=t.parent}throw e}function Ie(e,t){e.f=-7169&e.f|t}function Pe(e){0!==(e.f&b)||null===e.deps?Ie(e,y):Ie(e,k)}function Oe(e){if(null!==e)for(const t of e)0!==(2&t.f)&&0!==(t.f&A)&&(t.f^=A,Oe(t.deps))}function Re(e,t,n){0!==(e.f&w)?t.add(e):0!==(e.f&k)&&n.add(e),Oe(e.deps),Ie(e,y)}function Le(e,t,n){if(null==e)return t(void 0),d;const r=ln((()=>e.subscribe(t,n)));return r.unsubscribe?()=>r.unsubscribe():r}const Me=[];function De(e,t=d){let n=null;const r=new Set;function a(t){if(F(e,t)&&(e=t,n)){const t=!Me.length;for(const n of r)n[1](),Me.push(n,e);if(t){for(let e=0;e<Me.length;e+=2)Me[e][0](Me[e+1]);Me.length=0}}}function o(t){a(t(e))}return{set:a,update:o,subscribe:function(i,l=d){const s=[i,l];return r.add(s),1===r.size&&(n=t(a,o)||d),i(e),()=>{r.delete(s),0===r.size&&n&&(n(),n=null)}}}}function Ue(e){let t;return Le(e,(e=>t=e))(),t}let Ve=Symbol("unmounted");function Ne(e,t,n){const r=n[t]??={store:null,source:_t(void 0),unsubscribe:d};if(r.store!==e&&!(Ve in n))if(r.unsubscribe(),r.store=e??null,null==e)r.source.v=void 0,r.unsubscribe=d;else{var a=!0;r.unsubscribe=Le(e,(e=>{a?r.source.v=e:$t(r.source,e)})),a=!1}return e&&Ve in n?Ue(e):rn(r.source)}let ze=null,je=null,Be=null,Fe=null,He=null,Ke=null,qe=!1,Ye=!1,Ge=null,We=null;var Je=0;let Ze=1;class Xe{id=Ze++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;
1current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#a=new Set;#o=new Set;#i=0;#l=new Map;#s=null;#c=[];#u=[];#f=new Set;#d=new Set;#h=new Map;#p=new Set;is_fork=!1;#v=!1;#g(){if(this.is_fork)return!0;for(const n of this.#l.keys()){for(var e=n,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.#p.delete(e)}unskip_effect(e,t=(e=>this.schedule(e))){var n=this.#h.get(e);if(n){for(var r of(this.#h.delete(e),n.d))Ie(r,w),t(r);for(r of n.m)Ie(r,k),t(r)}this.#p.add(e)}#m(){if(this.#e=!0,Je++>1e3&&(this.#b(),function(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){Ae(e,Ke)}}()),!this.#g()){for(const e of this.#f)this.#d.delete(e),Ie(e,w),this.schedule(e);for(const e of this.#d)Ie(e,k),this.schedule(e)}const e=this.#c;this.#c=[],this.apply();var t=Ge=[],n=[],r=We=[];for(const s of e)try{this.#y(s,t,n)}catch(l){throw it(s),l}if(Be=null,r.length>0){var a=Xe.ensure();for(const e of r)a.schedule(e)}if(Ge=null,We=null,this.#g()){this.#w(n),this.#w(t);for(const[e,t]of this.#h)ot(e,t);return void(r.length>0&&Be.#m())}const o=this.#k();if(o)o.#x(this);else{this.#f.clear(),this.#d.clear();for(const e of this.#r)e(this);this.#r.clear(),Fe=this,tt(n),tt(t),Fe=null,this.#s?.resolve();var i=Be;if(this.linked&&0===this.#i&&this.#b(),this.#c.length>0){null===i&&(i=this,this.#_());const e=i;e.#c.push(...this.#c.filter((t=>!e.#c.includes(t))))}null!==i&&i.#m()}}#y(e,t,n){e.f^=y;for(var r=e.first;null!==r;){var a=r.f,o=0!==(96&a);if(!(o&&0!==(a&y)||0!==(a&x)||this.#h.has(r))&&null!==r.fn){o?r.f^=y:0!==(4&a)?t.push(r):Jt(r)&&(0!==(a&v)&&this.#d.add(r),tn(r));var i=r.first;if(null!==i){r=i;continue}}for(;null!==r;){var l=r.next;if(null!==l){r=l;break}r=r.parent}}}#k(){for(var e=this.#t;null!==e;){if(!e.is_fork)for(const[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e;e=e.#t}return null}#x(e){for(const[n,r]of e.current)!this.previous.has(n)&&e.previous.has(n)&&this.previous.set(n,e.previous.get(n)),this.current.set(n,r);for(const[n,r]of e.async_deriveds){const e=this.async_deriveds.get(n);e&&r.promise.then(e.resolve)}const t=e=>{var n=e.reactions;if(null!==n)for(const o of n){var r=o.f;if(0!==(2&r))t(o);else{var a=o;4194320&r&&!this.async_deriveds.has(a)&&(this.#d.delete(a),Ie(a,w),this.schedule(a))}}};for(const n of this.current.keys())t(n);this.oncommit((()=>e.discard())),e.#b(),Be=this,this.#m()}#w(e){for(var t=0;t<e.length;t+=1)Re(e[t],this.#f,this.#d)}capture(e,t,n=!1){e.v===q||this.previous.has(e)||this.previous.set(e,e.v),0===(e.f&P)&&(this.current.set(e,[t,n]),He?.set(e,t)),this.is_fork||(e.v=t)}activate(){Be=this}deactivate(){Be=null,He=null}flush(){try{false,Ye=!0,Be=this,this.#m()}finally{Je=0,Ke=null,Ge=null,We=null,Ye=!1,Be=null,He=null,yt.clear()}}discard(){for(const e of this.#a)e(this);this.#a.clear(),this.#o.clear(),this.#b()}register_created_effect(e){this.#u.push(e)}#$(){this.#b();for(let c=ze;null!==c;c=c.#n){var e=c.id<this.id,t=[];for(const[r,[a,o]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(!e||a===n)continue;c.current.set(r,[a,o])}t.push(r)}if(e)for(const[e,t]of this.async_deriveds){const n=c.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(c.#e){var r=[...c.current.keys()].filter((e=>!this.current.has(e)));if(0===r.length)e&&c.discard();else if(t.length>0){if(e)for(const e of this.#p)c.unskip_effect(e,(e=>{0!==(4194320&e.f)?c.schedule(e):c.#w([e])}));c.activate();var a=new Set,o=new Map;for(var i of t)nt(i,r,a,o);o=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.#u)0===(155648&e.f)&&rt(e,l,o)&&(0!==(4194320&e.f)?(Ie(e,w),c.schedule(e)):c.#f.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.#i+=1,e){let e=this.#l.get(t)??0;this.#l.set(t,e+1)}}decrement(e,t){if(this.#i-=1,e){let e=this.#l.get(t)??0;1===e?this.#l.delete(t):this.#l.set(t,e-1)}this.#v||(this.#v=!0,ee((()=>{this.#v=!1,this.linked&&this.flush()})))}transfer_effects(e,t){for(const n of e)this.#f.add(n);for(const n of t)this.#d.add(n);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#a.add(e)}on_fork_commit(e){this.#o.add(e)}run_fork_commit_callbacks(){for(const e of this.#o)e(this);this.#o.clear()}settled(){return(this.#s??=h()).promise}static ensure(){if(null===Be){const e=Be=new Xe;e.#_(),Ye||qe||ee((()=>{e.#e||e.flush()}))}return Be}apply(){He=null}schedule(e){if(Ke=e,e.b?.is_pending&&0!==(16777228&e.f)&&0===(e.f&$))e.b.defer_effect(e);else{for(var t=e;null!==t.parent;){var n=(t=t.parent).f;if(null!==Ge&&t===Vt&&(null===Mt||0===(2&Mt.f)))return;
1if(0!==(96&n)){if(0===(n&y))return;t.f^=y}}this.#c.push(t)}}#_(){null===je?ze=je=this:(je.#n=this,this.#t=je),je=this}#b(){var e=this.#t,t=this.#n;null===e?ze=t:e.#n=t,null===t?je=e:t.#t=e,this.linked=!1}}function Qe(e){var t=qe;qe=!0;try{for(;;){if(te(),null===Be)return;Be.flush()}}finally{qe=t}}let et=null;function tt(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(0===(24576&r.f)&&Jt(r)&&(et=new Set,tn(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&$n(r),et?.size>0)){yt.clear();for(const e of et){if(0!==(24576&e.f))continue;const t=[e];let n=e.parent;for(;null!==n;)et.has(n)&&(et.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];0===(24576&n.f)&&tn(n)}}et.clear()}}et=null}}function nt(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const a of e.reactions){const e=a.f;0!==(2&e)?nt(a,t,n,r):0!==(4194320&e)&&0===(e&w)&&rt(a,t,r)&&(Ie(a,w),at(a))}}function rt(e,t,r){const a=r.get(e);if(void 0!==a)return a;if(null!==e.deps)for(const o of e.deps){if(n.call(t,o))return!0;if(0!==(2&o.f)&&rt(o,t,r))return r.set(o,!0),!0}return r.set(e,!1),!1}function at(e){Be.schedule(e)}function ot(e,t){if(0===(e.f&g)||0===(e.f&y)){0!==(e.f&w)?t.d.push(e):0!==(e.f&k)&&t.m.push(e),Ie(e,y);for(var n=e.first;null!==n;)ot(n,t),n=n.next}}function it(e){Ie(e,y);for(var t=e.first;null!==t;)it(t),t=t.next}class lt{parent;is_pending=!1;transform_error;#S;#C=ae?re:null;#E;#T;#A;#I=null;#P=null;#O=null;#R=null;#L=0;#M=0;#D=!1;#f=new Set;#d=new Set;#U=null;#V=function(e){let t,n=0,r=kt(0);return()=>{un()&&(rn(r),vn((()=>(0===n&&(t=ln((()=>e((()=>Ct(r)))))),n+=1,()=>{ee((()=>{n-=1,0===n&&(t?.(),t=void 0,Ct(r))}))}))))}}((()=>(this.#U=kt(this.#L),()=>{this.#U=null})));constructor(e,t,n,r){this.#S=e,this.#E=t,this.#T=e=>{var t=Vt;t.b=this,t.f|=128,n(e)},this.parent=Vt.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#A=mn((()=>{if(ae){const e=this.#C;le();const t="[!"===e.data;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice("[?".length));this.#N(t)}else t?this.#z():this.#j()}else this.#B()}),589824),ae&&(this.#S=re)}#j(){try{this.#I=yn((()=>this.#T(this.#S)))}catch(e){this.error(e)}}#N(e){const t=this.#E.failed;t&&(this.#O=yn((()=>{t(this.#S,(()=>e),(()=>()=>{}))})))}#z(){const e=this.#E.pending;e&&(this.is_pending=!0,this.#P=yn((()=>e(this.#S))),ee((()=>{var e=this.#R=document.createDocumentFragment(),t=we();e.append(t),this.#I=this.#F((()=>yn((()=>this.#T(t))))),0===this.#M&&(this.#S.before(e),this.#R=null,Sn(this.#P,(()=>{this.#P=null})),this.#H(Be))})))}#B(){try{if(this.is_pending=this.has_pending_snippet(),this.#M=0,this.#L=0,this.#I=yn((()=>{this.#T(this.#S)})),this.#M>0){var e=this.#R=document.createDocumentFragment();An(this.#I,e);const t=this.#E.pending;this.#P=yn((()=>t(this.#S)))}else this.#H(Be)}catch(t){this.error(t)}}#H(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#d)}defer_effect(e){Re(e,this.#f,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#E.pending}#F(e){var t=Vt,n=Mt,r=G;Nt(this.#A),Ut(this.#A),W(this.#A.ctx);try{return Xe.ensure(),e()}catch(a){return Te(a),null}finally{Nt(t),Ut(n),W(r)}}#K(e,t){this.has_pending_snippet()?(this.#M+=e,0===this.#M&&(this.#H(t),this.#P&&Sn(this.#P,(()=>{this.#P=null})),this.#R&&(this.#S.before(this.#R),this.#R=null))):this.parent&&this.parent.#K(e,t)}update_pending_count(e,t){this.#K(e,t),this.#L+=e,this.#U&&!this.#D&&(this.#D=!0,ee((()=>{this.#D=!1,this.#U&&St(this.#U,this.#L)})))}get_effect_pending(){return this.#V(),rn(this.#U)}error(e){if(!this.#E.onerror&&!this.#E.failed)throw e;Be?.is_fork?(this.#I&&Be.skip_effect(this.#I),this.#P&&Be.skip_effect(this.#P),this.#O&&Be.skip_effect(this.#O),Be.on_fork_commit((()=>{this.#q(e)}))):this.#q(e)}#q(e){this.#I&&(xn(this.#I),this.#I=null),this.#P&&(xn(this.#P),this.#P=null),this.#O&&(xn(this.#O),this.#O=null),ae&&(ie(this.#C),ce(),ie(ue()));var t=this.#E.onerror;let n=this.#E.failed;var r=!1,a=!1;const o=()=>{r?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(r=!0,a&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#O&&Sn(this.#O,(()=>{this.#O=null})),this.#F((()=>{this.#B()})))},i=e=>{try{a=!0,t?.(e,o),a=!1}catch(r){Ae(r,this.#A&&this.#A.parent)}n&&(this.#O=this.#F((()=>{try{return yn((()=>{var t=Vt;t.b=this,t.f|=128,n(this.#S,(()=>e),(()=>o))}
1))}catch(r){return Ae(r,this.#A.parent),null}})))};ee((()=>{var t;try{t=this.transform_error(e)}catch(n){return void Ae(n,this.#A&&this.#A.parent)}null!==t&&"object"===typeof t&&"function"===typeof t.then?t.then(i,(e=>Ae(e,this.#A&&this.#A.parent))):i(t)}))}}function st(e,t,n,r){const a=ft;var o=e.filter((e=>!e.settled));if(0!==n.length||0!==o.length){var i=Vt,l=function(){var e=Vt,t=Mt,n=G,r=Be;return function(a=!0){Nt(e),Ut(t),W(n),a&&0===(e.f&_)&&(r?.activate(),r?.apply())}}(),s=1===o.length?o[0].promise:o.length>1?Promise.all(o.map((e=>e.promise))):null,c=ut();0!==n.length?s?s.then((()=>{l(),f(),ct()})):f():s.then((()=>u(t.map(a)))).finally(c)}else r(t.map(a));function u(e){if(0===(i.f&_)){l();try{r(e)}catch(t){Ae(t,i)}ct()}}function f(){Promise.all(n.map((e=>ht(e)))).then((e=>u([...t.map(a),...e]))).catch((e=>Ae(e,i))).finally(c)}}function ct(e=!0){Nt(null),Ut(null),W(null),e&&Be?.deactivate()}function ut(){var e=Vt,t=e.b,n=Be,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}function ft(e){null!==Vt&&(Vt.f|=T);return{ctx:G,deps:null,effects:null,equals:B,f:2050,fn:e,reactions:null,rv:0,v:q,wv:0,parent:Vt,ac:null}}const dt=Symbol("obsolete");function ht(e,t,n){let r=Vt;null===r&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var a=void 0,o=kt(q),i=!Mt,l=new Set;return function(e){cn(4718592,e)}((()=>{var t=Vt,n=h();a=n.promise;try{Promise.resolve(e()).then(n.resolve,(e=>{e!==z&&n.reject(e)})).finally(ct)}catch(f){n.reject(f),ct()}var s=Be;if(i){if(0!==(t.f&$))var c=ut();if(r.b.is_rendered())s.async_deriveds.get(t)?.reject(dt);else for(const e of l.values())e.reject(dt);l.add(n),s.async_deriveds.set(t,n)}const u=(e,t)=>{c?.(),l.delete(n),t!==dt&&(s.activate(),t?(o.f|=P,St(o,t)):(0!==(o.f&P)&&(o.f^=P),St(o,e)),s.deactivate())};n.promise.then(u,(e=>u(null,e||"unknown")))})),fn((()=>{for(const e of l)e.reject(dt)})),new Promise((e=>{!function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}(a)}))}function pt(e){const t=ft(e);return jt(t),t}function vt(e){var t,n=Vt,r=e.parent;if(!Rt&&null!==r&&e.v!==q&&0!==(24576&r.f))return console.warn("https://svelte.dev/e/derived_inert"),e.v;Nt(r);try{e.f&=-65537,function(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)xn(t[n])}}(e),t=Xt(e)}finally{Nt(n)}return t}function gt(e){var t=vt(e);e.equals(t)||(e.wv=Wt(),Be?.is_fork&&null!==e.deps||(null!==Be?(Be.capture(e,t,!0),Fe?.capture(e,t,!0)):e.v=t,null!==e.deps))?Rt||(null!==He?(un()||Be?.is_fork)&&He.set(e,t):Pe(e)):Ie(e,y)}function mt(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&null!==t.fn&&tn(t)}let bt=new Set;const yt=new Map;let wt=!1;function kt(e,t){return{f:0,v:e,reactions:null,equals:B,rv:0,wv:0}}function xt(e,t){const n=kt(e);return jt(n),n}function _t(e,t=!1,n=!0){const r=kt(e);return t||(r.equals=H),r}function $t(e,t,r=!1){return null===Mt||Dt&&0===(Mt.f&E)||0===(4325394&Mt.f)||null!==zt&&n.call(zt,e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),St(e,r?de(t):t,We)}function St(e,t,n=null){if(!e.equals(t)){yt.set(e,Rt?t:e.v);var r=Xe.ensure();if(r.capture(e,t),0!==(2&e.f)){const t=e;0!==(e.f&w)&&vt(t),null===He&&Pe(t)}e.wv=Wt(),Et(e,w,n),null!==Vt&&0!==(Vt.f&y)&&0===(96&Vt.f)&&(null===Ht?function(e){Ht=e}([e]):Ht.push(e)),!r.is_fork&&bt.size>0&&!wt&&function(){wt=!1;for(const e of bt){let t;0!==(e.f&y)&&Ie(e,k);try{t=Jt(e)}catch{t=!0}t&&tn(e)}bt.clear()}()}return t}function Ct(e){$t(e,e.v+1)}function Et(e,t,n){var r=e.reactions;if(null!==r)for(var a=r.length,o=0;o<a;o++){var i=r[o],l=i.f,s=0===(l&w);if(s&&Ie(i,t),0!==(l&E))bt.add(i);else if(0!==(2&l)){var c=i;He?.delete(c),0===(l&A)&&(l&b&&(null===Vt||0===(Vt.f&I))&&(i.f|=A),Et(c,k,n))}else if(s){var u=i;0!==(l&v)&&null!==et&&et.add(u),null!==n?n.push(u):at(u)}}}function Tt(e,t){if(t){const t=document.body;e.autofocus=!0,ee((()=>{document.activeElement===t&&e.focus()}))}}let At=!1;function It(){At||(At=!0,document.addEventListener("reset",(e=>{Promise.resolve().then((()=>
1{if(!e.defaultPrevented)for(const t of e.target.elements)t[N]?.()}))}),{capture:!0}))}function Pt(e){var t=Mt,n=Vt;Ut(null),Nt(null);try{return e()}finally{Ut(t),Nt(n)}}let Ot=!1,Rt=!1;function Lt(e){Rt=e}let Mt=null,Dt=!1;function Ut(e){Mt=e}let Vt=null;function Nt(e){Vt=e}let zt=null;function jt(e){null!==Mt&&(null===zt?zt=[e]:zt.push(e))}let Bt=null,Ft=0,Ht=null;let Kt=1,qt=0,Yt=qt;function Gt(e){Yt=e}function Wt(){return++Kt}function Jt(e){var t=e.f;if(0!==(t&w))return!0;if(2&t&&(e.f&=-65537),0!==(t&k)){for(var n=e.deps,r=n.length,a=0;a<r;a++){var o=n[a];if(Jt(o)&>(o),o.wv>e.wv)return!0}0!==(t&b)&&null===He&&Ie(e,y)}return!1}function Zt(e,t,r=!0){var a=e.reactions;if(null!==a&&(null===zt||!n.call(zt,e)))for(var o=0;o<a.length;o++){var i=a[o];0!==(2&i.f)?Zt(i,t,!1):t===i&&(r?Ie(i,w):0!==(i.f&y)&&Ie(i,k),at(i))}}function Xt(e){var t=Bt,n=Ft,r=Ht,a=Mt,o=zt,i=G,l=Dt,s=Yt,c=e.f;Bt=null,Ft=0,Ht=null,Mt=0===(96&c)?e:null,zt=null,W(e.ctx),Dt=!1,Yt=++qt,null!==e.ac&&(Pt((()=>{e.ac.abort(z)})),e.ac=null);try{e.f|=I;var u=(0,e.fn)();e.f|=$;var f=e.deps,d=Be?.is_fork;if(null!==Bt){var h;if(d||en(e,Ft),null!==f&&Ft>0)for(f.length=Ft+Bt.length,h=0;h<Bt.length;h++)f[Ft+h]=Bt[h];else e.deps=f=Bt;if(un()&&0!==(e.f&b))for(h=Ft;h<f.length;h++)(f[h].reactions??=[]).push(e)}else!d&&null!==f&&Ft<f.length&&(en(e,Ft),f.length=Ft);if(null!==Ht&&!Dt&&null!==f&&0===(6146&e.f))for(h=0;h<Ht.length;h++)Zt(Ht[h],e);if(null!==a&&a!==e){if(qt++,null!==a.deps)for(let e=0;e<n;e+=1)a.deps[e].rv=qt;if(null!==t)for(const e of t)e.rv=qt;null!==Ht&&(null===r?r=Ht:r.push(...Ht))}return 0!==(e.f&P)&&(e.f^=P),u}catch(p){return Te(p)}finally{e.f^=I,Bt=t,Ft=n,Ht=r,Mt=a,zt=o,W(i),Dt=l,Yt=s}}function Qt(e,r){let a=r.reactions;if(null!==a){var o=t.call(a,e);if(-1!==o){var i=a.length-1;0===i?a=r.reactions=null:(a[o]=a[i],a.pop())}}if(null===a&&0!==(2&r.f)&&(null===Bt||!n.call(Bt,r))){var l=r;0!==(l.f&b)&&(l.f^=b,l.f&=-65537),l.v!==q&&Pe(l),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(z),null!==t.fn&&(t.teardown=d),t.ac=null,en(t,0),kn(t))}(l),en(l,0)}}function en(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)Qt(e,n[r])}function tn(e){var t=e.f;if(0===(t&_)){Ie(e,y);var n=Vt,r=Ot;Vt=e,Ot=!0;try{0!==(16777232&t)?function(e){var t=e.first;for(;null!==t;){var n=t.next;0===(t.f&g)&&xn(t),t=n}}(e):kn(e),wn(e);var a=Xt(e);e.teardown="function"===typeof a?a:null,e.wv=Kt}finally{Ot=r,Vt=n}}}async function nn(){await Promise.resolve(),Qe()}function rn(e){var t=0!==(2&e.f);if(null!==Mt&&!Dt&&(!(null!==Vt&&0!==(Vt.f&_))&&(null===zt||!n.call(zt,e)))){var r=Mt.deps;if(0!==(Mt.f&I))e.rv<qt&&(e.rv=qt,null===Bt&&null!==r&&r[Ft]===e?Ft++:null===Bt?Bt=[e]:Bt.push(e));else{(Mt.deps??=[]).push(e);var a=e.reactions;null===a?e.reactions=[Mt]:n.call(a,Mt)||a.push(Mt)}}if(Rt&&yt.has(e))return yt.get(e);if(t){var o=e;if(Rt){var i=o.v;return(0===(o.f&y)&&null!==o.reactions||on(o))&&(i=vt(o)),yt.set(o,i),i}var l=0===(o.f&b)&&!Dt&&null!==Mt&&(Ot||0!==(Mt.f&b)),s=0===(o.f&$);Jt(o)&&(l&&(o.f|=b),gt(o)),l&&!s&&(mt(o),an(o))}if(He?.has(e))return He.get(e);if(0!==(e.f&P))throw e.v;return e.v}function an(e){if(e.f|=b,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),0!==(2&t.f)&&0===(t.f&b)&&(mt(t),an(t))}function on(e){if(e.v===q)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(yt.has(t))return!0;if(0!==(2&t.f)&&on(t))return!0}return!1}function ln(e){var t=Dt;try{return Dt=!0,e()}finally{Dt=t}}function sn(e){null===Vt&&(null===Mt&&function(e){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),Rt&&function(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function cn(e,t){var n=Vt;null!==n&&0!==(n.f&x)&&(e|=x);var r={ctx:G,deps:null,nodes:null,f:e|w|b,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Be?.register_created_effect(r);var a=r;if(0!==(4&e))null!==Ge?Ge.push(r):Xe.ensure().schedule(r);else if(null!==t){try{tn(r)}catch(i){throw xn(r),i}null===a.deps&&null===a.teardown&&null===a.nodes&&a.first===a.last&&0===(a.f&T)&&(a=a.first,0!==(e&v)&&0!==(e&C)&&null!==a&&(a.f|=C))}if(null!==a&&(a.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(a,n),null!==Mt&&0!==(2&Mt.f)&&0===(e&m))){var o=Mt;(o.effects??=[]).push(a)}return r}function un(){return null!==Mt&&!Dt}function fn(e){const t=cn(8,null);return Ie(t,y),t.teardown=e,t}function dn(e){sn();var t=Vt.f;if(!(!Mt&&0!==(t&g)&&0===(t&$)))return hn(e);var n=G;(n.e??=[]).push(e)}function hn(e){return cn(1048580,e)}function pn(e){return cn(4,e)}function vn(e,t=0){return cn(8|t,e)}function gn(e,t=[],n=[],r=[]){st(r,t,n,(t=>{cn(8,(()=>e(...t.map(rn))))}
1))}function mn(e,t=0){return cn(v|t,e)}function bn(e,t=0){return cn(p|t,e)}function yn(e){return cn(524320,e)}function wn(e){var t=e.teardown;if(null!==t){const e=Rt,n=Mt;Lt(!0),Ut(null);try{t.call(null)}finally{Lt(e),Ut(n)}}}function kn(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&Pt((()=>{e.abort(z)}));var r=n.next;0!==(n.f&m)?n.parent=null:xn(n,t),n=r}}function xn(e,t=!0){var n=!1;!t&&0===(262144&e.f)||null===e.nodes||null===e.nodes.end||(_n(e.nodes.start,e.nodes.end),n=!0),Ie(e,S),kn(e,t&&!n),en(e,0);var r=e.nodes&&e.nodes.t;if(null!==r)for(const o of r)o.stop();wn(e),e.f^=S,e.f|=_;var a=e.parent;null!==a&&null!==a.first&&$n(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function _n(e,t){for(;null!==e;){var n=e===t?null:xe(e);e.remove(),e=n}}function $n(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Sn(e,t,n=!0){var r=[];Cn(e,r,!0);var a=()=>{n&&xn(e),t&&t()},o=r.length;if(o>0){var i=()=>--o||a();for(var l of r)l.out(i)}else a()}function Cn(e,t,n){if(0===(e.f&x)){e.f^=x;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var a=e.first;null!==a;){var o=a.next;if(0===(a.f&m))Cn(a,t,!!(0!==(a.f&C)||0!==(a.f&g)&&0!==(e.f&v))&&n);a=o}}}function En(e){Tn(e,!0)}function Tn(e,t){if(0!==(e.f&x)){e.f^=x,0===(e.f&y)&&(Ie(e,w),Xe.ensure().schedule(e));for(var n=e.first;null!==n;){var r=n.next;Tn(n,!!(0!==(n.f&C)||0!==(n.f&g))&&t),n=r}var a=e.nodes&&e.nodes.t;if(null!==a)for(const e of a)(e.is_global||t)&&e.in()}}function An(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var a=n===r?null:xe(n);t.append(n),n=a}}function In(e){const t={get:e=>Ue(t.store)[e],set:(e,n)=>{"string"===typeof e?Object.assign(Ue(t.store),{[e]:n}):Object.assign(Ue(t.store),e),t.store.set(Ue(t.store))},store:De(e)};return t}globalThis.$altcha=globalThis.$altcha||{algorithms:new Map,defaults:In({}),i18n:In({}),instances:new Set,plugins:new Set};const Pn={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."};"$altcha"in globalThis&&globalThis.$altcha.i18n.set("en",Pn);"undefined"!==typeof window&&((window.__svelte??={}).v??=new Set).add("5");const On=Symbol("events"),Rn=new Set,Ln=new Set;function Mn(e,t,n,r={}){function a(e){if(r.capture||zn.call(t,e),!e.cancelBubble)return Pt((()=>n?.call(this,e)))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?ee((()=>{t.addEventListener(e,a,r)})):t.addEventListener(e,a,r),a}function Dn(e,t,n,r,a){var o={capture:r,passive:a},i=Mn(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&fn((()=>{t.removeEventListener(e,i,o)}))}function Un(e,t,n){(t[On]??={})[e]=n}function Vn(e){for(var t=0;t<e.length;t++)Rn.add(e[t]);for(var n of Ln)n(e)}let Nn=null;function zn(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],i=a[0]||e.target;Nn=e;var l=0,s=Nn===e&&e[On];if(s){var c=a.indexOf(s);if(-1!==c&&(t===document||t===window))return void(e[On]=t);var u=a.indexOf(t);if(-1===u)return;c<=u&&(l=c)}if((i=a[l]||e.target)!==t){o(e,"currentTarget",{configurable:!0,get:()=>i||n});var f=Mt,d=Vt;Ut(null),Nt(null);try{for(var h,p=[];null!==i;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var g=i[On]?.[r];null==g||i.disabled&&e.target!==i||g.call(i,e)}catch(m){h?p.push(m):h=m}if(e.cancelBubble||v===t||null===v)break;i=v}if(h){for(let e of p)queueMicrotask((()=>{throw e}));throw h}}finally{e[On]=t,delete e.currentTarget,Ut(f),Nt(d)}}}const jn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Bn(e){var t=Ce("template");return t.innerHTML=function(e){return jn?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Fn(e,t){var n=Vt;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function Hn(e,t){var n,r=0!==(1&t),a=0!==(2&t),o=!e.startsWith("<!>");return()=>{if(ae)return Fn(re,null),re;
1void 0===n&&(n=Bn(o?e:"<!>"+e),r||(n=ke(n)));var t=a||ge?document.importNode(n,!0):n.cloneNode(!0);r?Fn(ke(t),t.lastChild):Fn(t,t);return t}}function Kn(e,t,n="svg"){var r,a=`<${n}>${!e.startsWith("<!>")?e:"<!>"+e}</${n}>`;return()=>{if(ae)return Fn(re,null),re;if(!r){var e=Bn(a);r=ke(ke(e))}var t=r.cloneNode(!0);return Fn(t,t),t}}function qn(e,t){return Kn(e,0,"svg")}function Yn(e=""){if(!ae){var t=we(e+"");return Fn(t,t),t}var n=re;return 3!==n.nodeType?(n.before(n=we()),ie(n)):Ee(n),Fn(n,n),n}function Gn(){if(ae)return Fn(re,null),re;var e=document.createDocumentFragment(),t=document.createComment(""),n=we();return e.append(t,n),Fn(t,n),e}function Wn(e,t){if(ae){var n=Vt;return 0!==(n.f&$)&&null!==n.nodes.end||(n.nodes.end=re),void le()}null!==e&&e.before(t)}function Jn(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const Zn=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Xn(e){return Zn.includes(e)}const Qn={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 er(e){return e=e.toLowerCase(),Qn[e]??e}const tr=["touchstart","touchmove"];function nr(e,t){var n=null==t?"":"object"===typeof t?`${t}`:t;n!==(e[V]??=e.nodeValue)&&(e[V]=n,e.nodeValue=`${n}`)}function rr(e,t){return ir(e,t)}function ar(e,t){ye(),t.intro=t.intro??!1;const n=t.target,r=ae,a=re;try{for(var o=ke(n);o&&(8!==o.nodeType||"["!==o.data);)o=xe(o);if(!o)throw K;oe(!0),ie(o);const i=ir(e,{...t,anchor:o});return oe(!1),i}catch(i){if(i instanceof Error&&i.message.split("\n").some((e=>e.startsWith("https://svelte.dev/e/"))))throw i;return i!==K&&console.warn("Failed to hydrate: ",i),!1===t.recover&&function(){throw new Error("https://svelte.dev/e/hydration_failed")}(),ye(),n.textContent="",oe(!1),rr(e,t)}finally{oe(r),ie(a)}}const or=new Map;function ir(e,{target:t,anchor:n,props:a={},events:o,context:i,intro:l=!0,transformError:s}){ye();var c=void 0,u=function(e){Xe.ensure();const t=cn(524352,e);return(e={})=>new Promise((n=>{e.outro?Sn(t,(()=>{xn(t),n(void 0)})):(xn(t),n(void 0))}))}((()=>{var l=n??t.appendChild(we());!function(e,t,n,r){new lt(e,t,n,r)}(l,{pending:()=>{}},(t=>{if(J({}),i&&(G.c=i),o&&(a.$$events=o),ae&&Fn(t,null),c=e(t,a)||{},ae&&(Vt.nodes.end=re,null===re||8!==re.nodeType||"]"!==re.data))throw ne(),K;Z()}),s);var u=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var a=(l=r,tr.includes(l));for(const e of[t,document]){var o=or.get(e);void 0===o&&(o=new Map,or.set(e,o));var i=o.get(r);void 0===i?(e.addEventListener(r,zn,{passive:a}),o.set(r,1)):o.set(r,i+1)}}}var l};return f(r(Rn)),Ln.add(f),()=>{for(var e of u)for(const n of[t,document]){var r=or.get(n),a=r.get(e);0==--a?(n.removeEventListener(e,zn),r.delete(e),0===r.size&&or.delete(n)):r.set(e,a)}Ln.delete(f),l!==n&&l.parentNode?.removeChild(l)}}));return lr.set(c,u),c}let lr=new WeakMap;class sr{anchor;#Y=new Map;#G=new Map;#W=new Map;#J=new Set;#Z=!0;constructor(e,t=!0){this.anchor=e,this.#Z=t}#$=e=>{if(this.#Y.has(e)){var t=this.#Y.get(e),n=this.#G.get(t);if(n)En(n),this.#J.delete(t);else{var r=this.#W.get(t);r&&(this.#G.set(t,r.effect),this.#W.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#Y){if(this.#Y.delete(t),t===e)break;const r=this.#W.get(n);r&&(xn(r.effect),this.#W.delete(n))}for(const[e,r]of this.#G){if(e===t||this.#J.has(e))continue;const a=()=>{if(Array.from(this.#Y.values()).includes(e)){var t=document.createDocumentFragment();An(r,t),t.append(we()),this.#W.set(e,{effect:r,fragment:t})}else xn(r);this.#J.delete(e),this.#G.delete(e)};this.#Z||!n?(this.#J.add(e),Sn(r,a,!1)):a()}}};#X=e=>{this.#Y.delete(e);const t=Array.from(this.#Y.values());for(const[n,r]of this.#W)t.includes(n)||(xn(r.effect),this.#W.delete(n))};ensure(e,t){var n=Be;!t||this.#G.has(e)||this.#W.has(e)||this.#G.set(e,yn((()=>t(this.anchor))));this.#Y.set(n,e),ae&&(this.anchor=re),this.#$(n)}}function cr(e){null===G&&function(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),dn((()=>{const t=ln(e);if("function"===typeof t)return t}))}function ur(e,t,n=!1){var r;ae&&(r=re,le());var a=new sr(e);function o(e,t){if(ae){var n=fe(r);if(e!==parseInt(n.substring(1))){var o=ue();
1return ie(o),a.anchor=o,oe(!1),a.ensure(e,t),void oe(!0)}}a.ensure(e,t)}mn((()=>{var e=!1;t(((t,n=0)=>{e=!0,o(n,t)})),e||o(-1,null)}),n?C:0)}const fr=Symbol("NaN");function dr(e,t,n=!1,r=!1,a=!1,o=!1){var i=e,l="";if(n){var s=e;ae&&(i=ie(ke(s)))}gn((()=>{var e=Vt;if(l!==(l=t()??"")){if(n&&!ae)return e.nodes=null,s.innerHTML=l,void(""!==l&&Fn(ke(s),s.lastChild));if(null!==e.nodes&&(_n(e.nodes.start,e.nodes.end),e.nodes=null),""!==l){if(ae){re.data;for(var o=le(),c=o;null!==o&&(8!==o.nodeType||""!==o.data);)c=o,o=xe(o);if(null===o)throw ne(),K;return Fn(re,c),void(i=ie(o))}var u=Ce(r?"svg":a?"math":"template",r?"http://www.w3.org/2000/svg":a?"http://www.w3.org/1998/Math/MathML":void 0);u.innerHTML=l;var f=r||a?u:u.content;if(Fn(ke(f),f.lastChild),r||a)for(;ke(f);)i.before(ke(f));else i.before(f)}}else ae&&le()}))}function hr(e,t){var n,r=void 0;bn((()=>{r!==(r=t())&&(n&&(xn(n),n=null),r&&(n=yn((()=>{pn((()=>r(e)))}))))}))}function pr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=pr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vr(e){return"object"===typeof e?function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=pr(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const gr=[..." \t\n\r\f\xa0\v\ufeff"];function mr(e,t=!1){var n=t?" !important;":";",r="";for(var a of Object.keys(e)){var o=e[a];null!=o&&""!==o&&(r+=" "+a+": "+o+n)}return r}function br(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function yr(e,t,n,r,a,o){var i=e[D];if(ae||i!==n||void 0===i){var l=function(e,t,n){var r=null==e?"":""+e;if(n)for(var a of Object.keys(n))if(n[a])r=r?r+" "+a:a;else if(r.length)for(var o=a.length,i=0;(i=r.indexOf(a,i))>=0;){var l=i+o;0!==i&&!gr.includes(r[i-1])||l!==r.length&&!gr.includes(r[l])?i=l:r=(0===i?"":r.substring(0,i))+r.substring(l+1)}return""===r?null:r}(n,0,o);ae&&l===e.getAttribute("class")||(null==l?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e[D]=n}else if(o&&a!==o)for(var s in o){var c=!!o[s];null!=a&&c===!!a[s]||e.classList.toggle(s,c)}return o}function wr(e,t={},n,r){for(var a in n){var o=n[a];t[a]!==o&&(null==n[a]?e.style.removeProperty(a):e.style.setProperty(a,o,r))}}function kr(e,t,n,r){var a=e[U];if(ae||a!==t){var o=function(e,t){if(t){var n,r,a="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,i=0,l=!1,s=[];n&&s.push(...Object.keys(n).map(br)),r&&s.push(...Object.keys(r).map(br));var c=0,u=-1;const t=e.length;for(var f=0;f<t;f++){var d=e[f];if(l?"/"===d&&"*"===e[f-1]&&(l=!1):o?o===d&&(o=!1):"/"===d&&"*"===e[f+1]?l=!0:'"'===d||"'"===d?o=d:"("===d?i++:")"===d&&i--,!l&&!1===o&&0===i)if(":"===d&&-1===u)u=f;else if(";"===d||f===t-1){if(-1!==u){var h=br(e.substring(c,u).trim());s.includes(h)||(";"!==d&&f++,a+=" "+e.substring(c,f).trim()+";")}c=f+1,u=-1}}}return n&&(a+=mr(n)),r&&(a+=mr(r,!0)),""===(a=a.trim())?null:a}return null==e?null:String(e)}(t,r);ae&&o===e.getAttribute("style")||(null==o?e.removeAttribute("style"):e.style.cssText=o),e[U]=t}else r&&(Array.isArray(r)?(wr(e,n?.[0],r[0]),wr(e,n?.[1],r[1],"important")):wr(e,n,r));return r}function xr(t,n,r=!1){if(t.multiple){if(void 0==n)return;if(!e(n))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var a of t.options)a.selected=n.includes(_r(a))}else{for(a of t.options){var o=_r(a);if(i=o,l=n,Object.is(he(i),he(l)))return void(a.selected=!0)}var i,l;r&&void 0===n||(t.selectedIndex=-1)}}function _r(e){return"__value"in e?e.__value:e.value}const $r=Symbol("class"),Sr=Symbol("style"),Cr=Symbol("is custom element"),Er=Symbol("is html"),Tr=j?"link":"LINK",Ar=j?"input":"INPUT",Ir=j?"option":"OPTION",Pr=j?"select":"SELECT",Or=j?"progress":"PROGRESS";function Rr(e){if(ae){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Mr(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var r=e.checked;Mr(e,"checked",null),e.checked=r}}};e[N]=n,ee(n),It()}}function Lr(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Mr(e,t,n,r){var a=Ur(e);ae&&(a[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===Tr)||a[t]!==(a[t]=n)&&("loading"===t&&(e[L]=n),null==n?e.removeAttribute(t):"string"!==typeof n&&Nr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Dr(e,t,n=[],r=[],a=[],o,i=!1,l=!1){st(a,n,r,(n=>{var r=void 0,a={},o=e.nodeName===Pr,s=!1;if(bn((()=>{var c=t(...n.map(rn)),u=function(e,t,n,r,a=!1,o=!1){if(ae&&a&&e.nodeName===Ar){var i=e;("checkbox"===i.type?"defaultChecked":"defaultValue")in n||Rr(i)}var l=Ur(e),s=l[Cr],c=!l[Er];let u=ae&&s;u&&oe(!1);var f=t||{},d=e.nodeName===Ir;
1for(var h in t)h in n||(n[h]=null);n.class?n.class=vr(n.class):n[$r]&&(n.class=null),n[Sr]&&(n.style??=null);var p=Nr(e);for(const w in n){let r=n[w];if(d&&"value"===w&&null==r)e.value=e.__value="",f[w]=r;else if("class"!==w)if("style"!==w){var v=f[w];if(r!==v||void 0===r&&e.hasAttribute(w)){f[w]=r;var g=w[0]+w[1];if("$$"!==g)if("on"===g){const t={},n="$$"+w;let a=w.slice(2);var m=Xn(a);if(Jn(a)&&(a=a.slice(0,-7),t.capture=!0),!m&&v){if(null!=r)continue;e.removeEventListener(a,f[n],t),f[n]=null}if(m)Un(a,e,r),Vn([a]);else if(null!=r){let r=function(e){f[w].call(this,e)};f[n]=Mn(a,e,r,t)}}else if("style"===w)Mr(e,w,r);else if("autofocus"===w)Tt(e,Boolean(r));else if(s||"__value"!==w&&("value"!==w||null==r))if("selected"===w&&d)Lr(e,r);else{var b=w;c||(b=er(b));var y="defaultValue"===b||"defaultChecked"===b;if(null!=r||s||y)y||p.includes(b)&&(s||"string"!==typeof r)?(e[b]=r,b in l&&(l[b]=q)):"function"!==typeof r&&Mr(e,b,r);else if(l[w]=null,"value"===b||"checked"===b){let n=e;const r=void 0===t;if("value"===b){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=!!r&&e}}else e.removeAttribute(w)}else e.value=e.__value=r}}else kr(e,r,t?.[Sr],n[Sr]),f[w]=r,f[Sr]=n[Sr];else yr(e,"http://www.w3.org/1999/xhtml"===e.namespaceURI,r,0,t?.[$r],n[$r]),f[w]=r,f[$r]=n[$r]}return u&&oe(!0),f}(e,r,c,0,i,l);s&&o&&"value"in c&&xr(e,c.value);for(let e of Object.getOwnPropertySymbols(a))c[e]||xn(a[e]);for(let t of Object.getOwnPropertySymbols(c)){var f=c[t];"@attach"!==t.description||r&&f===r[t]||(a[t]&&xn(a[t]),a[t]=yn((()=>hr(e,(()=>f))))),u[t]=f}r=u})),o){var c=e;pn((()=>{xr(c,r.value,!0),function(e){var t=new MutationObserver((()=>{xr(e,e.__value)}));t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),fn((()=>{t.disconnect()}))}(c)}))}s=!0}))}function Ur(e){return e[M]??={[Cr]:e.nodeName.includes("-"),[Er]:e.namespaceURI===Y}}var Vr=new Map;function Nr(e){var t,n=e.getAttribute("is")||e.nodeName,r=Vr.get(n);if(r)return r;Vr.set(n,r=[]);for(var a=e,o=Element.prototype;o!==a;){for(var i in t=l(a))t[i].set&&"innerHTML"!==i&&"textContent"!==i&&"innerText"!==i&&r.push(i);a=u(a)}return r}function zr(e,t,n=t){var r=new WeakSet;!function(e,t,n,r=n){e.addEventListener(t,(()=>Pt(n)));const a=e[N];e[N]=a?()=>{a(),r(!0)}:()=>r(!0),It()}(e,"input",(async a=>{var o=a?e.defaultValue:e.value;if(o=jr(e)?Br(o):o,n(o),null!==Be&&r.add(Be),await nn(),o!==(o=t())){var i=e.selectionStart,l=e.selectionEnd,s=e.value.length;if(e.value=o??"",null!==l){var c=e.value.length;i===l&&l===s&&c>s?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=i,e.selectionEnd=Math.min(l,c))}}})),(ae&&e.defaultValue!==e.value||null==ln(t)&&e.value)&&(n(jr(e)?Br(e.value):e.value),null!==Be&&r.add(Be)),vn((()=>{var n=t();if(e===document.activeElement){var a=Be;if(r.has(a))return}jr(e)&&n===Br(e.value)||("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")}))}function jr(e){var t=e.type;return"number"===t||"range"===t}function Br(e){return""===e?null:+e}function Fr(e,t){return e===t||e?.[O]===t}function Hr(e={},t,n,r){var a=G.r,o=Vt;return pn((()=>{var r,i;return vn((()=>{r=i,i=[],ln((()=>{Fr(n(...i),e)||(t(e,...i),r&&Fr(n(...r),e)&&t(null,...r))}))})),()=>{let r=o;for(;r!==a&&null!==r.parent&&r.parent.f&S;)r=r.parent;const l=r.teardown;r.teardown=()=>{i&&Fr(n(...i),e)&&t(null,...i),l?.()}}})),e}const Kr={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 qr(e,t,n){return new Proxy({props:e,exclude:t},Kr)}function Yr(e,t,n,r){var a,o=r,i=!0,l=()=>(i&&(i=!1,o=r),o);void 0===e[t]&&void 0!==r&&l(),a=()=>{var n=e[t];return void 0===n?l():(i=!0,n)};var s=!1,c=ft((()=>(s=!1,a()))),u=Vt;return function(e,t){if(arguments.length>0){const n=t?rn(c):e;return $t(c,n),s=!0,void 0!==o&&(o=n),e}return Rt&&s||0!==(u.f&_)?c.v:rn(c)}}class Gr{#Q;#ee;constructor(e){var t=new Map,n=(e,n)=>{var r=_t(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>rn(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===R||(rn(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,a)=>($t(t.get(r)??n(r,a),a),Reflect.set(e,r,a))});this.#ee=(e.hydrate?ar:rr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&!1!==e.sync||Qe(),this.#Q=r.$$events;
1for(const a of Object.keys(this.#ee))"$set"!==a&&"$destroy"!==a&&"$on"!==a&&o(this,a,{get(){return this.#ee[a]},set(e){this.#ee[a]=e},enumerable:!0});this.#ee.$set=e=>{Object.assign(r,e)},this.#ee.$destroy=()=>{!function(e,t){const n=lr.get(e);n?(lr.delete(e),n(t)):Promise.resolve()}(this.#ee)}}$set(e){this.#ee.$set(e)}$on(e,t){this.#Q[e]=this.#Q[e]||[];const n=(...e)=>t.call(this,...e);return this.#Q[e].push(n),()=>{this.#Q[e]=this.#Q[e].filter((e=>e!==n))}}$destroy(){this.#ee.$destroy()}}let Wr=class{};function Jr(e,t,n,r){const a=n[e]?.type;if(t="Boolean"===a&&"boolean"!==typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(a){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(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function Zr(e,t,n,r,l,s){let c=class extends Wr{constructor(){super(e,n,l),this.$$p_d=t}static get observedAttributes(){return a(t).map((e=>(t[e].attribute||e).toLowerCase()))}};return a(t).forEach((e=>{o(c.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Jr(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var a=i(r,e)?.get;a?r[e]=n:r.$set({[e]:n})}}})})),r.forEach((e=>{o(c.prototype,e,{get(){return this.$$c?.[e]}})})),e.element=c,c}"function"===typeof HTMLElement&&(Wr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),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 n=Ce("slot");"default"!==e&&(n.name=e),Wn(t,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const e of this.$$s)e in r&&("default"!==e||this.$$d.children?n[e]=t(e):(this.$$d.children=t(e),n.default=!0));for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Jr(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:n,$$host:this}},new Gr(e)),this.$$me=function(e){Xe.ensure();const t=cn(524352,e);return()=>{xn(t)}}((()=>{vn((()=>{this.$$r=!0;for(const e of a(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];const t=Jr(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 n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jr(e,n,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 a(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});var Xr=Hn('<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 Qr(e,t){J(t,!0);let n,r=Yr(t,"loading"),a=qr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var o={get loading(){return r()},set loading(e){r(e),Qe()}},i=Xr(),l=_e(i);Dr(l,(()=>({type:"checkbox",...a})),void 0,void 0,void 0,0,!0),Hr(l,(e=>n=e),(()=>n));var s=Se(l,2);return ce(2),se(i),gn((()=>
1Mr(i,"data-loading",r()))),Un("click",s,(function(){n?.click()})),Wn(e,i),Z(o)}Vn(["click"]),Zr(Qr,{loading:{}},[],[],{mode:"open"});var ea=Hn('<div class="altcha-checkbox-native"><input/> <div class="altcha-spinner altcha-checkbox-native-spinner"></div></div>');function ta(e,t){J(t,!0);let n=Yr(t,"loading"),r=qr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var a={get loading(){return n()},set loading(e){n(e),Qe()}},o=ea();return Dr(_e(o),(()=>({type:"checkbox",...r})),void 0,void 0,void 0,0,!0),ce(2),se(o),gn((()=>Mr(o,"data-loading",n()))),Wn(e,o),Z(a)}Zr(ta,{loading:{}},[],[],{mode:"open"});var na=Hn('<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 ra(e,t){J(t,!0);let n=Yr(t,"strings");var r={get strings(){return n()},set strings(e){n(e),Qe()}},a=na(),o=_e(a);return Mr(o,"href","https://altcha.org"),se(a),gn((()=>Mr(o,"aria-label",n().ariaLinkLabel))),Wn(e,a),Z(r)}Zr(ra,{strings:{}},[],[],{mode:"open"});var aa=Hn('<div class="altcha-footer"><p></p> <!></div>');function oa(e,t){J(t,!0);let n=Yr(t,"logo"),r=Yr(t,"strings");var a={get logo(){return n()},set logo(e){n(e),Qe()},get strings(){return r()},set strings(e){r(e),Qe()}},o=aa(),i=_e(o);dr(i,(()=>r().footer),!0),se(i);var l=Se(i,2),s=e=>{ra(e,{get strings(){return r()}})};return ur(l,(e=>{n()&&e(s)})),se(o),Wn(e,o),Z(a)}Zr(oa,{logo:{},strings:{}},[],[],{mode:"open"});var ia=Hn('<div class="altcha-switch"><input/> <div class="altcha-switch-toggle"><div class="altcha-spinner altcha-switch-spinner"></div></div></div>');function la(e,t){J(t,!0);let n,r=Yr(t,"loading"),a=qr(t,["$$slots","$$events","$$legacy","$$host","loading"]);var o={get loading(){return r()},set loading(e){r(e),Qe()}},i=ia(),l=_e(i);Dr(l,(()=>({type:"checkbox",...a})),void 0,void 0,void 0,0,!0),Hr(l,(e=>n=e),(()=>n));var s=Se(l,2);return se(i),gn((()=>Mr(i,"data-loading",r()))),Un("click",s,(function(){n?.click()})),Wn(e,i),Z(o)}Vn(["click"]),Zr(la,{loading:{}},[],[],{mode:"open"});var sa=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(sa||{}),ca=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(ca||{}),ua=Hn('<div class="altcha-code-challenge-title"> </div>'),fa=Hn('<div class="altcha-spinner"></div>'),da=qn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'),ha=qn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'),pa=qn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'),va=Hn('<button type="button" class="altcha-button altcha-button-secondary"><!></button>'),ga=Hn('<audio hidden="" autoplay=""></audio>'),ma=Hn('<div class="altcha-code-challenge"><form data-code-challenge="true"><!> <div class="altcha-code-challenge-text"> </div> <img class="altcha-code-challenge-image" alt=""/> <div class="altcha-code-challenge-row"><input type="text" class="altcha-input" autocomplete="off" name="" required=""/> <!> <button type="button" class="altcha-button altcha-button-secondary"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <div class="altcha-code-challenge-buttons"><button type="submit" class="altcha-button"> </button> <button type="button" class="altcha-button altcha-button-secondary"> </button></div></form> <!></div>');function ba(e,t){J(t,!0);let n=Yr(t,"audioUrl"),r=Yr(t,"codeChallenge"),a=Yr(t,"config"),o=Yr(t,"imageUrl"),i=Yr(t,"onCancel"),l=Yr(t,"onReload"),s=Yr(t,"onSubmit"),c=Yr(t,"strings"),u=xt(void 0),f=xt(void 0),d=xt(void 0),h=xt(!1),p=xt(""),v=xt(!1);function g(){$t(u,sa.PAUSED,!0)}function m(e){$t(u,sa.ERROR,!0)}function b(){$t(u,sa.READY,!0)}function y(){$t(u,sa.LOADING,!0)}function w(){$t(u,sa.PLAYING,!0)}function k(){$t(u,sa.PAUSED,!0)}function x(){rn(f)?rn(u)===sa.LOADING||(rn(f).paused?(n()&&rn(f).src!==n()&&(rn(f).src=n()),rn(f).currentTime=0,rn(f).play()):rn(f).pause()):($t(v,!0),requestAnimationFrame((()=>{rn(f)&&n()&&(rn(f).src=n(),rn(f).play())})))}cr((()=>(a().disableAutoFocus||nn().then((()=>{rn(d)?.focus()}
1)),()=>{rn(f)&&(rn(f).pause(),$t(f,void 0))})));var _={get audioUrl(){return n()},set audioUrl(e){n(e),Qe()},get codeChallenge(){return r()},set codeChallenge(e){r(e),Qe()},get config(){return a()},set config(e){a(e),Qe()},get imageUrl(){return o()},set imageUrl(e){o(e),Qe()},get onCancel(){return i()},set onCancel(e){i(e),Qe()},get onReload(){return l()},set onReload(e){l(e),Qe()},get onSubmit(){return s()},set onSubmit(e){s(e),Qe()},get strings(){return c()},set strings(e){c(e),Qe()}},$=ma(),S=_e($),C=_e(S),E=e=>{var t=ua(),n=_e(t,!0);se(t),gn((()=>nr(n,c().verificationRequired))),Wn(e,t)};ur(C,(e=>{"standard"!==a().codeChallengeDisplay&&e(E)}));var T=Se(C,2),A=_e(T,!0);se(T);var I=Se(T,2),P=Se(I,2),O=_e(P);Rr(O),O.disabled=rn(h),Hr(O,(e=>$t(d,e)),(()=>rn(d)));var R=Se(O,2),L=e=>{var t=va(),n=_e(t),r=e=>{Wn(e,fa())},a=e=>{Wn(e,da())},o=e=>{Wn(e,ha())},i=e=>{Wn(e,pa())};ur(n,(e=>{rn(u)===sa.LOADING?e(r):rn(u)===sa.ERROR?e(a,1):rn(u)===sa.PLAYING?e(o,2):e(i,-1)})),se(t),gn((()=>{Mr(t,"title",c().getAudioChallenge),t.disabled=rn(u)===sa.LOADING||rn(u)===sa.ERROR,Mr(t,"aria-label",rn(u)===sa.LOADING?c().loading:c().getAudioChallenge)})),Dn("click",t,(()=>x()),!0),Wn(e,t)};ur(R,(e=>{r().audio&&e(L)}));var M=Se(R,2);se(P);var D=Se(P,2),U=_e(D),V=_e(U,!0);se(U);var N=Se(U,2),z=_e(N,!0);se(N),se(D),se(S);var j=Se(S,2),B=e=>{var t=ga();Hr(t,(e=>$t(f,e)),(()=>rn(f))),Dn("error",t,m),Dn("loadstart",t,y),Dn("canplay",t,b),Dn("pause",t,k),Dn("playing",t,w),Dn("ended",t,g),Wn(e,t)};return ur(j,(e=>{rn(v)&&e(B)})),se($),gn((()=>{nr(A,c().enterCodeFromImage),Mr(I,"src",o()),Mr(O,"minlength",r().length||1),Mr(O,"maxlength",r().length),Mr(O,"placeholder",c().enterCode),Mr(O,"aria-label",rn(u)===sa.LOADING?c().loading:rn(u)===sa.PLAYING?"":c().enterCodeAria),Mr(O,"aria-live",rn(u)?"assertive":"polite"),Mr(O,"aria-busy",rn(u)===sa.LOADING),Mr(M,"title",c().reload),Mr(M,"aria-label",c().reload),Mr(U,"aria-label",c().verify),nr(V,c().verify),Mr(N,"aria-label",c().cancel),nr(z,c().cancel)})),Dn("submit",S,(function(e){e.preventDefault(),e.stopPropagation(),s()?.(rn(p))}),!0),Un("keydown",O,(function(e){"Space"===e.code?(e.preventDefault(),e.stopPropagation(),x()):"Escape"===e.code&&(e.preventDefault(),e.stopPropagation(),i()?.())})),zr(O,(()=>rn(p)),(e=>$t(p,e))),Dn("click",M,(()=>l()?.()),!0),Dn("click",N,(()=>i()?.()),!0),Wn(e,$),Z(_)}Vn(["keydown"]),Zr(ba,{audioUrl:{},codeChallenge:{},config:{},imageUrl:{},onCancel:{},onReload:{},onSubmit:{},strings:{}},[],[],{mode:"open"});var ya=Hn('<div class="altcha-popover-backdrop" data-backdrop=""></div>'),wa=Hn('<div class="altcha-popover-arrow"></div>'),ka=Hn('<div role="button" class="altcha-popover-close">×</div>'),xa=Hn('<!> <div><!> <!> <div class="altcha-popover-content"><!></div></div>',1);function _a(e,t){J(t,!0);let n=Yr(t,"anchor"),r=Yr(t,"children"),a=Yr(t,"display",0,"standard"),o=Yr(t,"backdrop",0,!1),i=Yr(t,"onClickOutside"),l=Yr(t,"onClickOutsideDelay",0,600),s=Yr(t,"onClose"),c=Yr(t,"placement",0,"auto"),u=Yr(t,"updateUISignal"),f=Yr(t,"variant",0,"neutral"),h=qr(t,["$$slots","$$events","$$legacy","$$host","anchor","children","display","backdrop","onClickOutside","onClickOutsideDelay","onClose","placement","updateUISignal","variant"]),p=xt(void 0),v=xt(void 0),g=xt(!1),m=xt(0);function b(){s()?.()}function y(){if(n()&&"auto"===c()&&rn(p)){const e=n().getBoundingClientRect(),t=document.documentElement.clientHeight-(e.top+e.height)<rn(p).clientHeight;rn(g)!==t&&$t(g,t)}}dn((()=>{"auto"!==c()&&$t(g,"top"===c())})),dn((()=>{u()&&y()})),cr((()=>{const e="bottomsheet"===a()||"overlay"===a();return e&&(rn(v)&&document.body.append(rn(v)),rn(p)&&document.body.append(rn(p))),y(),nn().then((()=>{$t(m,Date.now(),!0)})),()=>{e&&(rn(v)&&document.body.removeChild(rn(v)),rn(p)&&document.body.removeChild(rn(p)))}}));var w={get anchor(){return n()},set anchor(e){n(e),Qe()},get children(){return r()},set children(e){r(e),Qe()},get display(){return a()},set display(e="standard"){a(e),Qe()},get backdrop(){return o()},set backdrop(e=!1){o(e),Qe()},get onClickOutside(){return i()},set onClickOutside(e){i(e),Qe()},get onClickOutsideDelay(){return l()},set onClickOutsideDelay(e=600){l(e),Qe()},get onClose(){return s()},set onClose(e){s(e),Qe()},get placement(){return c()},set placement(e="auto"){c(e),Qe()},get updateUISignal(){return u()},set updateUISignal(e){u(e),Qe()},get variant(){return f()},set variant(e="neutral"){f(e),Qe()}},k=xa();Dn("click",pe,(function(e){const t=e.target;
1rn(p)?.contains(t)||l()&&!(rn(m)+l()<Date.now())||i()?.()}),!0),Dn("resize",pe,(function(){y()})),Dn("scroll",pe,(function(){y()}));var x=$e(k),_=e=>{var t=ya();Hr(t,(e=>$t(v,e)),(()=>rn(v))),Wn(e,t)};ur(x,(e=>{o()&&e(_)}));var $=Se(x,2);Dr($,(()=>({...h,class:`altcha-popover ${(t.class||"")??""}`,"data-popover":!0,"data-variant":f(),"data-top":rn(g),"data-display":a()})));var S=_e($),E=e=>{Wn(e,wa())};ur(S,(e=>{"standard"===a()&&e(E)}));var T=Se(S,2),A=e=>{var t=ka();Dn("click",t,b,!0),Wn(e,t)};ur(T,(e=>{"standard"!==a()&&e(A)}));var I=Se(T,2);return function(e,t,...n){var r=new sr(e);mn((()=>{const e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))}),C)}(_e(I),(()=>r()??d)),se(I),se($),Hr($,(e=>$t(p,e)),(()=>rn(p))),Wn(e,k),Z(w)}async function $a(e){const{challenge:t,concurrency:n=navigator.hardwareConcurrency,controller:r=new AbortController,createWorker:a,onOutOfMemory:o=(e=>e>1?Math.floor(e/2):0),counterMode:i,timeout:l=9e4}=e,s=Math.min(16,Math.max(1,n)),c=[],u=()=>{for(const e of c)e.terminate()};for(let h=0;h<s;h++)c.push(await a(t.parameters.algorithm));let f=null;try{f=await Promise.race(c.map(((e,n)=>(r.signal.addEventListener("abort",(()=>{e.postMessage({type:"abort"})})),new Promise(((r,a)=>{e.addEventListener("error",(e=>{a(e)})),e.addEventListener("message",(t=>{if(t.data){for(const t of c)t!==e&&t.postMessage({type:"abort"});if(t.data.error)return a(new Error(t.data.error))}r(t.data)})),e.postMessage({challenge:t,counterMode:i,counterStart:n,counterStep:s,timeout:l,type:"work"})}))))))}catch(d){if(d instanceof Error&&!!d?.message?.includes("Out of memory")&&o){u();const n=o(s);if(n)return $a({...e,challenge:t,controller:r,concurrency:n,createWorker:a})}throw d}finally{u()}return r.signal.aborted?null:f||null}Zr(_a,{anchor:{},children:{},display:{},backdrop:{},onClickOutside:{},onClickOutsideDelay:{},onClose:{},placement:{},updateUISignal:{},variant:{}},[],[],{mode:"open"});class Sa{TAG_CODES={INPUT:1,TEXTAREA:2,SELECT:3,BUTTON:4,A:5,DETAILS:6,SUMMARY:7,IFRAME:8,VIDEO:9,AUDIO:10};maxSamples;sampleInterval;target;focusStartTime=0;focusInteraction=0;focusInteractionTimer=null;lastPointerSample=0;lastTouchSample=0;lastScrollSample=0;pendingPointer=null;pendingTouch=null;focus=[];pointer=[];scroll=[];touch=[];constructor(e={}){const{maxSamples:t=60,sampleInterval:n=50,target:r=window}=e;this.maxSamples=t,this.sampleInterval=n,this.target=r,this.attach()}destroy(){const e={capture:!0};this.target.removeEventListener("focusin",this.onFocus,e),this.target.removeEventListener("keydown",this.onInteraction,e),this.target.removeEventListener("pointerdown",this.onInteraction,e),this.target.removeEventListener("pointermove",this.onPointer,e),this.target.removeEventListener("scroll",this.onScroll,e),this.target.removeEventListener("touchmove",this.onTouchMove,e)}export(){return{focus:this.focus,maxTouchPoints:navigator.maxTouchPoints||0,pointer:this.pointer,scroll:this.scroll,time:Date.now(),touch:this.touch}}attach(){const e={passive:!0,capture:!0};this.target.addEventListener("focusin",this.onFocus,e),this.target.addEventListener("keydown",this.onInteraction,e),this.target.addEventListener("pointerdown",this.onInteraction,e),this.target.addEventListener("pointermove",this.onPointer,e),this.target.addEventListener("scroll",this.onScroll,e),this.target.addEventListener("touchmove",this.onTouchMove,e)}evict(e){e.length>this.maxSamples&&e.splice(0,e.length-this.maxSamples)}onFocus=e=>{if(2===this.focusInteraction)return;const t=e.target;if(!(t instanceof Element))return;const n=performance.now();0===this.focusStartTime&&(this.focusStartTime=n),this.focus.push([Math.round(n-this.focusStartTime),t.tabIndex,this.TAG_CODES[t.tagName]??0,this.focusInteraction?1:0]),this.evict(this.focus)};onInteraction=e=>{this.focusInteraction="keyCode"in e?1:2,this.focusInteractionTimer&&clearTimeout(this.focusInteractionTimer),this.focusInteractionTimer=setTimeout((()=>{this.focusInteraction=0}),100)};onPointer=e=>{if("touch"===e.pointerType)return;const t=e.timeStamp||performance.now();this.pendingPointer=[Math.round(e.clientX),Math.round(e.clientY),Math.round(t)],t-this.lastPointerSample>=this.sampleInterval&&(this.pointer.push(this.pendingPointer),this.lastPointerSample=t,this.pendingPointer=null,this.evict(this.pointer))};onScroll=()=>{const e=performance.now();e-this.lastScrollSample<this.sampleInterval||(this.scroll.push([Math.round(window.scrollY),Math.round(e)]),this.lastScrollSample=e,this.evict(this.scroll))};onTouchMove=e=>{const t=e.timeStamp||performance.now(),n=e.touches[0];n&&(this.pendingTouch=[Math.round(n.clientX),Math.round(n.clientY),Math.round(t),Math.round(1e3*n.force)/1e3,Math.round(n.radiusX||0),Math.round(n.radiusY||0)],t-this.lastTouchSample>=this.sampleInterval&&(this.touch.push(this.pendingTouch),this.lastTouchSample=t,this.pendingTouch=null,this.evict(this.touch)))}}var Ca=Hn('<div class="altcha-overlay-backdrop" data-backdrop=""></div>'),Ea=Hn('<div class="altcha-overlay-content"></div>'),Ta=Hn('<div role="button" class="altcha-overlay-close">×</div> <!>',1),Aa=Hn('<div class="altcha-floating-arrow"></div>'),Ia=Hn('<input type="hidden"/>'),Pa=Hn('<div class="altcha-error">Secure context (HTTPS) required.</div>'),Oa=Hn('<div class="altcha-error"> </div>'),Ra=Hn('<div class="altcha-error"> </div>'),La=Hn("<!> <!>",1),Ma=Hn('<!> <div class="altcha"><!> <div class="altcha-main"><div><div class="altcha-checkbox-wrap"><!> <label><!></label></div> <!></div> <!> <!> <!></div> <!></div>',1);"undefined"!==typeof window&&window.customElements&&!customElements.get("altcha-widget")&&customElements.define("altcha-widget",Zr((function(e,t){J(t,!0);const[n,r]=function(){const e={};return[e,function(){fn((()=>{for(var t in e)e[t].unsubscribe();o(e,Ve,{enumerable:!1,value:!0})}
1))}]}(),a=["ar","fa","he","ur"],{isSecureContext:i}=globalThis,{store:l}=globalThis.$altcha.defaults,s=navigator.hardwareConcurrency||2,c=navigator.deviceMemory||0,u=c&&c<=4?Math.min(4,s):s,f=globalThis.$altcha.i18n.store,d=t.$$host,h=(e,t)=>{nn().then((()=>{d?.dispatchEvent(new CustomEvent(e,{detail:t}))}))};let p=null,v=xt(de(new URL(location.origin))),g=xt(!1),m=xt(null),b=xt(null),y=xt(null),w=xt(de(ca.UNVERIFIED)),k=xt(void 0),x=xt(void 0),_=xt(null),$=xt(void 0),S=xt(null),E=xt(null),T=xt(null),A=xt(null),I=xt(de([])),P=xt(0),O=xt(de({})),R=xt(!0);const L=pt((()=>({fetch:(e,t)=>fetch(e,t),audioChallengeLanguage:"",auto:"off",barPlacement:"bottom",challenge:"",codeChallenge:null,codeChallengeDisplay:"standard",credentials:null,debug:!1,disableAutoFocus:!1,display:"standard",floatingAnchor:"",floatingOffset:8,floatingPersist:!1,floatingPlacement:"auto",hideFooter:!1,hideLogo:!1,humanInteractionSignature:!0,language:"",mockError:!1,minDuration:500,overlayContent:"",name:"altcha",popoverPlacement:"auto",retryOnOutOfMemoryError:!0,setCookie:null,serverVerificationFields:!1,serverVerificationTimeZone:!1,test:!1,timeout:9e4,type:"checkbox",validationMessage:"",verifyFunction:null,verifyUrl:"",workers:u,...Ne(l,"$altchaDefaults",n),...rn(O)}))),M=pt((()=>`altcha-checkbox-${t.id||Math.floor(1e12*Math.random()).toString(16)}`)),D=pt((()=>function(e){switch(e){case"checkbox":return Qr;case"switch":return la;default:return ta}}(rn(L).type))),U=pt((()=>rn(L).auto)),V=pt((()=>rn(w)===ca.VERIFYING)),N=pt((()=>!rn(L).hideFooter)),z=pt((()=>!rn(L).hideLogo&&"bar"!==rn(L).display)),j=pt((()=>function(e,t){const n=Object.keys(e).map((e=>e.toLowerCase()));let r=t.reduce(((t,r)=>(r=r.toLowerCase(),t||(e[r]?r:null)||n.find((e=>r.split("-")[0]===e.split("-")[0]))||null)),null);e[r||""]||(r="en");return{language:r,strings:e[r]}}(Ne(f,"$altchaI18nStore",n),[rn(L).language,document.documentElement.lang,...navigator.languages]))),B=pt((()=>a.includes(rn(j).language)?"rtl":void 0)),F=pt((()=>({...rn(j).strings}))),H=pt((()=>rn(m)?.audio?.match(/^(https?:)?\//)?Q(rn(m).audio,rn(v),{language:rn(L).audioChallengeLanguage||rn(j).language}).toString():rn(m)?.audio)),K=pt((()=>rn(m)?.image?.match(/^(https?:)?\//)?Q(rn(m).image,rn(v)):rn(m)?.image));async function q(e,...t){let n;for(const r of rn(I))n=await r[e].call(r,...t);return n}async function Y(e){await new Promise((t=>setTimeout(t,e)))}async function G(e=rn(L).challenge,t){const n=await q("onFetchChallenge",e);let r=null;if(void 0!==n)return n;if("string"===typeof e)if(e.startsWith("{")){Ce("parsing JSON challenge");try{r=JSON.parse(e)}catch{throw new Error("Unable to parse JSON challenge.")}}else{Ce("fetching challenge from",t?.method||"GET",e),$t(v,new URL(e,location.origin),!0);const n=await rn(L).fetch(e,{credentials:rn(L).credentials||void 0,...t});await ye(n);const a=n.headers.get("x-altcha-config");a&&function(e){try{const t=JSON.parse(e);t&&"object"===typeof t&&ke({serverVerificationFields:t?.sentinel?.fields,serverVerificationTimeZone:t?.sentinel?.timeZone,verifyUrl:t.verifyurl,...t})}catch(t){Ce("unable to configure from x-altcha-config header",t)}}(a);const o=await n.json();if(o&&"his"in o&&o.his){if(Ce("requested HIS"),!p)throw new Error("Server requested HIS data but collector is disabled.");return G(Q(o.his.url,rn(v)),{body:JSON.stringify({his:p.export()}),headers:{"content-type":"application/json"},method:"POST"})}o&&"hisResult"in o&&o.hisResult&&Ce("HIS result",o.hisResult),r=o}else if(e&&"object"===typeof e)try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("Unable to parse JSON challenge.")}if(function(e){return"object"===typeof e&&"challenge"in e}(r)&&(r=function(e){const[t,n]=e.salt.split("?"),r={};if(n)try{Object.assign(r,Object.fromEntries(new URLSearchParams(n).entries()))}catch{}const a={codeChallenge:e.codeChallenge,parameters:{algorithm:e.algorithm,cost:1,data:r,expiresAt:r?.expires?parseInt(r.expires,10):void 0,keyLength:"SHA-512"===e.algorithm?64:"SHA-384"===e.algorithm?48:32,nonce:(o=(new TextEncoder).encode(e.salt),Array.from(new Uint8Array(o)).map((e=>e.toString(16).padStart(2,"0"))).join("")),keyPrefix:e.challenge,salt:""},signature:e.signature};var o;return Object.defineProperties(a,{_originalSalt:{enumerable:!1,value:e.salt,writable:!1},_version:{enumerable:!1,value:1,writable:!1}}),a}(r)),!function(e){return!!e&&"object"===typeof e&&"parameters"in e&&!!e.parameters&&"object"===typeof e.parameters&&"algorithm"in e.parameters&&"nonce"in e.parameters&&"salt"in e.parameters&&"keyPrefix"in e.parameters}(r))throw new Error("Challenge validation failed.");return r}function W(){return document.getElementById(rn(M))}function X(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}
1function Q(e,t,n){const r=new URL(e,t);if(r.search||(r.search=t.search),n)for(const a in n)void 0!==n[a]&&null!==n[a]&&r.searchParams.set(a,n[a]);return r.toString()}function ee(e){!rn(g)&&e.currentTarget.checked?(e.preventDefault(),e.currentTarget.checked=!1,rn(w)!==ca.VERIFYING&&Pe()):e.currentTarget.checked||(e.preventDefault(),Ee())}function te(e){rn(w)===ca.VERIFYING?e.currentTarget.setCustomValidity(rn(F).waitAlert):rn(L).validationMessage&&e.currentTarget.setCustomValidity(rn(L).validationMessage)}function ne(){be(rn(L).display),Ee()}function ce(e){"onfocus"===rn(U)&&rn(w)===ca.UNVERIFIED&&Pe()}function he(){be(rn(L).display),Ee()}function ge(e){"true"!==e.target?.getAttribute("data-code-challenge")&&"onsubmit"===rn(U)&&rn(w)===ca.UNVERIFIED&&(e.preventDefault(),e.stopPropagation(),$t(S,e.submitter,!0),Ae(),Pe().then((e=>{e&&!rn(m)&&nn().then((()=>{me(rn(S))}))})))}function me(e){rn(_)&&"requestSubmit"in rn(_)?rn(_).requestSubmit(e):rn(_)?.reportValidity()&&(e?e.click():rn(_).submit())}function be(e){switch(e){case"bar":case"floating":case"overlay":xe(),rn(U)&&"off"!==rn(U)||(rn(O).auto="onsubmit");break;case"standard":Ae()}rn(y)!==e&&$t(y,e,!0)}async function ye(e){if(e.status>=400){if(e.headers.get("content-type")?.includes("/json")){let t;try{t=await e.json()}catch{}if(t&&"error"in t)throw new Error(`Server responded with ${e.status} - ${t.error}`)}throw new Error(`Server responded with ${e.status}.`)}const t=e.headers.get("content-type");if(!t||!t.includes("/json"))throw new Error(`Server responded with invalid content-type. Expected application/json, received ${t}.`)}async function we(e){if(!rn(A))return void Te(ca.ERROR,"Cannot verify code challenge without PoW payload.");Te(ca.VERIFYING);let t=null;if(rn(L).verifyUrl)t=await async function(e,t){const n=await q("onRequestServerVerification",e,t);if(void 0!==n)return n;if(Ce("requesting server verification from",rn(L).verifyUrl),!rn(L).verifyUrl)throw new Error("Parameter verifyUrl must be set for server verification.");const r=await rn(L).fetch(Q(rn(L).verifyUrl,rn(v)),{body:JSON.stringify({code:t,fields:rn(L).serverVerificationFields?[...rn(_)?.querySelectorAll('input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce(((e,t)=>{const n=t.name,r=t.value;return n&&r&&(e[n]=/\n/.test(r)?r.replace(new RegExp("(?<!\\r)\\n","g"),"\r\n"):r),e}),{}):void 0,payload:e,timeZone:rn(L).serverVerificationTimeZone?X():void 0}),credentials:rn(L).credentials||void 0,headers:{"Content-Type":"application/json"},method:"POST"});await ye(r);const a=await r.json();return a&&"object"===typeof a&&"payload"in a&&a.payload&&h("serververification",a),a}(rn(A),e);else{if(!rn(L).verifyFunction)return void Te(ca.ERROR,"Parameter verifyUrl is required for code challenge verification.");t=await rn(L).verifyFunction(rn(A),e)}t?.payload&&($t(A,t.payload,!0),Ce("server payload",rn(A))),!0===t?.verified?(Ce("verified"),Te(ca.VERIFIED),h("verified",{payload:rn(A)}),"onsubmit"===rn(U)&&nn().then((()=>{me(rn(S))}))):Te(ca.ERROR,t?.reason||"Verification failed."),rn(L).disableAutoFocus||W()?.focus()}function ke(e){Object.assign(rn(O),{...Object.fromEntries(Object.entries(e).filter((([e,t])=>void 0!==t)))})}function xe(){$t(R,!1)}function Ce(...e){(rn(L).debug||e.some((e=>e instanceof Error)))&&console[e[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${rn(L).name}]`,...e)}function Ee(e=ca.UNVERIFIED,t=null){$t(g,!1),$t(E,t,!0),$t(A,null),rn(b)&&rn(b).abort(),rn(T)&&(clearTimeout(rn(T)),$t(T,null)),Te(e)}function Te(e,t=null){$t(w,e,!0),$t(E,t,!0),h("statechange",{payload:rn(A),state:rn(w)})}function Ae(){$t(R,!0),nn().then((()=>{Ie()}))}function Ie(){if("floating"===rn(L).display)return function(e=20){if(!rn($))return;const t=rn(L).floatingPlacement;if(!rn(x)&&($t(x,(rn(L).floatingAnchor instanceof HTMLElement?rn(L).floatingAnchor:rn(L).floatingAnchor?document.querySelector(rn(L).floatingAnchor):rn(_)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||rn(_),!0),!rn(x)))return void Ce("unable to find floating anchor element");const n=parseInt(rn(L).floatingOffset,10)||12,r=rn(x).getBoundingClientRect(),a=rn($).getBoundingClientRect(),o=document.documentElement.clientHeight,i=document.documentElement.clientWidth,l=t&&"auto"!==t?"top"===t:r.bottom+a.height+n+e>
1o,s=Math.max(e,Math.min(i-e-a.width,r.left+r.width/2-a.width/2));if(rn($).style.setProperty("--altcha-floating-left",`${s}px`),rn($).style.setProperty("--altcha-floating-top",l?r.top-(a.height+n)+"px":`${r.bottom+n}px`),rn($).setAttribute("data-floating-position",l?"top":"bottom"),rn(k)){const e=rn(k).getBoundingClientRect();rn(k).style.left=r.left-s+r.width/2-e.width/2+"px"}}();$t(P,rn(P)+1)}async function Pe(e={}){const{concurrency:t=Math.max(1,rn(L).workers),controller:n=new AbortController,minDuration:r=rn(L).minDuration}=e,a=performance.now();let o=null,l=null,s=!1;const c=await q("onVerify",e);if(void 0!==c)return c;Ee(ca.VERIFYING),$t(b,n,!0);try{if(!i)throw new Error("Secure context (HTTPS) required.");if(rn(L).mockError)throw new Error("Mock error.");if(rn(L).test)return Ce("running test mode with null challenge"),await Y(Math.max(0,r-(performance.now()-a))),rn(b)?.signal.aborted?(Ee(),null):($t(A,btoa(JSON.stringify({challenge:null,solution:null,test:!0})),!0),Ce("verified"),Te(ca.VERIFIED),h("verified",{payload:rn(A)}),{payload:rn(A)});if(o=await G(),!o)throw new Error("Failed to fetch challenge.");Ce("challenge",o),"configuration"in o&&(Ce("re-configuring from challenge",o.configuration),ke(o.configuration)),o.parameters.expiresAt&&function(e){rn(T)&&clearTimeout(rn(T));const t=()=>{rn(w)!==ca.UNVERIFIED?($t(g,!1),Te(ca.EXPIRED)):Ee(),h("expired")},n=1e3*e-Date.now();n>=1?$t(T,setTimeout(t,n),!0):t()}(o.parameters.expiresAt),s="_version"in o&&1===o._version;const e=globalThis.$altcha.algorithms.get(o.parameters.algorithm);if(!e)throw new Error(`Unsupported algorithm ${o.parameters.algorithm}.`);if(l=await $a({challenge:o,concurrency:t,controller:n,createWorker:e,counterMode:s?"string":"uint32",onOutOfMemory:e=>{if(Ce("out of memory error received"),h("outofmemory"),rn(L).retryOnOutOfMemoryError&&e>1){const t=Math.floor(e/2);return Ce(`retrying with ${t} workers...`),t}},timeout:rn(L).timeout}),rn(b)?.signal.aborted)return Ee(),null;if(!l)throw new Error("Failed to find solution.");Ce("solution",l),await Y(Math.max(0,r-(performance.now()-a))),$t(m,o.codeChallenge||rn(L).codeChallenge||null,!0),$t(A,s?btoa(JSON.stringify(function(e,t){return{algorithm:e.parameters.algorithm,challenge:e.parameters.keyPrefix,number:t.counter,salt:"_originalSalt"in e?e._originalSalt:e.parameters.nonce,signature:e.signature,took:t.time||0}}(o,l))):btoa(JSON.stringify({challenge:{parameters:o.parameters,signature:o.signature},solution:l})),!0),rn(m)?(Ce("requesting code verification"),Te(ca.CODE),h("codechallenge",{codeChallenge:rn(m)})):rn(L).verifyUrl?await we():(Ce("verified"),Te(ca.VERIFIED),h("verified",{payload:rn(A)}))}catch(u){return Ce("verification failed",u),Te(ca.ERROR,String(u)),null}finally{$t(b,null)}return{challenge:o,payload:rn(A),solution:l}}dn((()=>{ke({auto:t.auto,challenge:t.challenge,display:t.display,language:t.language,name:t.name,type:t.type,workers:t.workers})})),dn((()=>{if(t.configuration)try{ke(JSON.parse(t.configuration))}catch{Ce("unable to parse the `configuration` attribute (JSON expected)")}})),dn((()=>{rn(y)!==rn(L).display&&be(rn(L).display)})),dn((()=>{rn(g)&&rn(w)===ca.VERIFYING&&$t(g,!1)})),dn((()=>{rn(g)||rn(w)!==ca.VERIFIED||$t(g,!0)})),dn((()=>{if(!rn(g)){const e=W();e&&e.checked&&(e.checked=!1)}})),dn((()=>{rn(w)===ca.VERIFIED&&W()?.setCustomValidity("")})),dn((()=>{if("onload"===rn(U)){const e=setTimeout((()=>{Pe()}),1);return()=>{e&&clearTimeout(e)}}})),dn((()=>{rn(E)&&Ce("error:",rn(E))})),dn((()=>{rn(A)&&rn(L).setCookie&&function(e,t={}){const{domain:n,name:r=rn(L).name,maxAge:a,path:o,sameSite:i,secure:l}=t;let s=`${encodeURIComponent(r)}=${encodeURIComponent(e)}`;n&&(s+=`; Domain=${n}`);null!=a&&(s+=`; Max-Age=${a}`);o&&(s+=`; Path=${o}`);i&&(s+=`; SameSite=${i}`);l&&(s+="; Secure");document.cookie=s}(rn(A),rn(L).setCookie)})),cr((()=>(Ce("mounted","3.0.11"),d&&globalThis.$altcha.instances.add(d),$t(_,rn($)?.closest("form"),!0),rn(_)?.addEventListener("reset",he),rn(_)?.addEventListener("submit",ge,{capture:!0}),rn(_)?.addEventListener("focusin",ce),function(){$t(I,[...globalThis.$altcha.plugins].map((e=>new e(d))),!0),Ce("activating plugins",rn(I).map((e=>e.constructor.name)));for(const e of rn(I))e.activate()}(),rn(L).humanInteractionSignature&&(Ce("human interaction signature enabled"),p=new Sa),h("load"),i||Ce("secure context (HTTPS) required"),()=>{!function(){for(const e of rn(I))e.destroy()}
1(),d&&globalThis.$altcha.instances.delete(d),rn(T)&&clearTimeout(rn(T)),rn(_)?.removeEventListener("reset",he),rn(_)?.removeEventListener("submit",ge,{capture:!0}),rn(_)?.removeEventListener("focusin",ce),p?.destroy()})));var Oe={configure:ke,getConfiguration:function(){return{...rn(L)}},getState:function(){return rn(w)},hide:xe,log:Ce,reset:Ee,setState:Te,show:Ae,updateUI:Ie,verify:Pe},Re=Ma();Dn("scroll",ve,(function(){Ie()})),Dn("click",ve,(function(e){const t=e.target;"floating"!==rn(L).display||!t||d?.contains(t)||t.hasAttribute("data-backdrop")||t.closest("[data-popover]")||rn(w)===ca.VERIFIED||rn(L).floatingPersist||xe()})),Dn("pageshow",pe,(function(e){e.persisted&&(be(rn(L).display),Ee())})),Dn("resize",pe,(function(){Ie()}));var Le=$e(Re),Me=e=>{Wn(e,Ca())};ur(Le,(e=>{"overlay"===rn(L).display&&rn(R)&&e(Me)}));var De=Se(Le,2),Ue=_e(De),ze=e=>{var t=Ta(),n=$e(t),r=Se(n,2),a=e=>{var t=Ea();dr(t,(()=>document.querySelector(rn(L).overlayContent)?.innerHTML),!0),se(t),Wn(e,t)};ur(r,(e=>{rn(L).overlayContent&&e(a)})),Dn("click",n,ne,!0),Wn(e,t)};ur(Ue,(e=>{"overlay"===rn(L).display&&rn(R)&&e(ze)}));var je=Se(Ue,2),Be=_e(je),Fe=_e(Be),He=_e(Fe);{let e=pt((()=>"standard"===rn(L).display&&"onsubmit"!==rn(U)||rn(w)===ca.VERIFYING));!function(e,t,n){var r;ae&&(r=re,le());var a=new sr(e);mn((()=>{var e=t()??null;if(ae&&"["===fe(r)!==(null!==e)){var o=ue();return ie(o),a.anchor=o,oe(!1),a.ensure(e,e&&(t=>n(t,e))),void oe(!0)}a.ensure(e,e&&(t=>n(t,e)))}),C)}(He,(()=>rn(D)),((t,n)=>{n(t,{get id(){return rn(M)},name:"",get required(){return rn(e)},get loading(){return rn(V)},get checked(){return rn(g)},onchange:ee,oninvalid:te})}))}var Ke=Se(He,2),qe=_e(Ke),Ye=e=>{var t=Yn();gn((()=>nr(t,rn(F).verificationRequired))),Wn(e,t)},Ge=e=>{var t=Yn();gn((()=>nr(t,rn(F).verifying))),Wn(e,t)},We=e=>{var t=Yn();gn((()=>nr(t,rn(F).verified))),Wn(e,t)},Je=e=>{var t=Yn();gn((()=>nr(t,rn(F).label))),Wn(e,t)};ur(qe,(e=>{rn(w)===ca.CODE&&rn(m)?e(Ye):rn(w)===ca.VERIFYING?e(Ge,1):rn(w)===ca.VERIFIED?e(We,2):e(Je,-1)})),se(Ke),se(Fe);var Ze=Se(Fe,2),Xe=e=>{ra(e,{get strings(){return rn(F)}})};ur(Ze,(e=>{rn(z)&&e(Xe)})),se(Be);var Qe=Se(Be,2),et=e=>{{let t=pt((()=>"bar"===rn(L).display&&rn(z)));oa(e,{get logo(){return rn(t)},get strings(){return rn(F)}})}};ur(Qe,(e=>{rn(N)&&e(et)}));var tt=Se(Qe,2),nt=e=>{var t=Aa();Hr(t,(e=>$t(k,e)),(()=>rn(k))),Wn(e,t)};ur(tt,(e=>{"floating"===rn(L).display&&e(nt)}));var rt=Se(tt,2),at=e=>{var t=Ia();Rr(t),gn((()=>{Mr(t,"name",rn(L).name),function(e,t){var n=Ur(e);n.value!==(n.value=t??void 0)&&(e.value!==t||0===t&&e.nodeName===Or)&&(e.value=t??"")}(t,rn(A))})),Wn(e,t)};ur(rt,(e=>{rn(L).setCookie||e(at)})),se(je);var ot=Se(je,2),it=e=>{_a(e,{get anchor(){return rn($)},onClickOutside:()=>{i&&Ee()},get placement(){return rn(L).popoverPlacement},role:"alert",variant:"error",get dir(){return rn(B)},get updateUISignal(){return rn(P)},children:(e,t)=>{var n=Gn(),r=$e(n),a=e=>{Wn(e,Pa())},o=e=>{var t=Oa(),n=_e(t,!0);se(t),gn((()=>nr(n,rn(F).expired))),Wn(e,t)},l=e=>{var t=Ra(),n=_e(t,!0);se(t),gn((()=>{Mr(t,"title",rn(E)),nr(n,rn(F).error)})),Wn(e,t)};ur(r,(e=>{rn(E)||i?rn(E)||rn(w)!==ca.EXPIRED?e(l,-1):e(o,1):e(a)})),Wn(e,n)},$$slots:{default:!0}})},lt=e=>{var t=Gn();!function(e,t,n){ae&&le();var r=new sr(e);mn((()=>{var e=t();e!==e&&(e=fr),r.ensure(e,n)}))}($e(t),(()=>rn(m)),(e=>{{let t=pt((()=>"standard"!==rn(L).codeChallengeDisplay));_a(e,{get anchor(){return rn($)},get backdrop(){return rn(t)},get display(){return rn(L).codeChallengeDisplay},onClose:()=>{Ee()},get placement(){return rn(L).popoverPlacement},role:"dialog",get"aria-label"(){return rn(F).verificationRequired},get dir(){return rn(B)},get updateUISignal(){return rn(P)},children:(e,t)=>{var n=La(),r=$e(n);ba(r,{get audioUrl(){return rn(H)},get imageUrl(){return rn(K)},onCancel:()=>Ee(),onReload:()=>Pe(),onSubmit:e=>we(e),get codeChallenge(){return rn(m)},get config(){return rn(L)},get strings(){return rn(F)}});var a=Se(r,2),o=e=>{oa(e,{get logo(){return rn(z)},get strings(){return rn(F)}})};ur(a,(e=>{rn(N)&&"standard"!==rn(L).codeChallengeDisplay&&e(o)})),Wn(e,n)},$$slots:{default:!0}})}})),Wn(e,t)};ur(ot,(e=>{rn(E)||rn(w)===ca.EXPIRED||!i?e(it):rn(m)&&rn(w)===ca.CODE&&e(lt,1)})),se(De),Hr(De,(e=>$t($,e)),(()=>rn($))),gn((e=>{Mr(De,"data-state",rn(w)),Mr(De,"data-display",rn(L).display||void 0),Mr(De,"data-placement",e),Mr(De,"data-visible",rn(R)||void 0),Mr(De,"dir",rn(B)),Mr(Ke,"for",rn(M)),De.dir=De.dir}),[()=>function(e){switch(e){case"bar":return rn(L).barPlacement||"bottom";case"floating":return rn(L).floatingPlacement||"auto";default:return}}(rn(L).display)]),Wn(e,Re);var st=Z(Oe);return r(),st}),{auto:{type:"String"},challenge:{type:"String"},configuration:{type:"String"},display:{type:"String"},language:{type:"String"},name:{type:"String"},theme:{type:"String"},type:{type:"String"},workers:{type:"Number"}},[],["configure","getConfiguration","getState","hide","log","reset","setState","show","updateUI","verify"]));
1const Da='(function() {\n "use strict";\n function bufferStartsWith(buffer, prefix) {\n if (prefix.length > buffer.length) {\n return false;\n }\n for (let i = 0; i < prefix.length; i++) {\n if (buffer[i] !== prefix[i]) {\n return false;\n }\n }\n return true;\n }\n function bufferToHex(buffer) {\n return Array.from(new Uint8Array(buffer)).map((b) => b.toString(16).padStart(2, "0")).join("");\n }\n function concatBuffers(a, b) {\n const out = new Uint8Array(a.length + b.length);\n out.set(a, 0);\n out.set(b, a.length);\n return out;\n }\n function hexToBuffer(hex) {\n if (hex.length % 2 !== 0) {\n throw new Error(`Hex string must have an even length. Got: ${hex}`);\n }\n const buffer = new ArrayBuffer(hex.length / 2);\n const view = new DataView(buffer);\n for (let i = 0; i < hex.length; i += 2) {\n const byteString = hex.substring(i, i + 2);\n const byteValue = parseInt(byteString, 16);\n view.setUint8(i / 2, byteValue);\n }\n return new Uint8Array(buffer);\n }\n async function delay(ms) {\n await new Promise((resolve) => setTimeout(resolve, ms));\n }\n function timeDuration(start) {\n return Math.floor((performance.now() - start) * 10) / 10;\n }\n class PasswordBuffer {\n constructor(nonce, mode = "uint32") {\n this.nonce = nonce;\n this.mode = mode;\n this.buffer = new Uint8Array(this.nonce.length + this.COUNTER_BYTES);\n this.buffer.set(this.nonce, 0);\n this.dataView = new DataView(this.buffer.buffer);\n }\n COUNTER_BYTES = 4;\n buffer;\n dataView;\n encoder = new TextEncoder();\n /**\n * Appends the counter to the nonce buffer.\n * In \'string\' mode, encodes the counter as a UTF-8 string.\n * In \'uint32\' mode, writes the counter as a big-endian 32-bit integer.\n */\n setCounter(n) {\n if (this.mode === "string") {\n return concatBuffers(this.nonce, this.encoder.encode(n.toString()));\n }\n this.dataView.setUint32(this.nonce.length, n, false);\n return this.buffer;\n }\n }\n async function solveChallenge(options) {\n const {\n challenge,\n controller,\n counterMode = "uint32",\n counterStart = 0,\n counterStep = 1,\n deriveKey: deriveKey2,\n timeout = 9e4\n } = options;\n const { nonce, keyPrefix, salt } = challenge.parameters;\n const nonceBuf = hexToBuffer(nonce);\n const saltBuf = hexToBuffer(salt);\n const keyPrefixBuf = keyPrefix.length % 2 === 0 ? hexToBuffer(keyPrefix) : null;\n const password = new PasswordBuffer(nonceBuf, counterMode);\n const start = performance.now();
1\n let counter = counterStart;\n let iterations = 0;\n let derivedKeyHex = "";\n let lastYield = start;\n while (true) {\n if (controller?.signal.aborted || timeout && iterations % 10 === 0 && performance.now() - start > timeout) {\n return null;\n }\n const { derivedKey } = await deriveKey2(\n challenge.parameters,\n saltBuf,\n password.setCounter(counter)\n );\n if (iterations % 10 === 0 && performance.now() - lastYield > 200) {\n await delay(0);\n lastYield = performance.now();\n }\n if (keyPrefixBuf ? bufferStartsWith(derivedKey, keyPrefixBuf) : bufferToHex(derivedKey).startsWith(keyPrefix)) {\n derivedKeyHex = bufferToHex(derivedKey);\n break;\n }\n counter = counter + counterStep;\n iterations = iterations + 1;\n }\n return {\n counter,\n derivedKey: derivedKeyHex,\n time: timeDuration(start)\n };\n }\n function handler(options) {\n const { deriveKey: deriveKey2 } = options;\n let controller = void 0;\n self.onmessage = async (message) => {\n const { challenge, counterMode, counterStart, counterStep, timeout, type } = message.data;\n if (type === "abort") {\n controller?.abort();\n } else if (type === "work") {\n controller = new AbortController();\n let solution;\n try {\n solution = await solveChallenge({\n challenge,\n controller,\n counterStart,\n counterStep,\n deriveKey: deriveKey2,\n counterMode,\n timeout\n });\n } catch (err) {\n return self.postMessage({ error: err });\n }\n self.postMessage(solution);\n }\n };\n }\n function getDigest(algorithm) {\n switch (algorithm) {\n case "PBKDF2/SHA-512":\n return "SHA-512";\n case "PBKDF2/SHA-384":\n return "SHA-384";\n case "PBKDF2/SHA-256":\n default:\n return "SHA-256";\n }\n }\n async function deriveKey(parameters, salt, password) {\n const { algorithm, cost, keyLength = 32 } = parameters;\n const passwordKey = await crypto.subtle.importKey(\n "raw",\n password,\n { name: "PBKDF2" },\n false,\n ["deriveKey"]\n );\n const derivedKey = await crypto.subtle.deriveKey(\n {\n name: "PBKDF2",\n salt,\n iterations: cost,\n hash: getDigest(algorithm)\n },\n passwordKey,\n { name: "AES-GCM", length: keyLength * 8 },\n true,\n ["encrypt"]\n );\n return {\n derivedKey: new Uint8Array(await crypto.subtle.exportKey("raw", derivedKey))\n };\n }\n handler({\n deriveKey\n });\n})();\n',Ua="undefined"!==typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",Da],{type:"text/javascript;charset=utf-8"});function Va(e){let t;try{if(t=Ua&&(self.URL||self.webkitURL).createObjectURL(Ua),!t)throw"";const n=new Worker(t,{name:e?.name});return n.addEventListener("error",(()=>{(self.URL||self.webkitURL).revokeObjectURL(t)})),n}catch(n){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Da),{name:e?.name})}}const Na='(function() {\n "use strict";\n function bufferStartsWith(buffer, prefix) {\n if (prefix.length > buffer.length) {\n return false;\n }\n for (let i = 0; i < prefix.length; i++) {\n if (buffer[i] !== prefix[i]) {\n return false;\n }\n }\n return true;\n }\n function bufferToHex(buffer) {\n return Array.from(new Uint8Array(buffer)).map((b) => b.toString(16).padStart(2, "0")).join("");\n }\n function concatBuffers(a, b) {\n const out = new Uint8Array(a.length + b.length);\n out.set(a, 0);\n out.set(b, a.length);\n return out;\n }\n function hexToBuffer(hex) {\n if (hex.length % 2 !== 0) {\n throw new Error(`Hex string must have an even length. Got: ${hex}`);\n }\n const buffer = new ArrayBuffer(hex.length / 2);\n const view = new DataView(buffer);\n for (let i = 0; i < hex.length; i += 2) {\n const byteString = hex.substring(i, i + 2);\n const byteValue = parseInt(byteString, 16);\n view.setUint8(i / 2, byteValue);\n }\n return new Uint8Array(buffer);\n }\n async function delay(ms) {\n await new Promise((resolve) => setTimeout(resolve, ms));\n }\n function timeDuration(start) {\n return Math.floor((performance.now() - start) * 10) / 10;\n }\n class PasswordBuffer {\n constructor(nonce, mode = "uint32") {\n this.nonce = nonce;\n this.mode = mode;\n this.buffer = new Uint8Array(this.nonce.length + this.COUNTER_BYTES);\n this.buffer.set(this.nonce, 0);\n this.dataView = new DataView(this.buffer.buffer);\n }\n COUNTER_BYTES = 4;\n buffer;\n dataView;\n encoder = new TextEncoder();\n /**\n * Appends the counter to the nonce buffer.\n * In \'string\' mode, encodes the counter as a UTF-8 string.\n * In \'uint32\' mode, writes the counter as a big-endian 32-bit integer.\n */\n setCounter(n) {\n if (this.mode === "string") {\n return concatBuffers(this.nonce, this.encoder.encode(n.toString()));\n }\n this.dataView.setUint32(this.nonce.length, n, false);\n return this.buffer;\n }\n }\n async function solveChallenge(options) {\n const {\n challenge,\n controller,\n counterMode = "uint32",\n counterStart = 0,\n counterStep = 1,\n deriveKey: deriveKey2,\n timeout = 9e4\n } = options;\n const { nonce, keyPrefix, salt } = challenge.parameters;\n const nonceBuf = hexToBuffer(nonce);\n const saltBuf = hexToBuffer(salt);
1\n const keyPrefixBuf = keyPrefix.length % 2 === 0 ? hexToBuffer(keyPrefix) : null;\n const password = new PasswordBuffer(nonceBuf, counterMode);\n const start = performance.now();\n let counter = counterStart;\n let iterations = 0;\n let derivedKeyHex = "";\n let lastYield = start;\n while (true) {\n if (controller?.signal.aborted || timeout && iterations % 10 === 0 && performance.now() - start > timeout) {\n return null;\n }\n const { derivedKey } = await deriveKey2(\n challenge.parameters,\n saltBuf,\n password.setCounter(counter)\n );\n if (iterations % 10 === 0 && performance.now() - lastYield > 200) {\n await delay(0);\n lastYield = performance.now();\n }\n if (keyPrefixBuf ? bufferStartsWith(derivedKey, keyPrefixBuf) : bufferToHex(derivedKey).startsWith(keyPrefix)) {\n derivedKeyHex = bufferToHex(derivedKey);\n break;\n }\n counter = counter + counterStep;\n iterations = iterations + 1;\n }\n return {\n counter,\n derivedKey: derivedKeyHex,\n time: timeDuration(start)\n };\n }\n function handler(options) {\n const { deriveKey: deriveKey2 } = options;\n let controller = void 0;\n self.onmessage = async (message) => {\n const { challenge, counterMode, counterStart, counterStep, timeout, type } = message.data;\n if (type === "abort") {\n controller?.abort();\n } else if (type === "work") {\n controller = new AbortController();\n let solution;\n try {\n solution = await solveChallenge({\n challenge,\n controller,\n counterStart,\n counterStep,\n deriveKey: deriveKey2,\n counterMode,\n timeout\n });\n } catch (err) {\n return self.postMessage({ error: err });\n }\n self.postMessage(solution);\n }\n };\n }\n async function deriveKey(parameters, salt, password) {\n const { algorithm, keyLength = 32 } = parameters;\n const iterations = Math.max(1, parameters.cost);\n let data = void 0;\n let derivedKey = void 0;\n for (let i = 0; i < iterations; i++) {\n if (i === 0) {\n data = concatBuffers(salt, password);\n } else {\n data = derivedKey;\n }\n derivedKey = new Uint8Array(\n (await crypto.subtle.digest(algorithm, data)).slice(0, keyLength)\n );\n }\n return {\n parameters: {},\n derivedKey\n };\n }\n handler({\n deriveKey\n });\n})();\n',za="undefined"!==typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",Na],{type:"text/javascript;charset=utf-8"});function ja(e){let t;try{if(t=za&&(self.URL||self.webkitURL).createObjectURL(za),!t)throw"";const n=new Worker(t,{name:e?.name});return n.addEventListener("error",(()=>{(self.URL||self.webkitURL).revokeObjectURL(t)})),n}catch(n){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Na),{name:e?.name})}}!function(e,t="altcha-css",n){if("undefined"!=
vendor: 11,215 bytes, line 1
1=typeof document&&document&&!document.getElementById(t)){const n=document.createElement("style");n.id=t,n.textContent=e;const r=document.currentScript?.nonce??document.querySelector('meta[name="csp-nonce"]')?.content;r&&(n.nonce=r),document.head.appendChild(n)}}(':root {\n --altcha-border-color: var(--altcha-color-neutral);\n --altcha-border-width: 1px;\n --altcha-border-radius: 6px;\n --altcha-color-base: light-dark(oklch(100% 0.00011 271.152), oklch(20.904% 0.00002 271.152));\n --altcha-color-base-content: light-dark(\n \toklch(20.904% 0.00002 271.152),\n \toklch(100% 0.00011 271.152)\n );\n --altcha-color-error: oklch(51.284% 0.20527 28.678);\n --altcha-color-error-content: oklch(100% 0.00011 271.152);\n --altcha-color-neutral: light-dark(oklch(83.591% 0.0001 271.152), oklch(46.04% 0.00005 271.152));\n --altcha-color-neutral-content: light-dark(\n \toklch(46.76% 0.00005 271.152),\n \toklch(100% 0.00011 271.152)\n );\n --altcha-color-primary: oklch(40.279% 0.2449 268.131);\n --altcha-color-primary-content: oklch(100% 0.00011 271.152);\n --altcha-color-success: oklch(55.748% 0.18968 142.511);\n --altcha-color-success-content: oklch(100% 0.00011 271.152);\n --altcha-checkbox-border-color: light-dark(\n \toklch(66.494% 0.00233 15.434),\n \toklch(51.028% 0.00006 271.152)\n );\n --altcha-checkbox-border-radius: 5px;\n --altcha-checkbox-border-width: var(--altcha-border-width);\n --altcha-checkbox-outline: 2px solid var(--altcha-checkbox-outline-color);\n --altcha-checkbox-outline-color: -webkit-focus-ring-color;\n --altcha-checkbox-outline-offset: 2px;\n --altcha-checkbox-size: 22px;\n --altcha-checkbox-transition-duration: var(--altcha-transition-duration);\n --altcha-input-background-color: var(--altcha-color-base);\n --altcha-input-border-radius: 3px;\n --altcha-input-border-width: 1px;\n --altcha-input-color: var(--altcha-color-base-content);\n --altcha-max-width: 320px;\n --altcha-padding: 0.75rem;\n --altcha-popover-arrow-size: 6px;\n --altcha-popover-color: var(--altcha-border-color);\n --altcha-shadow: drop-shadow(3px 3px 6px oklch(0% 0 0 / 0.2));\n --altcha-spinner-color: var(--altcha-color-base-content);\n --altcha-switch-background-color: var(--altcha-color-neutral);\n --altcha-switch-border-radius: calc(infinity * 1px);\n --altcha-switch-height: var(--altcha-checkbox-size);\n --altcha-switch-padding: 0.25rem;\n --altcha-switch-width: calc(var(--altcha-checkbox-size) * 1.75);\n --altcha-switch-toggle-border-radius: 100%;\n --altcha-switch-toggle-color: var(--altcha-color-neutral-content);\n --altcha-switch-toggle-size: calc(\n \tvar(--altcha-switch-height) - calc(var(--altcha-switch-padding) * 2)\n );\n --altcha-transition-duration: 0.6s;\n --altcha-z-index: 99999999;\n --altcha-z-index-popover: 999999999;\n}\n\n@supports (-moz-appearance: none) {\n :root {\n --altcha-checkbox-outline-color: var(--altcha-color-primary);\n }\n}\n.altcha {\n all: revert-layer;\n display: none;\n font-family: inherit;\n font-size: inherit;\n position: relative;\n}\n.altcha[data-visible] {\n display: block;\n}\n.altcha-popover, .altcha-popover * {\n all: revert-layer;\n box-sizing: border-box;\n font-family: inherit;\n font-size: inherit;\n line-height: 1.25;\n}\n.altcha * {\n all: revert-layer;\n box-sizing: border-box;\n font-family: inherit;\n font-size: inherit;\n line-height: 1.25;\n}\n.altcha a, .altcha-popover a {\n color: currentColor;\n text-decoration: none;\n}\n.altcha a:hover, .altcha-popover a:hover {\n color: currentColor;\n}\n.altcha-main {\n align-items: start;\n background-color: var(--altcha-color-base);\n border: var(--altcha-border-width, 1px) solid var(--altcha-border-color);\n border-radius: var(--altcha-border-radius, 0);\n color: var(--altcha-color-base-content);\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n justify-content: space-between;\n padding: var(--altcha-padding);\n max-width: var(--altcha-max-width, 100%);\n}\n.altcha-main > * {\n display: flex;\n width: 100%;\n}\n.altcha-main > *:first-child {\n flex-grow: 1;\n}\n.altcha-checkbox-wrap {\n align-items: center;\n display: flex;\n flex-direction: row;\n flex-grow: 1;\n gap: 0.5rem;\n}\n.altcha-checkbox-wrap > * {\n display: flex;\n}\n.altcha-logo {\n opacity: 0.7;\n}\n.altcha-footer {\n align-items: center;\n display: flex;\n flex-grow: 1;\n gap: 0.5rem;\n justify-content: flex-end;\n font-size: 0.7rem;\n opacity: 0.7;\n}\n.altcha-footer p {\n margin: 0;\n padding: 0;\n}\n.altcha-error {\n font-size: 0.85rem;\n}\n.altcha-button {\n align-items: center;\n background: var(--altcha-color-primary);\n border: var(--altcha-input-border-width) solid var(--altcha-color-primary);\n border-radius: var(--altcha-input-border-radius);\n color: var(--altcha-color-primary-content);\n cursor: pointer;\n display: flex;\n font-size: 0.9rem;\n gap: 0.5rem;\n padding: 0.35rem;\n}\n.altcha-button:focus {\n border-color: var(--altcha-color-primary);\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-button > .altcha-spinner, .altcha-button > svg {\n height: 20px;\n width: 20px;\n}\n.altcha-button-secondary {\n background: transparent;\n border-color: var(--altcha-color-neutral);\n color: var(--altcha-color-neutral-content);\n}\n.altcha-input {\n background: var(--altcha-input-background-color);\n border: var(--altcha-input-border-width) solid var(--altcha-color-neutral);\n border-radius: var(--altcha-input-border-radius);\n color: var(--altcha-input-color);\n flex-grow: 1;\n font-size: 1rem;\n min-width: 0;\n padding: 0.25rem;\n width: auto;\n}\n.altcha-input:focus {\n border-color: var(--altcha-color-primary);\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-spinner {\n animation: altcha-rotate 0.6s linear infinite;\n border-radius: 100%;\n border: var(--altcha-checkbox-border-width) solid var(--altcha-spinner-color);\n border-bottom-color: transparent;\n border-right-color: transparent;\n opacity: 0.7;\n}\n.altcha-popover {\n background-color: var(--altcha-color-base);\n border: var(--altcha-border-width) solid var(--altcha-border-color);\n border-radius: var(--altcha-border-radius);\n color: var(--altcha-color-base-content);\n filter: var(--altcha-shadow);\n position: absolute;\n left: calc(var(--altcha-padding) / 2);\n max-width: calc(var(--altcha-max-width) - var(--altcha-padding));\n top: calc(var(--altcha-padding) + var(--altcha-checkbox-size) + var(--altcha-popover-arrow-size));\n z-index: var(--altcha-z-index-popover);\n}\n.altcha-popover-arrow {\n border: var(--altcha-popover-arrow-size) solid transparent;\n border-bottom-color: var(--altcha-popover-color);\n content: "";\n height: 0;\n left: calc(var(--altcha-checkbox-size) / 2);\n position: absolute;\n top: calc(var(--altcha-popover-arrow-size) * -2);\n width: 0;\n}\n.altcha-popover-content {\n max-height: 100dvh;\n overflow: auto;\n padding: var(--altcha-padding);\n}\n.altcha-popover[data-top=true][data-display=standard] {\n bottom: calc(100% - (var(--altcha-padding) - var(--altcha-popover-arrow-size)));\n top: auto;\n}\n.altcha-popover[data-top=true][data-display=standard] .altcha-popover-arrow {\n border-bottom-color: transparent;\n border-top-color: var(--altcha-popover-color);\n bottom: calc(var(--altcha-popover-arrow-size) * -2);\n top: auto;\n}\n.altcha-popover[data-variant=error] {\n --altcha-popover-color: var(--altcha-color-error);\n background-color: var(--altcha-color-error);\n border-color: var(--altcha-color-error);\n color: var(--altcha-color-error-content);\n}\n.altcha-popover[data-variant=error] .altcha-popover-content {\n padding: calc(var(--altcha-padding) / 1.5) var(--altcha-padding);\n}\n.altcha-popover[data-display=overlay] {\n animation: altcha-overlay-slidein 0.5s forwards;\n left: 50%;\n position: fixed;\n top: 45%;\n transform: translate(-50%, -50%);\n width: var(--altcha-max-width);\n z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] {\n animation: altcha-bottomsheet-slideup 0.5s forwards;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom: 0;\n bottom: -100%;\n left: 50%;\n position: fixed;\n top: auto;\n transform: translate(-50%, 0);\n width: var(--altcha-max-width);\n z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] .altcha-popover-content {\n padding-bottom: calc(var(--altcha-padding) * 2);\n}\n.altcha-popover-backdrop {\n background: var(--altcha-color-base-content);\n bottom: 0;\n left: 0;\n opacity: 0.1;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.5s;\n z-index: var(--altcha-z-index);\n}\n.altcha-popover-close {\n color: var(--altcha-color-base-content);\n cursor: pointer;\n display: inline-block;\n font-size: 1rem;\n height: 1.25rem;\n line-height: 0.95;\n position: absolute;\n right: 0;\n text-align: center;\n text-shadow: 0 0 1px var(--altcha-color-base);\n top: -1.5rem;\n width: 1.25rem;\n z-index: var(--altcha-z-index);\n}\n[dir=rtl] .altcha-popover {\n left: auto;\n right: calc(var(--altcha-padding) / 2);\n}\n[dir=rtl] .altcha-popover-arrow {\n left: auto;\n right: calc(var(--altcha-checkbox-size) / 2);\n}\n[dir=rtl] .altcha-popover-close {\n left: 0;\n right: auto;\n}\n.altcha-popover[data-display=bottomsheet] .altcha-footer, .altcha-popover[data-display=overlay] .altcha-footer {\n align-items: center;\n justify-content: center;\n padding-top: 1rem;\n gap: 0.5rem;\n}\n.altcha-popover[data-display=bottomsheet] .altcha-footer svg, .altcha-popover[data-display=overlay] .altcha-footer svg {\n height: 18px;\n width: 18px;\n vertical-align: middle;\n}\n.altcha-code-challenge > form {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n.altcha-code-challenge-title {\n font-weight: 600;\n}\n.altcha-code-challenge-text {\n font-size: 0.85rem;\n}\n.altcha-code-challenge-image {\n background: white;\n border: var(--altcha-input-border-width) solid var(--altcha-color-neutral);\n border-radius: var(--altcha-input-border-radius);\n object-fit: contain;\n height: 50px;\n}\n.altcha-code-challenge-row {\n display: flex;\n gap: 0.5rem;\n}\n.altcha-code-challenge-buttons {\n align-items: center;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n margin-top: var(--altcha-padding);\n justify-content: space-between;\n}\n.altcha-code-challenge-buttons button {\n justify-content: center;\n width: 100%;\n}\n.altcha-checkbox {\n cursor: pointer;\n height: var(--altcha-checkbox-size);\n position: relative;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox input {\n appearance: none;\n background: var(--altcha-input-background-color);\n border: var(--altcha-checkbox-border-width, 2px) solid var(--altcha-checkbox-border-color);\n border-radius: var(--altcha-checkbox-border-radius);\n cursor: pointer;\n height: var(--altcha-checkbox-size);\n left: 0;\n margin: 0;\n padding: 0;\n position: absolute;\n top: 0;\n width: var(--altcha-checkbox-size);\n}\n
vendor: 7,381 bytes, line 1
1.altcha-checkbox input:before {\n border-radius: var(--altcha-checkbox-border-radius);\n content: "";\n width: 100%;\n height: 100%;\n background: var(--altcha-color-neutral);\n display: block;\n transform: scale(0);\n}\n.altcha-checkbox input:checked {\n background-color: var(--altcha-color-success);\n border-color: var(--altcha-color-success);\n}\n.altcha-checkbox input:checked::before {\n background-color: var(--altcha-color-success);\n opacity: 0;\n transform: scale(2.2);\n transition: all var(--altcha-checkbox-transition-duration) ease;\n transition-delay: 0.1s;\n}\n.altcha-checkbox svg {\n --altcha-radio-svg-size: calc(var(--altcha-checkbox-size) * 0.5);\n --altcha-radio-svg-offset: calc(var(--altcha-checkbox-size) * 0.25);\n fill: none;\n left: var(--altcha-radio-svg-offset);\n height: var(--altcha-radio-svg-size);\n opacity: 0;\n position: absolute;\n stroke: currentColor;\n stroke-width: 2;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 16px;\n stroke-dashoffset: 16px;\n top: var(--altcha-radio-svg-offset);\n transform: translate3d(0, 0, 0);\n width: var(--altcha-radio-svg-size);\n}\n.altcha-checkbox input:checked + svg {\n color: var(--altcha-color-success-content);\n opacity: 1;\n stroke-dashoffset: 0;\n transition: all var(--altcha-checkbox-transition-duration) ease;\n transition-delay: 0.1s;\n}\n.altcha-checkbox-spinner {\n display: none;\n left: 0;\n height: var(--altcha-checkbox-size);\n position: absolute;\n top: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox[data-loading=true] input {\n appearance: none;\n opacity: 0;\n pointer-events: none;\n}\n.altcha-checkbox[data-loading=true] .altcha-checkbox-spinner {\n display: block;\n}\n.altcha-checkbox-native {\n height: var(--altcha-checkbox-size);\n position: relative;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native input {\n height: var(--altcha-checkbox-size);\n margin: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native-spinner {\n display: none;\n left: 0;\n height: var(--altcha-checkbox-size);\n position: absolute;\n top: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native[data-loading=true] input {\n appearance: none;\n opacity: 0;\n pointer-events: none;\n}\n.altcha-checkbox-native[data-loading=true] .altcha-checkbox-native-spinner {\n display: block;\n}\n.altcha-switch {\n align-items: center;\n border-radius: var(--altcha-switch-border-radius);\n background-color: var(--altcha-switch-background-color);\n display: flex;\n height: var(--altcha-switch-height);\n padding: var(--altcha-switch-padding);\n position: relative;\n width: var(--altcha-switch-width);\n}\n.altcha-switch:focus-within {\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-switch input {\n appearance: none;\n cursor: pointer;\n height: 100%;\n left: 0;\n opacity: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.altcha-switch-toggle {\n align-items: center;\n background-color: var(--altcha-switch-toggle-color);\n border-radius: var(--altcha-switch-toggle-border-radius);\n cursor: pointer;\n display: flex;\n height: var(--altcha-switch-toggle-size);\n justify-content: center;\n left: var(--altcha-switch-padding);\n position: absolute;\n transition: width 150ms ease-out, left 150ms ease-out;\n width: var(--altcha-switch-toggle-size);\n}\n.altcha-switch-spinner {\n display: none;\n height: var(--altcha-switch-toggle-size);\n width: var(--altcha-switch-toggle-size);\n}\n.altcha-switch[data-loading=true] {\n pointer-events: none;\n}\n.altcha-switch[data-loading=true] .altcha-switch-spinner {\n display: block;\n}\n.altcha-switch[data-loading=true] .altcha-switch-toggle {\n background-color: transparent;\n left: calc(50% - var(--altcha-switch-toggle-size) / 2);\n}\n[data-state=verified] .altcha-switch {\n --altcha-switch-background-color: var(--altcha-color-success);\n}\n[data-state=verified] .altcha-switch-toggle {\n background-color: var(--altcha-color-success-content);\n left: calc(100% - var(--altcha-switch-height) + var(--altcha-switch-padding));\n}\n[dir=rtl] .altcha-switch-toggle {\n left: calc(100% - var(--altcha-switch-height) + var(--altcha-switch-padding));\n}\n[dir=rtl][data-state=verified] .altcha-switch-toggle {\n left: var(--altcha-switch-padding);\n}\n.altcha-floating-arrow {\n border: 6px solid transparent;\n border-bottom-color: var(--altcha-border-color);\n content: "";\n height: 0;\n left: 12px;\n position: absolute;\n top: -12px;\n width: 0;\n}\n.altcha-overlay-backdrop {\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity var(--altcha-transition-duration);\n z-index: var(--altcha-z-index);\n}\n.altcha-overlay-close {\n display: inline-block;\n color: currentColor;\n cursor: pointer;\n font-size: 1rem;\n height: 1rem;\n line-height: 0.85;\n position: absolute;\n right: 0;\n text-align: center;\n text-shadow: 0 0 1px var(--altcha-color-base);\n top: -1.5rem;\n width: 1rem;\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=overlay] {\n animation: altcha-overlay-slidein var(--altcha-transition-duration) forwards;\n filter: var(--altcha-shadow);\n left: 50%;\n opacity: 0;\n position: fixed;\n top: 45%;\n transform: translate(-50%, -50%);\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=overlay] .altcha-main {\n width: var(--altcha-max-width);\n}\n.altcha[data-display=floating] {\n display: none;\n filter: var(--altcha-shadow);\n left: var(--altcha-floating-left, -100%);\n position: fixed;\n top: var(--altcha-floating-top, -100%);\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=floating] .altcha-main {\n width: var(--altcha-max-width);\n}\n.altcha[data-display=floating][data-floating-position=top] .altcha-floating-arrow {\n border-bottom-color: transparent;\n border-top-color: var(--altcha-border-color);\n bottom: -12px;\n top: auto;\n}\n.altcha[data-display=floating][data-visible] {\n display: flex;\n}\n.altcha[data-display=bar] {\n bottom: -100%;\n filter: var(--altcha-shadow);\n left: 0;\n position: fixed;\n right: 0;\n transition: bottom var(--altcha-transition-duration), top var(--altcha-transition-duration);\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=bar] .altcha-main {\n align-items: center;\n border-radius: 0;\n border-width: var(--altcha-border-width) 0 0 0;\n flex-direction: row;\n max-width: 100% !important;\n}\n.altcha[data-display=bar] .altcha-main > * {\n width: auto;\n}\n.altcha[data-display=bar][data-placement=top] {\n bottom: auto;\n top: -100%;\n}\n.altcha[data-display=bar][data-placement=top] .altcha-main {\n border-width: 0 0 var(--altcha-border-width) 0;\n}\n.altcha[data-display=bar][data-placement=bottom]:not([data-state=unverified]) {\n bottom: 0;\n}\n.altcha[data-display=bar][data-placement=top]:not([data-state=unverified]) {\n top: 0;\n}\n.altcha[data-display=invisible] {\n display: none;\n}\n\n@keyframes altcha-rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes altcha-bottomsheet-slideup {\n 100% {\n bottom: 0;\n }\n}\n@keyframes altcha-overlay-slidein {\n 100% {\n opacity: 1;\n top: 50%;\n }\n}'
1),$altcha.algorithms.set("SHA-256",(()=>new ja)),$altcha.algorithms.set("SHA-384",(()=>new ja)),$altcha.algorithms.set("SHA-512",(()=>new ja)),$altcha.algorithms.set("PBKDF2/SHA-256",(()=>new Va)),$altcha.algorithms.set("PBKDF2/SHA-384",(()=>new Va)),$altcha.algorithms.set("PBKDF2/SHA-512",(()=>new Va))}}]);
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.