@htmlbricks/hb-form-contact 0.61.50 → 0.61.52

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,4 +1,3 @@
1
- (function(mt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Rn=1,Cn=2,gt="[",yt="[!",wt="]",Ee={},E=Symbol(),An="http://www.w3.org/1999/xhtml",bt=!1;var $t=Array.isArray,xn=Array.prototype.indexOf,kn=Array.from,Ce=Object.keys,ce=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,Pn=Object.getOwnPropertyDescriptors,Ln=Object.prototype,jn=Array.prototype,Et=Object.getPrototypeOf,Tt=Object.isExtensible;function Nt(e){for(var t=0;t<e.length;t++)e[t]()}function Mn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const P=2,He=4,Ue=8,he=16,B=32,V=64,St=128,j=256,Ae=512,O=1024,M=2048,X=4096,J=8192,te=16384,Be=32768,Ge=65536,Ot=1<<17,Dn=1<<18,de=1<<19,In=1<<20,Ve=1<<21,Xe=1<<22,ne=1<<23,Je=Symbol("$state"),qn=Symbol("legacy props"),Fn=Symbol(""),Ke=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Yn=3,xe=8;function Wn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Hn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Un(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Bn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Gn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Vn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Jn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Kn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function zn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let T=!1;function K(e){T=e}let x;function _e(e){if(e===null)throw ze(),Ee;return x=e}function Ze(){return _e(ge(x))}function Zn(){for(var e=0,t=x;;){if(t.nodeType===xe){var n=t.data;if(n===wt){if(e===0)return t;e-=1}else(n===gt||n===yt)&&(e+=1)}var r=ge(t);t.remove(),t=r}}function Qn(e){if(!e||e.nodeType!==xe)throw ze(),Ee;return e.data}function Rt(e){return e===this.v}function er(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function tr(e){return!er(e,this.v)}let nr=!1,q=null;function ke(e){q=e}function Ct(e,t=!1,n){q={p:q,c:null,e:null,s:e,x:null,l:null}}function At(e){var t=q,n=t.e;if(n!==null){t.e=null;for(var r of n)Gt(r)}return e!==void 0&&(t.x=e),q=t.p,e??{}}function xt(){return!0}const rr=new WeakMap;function ir(e){var t=g;if(t===null)return y.f|=ne,e;if((t.f&Be)===0){if((t.f&St)===0)throw!t.parent&&e instanceof Error&&kt(e),e;t.b.error(e)}else Qe(e,t)}function Qe(e,t){for(;t!==null;){if((t.f&St)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&kt(e),e}function kt(e){const t=rr.get(e);t&&(ce(e,"message",{value:t.message}),ce(e,"stack",{value:t.stack}))}let Te=[],et=[];function Pt(){var e=Te;Te=[],Nt(e)}function sr(){var e=et;et=[],Nt(e)}function ar(e){Te.length===0&&queueMicrotask(Pt),Te.push(e)}function lr(){Te.length>0&&Pt(),et.length>0&&sr()}function or(){const e=g.b;return e===null&&Wn(),e}function tt(e){var t=P|M,n=y!==null&&(y.f&P)!==0?y:null;return g===null||n!==null&&(n.f&j)!==0?t|=j:g.f|=de,{ctx:q,deps:null,effects:null,equals:Rt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??g,ac:null}}function ur(e,t){let n=g;n===null&&Hn();var r=n.b,i=void 0,s=st(E),a=null,l=!y;return Or(()=>{try{var o=e();a&&Promise.resolve(o).catch(()=>{})}catch(h){o=Promise.reject(h)}var u=()=>o;i=a?.then(u,u)??Promise.resolve(o),a=i;var f=N,v=r.is_pending();l&&(r.update_pending_count(1),v||f.increment());const c=(h,d=void 0)=>{a=null,v||f.activate(),d?d!==Ke&&(s.f|=ne,at(s,d)):((s.f&ne)!==0&&(s.f^=ne),at(s,h)),l&&(r.update_pending_count(-1),v||f.decrement()),Mt()};if(i.then(c,h=>c(null,h||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(o=>{function u(f){function v(){f===i?o(s):u(i)}f.then(v,v)}u(i)})}function fr(e){const t=tt(e);return nn(t),t}function Lt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Z(t[n])}}function cr(e){for(var t=e.parent;t!==null;){if((t.f&P)===0)return t;t=t.parent}return null}function nt(e){var t,n=g;U(cr(e));try{Lt(e),t=on(e)}finally{U(n)}return t}function jt(e){var t=nt(e);if(e.equals(t)||(e.v=t,e.wv=an()),!ae){var n=(Q||(e.f&j)!==0)&&e.deps!==null?X:O;k(e,n)}}function vr(e,t,n){const r=tt;if(t.length===0){n(e.map(r));return}var i=N,s=g,a=hr(),l=or();Promise.all(t.map(o=>ur(o))).then(o=>{i?.activate(),a();try{n([...e.map(r),...o])}catch(u){(s.f&te)===0&&Qe(u,s)}i?.deactivate(),Mt()}).catch(o=>{l.error(o)})}function hr(){var e=g,t=y,n=q,r=N;return function(){U(e),D(t),ke(n),r?.activate()}}function Mt(){U(null),D(null),ke(null)}const rt=new Set;let N=null,Dt=new Set,Pe=[];function It(){const e=Pe.shift();Pe.length>0&&queueMicrotask(It),e()}let re=[],Le=null,it=!1,je=!1;class ie{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#r=[];#l=[];#c=[];#v=[];skipped_effects=new Set;process(t){re=[];for(const i of t)this.#d(i);if(this.#i.length===0&&this.#n===0){this.#h();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#l=[],N=null,Ft(n),Ft(r),N===null?N=this:rt.delete(this),this.#u?.resolve()}else this.#o(this.#s),this.#o(this.#r),this.#o(this.#l);for(const i of this.#i)we(i);for(const i of this.#a)we(i);this.#i=[],this.#a=[]}#d(t){t.f^=O;for(var n=t.first;n!==null;){var r=n.f,i=(r&(B|V))!==0,s=i&&(r&O)!==0,a=s||(r&J)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(i)n.f^=O;else if((r&He)!==0)this.#r.push(n);else if((r&O)===0)if((r&Xe)!==0){var l=n.b?.is_pending()?this.#a:this.#i;l.push(n)}else De(n)&&((n.f&he)!==0&&this.#l.push(n),we(n));var o=n.first;if(o!==null){n=o;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#o(t){for(const n of t)((n.f&M)!==0?this.#c:this.#v).push(n),k(n,O);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){N=this}deactivate(){N=null;for(const t of Dt)if(Dt.delete(t),t(),N!==null)break}neuter(){this.#f=!0}flush(){re.length>0?qt():this.#h(),N===this&&(this.#n===0&&rt.delete(this),this.deactivate())}#h(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)k(t,M),pe(t);for(const t of this.#v)k(t,X),pe(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Mn()).promise}static ensure(){if(N===null){const t=N=new ie;rt.add(N),je||ie.enqueue(()=>{N===t&&t.flush()})}return N}static enqueue(t){Pe.length===0&&queueMicrotask(It),Pe.unshift(t)}}function Ne(e){var t=je;je=!0;try{for(var n;;){if(lr(),re.length===0&&(N?.flush(),re.length===0))return Le=null,n;qt()}}finally{je=t}}function qt(){var e=ye;it=!0;try{var t=0;for(en(!0);re.length>0;){var n=ie.ensure();if(t++>1e3){var r,i;dr()}n.process(re),z.clear()}}finally{it=!1,en(e),Le=null}}function dr(){try{Vn()}catch(e){Qe(e,Le)}}let se=null;function Ft(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(te|J))===0&&De(r)&&(se=[],we(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Kt(r):r.fn=null),se?.length>0)){z.clear();for(const i of se)we(i);se=[]}}se=null}}function pe(e){for(var t=Le=e;t.parent!==null;){t=t.parent;var n=t.f;if(it&&t===g&&(n&he)!==0)return;if((n&(V|B))!==0){if((n&O)===0)return;t.f^=O}}re.push(t)}const z=new Map;function st(e,t){var n={f:0,v:e,reactions:null,equals:Rt,rv:0,wv:0};return n}function F(e,t){const n=st(e);return nn(n),n}function _r(e,t=!1,n=!0){const r=st(e);return t||(r.equals=tr),r}function W(e,t,n=!1){y!==null&&(!le||(y.f&Ot)!==0)&&xt()&&(y.f&(P|he|Xe|Ot))!==0&&!G?.includes(e)&&zn();let r=n?me(t):t;return at(e,r)}function at(e,t){if(!e.equals(t)){var n=e.v;ae?z.set(e,t):z.set(e,n),e.v=t;var r=ie.ensure();r.capture(e,n),(e.f&P)!==0&&((e.f&M)!==0&&nt(e),k(e,(e.f&j)===0?O:X)),e.wv=an(),Yt(e,M),g!==null&&(g.f&O)!==0&&(g.f&(B|V))===0&&(I===null?Lr([e]):I.push(e))}return t}function lt(e){W(e,e.v+1)}function Yt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],a=s.f,l=(a&M)===0;l&&k(s,t),(a&P)!==0?Yt(s,X):l&&((a&he)!==0&&se!==null&&se.push(s),pe(s))}}function me(e){if(typeof e!="object"||e===null||Je in e)return e;const t=Et(e);if(t!==Ln&&t!==jn)return e;var n=new Map,r=$t(e),i=F(0),s=oe,a=l=>{if(oe===s)return l();var o=y,u=oe;D(null),sn(s);var f=l();return D(o),sn(u),f};return r&&n.set("length",F(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Jn();var f=n.get(o);return f===void 0?f=a(()=>{var v=F(u.value);return n.set(o,v),v}):W(f,u.value,!0),!0},deleteProperty(l,o){var u=n.get(o);if(u===void 0){if(o in l){const f=a(()=>F(E));n.set(o,f),lt(i)}}else W(u,E),lt(i);return!0},get(l,o,u){if(o===Je)return e;var f=n.get(o),v=o in l;if(f===void 0&&(!v||ve(l,o)?.writable)&&(f=a(()=>{var h=me(v?l[o]:E),d=F(h);return d}),n.set(o,f)),f!==void 0){var c=A(f);return c===E?void 0:c}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var f=n.get(o);f&&(u.value=A(f))}else if(u===void 0){var v=n.get(o),c=v?.v;if(v!==void 0&&c!==E)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(l,o){if(o===Je)return!0;var u=n.get(o),f=u!==void 0&&u.v!==E||Reflect.has(l,o);if(u!==void 0||g!==null&&(!f||ve(l,o)?.writable)){u===void 0&&(u=a(()=>{var c=f?me(l[o]):E,h=F(c);return h}),n.set(o,u));var v=A(u);if(v===E)return!1}return f},set(l,o,u,f){var v=n.get(o),c=o in l;if(r&&o==="length")for(var h=u;h<v.v;h+=1){var d=n.get(h+"");d!==void 0?W(d,E):h in l&&(d=a(()=>F(E)),n.set(h+"",d))}if(v===void 0)(!c||ve(l,o)?.writable)&&(v=a(()=>F(void 0)),W(v,me(u)),n.set(o,v));else{c=v.v!==E;var p=a(()=>me(u));W(v,p)}var S=Reflect.getOwnPropertyDescriptor(l,o);if(S?.set&&S.set.call(f,u),!c){if(r&&typeof o=="string"){var R=n.get("length"),$=Number(o);Number.isInteger($)&&$>=R.v&&W(R,$+1)}lt(i)}return!0},ownKeys(l){A(i);var o=Reflect.ownKeys(l).filter(v=>{var c=n.get(v);return c===void 0||c.v!==E});for(var[u,f]of n)f.v!==E&&!(u in l)&&o.push(u);return o},setPrototypeOf(){Kn()}})}var Wt,Ht,Ut,Bt;function ot(){if(Wt===void 0){Wt=window,Ht=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ut=ve(t,"firstChild").get,Bt=ve(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(n)&&(n.__t=void 0)}}function ut(e=""){return document.createTextNode(e)}function Me(e){return Ut.call(e)}function ge(e){return Bt.call(e)}function pr(e,t){if(!T){var n=Me(e);return n instanceof Comment&&n.data===""?ge(n):n}return x}function mr(e,t=1,n=!1){let r=T?x:e;for(var i;t--;)i=r,r=ge(r);if(!T)return r;if(n&&r?.nodeType!==Yn){var s=ut();return r===null?i?.after(s):r.before(s),_e(s),s}return _e(r),r}function gr(e){e.textContent=""}function yr(){return!1}function ft(e){var t=y,n=g;D(null),U(null);try{return e()}finally{D(t),U(n)}}function wr(e){g===null&&y===null&&Gn(),y!==null&&(y.f&j)!==0&&g===null&&Bn(),ae&&Un()}function br(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function H(e,t,n,r=!0){var i=g;i!==null&&(i.f&J)!==0&&(e|=J);var s={ctx:q,deps:null,nodes_start:null,nodes_end:null,f:e|M,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{we(s),s.f|=Be}catch(o){throw Z(s),o}else t!==null&&pe(s);if(r){var a=s;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&de)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&br(a,i),y!==null&&(y.f&P)!==0&&(e&V)===0)){var l=y;(l.effects??=[]).push(a)}}return s}function $r(e){const t=H(Ue,null,!1);return k(t,O),t.teardown=e,t}function Er(e){wr();var t=g.f,n=!y&&(t&B)!==0&&(t&Be)===0;if(n){var r=q;(r.e??=[]).push(e)}else return Gt(e)}function Gt(e){return H(He|In,e,!1)}function Tr(e){ie.ensure();const t=H(V|de,e,!0);return()=>{Z(t)}}function Nr(e){ie.ensure();const t=H(V|de,e,!0);return(n={})=>new Promise(r=>{n.outro?zt(t,()=>{Z(t),r(void 0)}):(Z(t),r(void 0))})}function Sr(e){return H(He,e,!1)}function Or(e){return H(Xe|de,e,!0)}function Rr(e,t=0){return H(Ue|t,e,!0)}function Vt(e,t=[],n=[]){vr(t,n,r=>{H(Ue,()=>e(...r.map(A)),!0)})}function Cr(e,t=0){var n=H(he|t,e,!0);return n}function ct(e,t=!0){return H(B|de,e,!0,t)}function Xt(e){var t=e.teardown;if(t!==null){const n=ae,r=y;tn(!0),D(null);try{t.call(null)}finally{tn(n),D(r)}}}function Jt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&ft(()=>{i.abort(Ke)});var r=n.next;(n.f&V)!==0?n.parent=null:Z(n,t),n=r}}function Ar(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&B)===0&&Z(t),t=n}}function Z(e,t=!0){var n=!1;(t||(e.f&Dn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(xr(e.nodes_start,e.nodes_end),n=!0),Jt(e,t&&!n),Ie(e,0),k(e,te);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Xt(e);var i=e.parent;i!==null&&i.first!==null&&Kt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function xr(e,t){for(;e!==null;){var n=e===t?null:ge(e);e.remove(),e=n}}function Kt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function zt(e,t){var n=[];Zt(e,n,!0),kr(n,()=>{Z(e),t&&t()})}function kr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Zt(e,t,n){if((e.f&J)===0){if(e.f^=J,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Ge)!==0||(r.f&B)!==0;Zt(r,t,s?n:!1),r=i}}}function Pr(e){Qt(e,!0)}function Qt(e,t){if((e.f&J)!==0){e.f^=J,(e.f&O)===0&&(k(e,M),pe(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Ge)!==0||(n.f&B)!==0;Qt(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let ye=!1;function en(e){ye=e}let ae=!1;function tn(e){ae=e}let y=null,le=!1;function D(e){y=e}let g=null;function U(e){g=e}let G=null;function nn(e){y!==null&&(G===null?G=[e]:G.push(e))}let C=null,L=0,I=null;function Lr(e){I=e}let rn=1,Se=0,oe=Se;function sn(e){oe=e}let Q=!1;function an(){return++rn}function De(e){var t=e.f;if((t&M)!==0)return!0;if((t&X)!==0){var n=e.deps,r=(t&j)!==0;if(n!==null){var i,s,a=(t&Ae)!==0,l=r&&g!==null&&!Q,o=n.length;if((a||l)&&(g===null||(g.f&te)===0)){var u=e,f=u.parent;for(i=0;i<o;i++)s=n[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Ae),l&&f!==null&&(f.f&j)===0&&(u.f^=j)}for(i=0;i<o;i++)if(s=n[i],De(s)&&jt(s),s.wv>e.wv)return!0}(!r||g!==null&&!Q)&&k(e,O)}return!1}function ln(e,t,n=!0){var r=e.reactions;if(r!==null&&!G?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&P)!==0?ln(s,t,!1):t===s&&(n?k(s,M):(s.f&O)!==0&&k(s,X),pe(s))}}function on(e){var t=C,n=L,r=I,i=y,s=Q,a=G,l=q,o=le,u=oe,f=e.f;C=null,L=0,I=null,Q=(f&j)!==0&&(le||!ye||y===null),y=(f&(B|V))===0?e:null,G=null,ke(e.ctx),le=!1,oe=++Se,e.ac!==null&&(ft(()=>{e.ac.abort(Ke)}),e.ac=null);try{e.f|=Ve;var v=e.fn,c=v(),h=e.deps;if(C!==null){var d;if(Ie(e,L),h!==null&&L>0)for(h.length=L+C.length,d=0;d<C.length;d++)h[L+d]=C[d];else e.deps=h=C;if(!Q||(f&P)!==0&&e.reactions!==null)for(d=L;d<h.length;d++)(h[d].reactions??=[]).push(e)}else h!==null&&L<h.length&&(Ie(e,L),h.length=L);if(xt()&&I!==null&&!le&&h!==null&&(e.f&(P|X|M))===0)for(d=0;d<I.length;d++)ln(I[d],e);return i!==null&&i!==e&&(Se++,I!==null&&(r===null?r=I:r.push(...I))),(e.f&ne)!==0&&(e.f^=ne),c}catch(p){return ir(p)}finally{e.f^=Ve,C=t,L=n,I=r,y=i,Q=s,G=a,ke(l),le=o,oe=u}}function jr(e,t){let n=t.reactions;if(n!==null){var r=xn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&P)!==0&&(C===null||!C.includes(t))&&(k(t,X),(t.f&(j|Ae))===0&&(t.f^=Ae),Lt(t),Ie(t,0))}function Ie(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)jr(e,n[r])}function we(e){var t=e.f;if((t&te)===0){k(e,O);var n=g,r=ye;g=e,ye=!0;try{(t&he)!==0?Ar(e):Jt(e),Xt(e);var i=on(e);e.teardown=typeof i=="function"?i:null,e.wv=rn;var s;bt&&nr&&(e.f&M)!==0&&e.deps}finally{ye=r,g=n}}}function A(e){var t=e.f,n=(t&P)!==0;if(y!==null&&!le){var r=g!==null&&(g.f&te)!==0;if(!r&&!G?.includes(e)){var i=y.deps;if((y.f&Ve)!==0)e.rv<Se&&(e.rv=Se,C===null&&i!==null&&i[L]===e?L++:C===null?C=[e]:(!Q||!C.includes(e))&&C.push(e));else{(y.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[y]:s.includes(y)||s.push(y)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&j)===0&&(a.f^=j)}if(ae){if(z.has(e))return z.get(e);if(n){a=e;var o=a.v;return((a.f&O)===0&&a.reactions!==null||un(a))&&(o=nt(a)),z.set(a,o),o}}else n&&(a=e,De(a)&&jt(a));if((e.f&ne)!==0)throw e.v;return e.v}function un(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(z.has(t)||(t.f&P)!==0&&un(t))return!0;return!1}const Mr=-7169;function k(e,t){e.f=e.f&Mr|t}const Dr=new Set,fn=new Set;function Ir(e,t,n,r={}){function i(s){if(r.capture||Oe.call(t,s),!s.cancelBubble)return ft(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ar(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function vt(e,t,n,r,i){var s={capture:r,passive:i},a=Ir(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&$r(()=>{t.removeEventListener(e,a,s)})}let cn=null;function Oe(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;cn=e;var a=0,l=cn===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;o<=u&&(a=o)}if(s=i[a]||e.target,s!==t){ce(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=y,v=g;D(null),U(null);try{for(var c,h=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+r];if(p!=null&&(!s.disabled||e.target===s))if($t(p)){var[S,...R]=p;S.apply(s,[e,...R])}else p.call(s,e)}catch($){c?h.push($):c=$}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let $ of h)queueMicrotask(()=>{throw $});throw c}}finally{e.__root=t,delete e.currentTarget,D(f),U(v)}}}function qr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function qe(e,t){var n=g;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ht(e,t){var n=(t&Rn)!==0,r=(t&Cn)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return qe(x,null),x;i===void 0&&(i=qr(s?e:"<!>"+e),n||(i=Me(i)));var a=r||Ht?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Me(a),o=a.lastChild;qe(l,o)}else qe(a,a);return a}}function Fe(e,t){if(T){g.nodes_end=x,Ze();return}e!==null&&e.before(t)}const Fr=["touchstart","touchmove"];function Yr(e){return Fr.includes(e)}function vn(e,t){return hn(e,t)}function Wr(e,t){ot(),t.intro=t.intro??!1;const n=t.target,r=T,i=x;try{for(var s=Me(n);s&&(s.nodeType!==xe||s.data!==gt);)s=ge(s);if(!s)throw Ee;K(!0),_e(s),Ze();const a=hn(e,{...t,anchor:s});if(x===null||x.nodeType!==xe||x.data!==wt)throw ze(),Ee;return K(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ee&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Xn(),ot(),gr(n),K(!1),vn(e,t)}finally{K(r),_e(i)}}const be=new Map;function hn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){ot();var l=new Set,o=v=>{for(var c=0;c<v.length;c++){var h=v[c];if(!l.has(h)){l.add(h);var d=Yr(h);t.addEventListener(h,Oe,{passive:d});var p=be.get(h);p===void 0?(document.addEventListener(h,Oe,{passive:d}),be.set(h,1)):be.set(h,p+1)}}};o(kn(Dr)),fn.add(o);var u=void 0,f=Nr(()=>{var v=n??t.appendChild(ut());return ct(()=>{if(s){Ct({});var c=q;c.c=s}i&&(r.$$events=i),T&&qe(v,null),u=e(v,r)||{},T&&(g.nodes_end=x),s&&At()}),()=>{for(var c of l){t.removeEventListener(c,Oe);var h=be.get(c);--h===0?(document.removeEventListener(c,Oe),be.delete(c)):be.set(c,h)}fn.delete(o),v!==n&&v.parentNode?.removeChild(v)}});return dt.set(u,f),u}let dt=new WeakMap;function Hr(e,t){const n=dt.get(e);return n?(dt.delete(e),n(t)):Promise.resolve()}function dn(e,t,n=!1){T&&Ze();var r=e,i=null,s=null,a=E,l=n?Ge:0,o=!1;const u=(h,d=!0)=>{o=!0,c(d,h)};var f=null;function v(){f!==null&&(f.lastChild.remove(),r.before(f),f=null);var h=a?i:s,d=a?s:i;h&&Pr(h),d&&zt(d,()=>{a?s=null:i=null})}const c=(h,d)=>{if(a===(a=h))return;let p=!1;if(T){const w=Qn(r)===yt;!!a===w&&(r=Zn(),_e(r),K(!1),p=!0)}var S=yr(),R=r;if(S&&(f=document.createDocumentFragment(),f.append(R=ut())),a?i??=d&&ct(()=>d(R)):s??=d&&ct(()=>d(R)),S){var $=N,fe=a?i:s,_=a?s:i;fe&&$.skipped_effects.delete(fe),_&&$.skipped_effects.add(_),$.add_callback(v)}else v();p&&K(!0)};Cr(()=>{o=!1,t(u),o||c(null,null)},l),T&&(r=x)}function Ur(e,t){Sr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Br(e,t){return e==null?null:String(e)}function Gr(e,t,n,r){var i=e.__style;if(T||i!==t){var s=Br(t);(!T||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Vr=Symbol("is custom element"),Xr=Symbol("is html");function Jr(e,t,n,r){var i=Kr(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Fn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&pn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _n(e,t,n){var r=y,i=g;let s=T;T&&K(!1),D(null),U(null);try{t!=="style"&&(_t.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?pn(e).includes(t):n&&typeof n=="object")?e[t]=n:Jr(e,t,n==null?n:String(n))}finally{D(r),U(i),s&&K(!0)}}function Kr(e){return e.__attributes??={[Vr]:e.nodeName.includes("-"),[Xr]:e.namespaceURI===An}}var _t=new Map;function pn(e){var t=e.getAttribute("is")||e.nodeName,n=_t.get(t);if(n)return n;_t.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Pn(i);for(var a in r)r[a].set&&n.push(a);i=Et(i)}return n}function Ye(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=a());var o;o=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var u=!1,f=tt(()=>(u=!1,o())),v=g;return(function(c,h){if(arguments.length>0){const d=h?A(f):c;return W(f,d),u=!0,i!==void 0&&(i=d),c}return ae&&u||(v.f&te)!==0?f.v:A(f)})}function zr(e){return new Zr(e)}class Zr{#t;#e;constructor(t){var n=new Map,r=(s,a)=>{var l=_r(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return A(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===qn?!0:(A(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return W(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?Wr:vn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ne(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ce(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Hr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let mn;typeof HTMLElement=="function"&&(mn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Fe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Qr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=We(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=zr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Tr(()=>{Rr(()=>{this.$$r=!0;for(const r of Ce(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=We(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=We(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 Ce(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function We(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Qr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ei(e,t,n,r,i,s){let a=class extends mn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ce(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ce(t).forEach(l=>{ce(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=We(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=ve(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),r.forEach(l=>{ce(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}function ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ue={},gn;function ni(){if(gn)return ue;gn=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.LanguageTranslator=void 0,ue.getChildStyleToPass=e,ue.addComponent=t;function e(r,i){var s,a,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||a===void 0)&&a.length))for(var o=function(c){var h=i?.filter(function(d){return d.name===c&&d.defaultValue!==r[c]});h&&(l+="".concat(c,":").concat(r[c],";"))},u=0,f=Object.keys(r);u<f.length;u++){var v=f[u];o(v)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var a=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(a),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(u){console.warn(u)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,a){return r.formatDate(i,s,a||this.lang)},r.getDefaultLang=function(){var i,s,a,l,o,u="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(u=(o=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||o===void 0?void 0:o.toLowerCase()),u},r.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var o="",u=r.getDefaultLang();if(!a||u!==a){var f=s?.[u];f?.[i]&&(o=f[i])}return o},r.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||r.getDefaultLang(),s);return l.format(i)},r})();return ue.LanguageTranslator=n,ue}var yn=ni();const wn={version:"0.61.50"};var $e={},pt,bn;function ri(){if(bn)return pt;bn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
3
- `,u="/",f="*",v="",c="comment",h="declaration";pt=function(p,S){if(typeof p!="string")throw new TypeError("First argument must be a string");if(!p)return[];S=S||{};var R=1,$=1;function fe(b){var m=b.match(t);m&&(R+=m.length);var Y=b.lastIndexOf(o);$=~Y?b.length-Y:$+b.length}function _(){var b={line:R,column:$};return function(m){return m.position=new w(b),Nn(),m}}function w(b){this.start=b,this.end={line:R,column:$},this.source=S.source}w.prototype.content=p;function ee(b){var m=new Error(S.source+":"+R+":"+$+": "+b);if(m.reason=b,m.filename=S.source,m.line=R,m.column=$,m.source=p,!S.silent)throw m}function Re(b){var m=b.exec(p);if(m){var Y=m[0];return fe(Y),p=p.slice(Y.length),m}}function Nn(){Re(n)}function Sn(b){var m;for(b=b||[];m=On();)m!==!1&&b.push(m);return b}function On(){var b=_();if(!(u!=p.charAt(0)||f!=p.charAt(1))){for(var m=2;v!=p.charAt(m)&&(f!=p.charAt(m)||u!=p.charAt(m+1));)++m;if(m+=2,v===p.charAt(m-1))return ee("End of comment missing");var Y=p.slice(2,m-2);return $+=2,fe(Y),p=p.slice(m),$+=2,b({type:c,comment:Y})}}function fi(){var b=_(),m=Re(r);if(m){if(On(),!Re(i))return ee("property missing ':'");var Y=Re(s),vi=b({type:h,property:d(m[0].replace(e,v)),value:Y?d(Y[0].replace(e,v)):v});return Re(a),vi}}function ci(){var b=[];Sn(b);for(var m;m=fi();)m!==!1&&(b.push(m),Sn(b));return b}return Nn(),ci()};function d(p){return p?p.replace(l,v):v}return pt}var $n;function ii(){if($n)return $e;$n=1;var e=$e&&$e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($e,"__esModule",{value:!0}),$e.default=n;var t=e(ri());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var a=(0,t.default)(r),l=typeof i=="function";return a.forEach(function(o){if(o.type==="declaration"){var u=o.property,f=o.value;l?i(u,f,o):f&&(s=s||{},s[u]=f)}}),s}return $e}var si=ii();const En=ti(si);En.default;var ai=ht("<hb-captcha-google-recaptcha-v2-invisible></hb-captcha-google-recaptcha-v2-invisible>",2),li=ht("<hb-form></hb-form>",2),oi=ht("<!> <!>",1);const ui={hash:"svelte-a6mk1p",code:'@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");:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;}'};function Tn(e,t){Ct(t,!0),Ur(e,ui);let n=F("");me({});let r=Ye(t,"id",7,""),i=Ye(t,"informations",7,void 0),s=Ye(t,"privacy_policy",7,void 0),a=Ye(t,"captcha",7,void 0),l,o=F(!1);Er(()=>{if(typeof a()=="string")try{a(JSON.parse(a()))}catch(_){console.error("error parsing captcha",_)}if(typeof i()=="string")try{i(JSON.parse(i()))}catch(_){console.error("error parsing informations",_)}if(typeof s()=="string")try{s(JSON.parse(s()))}catch(_){console.error("error parsing privacy_policy",_)}});let u=fr(()=>{const _=[];if(!i()||typeof i()!="object")return[];if(i()?.name){const w={id:"name",name:"name",label:i().name.label||"Name",type:"text",required:!!i().name.required,placeholder:i().name.placeholder||"Your name",value:i().name.value||"",validation:{min:{value:3,message:"Name must be at least 3 characters long"}}};_.push(w)}if(i()?.email){const w={id:"email",name:"email",label:i().email.label||"email",type:"email",required:!!i().email.required,placeholder:i().email.placeholder||"Your email",value:i().email.value||"",validation:{min:{value:3,message:"email must be at least 3 characters long"}}};_.push(w)}if(i()?.phone){const w={id:"phone",name:"phone",label:i().phone.label||"phone",type:"text",required:!!i().phone.required,placeholder:i().phone.placeholder||"Your phone",value:i().phone.value||"",validation:{min:{value:3,message:"phone must be at least 3 characters long"}}};_.push(w)}if(i()?.subject){const w={id:"subject",name:"subject",label:i().subject.label||"Subject",type:"text",required:!!i().subject.required,placeholder:i().subject.placeholder||"Email Subject",value:i().subject.value||"",validation:{min:{value:3,message:"Name must be at least 3 characters long"}}};_.push(w)}if(i()?.message){const w={id:"message",name:"message",label:i().message.label||"Message",type:"textarea",required:!!i().message.required,placeholder:i().message.placeholder||"Your message here...",value:i().message.value||"",validation:{min:{value:3,message:"Name must be at least 3 characters long"}}};_.push(w)}if(s()?.input){const w={id:"policy",name:"policy",label:s().input,type:"checkbox",required:s().required,value:!1,valid:!1,error:""};_.push(w)}return _});yn.addComponent({repoName:"@htmlbricks/hb-form",version:wn.version}),yn.addComponent({repoName:"@htmlbricks/hb-captcha-google-recaptcha-v2-invisible",version:wn.version});function f(_,w){t.$$host.dispatchEvent(new CustomEvent(_,{detail:w}))}function v(_){if(!_._valid)return console.error("is not yet valid!",_);console.log("submit",a()),a()?.siteKey?(W(o,!0),l=_):f("formContactSubmit",_)}function c(_){console.log(_)}function h(_){f("formContactSubmitWithCaptcha",Object.assign({response:_.response,type:"recaptcha-v2-invisible"},l))}var d={get id(){return r()},set id(_=""){r(_),Ne()},get informations(){return i()},set informations(_=void 0){i(_),Ne()},get privacy_policy(){return s()},set privacy_policy(_=void 0){s(_),Ne()},get captcha(){return a()},set captcha(_=void 0){a(_),Ne()}},p=oi(),S=pr(p);{var R=_=>{var w=ai();Vt(()=>_n(w,"api_key",a().siteKey)),vt("googleRecaptchaV2Response",w,ee=>h(ee.detail)),Fe(_,w)};dn(S,_=>{a()?.siteKey&&A(o)&&_(R)})}var $=mr(S,2);{var fe=_=>{var w=li();Gr(w,A(n)),Vt(()=>_n(w,"schema",JSON.stringify(A(u)))),vt("submit",w,ee=>v(ee.detail)),vt("update",w,ee=>c(ee.detail)),Fe(_,w)};dn($,_=>{A(u)&&typeof A(u)=="object"&&A(u).length&&_(fe)})}return Fe(e,p),At(d)}customElements.define("hb-form-contact",ei(Tn,{id:{},informations:{},privacy_policy:{},captcha:{}},[],[],!0)),mt.Component=Tn,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})})(this["form-contact"]=this["form-contact"]||{});
1
+ (function(_t){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Tn=1,xn=2,pt="[",Xe="[!",gt="]",be={},E=Symbol(),Nn="http://www.w3.org/1999/xhtml",mt=!1;var Sn=Array.isArray,kn=Array.prototype.indexOf,An=Array.from,De=Object.keys,Me=Object.defineProperty,he=Object.getOwnPropertyDescriptor,Cn=Object.getOwnPropertyDescriptors,On=Object.prototype,Rn=Array.prototype,yt=Object.getPrototypeOf,bt=Object.isExtensible;function Ln(e){for(var t=0;t<e.length;t++)e[t]()}function wt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const T=2,Pe=4,Ze=8,W=16,J=32,Q=64,je=128,j=512,x=1024,A=2048,K=4096,q=8192,ee=16384,Qe=32768,de=65536,$t=1<<17,Et=1<<18,se=1<<19,Dn=1<<20,we=32768,et=1<<21,tt=1<<22,te=1<<23,nt=Symbol("$state"),Mn=Symbol("legacy props"),Pn=Symbol(""),ve=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Tt=3,$e=8;function jn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function In(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Fn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function qn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Yn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Bn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Hn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Un(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Wn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function rt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Jn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function ne(e){y=e}let b;function G(e){if(e===null)throw rt(),be;return b=e}function it(){return G(ie(b))}function Kn(e=1){if(y){for(var t=e,n=b;t--;)n=ie(n);b=n}}function xt(e=!0){for(var t=0,n=b;;){if(n.nodeType===$e){var r=n.data;if(r===gt){if(t===0)return n;t-=1}else(r===pt||r===Xe)&&(t+=1)}var i=ie(n);e&&n.remove(),n=i}}function Gn(e){if(!e||e.nodeType!==$e)throw rt(),be;return e.data}function Nt(e){return e===this.v}function zn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Xn(e){return!zn(e,this.v)}let Zn=!1,L=null;function _e(e){L=e}function St(e,t=!1,n){L={p:L,i:!1,c:null,e:null,s:e,x:null,l:null}}function kt(e){var t=L,n=t.e;if(n!==null){t.e=null;for(var r of n)Vt(r)}return e!==void 0&&(t.x=e),t.i=!0,L=t.p,e??{}}function At(){return!0}let ae=[];function Ct(){var e=ae;ae=[],Ln(e)}function Ie(e){if(ae.length===0&&!Ee){var t=ae;queueMicrotask(()=>{t===ae&&Ct()})}ae.push(e)}function Qn(){for(;ae.length>0;)Ct()}function Ot(e){var t=p;if(t===null)return _.f|=te,e;if((t.f&Qe)===0){if((t.f&je)===0)throw e;t.b.error(e)}else pe(e,t)}function pe(e,t){for(;t!==null;){if((t.f&je)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Fe=new Set;let w=null,O=null,Y=[],qe=null,st=!1,Ee=!1;class I{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#a=[];#l=[];skipped_effects=new Set;is_fork=!1;process(t){Y=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#i(r,n);this.is_fork||this.#f(),this.#r>0||this.is_fork?(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects)):(w=null,Lt(n.render_effects),Lt(n.effects),this.#o?.resolve()),O=null}#i(t,n){t.f^=x;for(var r=t.first;r!==null;){var i=r.f,s=(i&(J|Q))!==0,a=s&&(i&x)!==0,l=a||(i&q)!==0||this.skipped_effects.has(r);if((r.f&je)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){s?r.f^=x:(i&Pe)!==0?n.effects.push(r):Ae(r)&&((r.f&W)!==0&&n.block_effects.push(r),Ce(r));var o=r.first;if(o!==null){r=o;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#s(t){for(const n of t)((n.f&A)!==0?this.#a:this.#l).push(n),S(n,x)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&te)===0&&(this.current.set(t,t.v),O?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w=null,O=null}flush(){if(this.activate(),Y.length>0){if(Rt(),w!==null&&w!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#u()}#u(){if(Fe.size>1){this.previous.clear();var t=O,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Fe){if(i===this){n=!1;continue}const s=[];for(const[l,o]of this.current){if(i.current.has(l))if(n&&o!==i.current.get(l))i.current.set(l,o);else continue;s.push(l)}if(s.length===0)continue;const a=[...i.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){const l=new Set,o=new Map;for(const f of s)Dt(f,a,l,o);if(Y.length>0){w=i,i.apply();for(const f of Y)i.#i(f,r);Y=[],i.deactivate()}}}w=null,O=t}this.committed=!0,Fe.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#a)S(t,A),le(t);for(const t of this.#l)S(t,K),le(t);this.#a=[],this.#l=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=wt()).promise}static ensure(){if(w===null){const t=w=new I;Fe.add(w),Ee||I.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){Ie(t)}apply(){}}function Te(e){var t=Ee;Ee=!0;try{for(var n;;){if(Qn(),Y.length===0&&(w?.flush(),Y.length===0))return qe=null,n;Rt()}}finally{Ee=t}}function Rt(){var e=oe;st=!0;try{var t=0;for(tn(!0);Y.length>0;){var n=I.ensure();if(t++>1e3){var r,i;er()}n.process(Y),re.clear()}}finally{st=!1,tn(e),qe=null}}function er(){try{Yn()}catch(e){pe(e,qe)}}let z=null;function Lt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ee|q))===0&&Ae(r)&&(z=new Set,Ce(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Xt(r):r.fn=null),z?.size>0)){re.clear();for(const i of z){if((i.f&(ee|q))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)z.has(a)&&(z.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];(o.f&(ee|q))===0&&Ce(o)}}z.clear()}}z=null}}function Dt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&T)!==0?Dt(i,t,n,r):(s&(tt|W))!==0&&(s&A)===0&&Mt(i,t,r)&&(S(i,A),le(i))}}function Mt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&T)!==0&&Mt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function le(e){for(var t=qe=e;t.parent!==null;){t=t.parent;var n=t.f;if(st&&t===p&&(n&W)!==0&&(n&Et)===0)return;if((n&(Q|J))!==0){if((n&x)===0)return;t.f^=x}}Y.push(t)}function tr(e){let t=0,n=xe(0),r;return()=>{Ue()&&($(n),Wt(()=>(t===0&&(r=Ar(()=>e(()=>Ne(n)))),t+=1,()=>{Ie(()=>{t-=1,t===0&&(r?.(),r=void 0,Ne(n))})})))}}var nr=de|se|je;function rr(e,t,n){new ir(e,t,n)}class ir{parent;#t=!1;#e;#n=y?b:null;#r;#o;#a;#l=null;#i=null;#s=null;#f=null;#u=null;#d=0;#c=0;#v=!1;#h=null;#y=tr(()=>(this.#h=xe(this.#d),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=p.b,this.#t=!!this.#r.pending,this.#a=Kt(()=>{if(p.b=this,y){const s=this.#n;it(),s.nodeType===$e&&s.data===Xe?this.#w():this.#b()}else{var i=this.#g();try{this.#l=X(()=>r(i))}catch(s){this.error(s)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},nr),y&&(this.#e=b)}#b(){try{this.#l=X(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#r.pending;t&&(this.#i=X(()=>t(this.#e)),I.enqueue(()=>{var n=this.#g();this.#l=this.#_(()=>(I.ensure(),X(()=>this.#o(n)))),this.#c>0?this.#p():(Se(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=me(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=p,r=_,i=L;D(this.#a),N(this.#a),_e(this.#a.ctx);try{return t()}catch(s){return Ot(s),null}finally{D(n),N(r),_e(i)}}#p(){const t=this.#r.pending;this.#l!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),en(this.#l,this.#f)),this.#i===null&&(this.#i=X(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&Se(this.#i,()=>{this.#i=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#d+=t,this.#h&&Be(this.#h,this.#d)}get_effect_pending(){return this.#y(),$(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#l&&(C(this.#l),this.#l=null),this.#i&&(C(this.#i),this.#i=null),this.#s&&(C(this.#s),this.#s=null),y&&(G(this.#n),Kn(),G(xt()));var i=!1,s=!1;const a=()=>{if(i){Jn();return}i=!0,s&&Wn(),I.ensure(),this.#d=0,this.#s!==null&&Se(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#l=this.#_(()=>(this.#v=!1,X(()=>this.#o(this.#e)))),this.#c>0?this.#p():this.#t=!1};var l=_;try{N(null),s=!0,n?.(t,a),s=!1}catch(o){pe(o,this.#a&&this.#a.parent)}finally{N(l)}r&&Ie(()=>{this.#s=this.#_(()=>{I.ensure(),this.#v=!0;try{return X(()=>{r(this.#e,()=>t,()=>a)})}catch(o){return pe(o,this.#a.parent),null}finally{this.#v=!1}})})}}function sr(e,t,n,r){const i=at;if(n.length===0&&e.length===0){r(t.map(i));return}var s=w,a=p,l=ar();function o(){Promise.all(n.map(f=>lr(f))).then(f=>{l();try{r([...t.map(i),...f])}catch(c){(a.f&ee)===0&&pe(c,a)}s?.deactivate(),Ye()}).catch(f=>{pe(f,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{s?.deactivate(),Ye()}}):o()}function ar(){var e=p,t=_,n=L,r=w;return function(s=!0){D(e),N(t),_e(n),s&&r?.activate()}}function Ye(){D(null),N(null),_e(null)}function at(e){var t=T|A,n=_!==null&&(_.f&T)!==0?_:null;return p!==null&&(p.f|=se),{ctx:L,deps:null,effects:null,equals:Nt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??p,ac:null}}function lr(e,t){let n=p;n===null&&jn();var r=n.b,i=void 0,s=xe(E),a=!_,l=new Map;return $r(()=>{var o=wt();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{f===w&&f.committed&&f.deactivate(),Ye()})}catch(u){o.reject(u),Ye()}var f=w;if(a){var c=!r.is_pending();r.update_pending_count(1),f.increment(c),l.get(f)?.reject(ve),l.delete(f),l.set(f,o)}const d=(u,h=void 0)=>{if(f.activate(),h)h!==ve&&(s.f|=te,Be(s,h));else{(s.f&te)!==0&&(s.f^=te),Be(s,u);for(const[g,P]of l){if(l.delete(g),g===f)break;P.reject(ve)}}a&&(r.update_pending_count(-1),f.decrement(c))};o.promise.then(d,u=>d(null,u||"unknown"))}),Ut(()=>{for(const o of l.values())o.reject(ve)}),new Promise(o=>{function f(c){function d(){c===i?o(s):f(i)}c.then(d,d)}f(i)})}function or(e){const t=at(e);return rn(t),t}function Pt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)C(t[n])}}function fr(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return t;t=t.parent}return null}function lt(e){var t,n=p;D(fr(e));try{e.f&=~we,Pt(e),t=fn(e)}finally{D(n)}return t}function jt(e){var t=lt(e);if(e.equals(t)||(e.v=t,e.wv=ln()),!fe)if(O!==null)Ue()&&O.set(e,e.v);else{var n=(e.f&j)===0?K:x;S(e,n)}}let ot=new Set;const re=new Map;let It=!1;function xe(e,t){var n={f:0,v:e,reactions:null,equals:Nt,rv:0,wv:0};return n}function F(e,t){const n=xe(e);return rn(n),n}function ur(e,t=!1,n=!0){const r=xe(e);return t||(r.equals=Xn),r}function B(e,t,n=!1){_!==null&&(!U||(_.f&$t)!==0)&&At()&&(_.f&(T|W|tt|$t))!==0&&!Z?.includes(e)&&Vn();let r=n?ge(t):t;return Be(e,r)}function Be(e,t){if(!e.equals(t)){var n=e.v;fe?re.set(e,t):re.set(e,n),e.v=t;var r=I.ensure();r.capture(e,n),(e.f&T)!==0&&((e.f&A)!==0&&lt(e),S(e,(e.f&j)!==0?x:K)),e.wv=ln(),Ft(e,A),p!==null&&(p.f&x)!==0&&(p.f&(J|Q))===0&&(M===null?Sr([e]):M.push(e)),!r.is_fork&&ot.size>0&&!It&&cr()}return t}function cr(){It=!1;const e=Array.from(ot);for(const t of e)(t.f&x)!==0&&S(t,K),Ae(t)&&Ce(t);ot.clear()}function Ne(e){B(e,e.v+1)}function Ft(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],a=s.f,l=(a&A)===0;if(l&&S(s,t),(a&T)!==0){var o=s;O?.delete(o),(a&we)===0&&(a&j&&(s.f|=we),Ft(o,K))}else l&&((a&W)!==0&&z!==null&&z.add(s),le(s))}}function ge(e){if(typeof e!="object"||e===null||nt in e)return e;const t=yt(e);if(t!==On&&t!==Rn)return e;var n=new Map,r=Sn(e),i=F(0),s=ue,a=l=>{if(ue===s)return l();var o=_,f=ue;N(null),an(s);var c=l();return N(o),an(f),c};return r&&n.set("length",F(e.length)),new Proxy(e,{defineProperty(l,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Hn();var c=n.get(o);return c===void 0?c=a(()=>{var d=F(f.value);return n.set(o,d),d}):B(c,f.value,!0),!0},deleteProperty(l,o){var f=n.get(o);if(f===void 0){if(o in l){const c=a(()=>F(E));n.set(o,c),Ne(i)}}else B(f,E),Ne(i);return!0},get(l,o,f){if(o===nt)return e;var c=n.get(o),d=o in l;if(c===void 0&&(!d||he(l,o)?.writable)&&(c=a(()=>{var h=ge(d?l[o]:E),g=F(h);return g}),n.set(o,c)),c!==void 0){var u=$(c);return u===E?void 0:u}return Reflect.get(l,o,f)},getOwnPropertyDescriptor(l,o){var f=Reflect.getOwnPropertyDescriptor(l,o);if(f&&"value"in f){var c=n.get(o);c&&(f.value=$(c))}else if(f===void 0){var d=n.get(o),u=d?.v;if(d!==void 0&&u!==E)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(l,o){if(o===nt)return!0;var f=n.get(o),c=f!==void 0&&f.v!==E||Reflect.has(l,o);if(f!==void 0||p!==null&&(!c||he(l,o)?.writable)){f===void 0&&(f=a(()=>{var u=c?ge(l[o]):E,h=F(u);return h}),n.set(o,f));var d=$(f);if(d===E)return!1}return c},set(l,o,f,c){var d=n.get(o),u=o in l;if(r&&o==="length")for(var h=f;h<d.v;h+=1){var g=n.get(h+"");g!==void 0?B(g,E):h in l&&(g=a(()=>F(E)),n.set(h+"",g))}if(d===void 0)(!u||he(l,o)?.writable)&&(d=a(()=>F(void 0)),B(d,ge(f)),n.set(o,d));else{u=d.v!==E;var P=a(()=>ge(f));B(d,P)}var V=Reflect.getOwnPropertyDescriptor(l,o);if(V?.set&&V.set.call(c,f),!u){if(r&&typeof o=="string"){var ze=n.get("length"),Re=Number(o);Number.isInteger(Re)&&Re>=ze.v&&B(ze,Re+1)}Ne(i)}return!0},ownKeys(l){$(i);var o=Reflect.ownKeys(l).filter(d=>{var u=n.get(d);return u===void 0||u.v!==E});for(var[f,c]of n)c.v!==E&&!(f in l)&&o.push(f);return o},setPrototypeOf(){Un()}})}var qt,Yt,Bt,Ht;function ft(){if(qt===void 0){qt=window,Yt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Bt=he(t,"firstChild").get,Ht=he(t,"nextSibling").get,bt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),bt(n)&&(n.__t=void 0)}}function me(e=""){return document.createTextNode(e)}function He(e){return Bt.call(e)}function ie(e){return Ht.call(e)}function hr(e,t=!1){if(!y){var n=He(e);return n instanceof Comment&&n.data===""?ie(n):n}if(t&&b?.nodeType!==Tt){var r=me();return b?.before(r),G(r),r}return b}function dr(e,t=1,n=!1){let r=y?b:e;for(var i;t--;)i=r,r=ie(r);if(!y)return r;if(n&&r?.nodeType!==Tt){var s=me();return r===null?i?.after(s):r.before(s),G(s),s}return G(r),r}function vr(e){e.textContent=""}function _r(){return!1}function ut(e){var t=_,n=p;N(null),D(null);try{return e()}finally{N(t),D(n)}}function pr(e){p===null&&(_===null&&qn(),Fn()),fe&&In()}function gr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function H(e,t,n,r=!0){var i=p;i!==null&&(i.f&q)!==0&&(e|=q);var s={ctx:L,deps:null,nodes_start:null,nodes_end:null,f:e|A|j,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ce(s),s.f|=Qe}catch(o){throw C(s),o}else t!==null&&le(s);if(r){var a=s;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&se)===0&&(a=a.first,(e&W)!==0&&(e&de)!==0&&a!==null&&(a.f|=de)),a!==null&&(a.parent=i,i!==null&&gr(a,i),_!==null&&(_.f&T)!==0&&(e&Q)===0)){var l=_;(l.effects??=[]).push(a)}}return s}function Ue(){return _!==null&&!U}function Ut(e){const t=H(Ze,null,!1);return S(t,x),t.teardown=e,t}function mr(e){pr();var t=p.f,n=!_&&(t&J)!==0&&(t&Qe)===0;if(n){var r=L;(r.e??=[]).push(e)}else return Vt(e)}function Vt(e){return H(Pe|Dn,e,!1)}function yr(e){I.ensure();const t=H(Q|se,e,!0);return()=>{C(t)}}function br(e){I.ensure();const t=H(Q|se,e,!0);return(n={})=>new Promise(r=>{n.outro?Se(t,()=>{C(t),r(void 0)}):(C(t),r(void 0))})}function wr(e){return H(Pe,e,!1)}function $r(e){return H(tt|se,e,!0)}function Wt(e,t=0){return H(Ze|t,e,!0)}function Jt(e,t=[],n=[],r=[],i=!1){sr(r,t,n,s=>{H(i?Pe:Ze,()=>e(...s.map($)),!0)})}function Kt(e,t=0){var n=H(W|t,e,!0);return n}function X(e,t=!0){return H(J|se,e,!0,t)}function Gt(e){var t=e.teardown;if(t!==null){const n=fe,r=_;nn(!0),N(null);try{t.call(null)}finally{nn(n),N(r)}}}function zt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&ut(()=>{i.abort(ve)});var r=n.next;(n.f&Q)!==0?n.parent=null:C(n,t),n=r}}function Er(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&J)===0&&C(t),t=n}}function C(e,t=!0){var n=!1;(t||(e.f&Et)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Tr(e.nodes_start,e.nodes_end),n=!0),zt(e,t&&!n),Ve(e,0),S(e,ee);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Gt(e);var i=e.parent;i!==null&&i.first!==null&&Xt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Tr(e,t){for(;e!==null;){var n=e===t?null:ie(e);e.remove(),e=n}}function Xt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Se(e,t,n=!0){var r=[];Zt(e,r,!0),xr(r,()=>{n&&C(e),t&&t()})}function xr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Zt(e,t,n){if((e.f&q)===0){if(e.f^=q,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&de)!==0||(r.f&J)!==0&&(e.f&W)!==0;Zt(r,t,s?n:!1),r=i}}}function Nr(e){Qt(e,!0)}function Qt(e,t){if((e.f&q)!==0){e.f^=q,(e.f&x)===0&&(S(e,A),le(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&de)!==0||(n.f&J)!==0;Qt(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function en(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:ie(n);t.append(n),n=i}}let oe=!1;function tn(e){oe=e}let fe=!1;function nn(e){fe=e}let _=null,U=!1;function N(e){_=e}let p=null;function D(e){p=e}let Z=null;function rn(e){_!==null&&(Z===null?Z=[e]:Z.push(e))}let k=null,R=0,M=null;function Sr(e){M=e}let sn=1,ke=0,ue=ke;function an(e){ue=e}function ln(){return++sn}function Ae(e){var t=e.f;if((t&A)!==0)return!0;if(t&T&&(e.f&=~we),(t&K)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(Ae(s)&&jt(s),s.wv>e.wv)return!0}(t&j)!==0&&O===null&&S(e,x)}return!1}function on(e,t,n=!0){var r=e.reactions;if(r!==null&&!Z?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&T)!==0?on(s,t,!1):t===s&&(n?S(s,A):(s.f&x)!==0&&S(s,K),le(s))}}function fn(e){var t=k,n=R,r=M,i=_,s=Z,a=L,l=U,o=ue,f=e.f;k=null,R=0,M=null,_=(f&(J|Q))===0?e:null,Z=null,_e(e.ctx),U=!1,ue=++ke,e.ac!==null&&(ut(()=>{e.ac.abort(ve)}),e.ac=null);try{e.f|=et;var c=e.fn,d=c(),u=e.deps;if(k!==null){var h;if(Ve(e,R),u!==null&&R>0)for(u.length=R+k.length,h=0;h<k.length;h++)u[R+h]=k[h];else e.deps=u=k;if(oe&&Ue()&&(e.f&j)!==0)for(h=R;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&R<u.length&&(Ve(e,R),u.length=R);if(At()&&M!==null&&!U&&u!==null&&(e.f&(T|K|A))===0)for(h=0;h<M.length;h++)on(M[h],e);return i!==null&&i!==e&&(ke++,M!==null&&(r===null?r=M:r.push(...M))),(e.f&te)!==0&&(e.f^=te),d}catch(g){return Ot(g)}finally{e.f^=et,k=t,R=n,M=r,_=i,Z=s,_e(a),U=l,ue=o}}function kr(e,t){let n=t.reactions;if(n!==null){var r=kn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&T)!==0&&(k===null||!k.includes(t))&&(S(t,K),(t.f&j)!==0&&(t.f^=j,t.f&=~we),Pt(t),Ve(t,0))}function Ve(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)kr(e,n[r])}function Ce(e){var t=e.f;if((t&ee)===0){S(e,x);var n=p,r=oe;p=e,oe=!0;try{(t&W)!==0?Er(e):zt(e),Gt(e);var i=fn(e);e.teardown=typeof i=="function"?i:null,e.wv=sn;var s;mt&&Zn&&(e.f&A)!==0&&e.deps}finally{oe=r,p=n}}}function $(e){var t=e.f,n=(t&T)!==0;if(_!==null&&!U){var r=p!==null&&(p.f&ee)!==0;if(!r&&!Z?.includes(e)){var i=_.deps;if((_.f&et)!==0)e.rv<ke&&(e.rv=ke,k===null&&i!==null&&i[R]===e?R++:k===null?k=[e]:k.includes(e)||k.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(fe){if(re.has(e))return re.get(e);if(n){var a=e,l=a.v;return((a.f&x)===0&&a.reactions!==null||cn(a))&&(l=lt(a)),re.set(a,l),l}}else if(n){if(a=e,O?.has(a))return O.get(a);Ae(a)&&jt(a),oe&&Ue()&&(a.f&j)===0&&un(a)}else if(O?.has(e))return O.get(e);if((e.f&te)!==0)throw e.v;return e.v}function un(e){if(e.deps!==null){e.f^=j;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&j)===0&&un(t)}}function cn(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(re.has(t)||(t.f&T)!==0&&cn(t))return!0;return!1}function Ar(e){var t=U;try{return U=!0,e()}finally{U=t}}const Cr=-7169;function S(e,t){e.f=e.f&Cr|t}const Or=new Set,hn=new Set;function Rr(e,t,n,r={}){function i(s){if(r.capture||Oe.call(t,s),!s.cancelBubble)return ut(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ie(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ct(e,t,n,r,i){var s={capture:r,passive:i},a=Rr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ut(()=>{t.removeEventListener(e,a,s)})}let dn=null;function Oe(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;dn=e;var a=0,l=dn===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(a=o)}if(s=i[a]||e.target,s!==t){Me(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=_,d=p;N(null),D(null);try{for(var u,h=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var P=s["__"+r];P!=null&&(!s.disabled||e.target===s)&&P.call(s,e)}catch(V){u?h.push(V):u=V}if(e.cancelBubble||g===t||g===null)break;s=g}if(u){for(let V of h)queueMicrotask(()=>{throw V});throw u}}finally{e.__root=t,delete e.currentTarget,N(c),D(d)}}}function Lr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function We(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ht(e,t){var n=(t&Tn)!==0,r=(t&xn)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return We(b,null),b;i===void 0&&(i=Lr(s?e:"<!>"+e),n||(i=He(i)));var a=r||Yt?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=He(a),o=a.lastChild;We(l,o)}else We(a,a);return a}}function Je(e,t){if(y){p.nodes_end=b,it();return}e!==null&&e.before(t)}const Dr=["touchstart","touchmove"];function Mr(e){return Dr.includes(e)}function vn(e,t){return _n(e,t)}function Pr(e,t){ft(),t.intro=t.intro??!1;const n=t.target,r=y,i=b;try{for(var s=He(n);s&&(s.nodeType!==$e||s.data!==pt);)s=ie(s);if(!s)throw be;ne(!0),G(s);const a=_n(e,{...t,anchor:s});return ne(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==be&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Bn(),ft(),vr(n),ne(!1),vn(e,t)}finally{ne(r),G(i)}}const ye=new Map;function _n(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){ft();var l=new Set,o=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!l.has(h)){l.add(h);var g=Mr(h);t.addEventListener(h,Oe,{passive:g});var P=ye.get(h);P===void 0?(document.addEventListener(h,Oe,{passive:g}),ye.set(h,1)):ye.set(h,P+1)}}};o(An(Or)),hn.add(o);var f=void 0,c=br(()=>{var d=n??t.appendChild(me());return rr(d,{pending:()=>{}},u=>{if(s){St({});var h=L;h.c=s}if(i&&(r.$$events=i),y&&We(u,null),f=e(u,r)||{},y&&(p.nodes_end=b,b===null||b.nodeType!==$e||b.data!==gt))throw rt(),be;s&&kt()}),()=>{for(var u of l){t.removeEventListener(u,Oe);var h=ye.get(u);--h===0?(document.removeEventListener(u,Oe),ye.delete(u)):ye.set(u,h)}hn.delete(o),d!==n&&d.parentNode?.removeChild(d)}});return dt.set(f,c),f}let dt=new WeakMap;function jr(e,t){const n=dt.get(e);return n?(dt.delete(e),n(t)):Promise.resolve()}class Ir{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#o=()=>{var t=w;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)Nr(r);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#n.get(a);l&&(C(l.effect),this.#n.delete(a))}for(const[s,a]of this.#e){if(s===n)continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();en(a,f),f.append(me()),this.#n.set(s,{effect:a,fragment:f})}else C(a);this.#e.delete(s)};this.#r||!r?Se(a,l,!1):l()}}};#a=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(C(i.effect),this.#n.delete(r))};ensure(t,n){var r=w,i=_r();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),a=me();s.append(a),this.#n.set(t,{effect:X(()=>n(a)),fragment:s})}else this.#e.set(t,X(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,o]of this.#e)l===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[l,o]of this.#n)l===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#o),r.ondiscard(this.#a)}else y&&(this.anchor=b),this.#o()}}function pn(e,t,n=!1){y&&it();var r=new Ir(e),i=n?de:0;function s(a,l){if(y){const f=Gn(e)===Xe;if(a===f){var o=xt();G(o),r.anchor=o,ne(!1),r.ensure(a,l),ne(!0);return}}r.ensure(a,l)}Kt(()=>{var a=!1;t((l,o=!0)=>{a=!0,s(o,l)}),a||s(!1,null)},i)}function Fr(e,t){wr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function qr(e,t){return e==null?null:String(e)}function Yr(e,t,n,r){var i=e.__style;if(y||i!==t){var s=qr(t);(!y||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Br=Symbol("is custom element"),Hr=Symbol("is html");function Ur(e,t,n,r){var i=Vr(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Pn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&mn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function gn(e,t,n){var r=_,i=p;let s=y;y&&ne(!1),N(null),D(null);try{t!=="style"&&(vt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?mn(e).includes(t):n&&typeof n=="object")?e[t]=n:Ur(e,t,n==null?n:String(n))}finally{N(r),D(i),s&&ne(!0)}}function Vr(e){return e.__attributes??={[Br]:e.nodeName.includes("-"),[Hr]:e.namespaceURI===Nn}}var vt=new Map;function mn(e){var t=e.getAttribute("is")||e.nodeName,n=vt.get(t);if(n)return n;vt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Cn(i);for(var a in r)r[a].set&&n.push(a);i=yt(i)}return n}function Ke(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=a());var o;o=()=>{var u=e[t];return u===void 0?a():(s=!0,u)};var f=!1,c=at(()=>(f=!1,o())),d=p;return(function(u,h){if(arguments.length>0){const g=h?$(c):u;return B(c,g),f=!0,i!==void 0&&(i=g),u}return fe&&f||(d.f&ee)!==0?c.v:$(c)})}function Wr(e){return new Jr(e)}class Jr{#t;#e;constructor(t){var n=new Map,r=(s,a)=>{var l=ur(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return $(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===Mn?!0:($(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return B(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?Pr:vn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Te(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Me(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{jr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let yn;typeof HTMLElement=="function"&&(yn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Je(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Kr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Ge(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Wr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=yr(()=>{Wt(()=>{this.$$r=!0;for(const r of De(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ge(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ge(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 De(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ge(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Kr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Gr(e,t,n,r,i,s){let a=class extends yn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return De(t).map(l=>(t[l].attribute||l).toLowerCase())}};return De(t).forEach(l=>{Me(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=Ge(l,o,t),this.$$d[l]=o;var f=this.$$c;if(f){var c=he(f,l)?.get;c?f[l]=o:f.$set({[l]:o})}}})}),r.forEach(l=>{Me(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}var ce={},bn;function zr(){if(bn)return ce;bn=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.LanguageTranslator=void 0,ce.getChildStyleToPass=e,ce.addComponent=t;function e(r,i){var s,a,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||a===void 0)&&a.length))for(var o=function(u){var h=i?.filter(function(g){return g.name===u&&g.defaultValue!==r[u]});h&&(l+="".concat(u,":").concat(r[u],";"))},f=0,c=Object.keys(r);f<c.length;f++){var d=c[f];o(d)}}catch(u){console.error("error getting child style to pass",u)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var a=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(a),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,a){return r.formatDate(i,s,a||this.lang)},r.getDefaultLang=function(){var i,s,a,l="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var o="",f=r.getDefaultLang();if(!a||f!==a){var c=s?.[f];c?.[i]&&(o=c[i])}return o},r.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||r.getDefaultLang(),s);return l.format(i)},r})();return ce.LanguageTranslator=n,ce}var wn=zr();const $n={version:"0.61.52"};var Xr=ht("<hb-captcha-google-recaptcha-v2-invisible></hb-captcha-google-recaptcha-v2-invisible>",2),Zr=ht("<hb-form></hb-form>",2),Qr=ht("<!> <!>",1);const ei={hash:"svelte-kch9v7",code:'@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");:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;}'};function En(e,t){St(t,!0),Fr(e,ei);let n=F("");ge({});let r=Ke(t,"id",7,""),i=Ke(t,"informations",7,void 0),s=Ke(t,"privacy_policy",7,void 0),a=Ke(t,"captcha",7,void 0),l,o=F(!1);mr(()=>{if(typeof a()=="string")try{a(JSON.parse(a()))}catch(v){console.error("error parsing captcha",v)}if(typeof i()=="string")try{i(JSON.parse(i()))}catch(v){console.error("error parsing informations",v)}if(typeof s()=="string")try{s(JSON.parse(s()))}catch(v){console.error("error parsing privacy_policy",v)}});let f=or(()=>{const v=[];if(!i()||typeof i()!="object")return[];if(i()?.name){const m={id:"name",name:"name",label:i().name.label||"Name",type:"text",required:!!i().name.required,placeholder:i().name.placeholder||"Your name",value:i().name.value||"",validation:{min:{value:3,message:"Name must be at least 3 characters long"}}};v.push(m)}if(i()?.email){const m={id:"email",name:"email",label:i().email.label||"email",type:"email",required:!!i().email.required,placeholder:i().email.placeholder||"Your email",value:i().email.value||"",validation:{min:{value:3,message:"email must be at least 3 characters long"}}};v.push(m)}if(i()?.phone){const m={id:"phone",name:"phone",label:i().phone.label||"phone",type:"text",required:!!i().phone.required,placeholder:i().phone.placeholder||"Your phone",value:i().phone.value||"",validation:{min:{value:3,message:"phone must be at least 3 characters long"}}};v.push(m)}if(i()?.subject){const m={id:"subject",name:"subject",label:i().subject.label||"Subject",type:"text",required:!!i().subject.required,placeholder:i().subject.placeholder||"Email Subject",value:i().subject.value||"",validation:{min:{value:3,message:"Name must be at least 3 characters long"}}};v.push(m)}if(i()?.message){const m={id:"message",name:"message",label:i().message.label||"Message",type:"textarea",required:!!i().message.required,placeholder:i().message.placeholder||"Your message here...",value:i().message.value||"",validation:{min:{value:3,message:"Name must be at least 3 characters long"}}};v.push(m)}if(s()?.input){const m={id:"policy",name:"policy",label:s().input,type:"checkbox",required:s().required,value:!1,valid:!1,error:""};v.push(m)}return v});wn.addComponent({repoName:"@htmlbricks/hb-form",version:$n.version}),wn.addComponent({repoName:"@htmlbricks/hb-captcha-google-recaptcha-v2-invisible",version:$n.version});function c(v,m){t.$$host.dispatchEvent(new CustomEvent(v,{detail:m}))}function d(v){if(!v._valid)return console.error("is not yet valid!",v);console.log("submit",a()),a()?.siteKey?(B(o,!0),l=v):c("formContactSubmit",v)}function u(v){console.log(v)}function h(v){c("formContactSubmitWithCaptcha",Object.assign({response:v.response,type:"recaptcha-v2-invisible"},l))}var g={get id(){return r()},set id(v=""){r(v),Te()},get informations(){return i()},set informations(v=void 0){i(v),Te()},get privacy_policy(){return s()},set privacy_policy(v=void 0){s(v),Te()},get captcha(){return a()},set captcha(v=void 0){a(v),Te()}},P=Qr(),V=hr(P);{var ze=v=>{var m=Xr();Jt(()=>gn(m,"api_key",a().siteKey)),ct("googleRecaptchaV2Response",m,Le=>h(Le.detail)),Je(v,m)};pn(V,v=>{a()?.siteKey&&$(o)&&v(ze)})}var Re=dr(V,2);{var ti=v=>{var m=Zr();Yr(m,$(n)),Jt(()=>gn(m,"schema",JSON.stringify($(f)))),ct("submit",m,Le=>d(Le.detail)),ct("update",m,Le=>u(Le.detail)),Je(v,m)};pn(Re,v=>{$(f)&&typeof $(f)=="object"&&$(f).length&&v(ti)})}return Je(e,P),kt(g)}customElements.define("hb-form-contact",Gr(En,{id:{},informations:{},privacy_policy:{},captcha:{}},[],[],!0)),_t.Component=En,Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"})})(this["form-contact"]=this["form-contact"]||{});
4
3
  //# sourceMappingURL=main.iife.js.map