@htmlbricks/hb-form-contact 0.61.40 → 0.61.41
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 +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(pt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Sr=1,Nr=2,mt="[",gt="[!",yt="]",we={},E=Symbol(),Or="http://www.w3.org/1999/xhtml",$t=!1;var bt=Array.isArray,Rr=Array.prototype.indexOf,Ar=Array.from,Re=Object.keys,fe=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,xr=Object.getOwnPropertyDescriptors,Cr=Object.prototype,kr=Array.prototype,wt=Object.getPrototypeOf,Et=Object.isExtensible;function Tt(e){for(var t=0;t<e.length;t++)e[t]()}function Pr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const P=2,He=4,Ue=8,he=16,G=32,W=64,St=128,j=256,Ae=512,O=1024,M=2048,K=4096,X=8192,te=16384,Be=32768,Ge=65536,Nt=1<<17,Ir=1<<18,ve=1<<19,jr=1<<20,Ve=1<<21,We=1<<22,re=1<<23,Ke=Symbol("$state"),Mr=Symbol("legacy props"),Lr=Symbol(""),Xe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dr=3,xe=8;function qr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Fr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Yr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ur(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Br(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Gr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Vr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Kr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Je(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let T=!1;function J(e){T=e}let C;function de(e){if(e===null)throw Je(),we;return C=e}function ze(){return de(me(C))}function Xr(){for(var e=0,t=C;;){if(t.nodeType===xe){var r=t.data;if(r===yt){if(e===0)return t;e-=1}else(r===mt||r===gt)&&(e+=1)}var n=me(t);t.remove(),t=n}}function Jr(e){if(!e||e.nodeType!==xe)throw Je(),we;return e.data}function Ot(e){return e===this.v}function zr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Zr(e){return!zr(e,this.v)}let Qr=!1,q=null;function Ce(e){q=e}function Rt(e,t=!1,r){q={p:q,c:null,e:null,s:e,x:null,l:null}}function At(e){var t=q,r=t.e;if(r!==null){t.e=null;for(var n of r)Gt(n)}return e!==void 0&&(t.x=e),q=t.p,e??{}}function xt(){return!0}const en=new WeakMap;function tn(e){var t=g;if(t===null)return y.f|=re,e;if((t.f&Be)===0){if((t.f&St)===0)throw!t.parent&&e instanceof Error&&Ct(e),e;t.b.error(e)}else Ze(e,t)}function Ze(e,t){for(;t!==null;){if((t.f&St)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Ct(e),e}function Ct(e){const t=en.get(e);t&&(fe(e,"message",{value:t.message}),fe(e,"stack",{value:t.stack}))}let Ee=[],Qe=[];function kt(){var e=Ee;Ee=[],Tt(e)}function rn(){var e=Qe;Qe=[],Tt(e)}function nn(e){Ee.length===0&&queueMicrotask(kt),Ee.push(e)}function sn(){Ee.length>0&&kt(),Qe.length>0&&rn()}function an(){const e=g.b;return e===null&&qr(),e}function et(e){var t=P|M,r=y!==null&&(y.f&P)!==0?y:null;return g===null||r!==null&&(r.f&j)!==0?t|=j:g.f|=ve,{ctx:q,deps:null,effects:null,equals:Ot,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:r??g,ac:null}}function ln(e,t){let r=g;r===null&&Fr();var n=r.b,i=void 0,s=it(E),a=null,u=!y;return Sn(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(h){l=Promise.reject(h)}var o=()=>l;i=a?.then(o,o)??Promise.resolve(l),a=i;var f=S,c=n.is_pending();u&&(n.update_pending_count(1),c||f.increment());const v=(h,d=void 0)=>{a=null,c||f.activate(),d?d!==Xe&&(s.f|=re,st(s,d)):((s.f&re)!==0&&(s.f^=re),st(s,h)),u&&(n.update_pending_count(-1),c||f.decrement()),jt()};if(i.then(v,h=>v(null,h||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(l=>{function o(f){function c(){f===i?l(s):o(i)}f.then(c,c)}o(i)})}function un(e){const t=et(e);return tr(t),t}function Pt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Z(t[r])}}function on(e){for(var t=e.parent;t!==null;){if((t.f&P)===0)return t;t=t.parent}return null}function tt(e){var t,r=g;B(on(e));try{Pt(e),t=ar(e)}finally{B(r)}return t}function It(e){var t=tt(e);if(e.equals(t)||(e.v=t,e.wv=ir()),!ae){var r=(Q||(e.f&j)!==0)&&e.deps!==null?K:O;k(e,r)}}function fn(e,t,r){const n=et;if(t.length===0){r(e.map(n));return}var i=S,s=g,a=cn(),u=an();Promise.all(t.map(l=>ln(l))).then(l=>{i?.activate(),a();try{r([...e.map(n),...l])}catch(o){(s.f&te)===0&&Ze(o,s)}i?.deactivate(),jt()}).catch(l=>{u.error(l)})}function cn(){var e=g,t=y,r=q,n=S;return function(){B(e),L(t),Ce(r),n?.activate()}}function jt(){B(null),L(null),Ce(null)}const rt=new Set;let S=null,Mt=new Set,ke=[];function Lt(){const e=ke.shift();ke.length>0&&queueMicrotask(Lt),e()}let ne=[],Pe=null,nt=!1,Ie=!1;class ie{current=new Map;#t=new Map;#e=new Set;#r=0;#o=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#l=[];#c=[];#h=[];skipped_effects=new Set;process(t){ne=[];for(const i of t)this.#d(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#l=[],S=null,qt(r),qt(n),S===null?S=this:rt.delete(this),this.#o?.resolve()}else this.#u(this.#s),this.#u(this.#n),this.#u(this.#l);for(const i of this.#i)ye(i);for(const i of this.#a)ye(i);this.#i=[],this.#a=[]}#d(t){t.f^=O;for(var r=t.first;r!==null;){var n=r.f,i=(n&(G|W))!==0,s=i&&(n&O)!==0,a=s||(n&X)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=O;else if((n&He)!==0)this.#n.push(r);else if((n&O)===0)if((n&We)!==0){var u=r.b?.is_pending()?this.#a:this.#i;u.push(r)}else Me(r)&&((r.f&he)!==0&&this.#l.push(r),ye(r));var l=r.first;if(l!==null){r=l;continue}}var o=r.parent;for(r=r.next;r===null&&o!==null;)r=o.next,o=o.parent}}#u(t){for(const r of t)((r.f&M)!==0?this.#c:this.#h).push(r),k(r,O);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){S=this}deactivate(){S=null;for(const t of Mt)if(Mt.delete(t),t(),S!==null)break}neuter(){this.#f=!0}flush(){ne.length>0?Dt():this.#v(),S===this&&(this.#r===0&&rt.delete(this),this.deactivate())}#v(){if(!this.#f)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.#c)k(t,M),_e(t);for(const t of this.#h)k(t,K),_e(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#o??=Pr()).promise}static ensure(){if(S===null){const t=S=new ie;rt.add(S),Ie||ie.enqueue(()=>{S===t&&t.flush()})}return S}static enqueue(t){ke.length===0&&queueMicrotask(Lt),ke.unshift(t)}}function Te(e){var t=Ie;Ie=!0;try{for(var r;;){if(sn(),ne.length===0&&(S?.flush(),ne.length===0))return Pe=null,r;Dt()}}finally{Ie=t}}function Dt(){var e=ge;nt=!0;try{var t=0;for(Qt(!0);ne.length>0;){var r=ie.ensure();if(t++>1e3){var n,i;hn()}r.process(ne),z.clear()}}finally{nt=!1,Qt(e),Pe=null}}function hn(){try{Br()}catch(e){Ze(e,Pe)}}let se=null;function qt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(te|X))===0&&Me(n)&&(se=[],ye(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Xt(n):n.fn=null),se?.length>0)){z.clear();for(const i of se)ye(i);se=[]}}se=null}}function _e(e){for(var t=Pe=e;t.parent!==null;){t=t.parent;var r=t.f;if(nt&&t===g&&(r&he)!==0)return;if((r&(W|G))!==0){if((r&O)===0)return;t.f^=O}}ne.push(t)}const z=new Map;function it(e,t){var r={f:0,v:e,reactions:null,equals:Ot,rv:0,wv:0};return r}function F(e,t){const r=it(e);return tr(r),r}function vn(e,t=!1,r=!0){const n=it(e);return t||(n.equals=Zr),n}function H(e,t,r=!1){y!==null&&(!le||(y.f&Nt)!==0)&&xt()&&(y.f&(P|he|We|Nt))!==0&&!V?.includes(e)&&Kr();let n=r?pe(t):t;return st(e,n)}function st(e,t){if(!e.equals(t)){var r=e.v;ae?z.set(e,t):z.set(e,r),e.v=t;var n=ie.ensure();n.capture(e,r),(e.f&P)!==0&&((e.f&M)!==0&&tt(e),k(e,(e.f&j)===0?O:K)),e.wv=ir(),Ft(e,M),g!==null&&(g.f&O)!==0&&(g.f&(G|W))===0&&(D===null?kn([e]):D.push(e))}return t}function at(e){H(e,e.v+1)}function Ft(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,u=(a&M)===0;u&&k(s,t),(a&P)!==0?Ft(s,K):u&&((a&he)!==0&&se!==null&&se.push(s),_e(s))}}function pe(e){if(typeof e!="object"||e===null||Ke in e)return e;const t=wt(e);if(t!==Cr&&t!==kr)return e;var r=new Map,n=bt(e),i=F(0),s=ue,a=u=>{if(ue===s)return u();var l=y,o=ue;L(null),nr(s);var f=u();return L(l),nr(o),f};return n&&r.set("length",F(e.length)),new Proxy(e,{defineProperty(u,l,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&Vr();var f=r.get(l);return f===void 0?f=a(()=>{var c=F(o.value);return r.set(l,c),c}):H(f,o.value,!0),!0},deleteProperty(u,l){var o=r.get(l);if(o===void 0){if(l in u){const f=a(()=>F(E));r.set(l,f),at(i)}}else H(o,E),at(i);return!0},get(u,l,o){if(l===Ke)return e;var f=r.get(l),c=l in u;if(f===void 0&&(!c||ce(u,l)?.writable)&&(f=a(()=>{var h=pe(c?u[l]:E),d=F(h);return d}),r.set(l,f)),f!==void 0){var v=x(f);return v===E?void 0:v}return Reflect.get(u,l,o)},getOwnPropertyDescriptor(u,l){var o=Reflect.getOwnPropertyDescriptor(u,l);if(o&&"value"in o){var f=r.get(l);f&&(o.value=x(f))}else if(o===void 0){var c=r.get(l),v=c?.v;if(c!==void 0&&v!==E)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return o},has(u,l){if(l===Ke)return!0;var o=r.get(l),f=o!==void 0&&o.v!==E||Reflect.has(u,l);if(o!==void 0||g!==null&&(!f||ce(u,l)?.writable)){o===void 0&&(o=a(()=>{var v=f?pe(u[l]):E,h=F(v);return h}),r.set(l,o));var c=x(o);if(c===E)return!1}return f},set(u,l,o,f){var c=r.get(l),v=l in u;if(n&&l==="length")for(var h=o;h<c.v;h+=1){var d=r.get(h+"");d!==void 0?H(d,E):h in u&&(d=a(()=>F(E)),r.set(h+"",d))}if(c===void 0)(!v||ce(u,l)?.writable)&&(c=a(()=>F(void 0)),H(c,pe(o)),r.set(l,c));else{v=c.v!==E;var p=a(()=>pe(o));H(c,p)}var N=Reflect.getOwnPropertyDescriptor(u,l);if(N?.set&&N.set.call(f,o),!v){if(n&&typeof l=="string"){var R=r.get("length"),w=Number(l);Number.isInteger(w)&&w>=R.v&&H(R,w+1)}at(i)}return!0},ownKeys(u){x(i);var l=Reflect.ownKeys(u).filter(c=>{var v=r.get(c);return v===void 0||v.v!==E});for(var[o,f]of r)f.v!==E&&!(o in u)&&l.push(o);return l},setPrototypeOf(){Wr()}})}var Yt,Ht,Ut,Bt;function lt(){if(Yt===void 0){Yt=window,Ht=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ut=ce(t,"firstChild").get,Bt=ce(t,"nextSibling").get,Et(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Et(r)&&(r.__t=void 0)}}function ut(e=""){return document.createTextNode(e)}function je(e){return Ut.call(e)}function me(e){return Bt.call(e)}function dn(e,t){if(!T){var r=je(e);return r instanceof Comment&&r.data===""?me(r):r}return C}function _n(e,t=1,r=!1){let n=T?C:e;for(var i;t--;)i=n,n=me(n);if(!T)return n;if(r&&n?.nodeType!==Dr){var s=ut();return n===null?i?.after(s):n.before(s),de(s),s}return de(n),n}function pn(e){e.textContent=""}function mn(){return!1}function ot(e){var t=y,r=g;L(null),B(null);try{return e()}finally{L(t),B(r)}}function gn(e){g===null&&y===null&&Ur(),y!==null&&(y.f&j)!==0&&g===null&&Hr(),ae&&Yr()}function yn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function U(e,t,r,n=!0){var i=g;i!==null&&(i.f&X)!==0&&(e|=X);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(r)try{ye(s),s.f|=Be}catch(l){throw Z(s),l}else t!==null&&_e(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&ve)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&yn(a,i),y!==null&&(y.f&P)!==0&&(e&W)===0)){var u=y;(u.effects??=[]).push(a)}}return s}function $n(e){const t=U(Ue,null,!1);return k(t,O),t.teardown=e,t}function bn(e){gn();var t=g.f,r=!y&&(t&G)!==0&&(t&Be)===0;if(r){var n=q;(n.e??=[]).push(e)}else return Gt(e)}function Gt(e){return U(He|jr,e,!1)}function wn(e){ie.ensure();const t=U(W|ve,e,!0);return()=>{Z(t)}}function En(e){ie.ensure();const t=U(W|ve,e,!0);return(r={})=>new Promise(n=>{r.outro?Jt(t,()=>{Z(t),n(void 0)}):(Z(t),n(void 0))})}function Tn(e){return U(He,e,!1)}function Sn(e){return U(We|ve,e,!0)}function Nn(e,t=0){return U(Ue|t,e,!0)}function Vt(e,t=[],r=[]){fn(t,r,n=>{U(Ue,()=>e(...n.map(x)),!0)})}function On(e,t=0){var r=U(he|t,e,!0);return r}function ft(e,t=!0){return U(G|ve,e,!0,t)}function Wt(e){var t=e.teardown;if(t!==null){const r=ae,n=y;er(!0),L(null);try{t.call(null)}finally{er(r),L(n)}}}function Kt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&ot(()=>{i.abort(Xe)});var n=r.next;(r.f&W)!==0?r.parent=null:Z(r,t),r=n}}function Rn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&G)===0&&Z(t),t=r}}function Z(e,t=!0){var r=!1;(t||(e.f&Ir)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(An(e.nodes_start,e.nodes_end),r=!0),Kt(e,t&&!r),Le(e,0),k(e,te);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Wt(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 An(e,t){for(;e!==null;){var r=e===t?null:me(e);e.remove(),e=r}}function Xt(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 Jt(e,t){var r=[];zt(e,r,!0),xn(r,()=>{Z(e),t&&t()})}function xn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function zt(e,t,r){if((e.f&X)===0){if(e.f^=X,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ge)!==0||(n.f&G)!==0;zt(n,t,s?r:!1),n=i}}}function Cn(e){Zt(e,!0)}function Zt(e,t){if((e.f&X)!==0){e.f^=X,(e.f&O)===0&&(k(e,M),_e(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ge)!==0||(r.f&G)!==0;Zt(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let ge=!1;function Qt(e){ge=e}let ae=!1;function er(e){ae=e}let y=null,le=!1;function L(e){y=e}let g=null;function B(e){g=e}let V=null;function tr(e){y!==null&&(V===null?V=[e]:V.push(e))}let A=null,I=0,D=null;function kn(e){D=e}let rr=1,Se=0,ue=Se;function nr(e){ue=e}let Q=!1;function ir(){return++rr}function Me(e){var t=e.f;if((t&M)!==0)return!0;if((t&K)!==0){var r=e.deps,n=(t&j)!==0;if(r!==null){var i,s,a=(t&Ae)!==0,u=n&&g!==null&&!Q,l=r.length;if((a||u)&&(g===null||(g.f&te)===0)){var o=e,f=o.parent;for(i=0;i<l;i++)s=r[i],(a||!s?.reactions?.includes(o))&&(s.reactions??=[]).push(o);a&&(o.f^=Ae),u&&f!==null&&(f.f&j)===0&&(o.f^=j)}for(i=0;i<l;i++)if(s=r[i],Me(s)&&It(s),s.wv>e.wv)return!0}(!n||g!==null&&!Q)&&k(e,O)}return!1}function sr(e,t,r=!0){var n=e.reactions;if(n!==null&&!V?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&P)!==0?sr(s,t,!1):t===s&&(r?k(s,M):(s.f&O)!==0&&k(s,K),_e(s))}}function ar(e){var t=A,r=I,n=D,i=y,s=Q,a=V,u=q,l=le,o=ue,f=e.f;A=null,I=0,D=null,Q=(f&j)!==0&&(le||!ge||y===null),y=(f&(G|W))===0?e:null,V=null,Ce(e.ctx),le=!1,ue=++Se,e.ac!==null&&(ot(()=>{e.ac.abort(Xe)}),e.ac=null);try{e.f|=Ve;var c=e.fn,v=c(),h=e.deps;if(A!==null){var d;if(Le(e,I),h!==null&&I>0)for(h.length=I+A.length,d=0;d<A.length;d++)h[I+d]=A[d];else e.deps=h=A;if(!Q||(f&P)!==0&&e.reactions!==null)for(d=I;d<h.length;d++)(h[d].reactions??=[]).push(e)}else h!==null&&I<h.length&&(Le(e,I),h.length=I);if(xt()&&D!==null&&!le&&h!==null&&(e.f&(P|K|M))===0)for(d=0;d<D.length;d++)sr(D[d],e);return i!==null&&i!==e&&(Se++,D!==null&&(n===null?n=D:n.push(...D))),(e.f&re)!==0&&(e.f^=re),v}catch(p){return tn(p)}finally{e.f^=Ve,A=t,I=r,D=n,y=i,Q=s,V=a,Ce(u),le=l,ue=o}}function Pn(e,t){let r=t.reactions;if(r!==null){var n=Rr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&P)!==0&&(A===null||!A.includes(t))&&(k(t,K),(t.f&(j|Ae))===0&&(t.f^=Ae),Pt(t),Le(t,0))}function Le(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Pn(e,r[n])}function ye(e){var t=e.f;if((t&te)===0){k(e,O);var r=g,n=ge;g=e,ge=!0;try{(t&he)!==0?Rn(e):Kt(e),Wt(e);var i=ar(e);e.teardown=typeof i=="function"?i:null,e.wv=rr;var s;$t&&Qr&&(e.f&M)!==0&&e.deps}finally{ge=n,g=r}}}function x(e){var t=e.f,r=(t&P)!==0;if(y!==null&&!le){var n=g!==null&&(g.f&te)!==0;if(!n&&!V?.includes(e)){var i=y.deps;if((y.f&Ve)!==0)e.rv<Se&&(e.rv=Se,A===null&&i!==null&&i[I]===e?I++:A===null?A=[e]:(!Q||!A.includes(e))&&A.push(e));else{(y.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[y]:s.includes(y)||s.push(y)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,u=a.parent;u!==null&&(u.f&j)===0&&(a.f^=j)}if(ae){if(z.has(e))return z.get(e);if(r){a=e;var l=a.v;return((a.f&O)===0&&a.reactions!==null||lr(a))&&(l=tt(a)),z.set(a,l),l}}else r&&(a=e,Me(a)&&It(a));if((e.f&re)!==0)throw e.v;return e.v}function lr(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&&lr(t))return!0;return!1}const In=-7169;function k(e,t){e.f=e.f&In|t}const jn=new Set,ur=new Set;function Mn(e,t,r,n={}){function i(s){if(n.capture||Ne.call(t,s),!s.cancelBubble)return ot(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?nn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ct(e,t,r,n,i){var s={capture:n,passive:i},a=Mn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&$n(()=>{t.removeEventListener(e,a,s)})}let or=null;function Ne(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;or=e;var a=0,u=or===e&&e.__root;if(u){var l=i.indexOf(u);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var o=i.indexOf(t);if(o===-1)return;l<=o&&(a=l)}if(s=i[a]||e.target,s!==t){fe(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=y,c=g;L(null),B(null);try{for(var v,h=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+n];if(p!=null&&(!s.disabled||e.target===s))if(bt(p)){var[N,...R]=p;N.apply(s,[e,...R])}else p.call(s,e)}catch(w){v?h.push(w):v=w}if(e.cancelBubble||d===t||d===null)break;s=d}if(v){for(let w of h)queueMicrotask(()=>{throw w});throw v}}finally{e.__root=t,delete e.currentTarget,L(f),B(c)}}}function Ln(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function De(e,t){var r=g;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ht(e,t){var r=(t&Sr)!==0,n=(t&Nr)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return De(C,null),C;i===void 0&&(i=Ln(s?e:"<!>"+e),r||(i=je(i)));var a=n||Ht?document.importNode(i,!0):i.cloneNode(!0);if(r){var u=je(a),l=a.lastChild;De(u,l)}else De(a,a);return a}}function qe(e,t){if(T){g.nodes_end=C,ze();return}e!==null&&e.before(t)}const Dn=["touchstart","touchmove"];function qn(e){return Dn.includes(e)}function fr(e,t){return cr(e,t)}function Fn(e,t){lt(),t.intro=t.intro??!1;const r=t.target,n=T,i=C;try{for(var s=je(r);s&&(s.nodeType!==xe||s.data!==mt);)s=me(s);if(!s)throw we;J(!0),de(s),ze();const a=cr(e,{...t,anchor:s});if(C===null||C.nodeType!==xe||C.data!==yt)throw Je(),we;return J(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(u=>u.startsWith("https://svelte.dev/e/")))throw a;return a!==we&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Gr(),lt(),pn(r),J(!1),fr(e,t)}finally{J(n),de(i)}}const $e=new Map;function cr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){lt();var u=new Set,l=c=>{for(var v=0;v<c.length;v++){var h=c[v];if(!u.has(h)){u.add(h);var d=qn(h);t.addEventListener(h,Ne,{passive:d});var p=$e.get(h);p===void 0?(document.addEventListener(h,Ne,{passive:d}),$e.set(h,1)):$e.set(h,p+1)}}};l(Ar(jn)),ur.add(l);var o=void 0,f=En(()=>{var c=r??t.appendChild(ut());return ft(()=>{if(s){Rt({});var v=q;v.c=s}i&&(n.$$events=i),T&&De(c,null),o=e(c,n)||{},T&&(g.nodes_end=C),s&&At()}),()=>{for(var v of u){t.removeEventListener(v,Ne);var h=$e.get(v);--h===0?(document.removeEventListener(v,Ne),$e.delete(v)):$e.set(v,h)}ur.delete(l),c!==r&&c.parentNode?.removeChild(c)}});return vt.set(o,f),o}let vt=new WeakMap;function Yn(e,t){const r=vt.get(e);return r?(vt.delete(e),r(t)):Promise.resolve()}function hr(e,t,r=!1){T&&ze();var n=e,i=null,s=null,a=E,u=r?Ge:0,l=!1;const o=(h,d=!0)=>{l=!0,v(d,h)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var h=a?i:s,d=a?s:i;h&&Cn(h),d&&Jt(d,()=>{a?s=null:i=null})}const v=(h,d)=>{if(a===(a=h))return;let p=!1;if(T){const $=Jr(n)===gt;!!a===$&&(n=Xr(),de(n),J(!1),p=!0)}var N=mn(),R=n;if(N&&(f=document.createDocumentFragment(),f.append(R=ut())),a?i??=d&&ft(()=>d(R)):s??=d&&ft(()=>d(R)),N){var w=S,oe=a?i:s,_=a?s:i;oe&&w.skipped_effects.delete(oe),_&&w.skipped_effects.add(_),w.add_callback(c)}else c();p&&J(!0)};On(()=>{l=!1,t(o),l||v(null,null)},u),T&&(n=C)}function Hn(e,t){Tn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Un(e,t){return e==null?null:String(e)}function Bn(e,t,r,n){var i=e.__style;if(T||i!==t){var s=Un(t);(!T||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Gn=Symbol("is custom element"),Vn=Symbol("is html");function Wn(e,t,r,n){var i=Kn(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Lr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&dr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function vr(e,t,r){var n=y,i=g;let s=T;T&&J(!1),L(null),B(null);try{t!=="style"&&(dt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?dr(e).includes(t):r&&typeof r=="object")?e[t]=r:Wn(e,t,r==null?r:String(r))}finally{L(n),B(i),s&&J(!0)}}function Kn(e){return e.__attributes??={[Gn]:e.nodeName.includes("-"),[Vn]:e.namespaceURI===Or}}var dt=new Map;function dr(e){var t=e.getAttribute("is")||e.nodeName,r=dt.get(t);if(r)return r;dt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=xr(i);for(var a in n)n[a].set&&r.push(a);i=wt(i)}return r}function Fe(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),u;u=e[t],u===void 0&&n!==void 0&&(u=a());var l;l=()=>{var v=e[t];return v===void 0?a():(s=!0,v)};var o=!1,f=et(()=>(o=!1,l())),c=g;return(function(v,h){if(arguments.length>0){const d=h?x(f):v;return H(f,d),o=!0,i!==void 0&&(i=d),v}return ae&&o||(c.f&te)!==0?f.v:x(f)})}function Xn(e){return new Jn(e)}class Jn{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var u=vn(a,!1,!1);return r.set(s,u),u};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return x(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Mr?!0:(x(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,u){return H(r.get(a)??n(a,u),u),Reflect.set(s,a,u)}});this.#e=(t.hydrate?Fn:fr)(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"||fe(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=()=>{Yn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let _r;typeof HTMLElement=="function"&&(_r=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 i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),qe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=zn(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 i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Ye(i,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=Xn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=wn(()=>{Nn(()=>{this.$$r=!0;for(const n of Re(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ye(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ye(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 Re(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ye(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 zn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Zn(e,t,r,n,i,s){let a=class extends _r{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Re(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Re(t).forEach(u=>{fe(a.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){l=Ye(u,l,t),this.$$d[u]=l;var o=this.$$c;if(o){var f=ce(o,u)?.get;f?o[u]=l:o.$set({[u]:l})}}})}),n.forEach(u=>{fe(a.prototype,u,{get(){return this.$$c?.[u]}})}),e.element=a,a}function pr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}const mr={version:"0.61.40"};function Qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var be={},_t,gr;function ei(){if(gr)return _t;gr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g,l=`
|
|
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.41"};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"]||{});
|
|
4
4
|
//# sourceMappingURL=main.iife.js.map
|