@htmlbricks/hb-auth 0.61.46 → 0.61.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(Or){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Kn=1,Zn=2,Qn=16,es=1,ts=2,Gt="[",Xt="[!",Kt="]",ut={},ae=Symbol(),rs="http://www.w3.org/1999/xhtml",Mr=!1;var Zt=Array.isArray,ns=Array.prototype.indexOf,Qt=Array.from,Ot=Object.keys,ft=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,ss=Object.getOwnPropertyDescriptors,os=Object.prototype,is=Array.prototype,Lr=Object.getPrototypeOf,Ir=Object.isExtensible;function Dr(e){for(var t=0;t<e.length;t++)e[t]()}function as(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const ye=2,er=4,tr=8,vt=16,Ue=32,Ye=64,qr=128,$e=256,Mt=512,fe=1024,Te=2048,Je=4096,Ae=8192,et=16384,rr=32768,nr=65536,Fr=1<<17,jr=1<<18,bt=1<<19,ls=1<<20,sr=1<<21,or=1<<22,tt=1<<23,ir=Symbol("$state"),cs=Symbol("legacy props"),us=Symbol(""),ar=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},lr=3,ht=8;function fs(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function ds(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function vs(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function bs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function hs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function gs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ms(){throw new Error("https://svelte.dev/e/hydration_failed")}function _s(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ps(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ys(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Lt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let x=!1;function we(e){x=e}let R;function ge(e){if(e===null)throw Lt(),ut;return R=e}function xt(){return ge(Oe(R))}function $(e){if(x){if(Oe(R)!==null)throw Lt(),ut;R=e}}function It(e=1){if(x){for(var t=e,r=R;t--;)r=Oe(r);R=r}}function cr(){for(var e=0,t=R;;){if(t.nodeType===ht){var r=t.data;if(r===Kt){if(e===0)return t;e-=1}else(r===Gt||r===Xt)&&(e+=1)}var n=Oe(t);t.remove(),t=n}}function Wr(e){if(!e||e.nodeType!==ht)throw Lt(),ut;return e.data}function Br(e){return e===this.v}function ws(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function zr(e){return!ws(e,this.v)}let xs=!1,Pe=null;function Dt(e){Pe=e}function Ur(e,t=!1,r){Pe={p:Pe,c:null,e:null,s:e,x:null,l:null}}function Vr(e){var t=Pe,r=t.e;if(r!==null){t.e=null;for(var n of r)hn(n)}return e!==void 0&&(t.x=e),Pe=t.p,e??{}}function Hr(){return!0}const ks=new WeakMap;function Es(e){var t=k;if(t===null)return N.f|=tt,e;if((t.f&rr)===0){if((t.f&qr)===0)throw!t.parent&&e instanceof Error&&Yr(e),e;t.b.error(e)}else ur(e,t)}function ur(e,t){for(;t!==null;){if((t.f&qr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Yr(e),e}function Yr(e){const t=ks.get(e);t&&(ft(e,"message",{value:t.message}),ft(e,"stack",{value:t.stack}))}const $s=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let kt=[],Et=[];function Jr(){var e=kt;kt=[],Dr(e)}function Gr(){var e=Et;Et=[],Dr(e)}function Ts(e){kt.length===0&&queueMicrotask(Jr),kt.push(e)}function Cs(e){Et.length===0&&$s(Gr),Et.push(e)}function Ss(){kt.length>0&&Jr(),Et.length>0&&Gr()}function Ns(){const e=k.b;return e===null&&fs(),e}function fr(e){var t=ye|Te,r=N!==null&&(N.f&ye)!==0?N:null;return k===null||r!==null&&(r.f&$e)!==0?t|=$e:k.f|=bt,{ctx:Pe,deps:null,effects:null,equals:Br,f:t,fn:e,reactions:null,rv:0,v:ae,wv:0,parent:r??k,ac:null}}function As(e,t){let r=k;r===null&&ds();var n=r.b,s=void 0,o=$t(ae),i=null,a=!N;return zs(()=>{try{var l=e();i&&Promise.resolve(l).catch(()=>{})}catch(b){l=Promise.reject(b)}var u=()=>l;s=i?.then(u,u)??Promise.resolve(l),i=s;var f=j,g=n.is_pending();a&&(n.update_pending_count(1),g||f.increment());const v=(b,d=void 0)=>{i=null,g||f.activate(),d?d!==ar&&(o.f|=tt,Bt(o,d)):((o.f&tt)!==0&&(o.f^=tt),Bt(o,b)),a&&(n.update_pending_count(-1),g||f.decrement()),Zr()};if(s.then(v,b=>v(null,b||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(l=>{function u(f){function g(){f===s?l(o):u(s)}f.then(g,g)}u(s)})}function Ps(e){const t=fr(e);return t.equals=zr,t}function Xr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Fe(t[r])}}function Rs(e){for(var t=e.parent;t!==null;){if((t.f&ye)===0)return t;t=t.parent}return null}function dr(e){var t,r=k;We(Rs(e));try{Xr(e),t=Cn(e)}finally{We(r)}return t}function Kr(e){var t=dr(e);if(e.equals(t)||(e.v=t,e.wv=$n()),!ot){var r=(Ke||(e.f&$e)!==0)&&e.deps!==null?Je:fe;_e(e,r)}}function Os(e,t,r){const n=fr;if(t.length===0){r(e.map(n));return}var s=j,o=k,i=Ms(),a=Ns();Promise.all(t.map(l=>As(l))).then(l=>{s?.activate(),i();try{r([...e.map(n),...l])}catch(u){(o.f&et)===0&&ur(u,o)}s?.deactivate(),Zr()}).catch(l=>{a.error(l)})}function Ms(){var e=k,t=N,r=Pe,n=j;return function(){We(e),Ce(t),Dt(r),n?.activate()}}function Zr(){We(null),Ce(null),Dt(null)}const vr=new Set;let j=null,qt=null,Qr=new Set,Ft=[];function en(){const e=Ft.shift();Ft.length>0&&queueMicrotask(en),e()}let rt=[],jt=null,br=!1,Wt=!1;class nt{current=new Map;#t=new Map;#e=new Set;#r=0;#c=null;#u=!1;#s=[];#i=[];#o=[];#n=[];#a=[];#f=[];#d=[];skipped_effects=new Set;process(t){rt=[],qt=null;for(const s of t)this.#b(s);if(this.#s.length===0&&this.#r===0){this.#v();var r=this.#o,n=this.#n;this.#o=[],this.#n=[],this.#a=[],qt=j,j=null,rn(r),rn(n),j===null?j=this:vr.delete(this),this.#c?.resolve()}else this.#l(this.#o),this.#l(this.#n),this.#l(this.#a);for(const s of this.#s)yt(s);for(const s of this.#i)yt(s);this.#s=[],this.#i=[]}#b(t){t.f^=fe;for(var r=t.first;r!==null;){var n=r.f,s=(n&(Ue|Ye))!==0,o=s&&(n&fe)!==0,i=o||(n&Ae)!==0||this.skipped_effects.has(r);if(!i&&r.fn!==null){if(s)r.f^=fe;else if((n&er)!==0)this.#n.push(r);else if((n&fe)===0)if((n&or)!==0){var a=r.b?.is_pending()?this.#i:this.#s;a.push(r)}else Ut(r)&&((r.f&vt)!==0&&this.#a.push(r),yt(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&Te)!==0?this.#f:this.#d).push(r),_e(r,fe);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){j=this}deactivate(){j=null,qt=null;for(const t of Qr)if(Qr.delete(t),t(),j!==null)break}neuter(){this.#u=!0}flush(){rt.length>0?tn():this.#v(),j===this&&(this.#r===0&&vr.delete(this),this.deactivate())}#v(){if(!this.#u)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#f)_e(t,Te),gt(t);for(const t of this.#d)_e(t,Je),gt(t);this.#o=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#c??=as()).promise}static ensure(){if(j===null){const t=j=new nt;vr.add(j),Wt||nt.enqueue(()=>{j===t&&t.flush()})}return j}static enqueue(t){Ft.length===0&&queueMicrotask(en),Ft.unshift(t)}}function W(e){var t=Wt;Wt=!0;try{for(var r;;){if(Ss(),rt.length===0&&(j?.flush(),rt.length===0))return jt=null,r;tn()}}finally{Wt=t}}function tn(){var e=pt;br=!0;try{var t=0;for(wn(!0);rt.length>0;){var r=nt.ensure();if(t++>1e3){var n,s;Ls()}r.process(rt),Ge.clear()}}finally{br=!1,wn(e),jt=null}}function Ls(){try{gs()}catch(e){ur(e,jt)}}let st=null;function rn(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(et|Ae))===0&&Ut(n)&&(st=[],yt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?_n(n):n.fn=null),st?.length>0)){Ge.clear();for(const s of st)yt(s);st=[]}}st=null}}function gt(e){for(var t=jt=e;t.parent!==null;){t=t.parent;var r=t.f;if(br&&t===k&&(r&vt)!==0)return;if((r&(Ye|Ue))!==0){if((r&fe)===0)return;t.f^=fe}}rt.push(t)}const Ge=new Map;function $t(e,t){var r={f:0,v:e,reactions:null,equals:Br,rv:0,wv:0};return r}function me(e,t){const r=$t(e);return Hs(r),r}function nn(e,t=!1,r=!0){const n=$t(e);return t||(n.equals=zr),n}function V(e,t,r=!1){N!==null&&(!je||(N.f&Fr)!==0)&&Hr()&&(N.f&(ye|vt|or|Fr))!==0&&!Ve?.includes(e)&&ys();let n=r?mt(t):t;return Bt(e,n)}function Bt(e,t){if(!e.equals(t)){var r=e.v;ot?Ge.set(e,t):Ge.set(e,r),e.v=t;var n=nt.ensure();n.capture(e,r),(e.f&ye)!==0&&((e.f&Te)!==0&&dr(e),_e(e,(e.f&$e)===0?fe:Je)),e.wv=$n(),sn(e,Te),k!==null&&(k.f&fe)!==0&&(k.f&(Ue|Ye))===0&&(Se===null?Ys([e]):Se.push(e))}return t}function hr(e){V(e,e.v+1)}function sn(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var o=r[s],i=o.f,a=(i&Te)===0;a&&_e(o,t),(i&ye)!==0?sn(o,Je):a&&((i&vt)!==0&&st!==null&&st.push(o),gt(o))}}function mt(e){if(typeof e!="object"||e===null||ir in e)return e;const t=Lr(e);if(t!==os&&t!==is)return e;var r=new Map,n=Zt(e),s=me(0),o=it,i=a=>{if(it===o)return a();var l=N,u=it;Ce(null),En(o);var f=a();return Ce(l),En(u),f};return n&&r.set("length",me(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&_s();var f=r.get(l);return f===void 0?f=i(()=>{var g=me(u.value);return r.set(l,g),g}):V(f,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const f=i(()=>me(ae));r.set(l,f),hr(s)}}else V(u,ae),hr(s);return!0},get(a,l,u){if(l===ir)return e;var f=r.get(l),g=l in a;if(f===void 0&&(!g||dt(a,l)?.writable)&&(f=i(()=>{var b=mt(g?a[l]:ae),d=me(b);return d}),r.set(l,f)),f!==void 0){var v=h(f);return v===ae?void 0:v}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=h(f))}else if(u===void 0){var g=r.get(l),v=g?.v;if(g!==void 0&&v!==ae)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(a,l){if(l===ir)return!0;var u=r.get(l),f=u!==void 0&&u.v!==ae||Reflect.has(a,l);if(u!==void 0||k!==null&&(!f||dt(a,l)?.writable)){u===void 0&&(u=i(()=>{var v=f?mt(a[l]):ae,b=me(v);return b}),r.set(l,u));var g=h(u);if(g===ae)return!1}return f},set(a,l,u,f){var g=r.get(l),v=l in a;if(n&&l==="length")for(var b=u;b<g.v;b+=1){var d=r.get(b+"");d!==void 0?V(d,ae):b in a&&(d=i(()=>me(ae)),r.set(b+"",d))}if(g===void 0)(!v||dt(a,l)?.writable)&&(g=i(()=>me(void 0)),V(g,mt(u)),r.set(l,g));else{v=g.v!==ae;var m=i(()=>mt(u));V(g,m)}var p=Reflect.getOwnPropertyDescriptor(a,l);if(p?.set&&p.set.call(f,u),!v){if(n&&typeof l=="string"){var K=r.get("length"),T=Number(l);Number.isInteger(T)&&T>=K.v&&V(K,T+1)}hr(s)}return!0},ownKeys(a){h(s);var l=Reflect.ownKeys(a).filter(g=>{var v=r.get(g);return v===void 0||v.v!==ae});for(var[u,f]of r)f.v!==ae&&!(u in a)&&l.push(u);return l},setPrototypeOf(){ps()}})}var on,an,ln,cn;function gr(){if(on===void 0){on=window,an=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ln=dt(t,"firstChild").get,cn=dt(t,"nextSibling").get,Ir(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ir(r)&&(r.__t=void 0)}}function Re(e=""){return document.createTextNode(e)}function Xe(e){return ln.call(e)}function Oe(e){return cn.call(e)}function S(e,t){if(!x)return Xe(e);var r=Xe(R);if(r===null)r=R.appendChild(Re());else if(t&&r.nodeType!==lr){var n=Re();return r?.before(n),ge(n),n}return ge(r),r}function se(e,t){if(!x){var r=Xe(e);return r instanceof Comment&&r.data===""?Oe(r):r}return R}function Y(e,t=1,r=!1){let n=x?R:e;for(var s;t--;)s=n,n=Oe(n);if(!x)return n;if(r&&n?.nodeType!==lr){var o=Re();return n===null?s?.after(o):n.before(o),ge(o),o}return ge(n),n}function un(e){e.textContent=""}function fn(){return!1}let dn=!1;function vn(){dn||(dn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function zt(e){var t=N,r=k;Ce(null),We(null);try{return e()}finally{Ce(t),We(r)}}function bn(e,t,r,n=r){e.addEventListener(t,()=>zt(r));const s=e.__on_r;s?e.__on_r=()=>{s(),n(!0)}:e.__on_r=()=>n(!0),vn()}function Is(e){k===null&&N===null&&hs(),N!==null&&(N.f&$e)!==0&&k===null&&bs(),ot&&vs()}function Ds(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function qe(e,t,r,n=!0){var s=k;s!==null&&(s.f&Ae)!==0&&(e|=Ae);var o={ctx:Pe,deps:null,nodes_start:null,nodes_end:null,f:e|Te,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{yt(o),o.f|=rr}catch(l){throw Fe(o),l}else t!==null&&gt(o);if(n){var i=o;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&bt)===0&&(i=i.first),i!==null&&(i.parent=s,s!==null&&Ds(i,s),N!==null&&(N.f&ye)!==0&&(e&Ye)===0)){var a=N;(a.effects??=[]).push(i)}}return o}function qs(e){const t=qe(tr,null,!1);return _e(t,fe),t.teardown=e,t}function Fs(e){Is();var t=k.f,r=!N&&(t&Ue)!==0&&(t&rr)===0;if(r){var n=Pe;(n.e??=[]).push(e)}else return hn(e)}function hn(e){return qe(er|ls,e,!1)}function js(e){nt.ensure();const t=qe(Ye|bt,e,!0);return()=>{Fe(t)}}function Ws(e){nt.ensure();const t=qe(Ye|bt,e,!0);return(r={})=>new Promise(n=>{r.outro?pr(t,()=>{Fe(t),n(void 0)}):(Fe(t),n(void 0))})}function Bs(e){return qe(er,e,!1)}function zs(e){return qe(or|bt,e,!0)}function mr(e,t=0){return qe(tr|t,e,!0)}function J(e,t=[],r=[]){Os(t,r,n=>{qe(tr,()=>e(...n.map(h)),!0)})}function _r(e,t=0){var r=qe(vt|t,e,!0);return r}function _t(e,t=!0){return qe(Ue|bt,e,!0,t)}function gn(e){var t=e.teardown;if(t!==null){const r=ot,n=N;xn(!0),Ce(null);try{t.call(null)}finally{xn(r),Ce(n)}}}function mn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&zt(()=>{s.abort(ar)});var n=r.next;(r.f&Ye)!==0?r.parent=null:Fe(r,t),r=n}}function Us(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ue)===0&&Fe(t),t=r}}function Fe(e,t=!0){var r=!1;(t||(e.f&jr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Vs(e.nodes_start,e.nodes_end),r=!0),mn(e,t&&!r),Vt(e,0),_e(e,et);var n=e.transitions;if(n!==null)for(const o of n)o.stop();gn(e);var s=e.parent;s!==null&&s.first!==null&&_n(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Vs(e,t){for(;e!==null;){var r=e===t?null:Oe(e);e.remove(),e=r}}function _n(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function pr(e,t){var r=[];yr(e,r,!0),pn(r,()=>{Fe(e),t&&t()})}function pn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function yr(e,t,r){if((e.f&Ae)===0){if(e.f^=Ae,e.transitions!==null)for(const i of e.transitions)(i.is_global||r)&&t.push(i);for(var n=e.first;n!==null;){var s=n.next,o=(n.f&nr)!==0||(n.f&Ue)!==0;yr(n,t,o?r:!1),n=s}}}function wr(e){yn(e,!0)}function yn(e,t){if((e.f&Ae)!==0){e.f^=Ae,(e.f&fe)===0&&(_e(e,Te),gt(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&nr)!==0||(r.f&Ue)!==0;yn(r,s?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let pt=!1;function wn(e){pt=e}let ot=!1;function xn(e){ot=e}let N=null,je=!1;function Ce(e){N=e}let k=null;function We(e){k=e}let Ve=null;function Hs(e){N!==null&&(Ve===null?Ve=[e]:Ve.push(e))}let ve=null,xe=0,Se=null;function Ys(e){Se=e}let kn=1,Tt=0,it=Tt;function En(e){it=e}let Ke=!1;function $n(){return++kn}function Ut(e){var t=e.f;if((t&Te)!==0)return!0;if((t&Je)!==0){var r=e.deps,n=(t&$e)!==0;if(r!==null){var s,o,i=(t&Mt)!==0,a=n&&k!==null&&!Ke,l=r.length;if((i||a)&&(k===null||(k.f&et)===0)){var u=e,f=u.parent;for(s=0;s<l;s++)o=r[s],(i||!o?.reactions?.includes(u))&&(o.reactions??=[]).push(u);i&&(u.f^=Mt),a&&f!==null&&(f.f&$e)===0&&(u.f^=$e)}for(s=0;s<l;s++)if(o=r[s],Ut(o)&&Kr(o),o.wv>e.wv)return!0}(!n||k!==null&&!Ke)&&_e(e,fe)}return!1}function Tn(e,t,r=!0){var n=e.reactions;if(n!==null&&!Ve?.includes(e))for(var s=0;s<n.length;s++){var o=n[s];(o.f&ye)!==0?Tn(o,t,!1):t===o&&(r?_e(o,Te):(o.f&fe)!==0&&_e(o,Je),gt(o))}}function Cn(e){var t=ve,r=xe,n=Se,s=N,o=Ke,i=Ve,a=Pe,l=je,u=it,f=e.f;ve=null,xe=0,Se=null,Ke=(f&$e)!==0&&(je||!pt||N===null),N=(f&(Ue|Ye))===0?e:null,Ve=null,Dt(e.ctx),je=!1,it=++Tt,e.ac!==null&&(zt(()=>{e.ac.abort(ar)}),e.ac=null);try{e.f|=sr;var g=e.fn,v=g(),b=e.deps;if(ve!==null){var d;if(Vt(e,xe),b!==null&&xe>0)for(b.length=xe+ve.length,d=0;d<ve.length;d++)b[xe+d]=ve[d];else e.deps=b=ve;if(!Ke||(f&ye)!==0&&e.reactions!==null)for(d=xe;d<b.length;d++)(b[d].reactions??=[]).push(e)}else b!==null&&xe<b.length&&(Vt(e,xe),b.length=xe);if(Hr()&&Se!==null&&!je&&b!==null&&(e.f&(ye|Je|Te))===0)for(d=0;d<Se.length;d++)Tn(Se[d],e);return s!==null&&s!==e&&(Tt++,Se!==null&&(n===null?n=Se:n.push(...Se))),(e.f&tt)!==0&&(e.f^=tt),v}catch(m){return Es(m)}finally{e.f^=sr,ve=t,xe=r,Se=n,N=s,Ke=o,Ve=i,Dt(a),je=l,it=u}}function Js(e,t){let r=t.reactions;if(r!==null){var n=ns.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&ye)!==0&&(ve===null||!ve.includes(t))&&(_e(t,Je),(t.f&($e|Mt))===0&&(t.f^=Mt),Xr(t),Vt(t,0))}function Vt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Js(e,r[n])}function yt(e){var t=e.f;if((t&et)===0){_e(e,fe);var r=k,n=pt;k=e,pt=!0;try{(t&vt)!==0?Us(e):mn(e),gn(e);var s=Cn(e);e.teardown=typeof s=="function"?s:null,e.wv=kn;var o;Mr&&xs&&(e.f&Te)!==0&&e.deps}finally{pt=n,k=r}}}async function Gs(){await Promise.resolve(),W()}function h(e){var t=e.f,r=(t&ye)!==0;if(N!==null&&!je){var n=k!==null&&(k.f&et)!==0;if(!n&&!Ve?.includes(e)){var s=N.deps;if((N.f&sr)!==0)e.rv<Tt&&(e.rv=Tt,ve===null&&s!==null&&s[xe]===e?xe++:ve===null?ve=[e]:(!Ke||!ve.includes(e))&&ve.push(e));else{(N.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[N]:o.includes(N)||o.push(N)}}}else if(r&&e.deps===null&&e.effects===null){var i=e,a=i.parent;a!==null&&(a.f&$e)===0&&(i.f^=$e)}if(ot){if(Ge.has(e))return Ge.get(e);if(r){i=e;var l=i.v;return((i.f&fe)===0&&i.reactions!==null||Sn(i))&&(l=dr(i)),Ge.set(i,l),l}}else r&&(i=e,Ut(i)&&Kr(i));if((e.f&tt)!==0)throw e.v;return e.v}function Sn(e){if(e.v===ae)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ge.has(t)||(t.f&ye)!==0&&Sn(t))return!0;return!1}function Nn(e){var t=je;try{return je=!0,e()}finally{je=t}}const Xs=-7169;function _e(e,t){e.f=e.f&Xs|t}const An=new Set,xr=new Set;function Ks(e,t,r,n={}){function s(o){if(n.capture||Ct.call(t,o),!o.cancelBubble)return zt(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ts(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function kr(e,t,r,n,s){var o={capture:n,passive:s},i=Ks(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&qs(()=>{t.removeEventListener(e,i,o)})}function Zs(e){for(var t=0;t<e.length;t++)An.add(e[t]);for(var r of xr)r(e)}let Pn=null;function Ct(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;Pn=e;var i=0,a=Pn===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;l<=u&&(i=l)}if(o=s[i]||e.target,o!==t){ft(e,"currentTarget",{configurable:!0,get(){return o||r}});var f=N,g=k;Ce(null),We(null);try{for(var v,b=[];o!==null;){var d=o.assignedSlot||o.parentNode||o.host||null;try{var m=o["__"+n];if(m!=null&&(!o.disabled||e.target===o))if(Zt(m)){var[p,...K]=m;p.apply(o,[e,...K])}else m.call(o,e)}catch(T){v?b.push(T):v=T}if(e.cancelBubble||d===t||d===null)break;o=d}if(v){for(let T of b)queueMicrotask(()=>{throw T});throw v}}finally{e.__root=t,delete e.currentTarget,Ce(f),We(g)}}}let Ne;function Qs(){Ne=void 0}function eo(e){let t=null,r=x;var n;if(x){for(t=R,Ne===void 0&&(Ne=Xe(document.head));Ne!==null&&(Ne.nodeType!==ht||Ne.data!==Gt);)Ne=Oe(Ne);Ne===null?we(!1):Ne=ge(Oe(Ne))}x||(n=document.head.appendChild(Re()));try{_r(()=>e(n),jr)}finally{r&&(we(!0),Ne=R,ge(t))}}function to(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ze(e,t){var r=k;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function D(e,t){var r=(t&es)!==0,n=(t&ts)!==0,s,o=!e.startsWith("<!>");return()=>{if(x)return Ze(R,null),R;s===void 0&&(s=to(o?e:"<!>"+e),r||(s=Xe(s)));var i=n||an?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=Xe(i),l=i.lastChild;Ze(a,l)}else Ze(i,i);return i}}function ro(e=""){if(!x){var t=Re(e+"");return Ze(t,t),t}var r=R;return r.nodeType!==lr&&(r.before(r=Re()),ge(r)),Ze(r,r),r}function Me(){if(x)return Ze(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=Re();return e.append(t,r),Ze(t,r),e}function _(e,t){if(x){k.nodes_end=R,xt();return}e!==null&&e.before(t)}const no=["touchstart","touchmove"];function so(e){return no.includes(e)}function oe(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Rn(e,t){return On(e,t)}function oo(e,t){gr(),t.intro=t.intro??!1;const r=t.target,n=x,s=R;try{for(var o=Xe(r);o&&(o.nodeType!==ht||o.data!==Gt);)o=Oe(o);if(!o)throw ut;we(!0),ge(o),xt();const i=On(e,{...t,anchor:o});if(R===null||R.nodeType!==ht||R.data!==Kt)throw Lt(),ut;return we(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw i;return i!==ut&&console.warn("Failed to hydrate: ",i),t.recover===!1&&ms(),gr(),un(r),we(!1),Rn(e,t)}finally{we(n),ge(s),Qs()}}const wt=new Map;function On(e,{target:t,anchor:r,props:n={},events:s,context:o,intro:i=!0}){gr();var a=new Set,l=g=>{for(var v=0;v<g.length;v++){var b=g[v];if(!a.has(b)){a.add(b);var d=so(b);t.addEventListener(b,Ct,{passive:d});var m=wt.get(b);m===void 0?(document.addEventListener(b,Ct,{passive:d}),wt.set(b,1)):wt.set(b,m+1)}}};l(Qt(An)),xr.add(l);var u=void 0,f=Ws(()=>{var g=r??t.appendChild(Re());return _t(()=>{if(o){Ur({});var v=Pe;v.c=o}s&&(n.$$events=s),x&&Ze(g,null),u=e(g,n)||{},x&&(k.nodes_end=R),o&&Vr()}),()=>{for(var v of a){t.removeEventListener(v,Ct);var b=wt.get(v);--b===0?(document.removeEventListener(v,Ct),wt.delete(v)):wt.set(v,b)}xr.delete(l),g!==r&&g.parentNode?.removeChild(g)}});return Er.set(u,f),u}let Er=new WeakMap;function io(e,t){const r=Er.get(e);return r?(Er.delete(e),r(t)):Promise.resolve()}function G(e,t,r=!1){x&&xt();var n=e,s=null,o=null,i=ae,a=r?nr:0,l=!1;const u=(b,d=!0)=>{l=!0,v(d,b)};var f=null;function g(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var b=i?s:o,d=i?o:s;b&&wr(b),d&&pr(d,()=>{i?o=null:s=null})}const v=(b,d)=>{if(i===(i=b))return;let m=!1;if(x){const O=Wr(n)===Xt;!!i===O&&(n=cr(),ge(n),we(!1),m=!0)}var p=fn(),K=n;if(p&&(f=document.createDocumentFragment(),f.append(K=Re())),i?s??=d&&_t(()=>d(K)):o??=d&&_t(()=>d(K)),p){var T=j,A=i?s:o,B=i?o:s;A&&T.skipped_effects.delete(A),B&&T.skipped_effects.add(B),T.add_callback(g)}else g();m&&we(!0)};_r(()=>{l=!1,t(u),l||v(null,null)},a),x&&(n=R)}function ao(e,t,r){for(var n=e.items,s=[],o=t.length,i=0;i<o;i++)yr(t[i].e,s,!0);var a=o>0&&s.length===0&&r!==null;if(a){var l=r.parentNode;un(l),l.append(r),n.clear(),Be(e,t[0].prev,t[o-1].next)}pn(s,()=>{for(var u=0;u<o;u++){var f=t[u];a||(n.delete(f.k),Be(e,f.prev,f.next)),Fe(f.e,!a)}})}function lo(e,t,r,n,s,o=null){var i=e,a={flags:t,items:new Map,first:null};{var l=e;i=x?ge(Xe(l)):l.appendChild(Re())}x&&xt();var u=null,f=!1,g=new Map,v=Ps(()=>{var p=r();return Zt(p)?p:p==null?[]:Qt(p)}),b,d;function m(){co(d,b,a,g,i,s,t,n,r),o!==null&&(b.length===0?u?wr(u):u=_t(()=>o(i)):u!==null&&pr(u,()=>{u=null}))}_r(()=>{d??=k,b=h(v);var p=b.length;if(f&&p===0)return;f=p===0;let K=!1;if(x){var T=Wr(i)===Xt;T!==(p===0)&&(i=cr(),ge(i),we(!1),K=!0)}if(x){for(var A=null,B,O=0;O<p;O++){if(R.nodeType===ht&&R.data===Kt){i=R,K=!0,we(!1);break}var Z=b[O],H=n(Z,O);B=$r(R,a,A,null,Z,H,O,s,t,r),a.items.set(H,B),A=B}p>0&&ge(cr())}if(x)p===0&&o&&(u=_t(()=>o(i)));else if(fn()){var E=new Set,z=j;for(O=0;O<p;O+=1){Z=b[O],H=n(Z,O);var pe=a.items.get(H)??g.get(H);pe?Mn(pe,Z,O):(B=$r(null,a,null,null,Z,H,O,s,t,r,!0),g.set(H,B)),E.add(H)}for(const[Le,L]of a.items)E.has(Le)||z.skipped_effects.add(L.e);z.add_callback(m)}else m();K&&we(!0),h(v)}),x&&(i=R)}function co(e,t,r,n,s,o,i,a,l){var u=t.length,f=r.items,g=r.first,v=g,b,d=null,m=[],p=[],K,T,A,B;for(B=0;B<u;B+=1){if(K=t[B],T=a(K,B),A=f.get(T),A===void 0){var O=n.get(T);if(O!==void 0){n.delete(T),f.set(T,O);var Z=d?d.next:v;Be(r,d,O),Be(r,O,Z),Tr(O,Z,s),d=O}else{var H=v?v.e.nodes_start:s;d=$r(H,r,d,d===null?r.first:d.next,K,T,B,o,i,l)}f.set(T,d),m=[],p=[],v=d.next;continue}if(Mn(A,K,B),(A.e.f&Ae)!==0&&wr(A.e),A!==v){if(b!==void 0&&b.has(A)){if(m.length<p.length){var E=p[0],z;d=E.prev;var pe=m[0],Le=m[m.length-1];for(z=0;z<m.length;z+=1)Tr(m[z],E,s);for(z=0;z<p.length;z+=1)b.delete(p[z]);Be(r,pe.prev,Le.next),Be(r,d,pe),Be(r,Le,E),v=E,d=Le,B-=1,m=[],p=[]}else b.delete(A),Tr(A,v,s),Be(r,A.prev,A.next),Be(r,A,d===null?r.first:d.next),Be(r,d,A),d=A;continue}for(m=[],p=[];v!==null&&v.k!==T;)(v.e.f&Ae)===0&&(b??=new Set).add(v),p.push(v),v=v.next;if(v===null)continue;A=v}m.push(A),d=A,v=A.next}if(v!==null||b!==void 0){for(var L=b===void 0?[]:Qt(b);v!==null;)(v.e.f&Ae)===0&&L.push(v),v=v.next;var St=L.length;if(St>0){var U=u===0?s:null;ao(r,L,U)}}e.first=r.first&&r.first.e,e.last=d&&d.e;for(var le of n.values())Fe(le.e);n.clear()}function Mn(e,t,r,n){Bt(e.v,t),e.i=r}function $r(e,t,r,n,s,o,i,a,l,u,f){var g=(l&Kn)!==0,v=(l&Qn)===0,b=g?v?nn(s,!1,!1):$t(s):s,d=(l&Zn)===0?i:$t(i),m={i:d,v:b,k:o,a:null,e:null,prev:r,next:n};try{if(e===null){var p=document.createDocumentFragment();p.append(e=Re())}return m.e=_t(()=>a(e,b,d,u),x),m.e.prev=r&&r.e,m.e.next=n&&n.e,r===null?f||(t.first=m):(r.next=m,r.e.next=m.e),n!==null&&(n.prev=m,n.e.prev=m.e),m}finally{}}function Tr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,s=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==null&&o!==n;){var i=Oe(o);s.before(o),o=i}}function Be(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function uo(e,t,r,n,s){x&&xt();var o=t.$$slots?.[r],i=!1;o===!0&&(o=t[r],i=!0),o===void 0?s!==null&&s(e):o(e,i?()=>n:n)}function fo(e,t){Bs(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function vo(e,t,r){var n=e==null?"":""+e;return t&&(n=n?n+" "+t:t),n===""?null:n}function Qe(e,t,r,n,s,o){var i=e.__className;if(x||i!==r||i===void 0){var a=vo(r,n);(!x||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return o}const bo=Symbol("is custom element"),ho=Symbol("is html");function ze(e){if(x){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;at(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var s=e.checked;at(e,"checked",null),e.checked=s}}};e.__on_r=r,Cs(r),vn()}}function at(e,t,r,n){var s=go(e);x&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[us]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ln(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ht(e,t,r){var n=N,s=k;let o=x;x&&we(!1),Ce(null),We(null);try{t!=="style"&&(Cr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Ln(e).includes(t):r&&typeof r=="object")?e[t]=r:at(e,t,r==null?r:String(r))}finally{Ce(n),We(s),o&&we(!0)}}function go(e){return e.__attributes??={[bo]:e.nodeName.includes("-"),[ho]:e.namespaceURI===rs}}var Cr=new Map;function Ln(e){var t=e.getAttribute("is")||e.nodeName,r=Cr.get(t);if(r)return r;Cr.set(t,r=[]);for(var n,s=e,o=Element.prototype;o!==s;){n=ss(s);for(var i in n)n[i].set&&r.push(i);s=Lr(s)}return r}function He(e,t,r=t){var n=new WeakSet;bn(e,"input",async s=>{var o=s?e.defaultValue:e.value;if(o=Sr(e)?Nr(o):o,r(o),j!==null&&n.add(j),await Gs(),o!==(o=t())){var i=e.selectionStart,a=e.selectionEnd;e.value=o??"",a!==null&&(e.selectionStart=i,e.selectionEnd=Math.min(a,e.value.length))}}),(x&&e.defaultValue!==e.value||Nn(t)==null&&e.value)&&(r(Sr(e)?Nr(e.value):e.value),j!==null&&n.add(j)),mr(()=>{var s=t();if(e===document.activeElement){var o=qt??j;if(n.has(o))return}Sr(e)&&s===Nr(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function mo(e,t,r=t){bn(e,"change",n=>{var s=n?e.defaultChecked:e.checked;r(s)}),(x&&e.defaultChecked!==e.checked||Nn(t)==null)&&r(e.checked),mr(()=>{var n=t();e.checked=!!n})}function Sr(e){var t=e.type;return t==="number"||t==="range"}function Nr(e){return e===""?null:+e}function X(e,t,r,n){var s=n,o=!0,i=()=>(o&&(o=!1,s=n),s),a;a=e[t],a===void 0&&n!==void 0&&(a=i());var l;l=()=>{var v=e[t];return v===void 0?i():(o=!0,v)};var u=!1,f=fr(()=>(u=!1,l())),g=k;return(function(v,b){if(arguments.length>0){const d=b?h(f):v;return V(f,d),u=!0,s!==void 0&&(s=d),v}return ot&&u||(g.f&et)!==0?f.v:h(f)})}function _o(e){return new po(e)}class po{#t;#e;constructor(t){var r=new Map,n=(o,i)=>{var a=nn(i,!1,!1);return r.set(o,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(o,i){return h(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===cs?!0:(h(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,a){return V(r.get(i)??n(i,a),a),Reflect.set(o,i,a)}});this.#e=(t.hydrate?oo:Rn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&W(),this.#t=s.$$events;for(const o of Object.keys(this.#e))o==="$set"||o==="$destroy"||o==="$on"||ft(this,o,{get(){return this.#e[o]},set(i){this.#e[o]=i},enumerable:!0});this.#e.$set=o=>{Object.assign(s,o)},this.#e.$destroy=()=>{io(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let In;typeof HTMLElement=="function"&&(In=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){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,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const o=document.createElement("slot");n!=="default"&&(o.name=n),_(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=yo(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Yt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=_o({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=js(()=>{mr(()=>{this.$$r=!0;for(const n of Ot(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Yt(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const o=this.$$c.$on(n,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Yt(e,r,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 Ot(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Yt(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function yo(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function wo(e,t,r,n,s,o){let i=class extends In{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ot(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ot(t).forEach(a=>{ft(i.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=Yt(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=dt(u,a)?.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{ft(i.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=i,i}var lt={},Dn;function xo(){if(Dn)return lt;Dn=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.LanguageTranslator=void 0,lt.getChildStyleToPass=e,lt.addComponent=t;function e(n,s){var o,i,a="";try{if(n&&s?.length&&(!((o=Object.keys(n))===null||o===void 0)&&o.length)&&(!((i=s?.filter(function(v){return Object.keys(n).includes(v.name)}))===null||i===void 0)&&i.length))for(var l=function(v){var b=s?.filter(function(d){return d.name===v&&d.defaultValue!==n[v]});b&&(a+="".concat(v,":").concat(n[v],";"))},u=0,f=Object.keys(n);u<f.length;u++){var g=f[u];l(g)}}catch(v){console.error("error getting child style to pass",v)}finally{return a}}function t(n){var s,o=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!o)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var i=n?.iifePath||"main.iife.js";if(!document.getElementById(o+"-script"))try{var a=document.createElement("script");if(a.id=o+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(i),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=o.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(o.replace(l+"-",""),"/").concat(i)}document.head.appendChild(a)}catch(u){console.warn(u)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,o){return n.getDictionaryWord(s,this.dictionary,o||this.lang)},n.prototype.translateDate=function(s,o,i){return n.formatDate(s,o,i||this.lang)},n.getDefaultLang=function(){var s,o,i,a,l,u="en";return navigator?.languages&&(!((i=(o=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||o===void 0?void 0:o.toLowerCase())===null||i===void 0)&&i.length)&&(u=(l=(a=navigator.languages[0])===null||a===void 0?void 0:a.split("-")[0])===null||l===void 0?void 0:l.toLowerCase()),u},n.getDictionaryWord=function(s,o,i){var a;if(!s)throw new Error("no wordKey provided");if(!o)throw new Error("no dictionary provided");if(i&&(!((a=o[i])===null||a===void 0)&&a[s]))return o[i][s];var l="",u=n.getDefaultLang();if(!i||u!==i){var f=o?.[u];f?.[s]&&(l=f[s])}return l},n.formatDate=function(s,o,i){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(i||n.getDefaultLang(),o);return a.format(s)},n})();return lt.LanguageTranslator=r,lt}var Ar=xo();const ko={version:"0.61.46"},qn={en:{registerTitle:"Please create account",loginTitle:"Please sign in",loginSwitch:"go to login page",loginButton:"login",registerButton:"register",rememberMe:"Remember me",forgotPasswordButton:"Forget password?",recoverTitle:"Update password",ForgotTitle:"Recover password",temporaryCode:"Temporary code",recoverEmailText:"Retrieve your account by following the instructions that you will receive shortly at the indicated email",newPassword:"New password",repeatPassword:"Repeat password",recoverWord:"Recover",memo:"Save"},it:{registerTitle:"Crea un account",loginTitle:"Accedi al tuo account",loginSwitch:"vai al login",loginButton:"Accedi",registerButton:"Registrati",rememberMe:"Ricordami",forgotPasswordButton:"Password dimenticata?",recoverTitle:"Aggiorna la password",ForgotTitle:"Recupera la password",temporaryCode:"Codice temporaneo",recoverEmailText:"Recupera il tuo account seguendo le istruzioni che riceverai a breve presso l'email indicata",newPassword:"Nuova password",repeatPassword:"Ripeti la password",recoverWord:"Recupera",memo:"Memorizza"}};var Eo=D('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1st3y5c"/>'),$o=(e,t)=>t(e),To=D('<div class="mb-4 text-center svelte-1st3y5c"><img id="logoimg" alt="" class="svelte-1st3y5c"/></div>'),Co=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),So=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),No=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),Ao=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),Po=D('<li class="svelte-1st3y5c"><hb-auth-social-login-button></hb-auth-social-login-button></li>',2),Ro=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c">Credenziali</h1>'),Oo=D('<div class="d-flex justify-content-center mt-1 svelte-1st3y5c"><ul class="social-icons svelte-1st3y5c"></ul></div> <!>',1),Mo=D('<div class="form-floating svelte-1st3y5c"><input type="text" placeholder="name@example.com" required/> <label for="floatingInput" class="svelte-1st3y5c">Email</label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Password" required/> <label for="floatingPassword" class="svelte-1st3y5c">Password</label></div>',1),Lo=D('<div class="form-floating svelte-1st3y5c"><input type="text" placeholder="name@example.com" required/> <label for="floatingInput" class="svelte-1st3y5c">Email</label></div>'),Io=D('<div class="form-floating svelte-1st3y5c"><div class="svelte-1st3y5c"> </div></div>'),Do=D('<input type="text" class="form-control svelte-1st3y5c" placeholder="Codice temporaneo" required/>'),qo=D('<input type="text" class="form-control svelte-1st3y5c" placeholder="Codice temporaneo" disabled/>'),Fo=D('<input type="text" placeholder="name@example.com" required/>'),jo=D('<input type="text" placeholder="name@example.com" disabled/>'),Wo=D('<div class="form-floating svelte-1st3y5c"><!> <label for="floatingCode" class="svelte-1st3y5c"> </label></div> <div class="form-floating svelte-1st3y5c"><!> <label for="floatingEmail" class="svelte-1st3y5c">Email</label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Password" required/> <label for="floatingPassword" class="svelte-1st3y5c"> </label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Ripteti Password" required/> <label for="floatingPassword2" class="svelte-1st3y5c"> </label></div>',1),Bo=(e,t)=>t(),zo=(e,t)=>t("forgotpassword"),Uo=D('<button class="btn btn-link svelte-1st3y5c"> </button>'),Vo=(e,t)=>t("register"),Ho=D('<button class="btn btn-link svelte-1st3y5c"> </button>'),Yo=D('<p style="margin-bottom:0px" class="svelte-1st3y5c"><!> <!> <!></p>'),Jo=D('<div class="checkbox mb-3 svelte-1st3y5c"><label class="svelte-1st3y5c"><input type="checkbox" class="svelte-1st3y5c"/> </label></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <!>',1),Go=(e,t)=>t(),Xo=(e,t)=>t("login"),Ko=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <p style="margin-bottom:0px" class="svelte-1st3y5c"><button class="btn btn-link svelte-1st3y5c"> </button></p>',1),Zo=(e,t)=>t("login"),Qo=D('<p style="margin-bottom:0px" class="svelte-1st3y5c"><button class="btn btn-link svelte-1st3y5c"> </button></p>'),ei=(e,t)=>t(),ti=(e,t)=>t("login"),ri=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <button class="btn btn-link svelte-1st3y5c"> </button>',1),ni=(e,t)=>t(),si=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button>',1),oi=D('<main class="form-signin svelte-1st3y5c"><!> <!> <!> <!> <!></main>');const ii={hash:"svelte-1st3y5c",code:`@charset "UTF-8";
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw i;return i!==ut&&console.warn("Failed to hydrate: ",i),t.recover===!1&&ms(),gr(),un(r),we(!1),Rn(e,t)}finally{we(n),ge(s),Qs()}}const wt=new Map;function On(e,{target:t,anchor:r,props:n={},events:s,context:o,intro:i=!0}){gr();var a=new Set,l=g=>{for(var v=0;v<g.length;v++){var b=g[v];if(!a.has(b)){a.add(b);var d=so(b);t.addEventListener(b,Ct,{passive:d});var m=wt.get(b);m===void 0?(document.addEventListener(b,Ct,{passive:d}),wt.set(b,1)):wt.set(b,m+1)}}};l(Qt(An)),xr.add(l);var u=void 0,f=Ws(()=>{var g=r??t.appendChild(Re());return _t(()=>{if(o){Ur({});var v=Pe;v.c=o}s&&(n.$$events=s),x&&Ze(g,null),u=e(g,n)||{},x&&(k.nodes_end=R),o&&Vr()}),()=>{for(var v of a){t.removeEventListener(v,Ct);var b=wt.get(v);--b===0?(document.removeEventListener(v,Ct),wt.delete(v)):wt.set(v,b)}xr.delete(l),g!==r&&g.parentNode?.removeChild(g)}});return Er.set(u,f),u}let Er=new WeakMap;function io(e,t){const r=Er.get(e);return r?(Er.delete(e),r(t)):Promise.resolve()}function G(e,t,r=!1){x&&xt();var n=e,s=null,o=null,i=ae,a=r?nr:0,l=!1;const u=(b,d=!0)=>{l=!0,v(d,b)};var f=null;function g(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var b=i?s:o,d=i?o:s;b&&wr(b),d&&pr(d,()=>{i?o=null:s=null})}const v=(b,d)=>{if(i===(i=b))return;let m=!1;if(x){const O=Wr(n)===Xt;!!i===O&&(n=cr(),ge(n),we(!1),m=!0)}var p=fn(),K=n;if(p&&(f=document.createDocumentFragment(),f.append(K=Re())),i?s??=d&&_t(()=>d(K)):o??=d&&_t(()=>d(K)),p){var T=j,A=i?s:o,B=i?o:s;A&&T.skipped_effects.delete(A),B&&T.skipped_effects.add(B),T.add_callback(g)}else g();m&&we(!0)};_r(()=>{l=!1,t(u),l||v(null,null)},a),x&&(n=R)}function ao(e,t,r){for(var n=e.items,s=[],o=t.length,i=0;i<o;i++)yr(t[i].e,s,!0);var a=o>0&&s.length===0&&r!==null;if(a){var l=r.parentNode;un(l),l.append(r),n.clear(),Be(e,t[0].prev,t[o-1].next)}pn(s,()=>{for(var u=0;u<o;u++){var f=t[u];a||(n.delete(f.k),Be(e,f.prev,f.next)),Fe(f.e,!a)}})}function lo(e,t,r,n,s,o=null){var i=e,a={flags:t,items:new Map,first:null};{var l=e;i=x?ge(Xe(l)):l.appendChild(Re())}x&&xt();var u=null,f=!1,g=new Map,v=Ps(()=>{var p=r();return Zt(p)?p:p==null?[]:Qt(p)}),b,d;function m(){co(d,b,a,g,i,s,t,n,r),o!==null&&(b.length===0?u?wr(u):u=_t(()=>o(i)):u!==null&&pr(u,()=>{u=null}))}_r(()=>{d??=k,b=h(v);var p=b.length;if(f&&p===0)return;f=p===0;let K=!1;if(x){var T=Wr(i)===Xt;T!==(p===0)&&(i=cr(),ge(i),we(!1),K=!0)}if(x){for(var A=null,B,O=0;O<p;O++){if(R.nodeType===ht&&R.data===Kt){i=R,K=!0,we(!1);break}var Z=b[O],H=n(Z,O);B=$r(R,a,A,null,Z,H,O,s,t,r),a.items.set(H,B),A=B}p>0&&ge(cr())}if(x)p===0&&o&&(u=_t(()=>o(i)));else if(fn()){var E=new Set,z=j;for(O=0;O<p;O+=1){Z=b[O],H=n(Z,O);var pe=a.items.get(H)??g.get(H);pe?Mn(pe,Z,O):(B=$r(null,a,null,null,Z,H,O,s,t,r,!0),g.set(H,B)),E.add(H)}for(const[Le,L]of a.items)E.has(Le)||z.skipped_effects.add(L.e);z.add_callback(m)}else m();K&&we(!0),h(v)}),x&&(i=R)}function co(e,t,r,n,s,o,i,a,l){var u=t.length,f=r.items,g=r.first,v=g,b,d=null,m=[],p=[],K,T,A,B;for(B=0;B<u;B+=1){if(K=t[B],T=a(K,B),A=f.get(T),A===void 0){var O=n.get(T);if(O!==void 0){n.delete(T),f.set(T,O);var Z=d?d.next:v;Be(r,d,O),Be(r,O,Z),Tr(O,Z,s),d=O}else{var H=v?v.e.nodes_start:s;d=$r(H,r,d,d===null?r.first:d.next,K,T,B,o,i,l)}f.set(T,d),m=[],p=[],v=d.next;continue}if(Mn(A,K,B),(A.e.f&Ae)!==0&&wr(A.e),A!==v){if(b!==void 0&&b.has(A)){if(m.length<p.length){var E=p[0],z;d=E.prev;var pe=m[0],Le=m[m.length-1];for(z=0;z<m.length;z+=1)Tr(m[z],E,s);for(z=0;z<p.length;z+=1)b.delete(p[z]);Be(r,pe.prev,Le.next),Be(r,d,pe),Be(r,Le,E),v=E,d=Le,B-=1,m=[],p=[]}else b.delete(A),Tr(A,v,s),Be(r,A.prev,A.next),Be(r,A,d===null?r.first:d.next),Be(r,d,A),d=A;continue}for(m=[],p=[];v!==null&&v.k!==T;)(v.e.f&Ae)===0&&(b??=new Set).add(v),p.push(v),v=v.next;if(v===null)continue;A=v}m.push(A),d=A,v=A.next}if(v!==null||b!==void 0){for(var L=b===void 0?[]:Qt(b);v!==null;)(v.e.f&Ae)===0&&L.push(v),v=v.next;var St=L.length;if(St>0){var U=u===0?s:null;ao(r,L,U)}}e.first=r.first&&r.first.e,e.last=d&&d.e;for(var le of n.values())Fe(le.e);n.clear()}function Mn(e,t,r,n){Bt(e.v,t),e.i=r}function $r(e,t,r,n,s,o,i,a,l,u,f){var g=(l&Kn)!==0,v=(l&Qn)===0,b=g?v?nn(s,!1,!1):$t(s):s,d=(l&Zn)===0?i:$t(i),m={i:d,v:b,k:o,a:null,e:null,prev:r,next:n};try{if(e===null){var p=document.createDocumentFragment();p.append(e=Re())}return m.e=_t(()=>a(e,b,d,u),x),m.e.prev=r&&r.e,m.e.next=n&&n.e,r===null?f||(t.first=m):(r.next=m,r.e.next=m.e),n!==null&&(n.prev=m,n.e.prev=m.e),m}finally{}}function Tr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,s=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==null&&o!==n;){var i=Oe(o);s.before(o),o=i}}function Be(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function uo(e,t,r,n,s){x&&xt();var o=t.$$slots?.[r],i=!1;o===!0&&(o=t[r],i=!0),o===void 0?s!==null&&s(e):o(e,i?()=>n:n)}function fo(e,t){Bs(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function vo(e,t,r){var n=e==null?"":""+e;return t&&(n=n?n+" "+t:t),n===""?null:n}function Qe(e,t,r,n,s,o){var i=e.__className;if(x||i!==r||i===void 0){var a=vo(r,n);(!x||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return o}const bo=Symbol("is custom element"),ho=Symbol("is html");function ze(e){if(x){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;at(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var s=e.checked;at(e,"checked",null),e.checked=s}}};e.__on_r=r,Cs(r),vn()}}function at(e,t,r,n){var s=go(e);x&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[us]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ln(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ht(e,t,r){var n=N,s=k;let o=x;x&&we(!1),Ce(null),We(null);try{t!=="style"&&(Cr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Ln(e).includes(t):r&&typeof r=="object")?e[t]=r:at(e,t,r==null?r:String(r))}finally{Ce(n),We(s),o&&we(!0)}}function go(e){return e.__attributes??={[bo]:e.nodeName.includes("-"),[ho]:e.namespaceURI===rs}}var Cr=new Map;function Ln(e){var t=e.getAttribute("is")||e.nodeName,r=Cr.get(t);if(r)return r;Cr.set(t,r=[]);for(var n,s=e,o=Element.prototype;o!==s;){n=ss(s);for(var i in n)n[i].set&&r.push(i);s=Lr(s)}return r}function He(e,t,r=t){var n=new WeakSet;bn(e,"input",async s=>{var o=s?e.defaultValue:e.value;if(o=Sr(e)?Nr(o):o,r(o),j!==null&&n.add(j),await Gs(),o!==(o=t())){var i=e.selectionStart,a=e.selectionEnd;e.value=o??"",a!==null&&(e.selectionStart=i,e.selectionEnd=Math.min(a,e.value.length))}}),(x&&e.defaultValue!==e.value||Nn(t)==null&&e.value)&&(r(Sr(e)?Nr(e.value):e.value),j!==null&&n.add(j)),mr(()=>{var s=t();if(e===document.activeElement){var o=qt??j;if(n.has(o))return}Sr(e)&&s===Nr(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function mo(e,t,r=t){bn(e,"change",n=>{var s=n?e.defaultChecked:e.checked;r(s)}),(x&&e.defaultChecked!==e.checked||Nn(t)==null)&&r(e.checked),mr(()=>{var n=t();e.checked=!!n})}function Sr(e){var t=e.type;return t==="number"||t==="range"}function Nr(e){return e===""?null:+e}function X(e,t,r,n){var s=n,o=!0,i=()=>(o&&(o=!1,s=n),s),a;a=e[t],a===void 0&&n!==void 0&&(a=i());var l;l=()=>{var v=e[t];return v===void 0?i():(o=!0,v)};var u=!1,f=fr(()=>(u=!1,l())),g=k;return(function(v,b){if(arguments.length>0){const d=b?h(f):v;return V(f,d),u=!0,s!==void 0&&(s=d),v}return ot&&u||(g.f&et)!==0?f.v:h(f)})}function _o(e){return new po(e)}class po{#t;#e;constructor(t){var r=new Map,n=(o,i)=>{var a=nn(i,!1,!1);return r.set(o,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(o,i){return h(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===cs?!0:(h(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,a){return V(r.get(i)??n(i,a),a),Reflect.set(o,i,a)}});this.#e=(t.hydrate?oo:Rn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&W(),this.#t=s.$$events;for(const o of Object.keys(this.#e))o==="$set"||o==="$destroy"||o==="$on"||ft(this,o,{get(){return this.#e[o]},set(i){this.#e[o]=i},enumerable:!0});this.#e.$set=o=>{Object.assign(s,o)},this.#e.$destroy=()=>{io(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let In;typeof HTMLElement=="function"&&(In=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){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,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const o=document.createElement("slot");n!=="default"&&(o.name=n),_(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=yo(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Yt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=_o({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=js(()=>{mr(()=>{this.$$r=!0;for(const n of Ot(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Yt(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const o=this.$$c.$on(n,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Yt(e,r,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 Ot(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Yt(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function yo(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function wo(e,t,r,n,s,o){let i=class extends In{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ot(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ot(t).forEach(a=>{ft(i.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=Yt(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=dt(u,a)?.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{ft(i.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=i,i}var lt={},Dn;function xo(){if(Dn)return lt;Dn=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.LanguageTranslator=void 0,lt.getChildStyleToPass=e,lt.addComponent=t;function e(n,s){var o,i,a="";try{if(n&&s?.length&&(!((o=Object.keys(n))===null||o===void 0)&&o.length)&&(!((i=s?.filter(function(v){return Object.keys(n).includes(v.name)}))===null||i===void 0)&&i.length))for(var l=function(v){var b=s?.filter(function(d){return d.name===v&&d.defaultValue!==n[v]});b&&(a+="".concat(v,":").concat(n[v],";"))},u=0,f=Object.keys(n);u<f.length;u++){var g=f[u];l(g)}}catch(v){console.error("error getting child style to pass",v)}finally{return a}}function t(n){var s,o=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!o)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var i=n?.iifePath||"main.iife.js";if(!document.getElementById(o+"-script"))try{var a=document.createElement("script");if(a.id=o+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(i),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=o.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(o.replace(l+"-",""),"/").concat(i)}document.head.appendChild(a)}catch(u){console.warn(u)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,o){return n.getDictionaryWord(s,this.dictionary,o||this.lang)},n.prototype.translateDate=function(s,o,i){return n.formatDate(s,o,i||this.lang)},n.getDefaultLang=function(){var s,o,i,a,l,u="en";return navigator?.languages&&(!((i=(o=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||o===void 0?void 0:o.toLowerCase())===null||i===void 0)&&i.length)&&(u=(l=(a=navigator.languages[0])===null||a===void 0?void 0:a.split("-")[0])===null||l===void 0?void 0:l.toLowerCase()),u},n.getDictionaryWord=function(s,o,i){var a;if(!s)throw new Error("no wordKey provided");if(!o)throw new Error("no dictionary provided");if(i&&(!((a=o[i])===null||a===void 0)&&a[s]))return o[i][s];var l="",u=n.getDefaultLang();if(!i||u!==i){var f=o?.[u];f?.[s]&&(l=f[s])}return l},n.formatDate=function(s,o,i){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(i||n.getDefaultLang(),o);return a.format(s)},n})();return lt.LanguageTranslator=r,lt}var Ar=xo();const ko={version:"0.61.47"},qn={en:{registerTitle:"Please create account",loginTitle:"Please sign in",loginSwitch:"go to login page",loginButton:"login",registerButton:"register",rememberMe:"Remember me",forgotPasswordButton:"Forget password?",recoverTitle:"Update password",ForgotTitle:"Recover password",temporaryCode:"Temporary code",recoverEmailText:"Retrieve your account by following the instructions that you will receive shortly at the indicated email",newPassword:"New password",repeatPassword:"Repeat password",recoverWord:"Recover",memo:"Save"},it:{registerTitle:"Crea un account",loginTitle:"Accedi al tuo account",loginSwitch:"vai al login",loginButton:"Accedi",registerButton:"Registrati",rememberMe:"Ricordami",forgotPasswordButton:"Password dimenticata?",recoverTitle:"Aggiorna la password",ForgotTitle:"Recupera la password",temporaryCode:"Codice temporaneo",recoverEmailText:"Recupera il tuo account seguendo le istruzioni che riceverai a breve presso l'email indicata",newPassword:"Nuova password",repeatPassword:"Ripeti la password",recoverWord:"Recupera",memo:"Memorizza"}};var Eo=D('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1st3y5c"/>'),$o=(e,t)=>t(e),To=D('<div class="mb-4 text-center svelte-1st3y5c"><img id="logoimg" alt="" class="svelte-1st3y5c"/></div>'),Co=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),So=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),No=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),Ao=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),Po=D('<li class="svelte-1st3y5c"><hb-auth-social-login-button></hb-auth-social-login-button></li>',2),Ro=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c">Credenziali</h1>'),Oo=D('<div class="d-flex justify-content-center mt-1 svelte-1st3y5c"><ul class="social-icons svelte-1st3y5c"></ul></div> <!>',1),Mo=D('<div class="form-floating svelte-1st3y5c"><input type="text" placeholder="name@example.com" required/> <label for="floatingInput" class="svelte-1st3y5c">Email</label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Password" required/> <label for="floatingPassword" class="svelte-1st3y5c">Password</label></div>',1),Lo=D('<div class="form-floating svelte-1st3y5c"><input type="text" placeholder="name@example.com" required/> <label for="floatingInput" class="svelte-1st3y5c">Email</label></div>'),Io=D('<div class="form-floating svelte-1st3y5c"><div class="svelte-1st3y5c"> </div></div>'),Do=D('<input type="text" class="form-control svelte-1st3y5c" placeholder="Codice temporaneo" required/>'),qo=D('<input type="text" class="form-control svelte-1st3y5c" placeholder="Codice temporaneo" disabled/>'),Fo=D('<input type="text" placeholder="name@example.com" required/>'),jo=D('<input type="text" placeholder="name@example.com" disabled/>'),Wo=D('<div class="form-floating svelte-1st3y5c"><!> <label for="floatingCode" class="svelte-1st3y5c"> </label></div> <div class="form-floating svelte-1st3y5c"><!> <label for="floatingEmail" class="svelte-1st3y5c">Email</label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Password" required/> <label for="floatingPassword" class="svelte-1st3y5c"> </label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Ripteti Password" required/> <label for="floatingPassword2" class="svelte-1st3y5c"> </label></div>',1),Bo=(e,t)=>t(),zo=(e,t)=>t("forgotpassword"),Uo=D('<button class="btn btn-link svelte-1st3y5c"> </button>'),Vo=(e,t)=>t("register"),Ho=D('<button class="btn btn-link svelte-1st3y5c"> </button>'),Yo=D('<p style="margin-bottom:0px" class="svelte-1st3y5c"><!> <!> <!></p>'),Jo=D('<div class="checkbox mb-3 svelte-1st3y5c"><label class="svelte-1st3y5c"><input type="checkbox" class="svelte-1st3y5c"/> </label></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <!>',1),Go=(e,t)=>t(),Xo=(e,t)=>t("login"),Ko=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <p style="margin-bottom:0px" class="svelte-1st3y5c"><button class="btn btn-link svelte-1st3y5c"> </button></p>',1),Zo=(e,t)=>t("login"),Qo=D('<p style="margin-bottom:0px" class="svelte-1st3y5c"><button class="btn btn-link svelte-1st3y5c"> </button></p>'),ei=(e,t)=>t(),ti=(e,t)=>t("login"),ri=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <button class="btn btn-link svelte-1st3y5c"> </button>',1),ni=(e,t)=>t(),si=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button>',1),oi=D('<main class="form-signin svelte-1st3y5c"><!> <!> <!> <!> <!></main>');const ii={hash:"svelte-1st3y5c",code:`@charset "UTF-8";
3
3
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
5
  /*!
package/manifest.json CHANGED
@@ -641,5 +641,5 @@
641
641
  },
642
642
  "iifePath": "main.iife.js",
643
643
  "repoName": "@htmlbricks/hb-auth",
644
- "version": "0.61.46"
644
+ "version": "0.61.47"
645
645
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-auth",
3
- "version": "0.61.46",
3
+ "version": "0.61.47",
4
4
  "contributors": [],
5
5
  "description": "Authentication component",
6
6
  "licenses": [