@htmlbricks/hb-funnel 0.66.0 → 0.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(Nt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const On=1,Rn=2,Tt="[",it="[!",St="]",me={},E=Symbol(),Ln="http://www.w3.org/1999/xhtml",st=!1;var Dn=Array.isArray,Mn=Array.prototype.indexOf,Pn=Array.from,Be=Object.keys,Ue=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,Fn=Object.getOwnPropertyDescriptors,jn=Object.prototype,In=Array.prototype,At=Object.getPrototypeOf,Ct=Object.isExtensible;function qn(e){for(var t=0;t<e.length;t++)e[t]()}function Ot(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const k=2,ot=4,at=8,G=16,J=32,ie=64,Ye=128,I=512,x=1024,A=2048,K=4096,Y=8192,X=16384,He=32768,we=65536,Rt=1<<17,Lt=1<<18,ue=1<<19,Bn=1<<20,ce=32768,lt=1<<21,ft=1<<22,se=1<<23,ut=Symbol("$state"),Un=Symbol("legacy props"),Yn=Symbol(""),ye=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dt=3,Ce=8;function Hn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Vn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function zn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Wn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Xn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Qn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ve(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function er(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function oe(e){w=e}let m;function H(e){if(e===null)throw Ve(),me;return m=e}function ct(){return H(ee(m))}function dt(e){if(w){if(ee(m)!==null)throw Ve(),me;m=e}}function tr(e=1){if(w){for(var t=e,n=m;t--;)n=ee(n);m=n}}function Mt(e=!0){for(var t=0,n=m;;){if(n.nodeType===Ce){var r=n.data;if(r===St){if(t===0)return n;t-=1}else(r===Tt||r===it)&&(t+=1)}var i=ee(n);e&&n.remove(),n=i}}function nr(e){if(!e||e.nodeType!==Ce)throw Ve(),me;return e.data}function Pt(e){return e===this.v}function rr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ir(e){return!rr(e,this.v)}let sr=!1,L=null;function $e(e){L=e}function Ft(e,t=!1,n){L={p:L,i:!1,c:null,e:null,s:e,x:null,l:null}}function jt(e){var t=L,n=t.e;if(n!==null){t.e=null;for(var r of n)nn(r)}return e!==void 0&&(t.x=e),t.i=!0,L=t.p,e??{}}function It(){return!0}let de=[];function qt(){var e=de;de=[],qn(e)}function ze(e){if(de.length===0&&!Oe){var t=de;queueMicrotask(()=>{t===de&&qt()})}de.push(e)}function or(){for(;de.length>0;)qt()}function Bt(e){var t=_;if(t===null)return v.f|=se,e;if((t.f&He)===0){if((t.f&Ye)===0)throw e;t.b.error(e)}else ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&Ye)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const We=new Set;let y=null,D=null,M=[],Ge=null,ht=!1,Oe=!1;class q{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){M=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#o(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#a(n.effects),this.#a(n.render_effects),this.#a(n.block_effects)):(y=null,Yt(n.render_effects),Yt(n.effects),this.#l?.resolve()),D=null}#o(t,n){t.f^=x;for(var r=t.first;r!==null;){var i=r.f,s=(i&(J|ie))!==0,o=s&&(i&x)!==0,a=o||(i&Y)!==0||this.skipped_effects.has(r);if((r.f&Ye)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!a&&r.fn!==null){s?r.f^=x:(i&ot)!==0?n.effects.push(r):Pe(r)&&((r.f&G)!==0&&n.block_effects.push(r),Fe(r));var l=r.first;if(l!==null){r=l;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#a(n.effects),this.#a(n.render_effects),this.#a(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#a(t){for(const n of t)((n.f&A)!==0?this.#s:this.#i).push(n),this.#f(n.deps),T(n,x)}#f(t){if(t!==null)for(const n of t)(n.f&k)===0||(n.f&ce)===0||(n.f^=ce,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&se)===0&&(this.current.set(t,t.v),D?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y===this&&(y=null,D=null)}flush(){if(this.activate(),M.length>0){if(Ut(),y!==null&&y!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(We.size>1){this.previous.clear();var t=D,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of We){if(s===this){n=!1;continue}const o=[];for(const[l,f]of this.current){if(s.current.has(l))if(n&&f!==s.current.get(l))s.current.set(l,f);else continue;o.push(l)}if(o.length===0)continue;const a=[...s.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var i=M;M=[];const l=new Set,f=new Map;for(const c of o)Ht(c,a,l,f);if(M.length>0){y=s,s.apply();for(const c of M)s.#o(c,r);s.deactivate()}M=i}}y=null,D=t}this.committed=!0,We.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.#s)T(t,A),he(t);for(const t of this.#i)T(t,K),he(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Ot()).promise}static ensure(){if(y===null){const t=y=new q;We.add(y),Oe||q.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){ze(t)}apply(){}}function Ee(e){var t=Oe;Oe=!0;try{for(var n;;){if(or(),M.length===0&&(y?.flush(),M.length===0))return Ge=null,n;Ut()}}finally{Oe=t}}function Ut(){var e=fe;ht=!0;var t=null;try{var n=0;for(Qe(!0);M.length>0;){var r=q.ensure();if(n++>1e3){var i,s;ar()}r.process(M),ae.clear()}}finally{ht=!1,Qe(e),Ge=null}}function ar(){try{Gn()}catch(e){ke(e,Ge)}}let Z=null;function Yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(X|Y))===0&&Pe(r)&&(Z=new Set,Fe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?ln(r):r.fn=null),Z?.size>0)){ae.clear();for(const i of Z){if((i.f&(X|Y))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)Z.has(o)&&(Z.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(X|Y))===0&&Fe(l)}}Z.clear()}}Z=null}}function Ht(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&k)!==0?Ht(i,t,n,r):(s&(ft|G))!==0&&(s&A)===0&&Vt(i,t,r)&&(T(i,A),he(i))}}function Vt(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&k)!==0&&Vt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function he(e){for(var t=Ge=e;t.parent!==null;){t=t.parent;var n=t.f;if(ht&&t===_&&(n&G)!==0&&(n&Lt)===0)return;if((n&(ie|J))!==0){if((n&x)===0)return;t.f^=x}}M.push(t)}function lr(e){let t=0,n=Re(0),r;return()=>{Xe()&&(g(n),rn(()=>(t===0&&(r=Dr(()=>e(()=>Le(n)))),t+=1,()=>{ze(()=>{t-=1,t===0&&(r?.(),r=void 0,Le(n))})})))}}var fr=we|ue|Ye;function ur(e,t,n){new cr(e,t,n)}class cr{parent;#t=!1;#e;#n=w?m:null;#r;#l;#s;#i=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#g=lr(()=>(this.#h=Re(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#l=r,this.parent=_.b,this.#t=!!this.#r.pending,this.#s=sn(()=>{if(_.b=this,w){const s=this.#n;ct(),s.nodeType===Ce&&s.data===it?this.#y():this.#w()}else{var i=this.#p();try{this.#i=te(()=>r(i))}catch(s){this.error(s)}this.#d>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},fr),w&&(this.#e=m)}#w(){try{this.#i=te(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#o=te(()=>t(this.#e)),q.enqueue(()=>{var n=this.#p();this.#i=this.#_(()=>(q.ensure(),te(()=>this.#l(n)))),this.#d>0?this.#b():(De(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=le(),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=_,r=v,i=L;P(this.#s),N(this.#s),$e(this.#s.ctx);try{return t()}catch(s){return Bt(s),null}finally{P(n),N(r),$e(i)}}#b(){const t=this.#r.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),cn(this.#i,this.#f)),this.#o===null&&(this.#o=te(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&De(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#h&&Ke(this.#h,this.#c)}get_effect_pending(){return this.#g(),g(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(C(this.#i),this.#i=null),this.#o&&(C(this.#o),this.#o=null),this.#a&&(C(this.#a),this.#a=null),w&&(H(this.#n),tr(),H(Mt()));var i=!1,s=!1;const o=()=>{if(i){er();return}i=!0,s&&Qn(),q.ensure(),this.#c=0,this.#a!==null&&De(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,te(()=>this.#l(this.#e)))),this.#d>0?this.#b():this.#t=!1};var a=v;try{N(null),s=!0,n?.(t,o),s=!1}catch(l){ke(l,this.#s&&this.#s.parent)}finally{N(a)}r&&ze(()=>{this.#a=this.#_(()=>{q.ensure(),this.#v=!0;try{return te(()=>{r(this.#e,()=>t,()=>o)})}catch(l){return ke(l,this.#s.parent),null}finally{this.#v=!1}})})}}function dr(e,t,n,r){const i=vt;if(n.length===0&&e.length===0){r(t.map(i));return}var s=y,o=_,a=hr();function l(){Promise.all(n.map(f=>vr(f))).then(f=>{a();try{r([...t.map(i),...f])}catch(c){(o.f&X)===0&&ke(c,o)}s?.deactivate(),Je()}).catch(f=>{ke(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{s?.deactivate(),Je()}}):l()}function hr(){var e=_,t=v,n=L,r=y;return function(s=!0){P(e),N(t),$e(n),s&&r?.activate()}}function Je(){P(null),N(null),$e(null)}function vt(e){var t=k|A,n=v!==null&&(v.f&k)!==0?v:null;return _!==null&&(_.f|=ue),{ctx:L,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??_,ac:null}}function vr(e,t){let n=_;n===null&&Hn();var r=n.b,i=void 0,s=Re(E),o=!v,a=new Map;return Tr(()=>{var l=Ot();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===y&&f.committed&&f.deactivate(),Je()})}catch(u){l.reject(u),Je()}var f=y;if(o){var c=!r.is_pending();r.update_pending_count(1),f.increment(c),a.get(f)?.reject(ye),a.delete(f),a.set(f,l)}const h=(u,d=void 0)=>{if(f.activate(),d)d!==ye&&(s.f|=se,Ke(s,d));else{(s.f&se)!==0&&(s.f^=se),Ke(s,u);for(const[p,B]of a){if(a.delete(p),p===f)break;B.reject(ye)}}o&&(r.update_pending_count(-1),f.decrement(c))};l.promise.then(h,u=>h(null,u||"unknown"))}),tn(()=>{for(const l of a.values())l.reject(ye)}),new Promise(l=>{function f(c){function h(){c===i?l(s):f(i)}c.then(h,h)}f(i)})}function _r(e){const t=vt(e);return hn(t),t}function zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)C(t[n])}}function br(e){for(var t=e.parent;t!==null;){if((t.f&k)===0)return(t.f&X)===0?t:null;t=t.parent}return null}function _t(e){var t,n=_;P(br(e));try{e.f&=~ce,zt(e),t=mn(e)}finally{P(n)}return t}function Wt(e){var t=_t(e);if(e.equals(t)||(y?.is_fork||(e.v=t),e.wv=bn()),!ve)if(D!==null)Xe()&&D.set(e,t);else{var n=(e.f&I)===0?K:x;T(e,n)}}let bt=new Set;const ae=new Map;let Gt=!1;function Re(e,t){var n={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return n}function Q(e,t){const n=Re(e);return hn(n),n}function pr(e,t=!1,n=!0){const r=Re(e);return t||(r.equals=ir),r}function V(e,t,n=!1){v!==null&&(!W||(v.f&Rt)!==0)&&It()&&(v.f&(k|G|ft|Rt))!==0&&!ne?.includes(e)&&Zn();let r=n?xe(t):t;return Ke(e,r)}function Ke(e,t){if(!e.equals(t)){var n=e.v;ve?ae.set(e,t):ae.set(e,n),e.v=t;var r=q.ensure();r.capture(e,n),(e.f&k)!==0&&((e.f&A)!==0&&_t(e),T(e,(e.f&I)!==0?x:K)),e.wv=bn(),Jt(e,A),_!==null&&(_.f&x)!==0&&(_.f&(J|ie))===0&&(F===null?Rr([e]):F.push(e)),!r.is_fork&&bt.size>0&&!Gt&&mr()}return t}function mr(){Gt=!1;var e=fe;Qe(!0);const t=Array.from(bt);try{for(const n of t)(n.f&x)!==0&&T(n,K),Pe(n)&&Fe(n)}finally{Qe(e)}bt.clear()}function Le(e){V(e,e.v+1)}function Jt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,a=(o&A)===0;if(a&&T(s,t),(o&k)!==0){var l=s;D?.delete(l),(o&ce)===0&&(o&I&&(s.f|=ce),Jt(l,K))}else a&&((o&G)!==0&&Z!==null&&Z.add(s),he(s))}}function xe(e){if(typeof e!="object"||e===null||ut in e)return e;const t=At(e);if(t!==jn&&t!==In)return e;var n=new Map,r=Dn(e),i=Q(0),s=_e,o=a=>{if(_e===s)return a();var l=v,f=_e;N(null),_n(s);var c=a();return N(l),_n(f),c};return r&&n.set("length",Q(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kn();var c=n.get(l);return c===void 0?c=o(()=>{var h=Q(f.value);return n.set(l,h),h}):V(c,f.value,!0),!0},deleteProperty(a,l){var f=n.get(l);if(f===void 0){if(l in a){const c=o(()=>Q(E));n.set(l,c),Le(i)}}else V(f,E),Le(i);return!0},get(a,l,f){if(l===ut)return e;var c=n.get(l),h=l in a;if(c===void 0&&(!h||ge(a,l)?.writable)&&(c=o(()=>{var d=xe(h?a[l]:E),p=Q(d);return p}),n.set(l,c)),c!==void 0){var u=g(c);return u===E?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var c=n.get(l);c&&(f.value=g(c))}else if(f===void 0){var h=n.get(l),u=h?.v;if(h!==void 0&&u!==E)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===ut)return!0;var f=n.get(l),c=f!==void 0&&f.v!==E||Reflect.has(a,l);if(f!==void 0||_!==null&&(!c||ge(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=c?xe(a[l]):E,d=Q(u);return d}),n.set(l,f));var h=g(f);if(h===E)return!1}return c},set(a,l,f,c){var h=n.get(l),u=l in a;if(r&&l==="length")for(var d=f;d<h.v;d+=1){var p=n.get(d+"");p!==void 0?V(p,E):d in a&&(p=o(()=>Q(E)),n.set(d+"",p))}if(h===void 0)(!u||ge(a,l)?.writable)&&(h=o(()=>Q(void 0)),V(h,xe(f)),n.set(l,h));else{u=h.v!==E;var B=o(()=>xe(f));V(h,B)}var re=Reflect.getOwnPropertyDescriptor(a,l);if(re?.set&&re.set.call(c,f),!u){if(r&&typeof l=="string"){var b=n.get("length"),O=Number(l);Number.isInteger(O)&&O>=b.v&&V(b,O+1)}Le(i)}return!0},ownKeys(a){g(i);var l=Reflect.ownKeys(a).filter(h=>{var u=n.get(h);return u===void 0||u.v!==E});for(var[f,c]of n)c.v!==E&&!(f in a)&&l.push(f);return l},setPrototypeOf(){Xn()}})}var Kt,Xt,Zt,Qt;function pt(){if(Kt===void 0){Kt=window,Xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Zt=ge(t,"firstChild").get,Qt=ge(t,"nextSibling").get,Ct(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ct(n)&&(n.__t=void 0)}}function le(e=""){return document.createTextNode(e)}function Ne(e){return Zt.call(e)}function ee(e){return Qt.call(e)}function mt(e,t){if(!w)return Ne(e);var n=Ne(m);return n===null&&(n=m.appendChild(le())),H(n),n}function en(e,t=!1){if(!w){var n=Ne(e);return n instanceof Comment&&n.data===""?ee(n):n}if(t&&m?.nodeType!==Dt){var r=le();return m?.before(r),H(r),r}return m}function gt(e,t=1,n=!1){let r=w?m:e;for(var i;t--;)i=r,r=ee(r);if(!w)return r;if(n&&r?.nodeType!==Dt){var s=le();return r===null?i?.after(s):r.before(s),H(s),s}return H(r),r}function gr(e){e.textContent=""}function wr(){return!1}function wt(e){var t=v,n=_;N(null),P(null);try{return e()}finally{N(t),P(n)}}function yr(e){_===null&&(v===null&&Wn(),zn()),ve&&Vn()}function $r(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t,n){var r=_;r!==null&&(r.f&Y)!==0&&(e|=Y);var i={ctx:L,deps:null,nodes_start:null,nodes_end:null,f:e|A|I,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Fe(i),i.f|=He}catch(a){throw C(i),a}else t!==null&&he(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&ue)===0&&(s=s.first,(e&G)!==0&&(e&we)!==0&&s!==null&&(s.f|=we)),s!==null&&(s.parent=r,r!==null&&$r(s,r),v!==null&&(v.f&k)!==0&&(e&ie)===0)){var o=v;(o.effects??=[]).push(s)}return i}function Xe(){return v!==null&&!W}function tn(e){const t=z(at,null,!1);return T(t,x),t.teardown=e,t}function kr(e){yr();var t=_.f,n=!v&&(t&J)!==0&&(t&He)===0;if(n){var r=L;(r.e??=[]).push(e)}else return nn(e)}function nn(e){return z(ot|Bn,e,!1)}function Er(e){q.ensure();const t=z(ie|ue,e,!0);return()=>{C(t)}}function xr(e){q.ensure();const t=z(ie|ue,e,!0);return(n={})=>new Promise(r=>{n.outro?De(t,()=>{C(t),r(void 0)}):(C(t),r(void 0))})}function Nr(e){return z(ot,e,!1)}function Tr(e){return z(ft|ue,e,!0)}function rn(e,t=0){return z(at|t,e,!0)}function Ze(e,t=[],n=[],r=[]){dr(r,t,n,i=>{z(at,()=>e(...i.map(g)),!0)})}function sn(e,t=0){var n=z(G|t,e,!0);return n}function te(e){return z(J|ue,e,!0)}function on(e){var t=e.teardown;if(t!==null){const n=ve,r=v;dn(!0),N(null);try{t.call(null)}finally{dn(n),N(r)}}}function an(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&wt(()=>{i.abort(ye)});var r=n.next;(n.f&ie)!==0?n.parent=null:C(n,t),n=r}}function Sr(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&Lt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Ar(e.nodes_start,e.nodes_end),n=!0),an(e,t&&!n),et(e,0),T(e,X);var r=e.transitions;if(r!==null)for(const s of r)s.stop();on(e);var i=e.parent;i!==null&&i.first!==null&&ln(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Ar(e,t){for(;e!==null;){var n=e===t?null:ee(e);e.remove(),e=n}}function ln(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 De(e,t,n=!0){var r=[];fn(e,r,!0),Cr(r,()=>{n&&C(e),t&&t()})}function Cr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function fn(e,t,n){if((e.f&Y)===0){if(e.f^=Y,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&we)!==0||(r.f&J)!==0&&(e.f&G)!==0;fn(r,t,s?n:!1),r=i}}}function Or(e){un(e,!0)}function un(e,t){if((e.f&Y)!==0){e.f^=Y,(e.f&x)===0&&(T(e,A),he(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&we)!==0||(n.f&J)!==0;un(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function cn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:ee(n);t.append(n),n=i}}let fe=!1;function Qe(e){fe=e}let ve=!1;function dn(e){ve=e}let v=null,W=!1;function N(e){v=e}let _=null;function P(e){_=e}let ne=null;function hn(e){v!==null&&(ne===null?ne=[e]:ne.push(e))}let S=null,R=0,F=null;function Rr(e){F=e}let vn=1,Me=0,_e=Me;function _n(e){_e=e}function bn(){return++vn}function Pe(e){var t=e.f;if((t&A)!==0)return!0;if(t&k&&(e.f&=~ce),(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(Pe(s)&&Wt(s),s.wv>e.wv)return!0}(t&I)!==0&&D===null&&T(e,x)}return!1}function pn(e,t,n=!0){var r=e.reactions;if(r!==null&&!ne?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&k)!==0?pn(s,t,!1):t===s&&(n?T(s,A):(s.f&x)!==0&&T(s,K),he(s))}}function mn(e){var t=S,n=R,r=F,i=v,s=ne,o=L,a=W,l=_e,f=e.f;S=null,R=0,F=null,v=(f&(J|ie))===0?e:null,ne=null,$e(e.ctx),W=!1,_e=++Me,e.ac!==null&&(wt(()=>{e.ac.abort(ye)}),e.ac=null);try{e.f|=lt;var c=e.fn,h=c(),u=e.deps;if(S!==null){var d;if(et(e,R),u!==null&&R>0)for(u.length=R+S.length,d=0;d<S.length;d++)u[R+d]=S[d];else e.deps=u=S;if(fe&&Xe()&&(e.f&I)!==0)for(d=R;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&R<u.length&&(et(e,R),u.length=R);if(It()&&F!==null&&!W&&u!==null&&(e.f&(k|K|A))===0)for(d=0;d<F.length;d++)pn(F[d],e);return i!==null&&i!==e&&(Me++,F!==null&&(r===null?r=F:r.push(...F))),(e.f&se)!==0&&(e.f^=se),h}catch(p){return Bt(p)}finally{e.f^=lt,S=t,R=n,F=r,v=i,ne=s,$e(o),W=a,_e=l}}function Lr(e,t){let n=t.reactions;if(n!==null){var r=Mn.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&k)!==0&&(S===null||!S.includes(t))&&(T(t,K),(t.f&I)!==0&&(t.f^=I,t.f&=~ce),zt(t),et(t,0))}function et(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Lr(e,n[r])}function Fe(e){var t=e.f;if((t&X)===0){T(e,x);var n=_,r=fe;_=e,fe=!0;try{(t&G)!==0?Sr(e):an(e),on(e);var i=mn(e);e.teardown=typeof i=="function"?i:null,e.wv=vn;var s;st&&sr&&(e.f&A)!==0&&e.deps}finally{fe=r,_=n}}}function g(e){var t=e.f,n=(t&k)!==0;if(v!==null&&!W){var r=_!==null&&(_.f&X)!==0;if(!r&&!ne?.includes(e)){var i=v.deps;if((v.f&lt)!==0)e.rv<Me&&(e.rv=Me,S===null&&i!==null&&i[R]===e?R++:S===null?S=[e]:S.includes(e)||S.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(ve){if(ae.has(e))return ae.get(e);if(n){var o=e,a=o.v;return((o.f&x)===0&&o.reactions!==null||wn(o))&&(a=_t(o)),ae.set(o,a),a}}else n&&!D?.has(e)&&(o=e,Pe(o)&&Wt(o),fe&&Xe()&&(o.f&I)===0&&gn(o));if(D?.has(e))return D.get(e);if((e.f&se)!==0)throw e.v;return e.v}function gn(e){if(e.deps!==null){e.f^=I;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&k)!==0&&(t.f&I)===0&&gn(t)}}function wn(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&k)!==0&&wn(t))return!0;return!1}function Dr(e){var t=W;try{return W=!0,e()}finally{W=t}}const Mr=-7169;function T(e,t){e.f=e.f&Mr|t}const yn=new Set,yt=new Set;function Pr(e,t,n,r={}){function i(s){if(r.capture||je.call(t,s),!s.cancelBubble)return wt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ze(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function $n(e,t,n,r,i){var s={capture:r,passive:i},o=Pr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&tn(()=>{t.removeEventListener(e,o,s)})}function Fr(e){for(var t=0;t<e.length;t++)yn.add(e[t]);for(var n of yt)n(e)}let kn=null;function je(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;kn=e;var o=0,a=kn===e&&e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(s=i[o]||e.target,s!==t){Ue(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=v,h=_;N(null),P(null);try{for(var u,d=[];s!==null;){var p=s.assignedSlot||s.parentNode||s.host||null;try{var B=s["__"+r];B!=null&&(!s.disabled||e.target===s)&&B.call(s,e)}catch(re){u?d.push(re):u=re}if(e.cancelBubble||p===t||p===null)break;s=p}if(u){for(let re of d)queueMicrotask(()=>{throw re});throw u}}finally{e.__root=t,delete e.currentTarget,N(c),P(h)}}}function jr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Te(e,t){var n=_;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Ie(e,t){var n=(t&On)!==0,r=(t&Rn)!==0,i,s=!e.startsWith("<!>");return()=>{if(w)return Te(m,null),m;i===void 0&&(i=jr(s?e:"<!>"+e),n||(i=Ne(i)));var o=r||Xt?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=Ne(o),l=o.lastChild;Te(a,l)}else Te(o,o);return o}}function Ir(){if(w)return Te(m,null),m;var e=document.createDocumentFragment(),t=document.createComment(""),n=le();return e.append(t,n),Te(t,n),e}function be(e,t){if(w){var n=_;((n.f&He)===0||n.nodes_end===null)&&(n.nodes_end=m),ct();return}e!==null&&e.before(t)}const qr=["touchstart","touchmove"];function Br(e){return qr.includes(e)}function Ur(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function En(e,t){return xn(e,t)}function Yr(e,t){pt(),t.intro=t.intro??!1;const n=t.target,r=w,i=m;try{for(var s=Ne(n);s&&(s.nodeType!==Ce||s.data!==Tt);)s=ee(s);if(!s)throw me;oe(!0),H(s);const o=xn(e,{...t,anchor:s});return oe(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==me&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Jn(),pt(),gr(n),oe(!1),En(e,t)}finally{oe(r),H(i)}}const Se=new Map;function xn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){pt();var a=new Set,l=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!a.has(d)){a.add(d);var p=Br(d);t.addEventListener(d,je,{passive:p});var B=Se.get(d);B===void 0?(document.addEventListener(d,je,{passive:p}),Se.set(d,1)):Se.set(d,B+1)}}};l(Pn(yn)),yt.add(l);var f=void 0,c=xr(()=>{var h=n??t.appendChild(le());return ur(h,{pending:()=>{}},u=>{if(s){Ft({});var d=L;d.c=s}if(i&&(r.$$events=i),w&&Te(u,null),f=e(u,r)||{},w&&(_.nodes_end=m,m===null||m.nodeType!==Ce||m.data!==St))throw Ve(),me;s&&jt()}),()=>{for(var u of a){t.removeEventListener(u,je);var d=Se.get(u);--d===0?(document.removeEventListener(u,je),Se.delete(u)):Se.set(u,d)}yt.delete(l),h!==n&&h.parentNode?.removeChild(h)}});return $t.set(f,c),f}let $t=new WeakMap;function Hr(e,t){const n=$t.get(e);return n?($t.delete(e),n(t)):Promise.resolve()}class Vr{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#l=!0;constructor(t,n=!0){this.anchor=t,this.#l=n}#s=()=>{var t=y;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)Or(r),this.#r.delete(n);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,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#n.get(o);a&&(C(a.effect),this.#n.delete(o))}for(const[s,o]of this.#e){if(s===n||this.#r.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();cn(o,f),f.append(le()),this.#n.set(s,{effect:o,fragment:f})}else C(o);this.#r.delete(s),this.#e.delete(s)};this.#l||!r?(this.#r.add(s),De(o,a,!1)):a()}}};#i=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=y,i=wr();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),o=le();s.append(o),this.#n.set(t,{effect:te(()=>n(o)),fragment:s})}else this.#e.set(t,te(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[a,l]of this.#e)a===t?r.skipped_effects.delete(l):r.skipped_effects.add(l);for(const[a,l]of this.#n)a===t?r.skipped_effects.delete(l.effect):r.skipped_effects.add(l.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else w&&(this.anchor=m),this.#s()}}function kt(e,t,n=!1){w&&ct();var r=new Vr(e),i=n?we:0;function s(o,a){if(w){const f=nr(e)===it;if(o===f){var l=Mt();H(l),r.anchor=l,oe(!1),r.ensure(o,a),oe(!0);return}}r.ensure(o,a)}sn(()=>{var o=!1;t((a,l=!0)=>{o=!0,s(l,a)}),o||s(!1,null)},i)}function zr(e,t){Nr(()=>{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 Wr(e,t,n){var r=""+e;return r}function Gr(e,t,n,r,i,s){var o=e.__className;if(w||o!==n||o===void 0){var a=Wr(n);(!w||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}return s}const Jr=Symbol("is custom element"),Kr=Symbol("is html");function Xr(e,t,n,r){var i=Zr(e);w&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Yn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Nn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function tt(e,t,n){var r=v,i=_;let s=w;w&&oe(!1),N(null),P(null);try{t!=="style"&&(Et.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Nn(e).includes(t):n&&typeof n=="object")?e[t]=n:Xr(e,t,n==null?n:String(n))}finally{N(r),P(i),s&&oe(!0)}}function Zr(e){return e.__attributes??={[Jr]:e.nodeName.includes("-"),[Kr]:e.namespaceURI===Ln}}var Et=new Map;function Nn(e){var t=e.getAttribute("is")||e.nodeName,n=Et.get(t);if(n)return n;Et.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Fn(i);for(var o in r)r[o].set&&n.push(o);i=At(i)}return n}function qe(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),a;a=e[t],a===void 0&&r!==void 0&&(a=o());var l;l=()=>{var u=e[t];return u===void 0?o():(s=!0,u)};var f=!1,c=vt(()=>(f=!1,l())),h=_;return(function(u,d){if(arguments.length>0){const p=d?g(c):u;return V(c,p),f=!0,i!==void 0&&(i=p),u}return ve&&f||(h.f&X)!==0?c.v:g(c)})}function Qr(e){return new ei(e)}class ei{#t;#e;constructor(t){var n=new Map,r=(s,o)=>{var a=pr(o,!1,!1);return n.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return g(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===Un?!0:(g(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return V(n.get(o)??r(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?Yr:En)(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)&&Ee(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ue(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},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 Tn;typeof HTMLElement=="function"&&(Tn=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),be(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ti(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]=nt(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=Qr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Er(()=>{rn(()=>{this.$$r=!0;for(const r of Be(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=nt(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]=nt(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 Be(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function nt(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 ti(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ni(e,t,n,r,i,s){let o=class extends Tn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Be(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Be(t).forEach(a=>{Ue(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=nt(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var c=ge(f,a)?.get;c?f[a]=l:f.$set({[a]:l})}}})}),r.forEach(a=>{Ue(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const ri={version:"0.66.0"};var pe={},Sn;function ii(){if(Sn)return pe;Sn=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.LanguageTranslator=void 0,pe.getChildStyleToPass=e,pe.addComponent=t;function e(r,i){var s,o,a="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||o===void 0)&&o.length))for(var l=function(u){var d=i?.filter(function(p){return p.name===u&&p.defaultValue!==r[u]});d&&(a+="".concat(u,":").concat(r[u],";"))},f=0,c=Object.keys(r);f<c.length;f++){var h=c[f];l(h)}}catch(u){console.error("error getting child style to pass",u)}finally{return a}}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 o=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(o),r?.local)a.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}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,o){return r.formatDate(i,s,o||this.lang)},r.getDefaultLang=function(){var i,s,o,a="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},r.getDictionaryWord=function(i,s,o){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((a=s[o])===null||a===void 0)&&a[i]))return s[o][i];var l="",f=r.getDefaultLang();if(!o||f!==o){var c=s?.[f];c?.[i]&&(l=c[i])}return l},r.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||r.getDefaultLang(),s);return a.format(i)},r})();return pe.LanguageTranslator=n,pe}var si=ii(),oi=Ie('<button class="btn btn-primary svelte-67k34i">Indietro</button>'),ai=Ie('<button class="btn btn-primary svelte-67k34i" disabled>Indietro</button>'),li=Ie('<button class="btn btn-primary svelte-67k34i">Salva</button>'),fi=Ie('<button class="btn btn-primary svelte-67k34i">Avanti</button>'),ui=Ie('<hb-form></hb-form> <div class="svelte-67k34i"><span class="svelte-67k34i"><span class="btn btn-secondary svelte-67k34i"> </span> <!> <!></span></div>',3);const ci={hash:"svelte-67k34i",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");
1
+ (function(Lt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Un=1,Wn=2,Mt="[",Dt="[!",Pt="[?",It="]",$e={},S=Symbol(),Ft="http://www.w3.org/1999/xhtml",Gn=!1;var Jn=Array.isArray,Kn=Array.prototype.indexOf,ke=Array.prototype.includes,Xn=Array.from,Ve=Object.keys,Ye=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Zn=Object.getOwnPropertyDescriptors,Qn=Object.prototype,er=Array.prototype,jt=Object.getPrototypeOf,Bt=Object.isExtensible;const tr=()=>{};function nr(e){for(var t=0;t<e.length;t++)e[t]()}function Ht(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const x=2,xe=4,Ue=8,qt=1<<24,ie=16,U=32,se=64,ot=128,P=512,E=1024,A=2048,W=4096,G=8192,q=16384,oe=32768,zt=1<<25,Te=65536,Vt=1<<17,rr=1<<18,ve=1<<19,ir=1<<20,be=65536,lt=1<<21,at=1<<22,le=1<<23,ft=Symbol("$state"),sr=Symbol("legacy props"),or=Symbol(""),Z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},lr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ut=3,We=8;function ar(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ur(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function cr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function dr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hr(){throw new Error("https://svelte.dev/e/hydration_failed")}function vr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function br(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function _r(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function pr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function ae(e){y=e}let g;function J(e){if(e===null)throw Ge(),$e;return g=e}function ct(){return J(ne(g))}function dt(e){if(y){if(ne(g)!==null)throw Ge(),$e;g=e}}function gr(e=1){if(y){for(var t=e,n=g;t--;)n=ne(n);g=n}}function Yt(e=!0){for(var t=0,n=g;;){if(n.nodeType===We){var r=n.data;if(r===It){if(t===0)return n;t-=1}else(r===Mt||r===Dt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ne(n);e&&n.remove(),n=i}}function wr(e){if(!e||e.nodeType!==We)throw Ge(),$e;return e.data}function Ut(e){return e===this.v}function yr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function $r(e){return!yr(e,this.v)}let kr=!1,I=null;function Ne(e){I=e}function Wt(e,t=!1,n){I={p:I,i:!1,c:null,e:null,s:e,x:null,r:_,l:null}}function Gt(e){var t=I,n=t.e;if(n!==null){t.e=null;for(var r of n)gn(r)}return e!==void 0&&(t.x=e),t.i=!0,I=t.p,e??{}}function Jt(){return!0}let _e=[];function Kt(){var e=_e;_e=[],nr(e)}function pe(e){if(_e.length===0&&!De){var t=_e;queueMicrotask(()=>{t===_e&&Kt()})}_e.push(e)}function Er(){for(;_e.length>0;)Kt()}function Xt(e){var t=_;if(t===null)return b.f|=le,e;if((t.f&oe)===0&&(t.f&xe)===0)throw e;fe(e,t)}function fe(e,t){for(;t!==null;){if((t.f&ot)!==0){if((t.f&oe)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const xr=-7169;function k(e,t){e.f=e.f&xr|t}function ht(e){(e.f&P)!==0||e.deps===null?k(e,E):k(e,W)}function Zt(e){if(e!==null)for(const t of e)(t.f&x)===0||(t.f&be)===0||(t.f^=be,Zt(t.deps))}function Qt(e,t,n){(e.f&A)!==0?t.add(e):(e.f&W)!==0&&n.add(e),Zt(e.deps),k(e,E)}const ue=new Set;let $=null,z=null,vt=null,De=!1,bt=!1,Se=null,Je=null;var en=0;let Tr=1;class Q{id=Tr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#f)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)k(r,A),this.schedule(r);for(r of n.m)k(r,W),this.schedule(r)}}#h(){if(en++>1e3&&(ue.delete(this),Nr()),!this.#d()){for(const o of this.#o)this.#l.delete(o),k(o,A),this.schedule(o);for(const o of this.#l)k(o,W),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=Se=[],r=[],i=Je=[];for(const o of t)try{this.#u(o,n,r)}catch(a){throw on(o),a}if($=null,i.length>0){var s=Q.ensure();for(const o of i)s.schedule(o)}if(Se=null,Je=null,this.#d()||this.#v()){this.#b(r),this.#b(n);for(const[o,a]of this.#a)sn(o,a)}else{this.#t.size===0&&ue.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),tn(r),tn(n),this.#s?.resolve()}var l=$;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(a=>!o.#r.includes(a)))}l!==null&&(ue.add(l),l.#h()),ue.has(this)||this.#_()}#u(t,n,r){t.f^=E;for(var i=t.first;i!==null;){var s=i.f,l=(s&(U|se))!==0,o=l&&(s&E)!==0,a=o||(s&G)!==0||this.#a.has(i);if(!a&&i.fn!==null){l?i.f^=E:(s&xe)!==0?n.push(i):je(i)&&((s&ie)!==0&&this.#l.add(i),Oe(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#b(t){for(var n=0;n<t.length;n+=1)Qt(t[n],this.#o,this.#l)}capture(t,n,r=!1){n!==S&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&le)===0&&(this.current.set(t,[t.v,r]),z?.set(t,t.v))}activate(){$=this}deactivate(){$=null,z=null}flush(){try{bt=!0,$=this,this.#h()}finally{en=0,vt=null,Se=null,Je=null,bt=!1,$=null,z=null,ce.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ue.delete(this)}#_(){for(const f of ue){var t=f.id<this.id,n=[];for(const[u,[h,c]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&h!==r)f.current.set(u,[h,c]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,l=new Map;for(var o of n)nn(o,i,s,l);if(f.#r.length>0){f.apply();for(var a of f.#r)f.#u(a,[],[]);f.#r=[]}f.deactivate()}}for(const f of ue)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,pe(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#o.add(r);for(const r of n)this.#l.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Ht()).promise}static ensure(){if($===null){const t=$=new Q;bt||(ue.add($),De||pe(()=>{$===t&&t.flush()}))}return $}apply(){{z=null;return}}schedule(t){if(vt=t,t.b?.is_pending&&(t.f&(xe|Ue|qt))!==0&&(t.f&oe)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Se!==null&&n===_&&(b===null||(b.f&x)===0))return;if((r&(se|U))!==0){if((r&E)===0)return;n.f^=E}}this.#r.push(n)}}function Ae(e){var t=De;De=!0;try{for(var n;;){if(Er(),$===null)return n;$.flush()}}finally{De=t}}function Nr(){try{dr()}catch(e){fe(e,vt)}}let ee=null;function tn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(q|G))===0&&je(r)&&(ee=new Set,Oe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&kn(r),ee?.size>0)){ce.clear();for(const i of ee){if((i.f&(q|G))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)ee.has(l)&&(ee.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(q|G))===0&&Oe(a)}}ee.clear()}}ee=null}}function nn(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&x)!==0?nn(i,t,n,r):(s&(at|ie))!==0&&(s&A)===0&&rn(i,t,r)&&(k(i,A),_t(i))}}function rn(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(ke.call(t,i))return!0;if((i.f&x)!==0&&rn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function _t(e){$.schedule(e)}function sn(e,t){if(!((e.f&U)!==0&&(e.f&E)!==0)){(e.f&A)!==0?t.d.push(e):(e.f&W)!==0&&t.m.push(e),k(e,E);for(var n=e.first;n!==null;)sn(n,t),n=n.next}}function on(e){k(e,E);for(var t=e.first;t!==null;)on(t),t=t.next}function Sr(e){let t=0,n=Pe(0),r;return()=>{xt()&&(m(n),wn(()=>(t===0&&(r=ei(()=>e(()=>Ie(n)))),t+=1,()=>{pe(()=>{t-=1,t===0&&(r?.(),r=void 0,Ie(n))})})))}}var Ar=Te|ve;function Cr(e,t,n,r){new Rr(e,t,n,r)}class Rr{parent;is_pending=!1;transform_error;#e;#n=y?g:null;#t;#i;#s;#r=null;#o=null;#l=null;#a=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#b=Sr(()=>(this.#u=Pe(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=_;l.b=this,l.f|=ot,r(s)},this.parent=_.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=yn(()=>{if(y){const s=this.#n;ct();const l=s.data===Dt;if(s.data.startsWith(Pt)){const a=JSON.parse(s.data.slice(Pt.length));this.#y(a)}else l?this.#$():this.#_()}else this.#g()},Ar),y&&(this.#e=g)}#_(){try{this.#r=re(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#l=re(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=re(()=>t(this.#e)),pe(()=>{var n=this.#a=document.createDocumentFragment(),r=de();n.append(r),this.#r=this.#m(()=>re(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#a=null,Fe(this.#o,()=>{this.#o=null}),this.#p($))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=re(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Tn(this.#r,t);const n=this.#t.pending;this.#o=re(()=>n(this.#e))}else this.#p($)}catch(n){this.error(n)}}#p(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Qt(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=_,r=b,i=I;F(this.#s),R(this.#s),Ne(this.#s.ctx);try{return Q.ensure(),t()}catch(s){return Xt(s),null}finally{F(n),R(r),Ne(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#f+=t,this.#f===0&&(this.#p(n),this.#o&&Fe(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,pe(()=>{this.#d=!1,this.#u&&Ze(this.#u,this.#c)}))}get_effect_pending(){return this.#b(),m(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(C(this.#r),this.#r=null),this.#o&&(C(this.#o),this.#o=null),this.#l&&(C(this.#l),this.#l=null),y&&(J(this.#n),gr(),J(Yt()));var i=!1,s=!1;const l=()=>{if(i){mr();return}i=!0,s&&pr(),this.#l!==null&&Fe(this.#l,()=>{this.#l=null}),this.#m(()=>{this.#g()})},o=a=>{try{s=!0,n?.(a,l),s=!1}catch(f){fe(f,this.#s&&this.#s.parent)}r&&(this.#l=this.#m(()=>{try{return re(()=>{var f=_;f.b=this,f.f|=ot,r(this.#e,()=>a,()=>l)})}catch(f){return fe(f,this.#s.parent),null}}))};pe(()=>{var a;try{a=this.transform_error(t)}catch(f){fe(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>fe(f,this.#s&&this.#s.parent)):o(a)})}}function Or(e,t,n,r){const i=pt;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=_,o=Lr(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){o();try{r(c)}catch(v){(l.f&q)===0&&fe(v,l)}Ke()}if(n.length===0){a.then(()=>f(t.map(i)));return}var u=ln();function h(){Promise.all(n.map(c=>Mr(c))).then(c=>f([...t.map(i),...c])).catch(c=>fe(c,l)).finally(()=>u())}a?a.then(()=>{o(),h(),Ke()}):h()}function Lr(){var e=_,t=b,n=I,r=$;return function(s=!0){F(e),R(t),Ne(n),s&&(e.f&q)===0&&(r?.activate(),r?.apply())}}function Ke(e=!0){F(null),R(null),Ne(null),e&&$?.deactivate()}function ln(){var e=_,t=e.b,n=$,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function pt(e){var t=x|A,n=b!==null&&(b.f&x)!==0?b:null;return _!==null&&(_.f|=ve),{ctx:I,deps:null,effects:null,equals:Ut,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??_,ac:null}}function Mr(e,t,n){let r=_;r===null&&ar();var i=void 0,s=Pe(S),l=!b,o=new Map;return Gr(()=>{var a=_,f=Ht();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Ke)}catch(v){f.reject(v),Ke()}var u=$;if(l){if((a.f&oe)!==0)var h=ln();if(r.b.is_rendered())o.get(u)?.reject(Z),o.delete(u);else{for(const v of o.values())v.reject(Z);o.clear()}o.set(u,f)}const c=(v,d=void 0)=>{if(h){var w=d===Z;h(w)}if(!(d===Z||(a.f&q)!==0)){if(u.activate(),d)s.f|=le,Ze(s,d);else{(s.f&le)!==0&&(s.f^=le),Ze(s,v);for(const[T,D]of o){if(o.delete(T),T===u)break;D.reject(Z)}}u.deactivate()}};f.promise.then(c,v=>c(null,v||"unknown"))}),mn(()=>{for(const a of o.values())a.reject(Z)}),new Promise(a=>{function f(u){function h(){u===i?a(s):f(i)}u.then(h,h)}f(i)})}function Xe(e){const t=pt(e);return Sn(t),t}function Dr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)C(t[n])}}function Pr(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&q)===0?t:null;t=t.parent}return null}function mt(e){var t,n=_;F(Pr(e));try{e.f&=~be,Dr(e),t=Ln(e)}finally{F(n)}return t}function an(e){var t=e.v,n=mt(e);if(!e.equals(n)&&(e.wv=Rn(),(!$?.is_fork||e.deps===null)&&(e.v=n,$?.capture(e,t,!0),e.deps===null))){k(e,E);return}he||(z!==null?(xt()||$?.is_fork)&&z.set(e,n):ht(e))}function Ir(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Z),t.teardown=tr,t.ac=null,Be(t,0),Tt(t))}function fn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Oe(t)}let gt=new Set;const ce=new Map;let un=!1;function Pe(e,t){var n={f:0,v:e,reactions:null,equals:Ut,rv:0,wv:0};return n}function te(e,t){const n=Pe(e);return Sn(n),n}function Fr(e,t=!1,n=!0){const r=Pe(e);return t||(r.equals=$r),r}function K(e,t,n=!1){b!==null&&(!V||(b.f&Vt)!==0)&&Jt()&&(b.f&(x|ie|at|Vt))!==0&&(j===null||!ke.call(j,e))&&_r();let r=n?Ce(t):t;return Ze(e,r,Je)}function Ze(e,t,n=null){if(!e.equals(t)){var r=e.v;he?ce.set(e,t):ce.set(e,r),e.v=t;var i=Q.ensure();if(i.capture(e,r),(e.f&x)!==0){const s=e;(e.f&A)!==0&&mt(s),z===null&&ht(s)}e.wv=Rn(),cn(e,A,n),_!==null&&(_.f&E)!==0&&(_.f&(U|se))===0&&(B===null?Zr([e]):B.push(e)),!i.is_fork&&gt.size>0&&!un&&jr()}return t}function jr(){un=!1;for(const e of gt)(e.f&E)!==0&&k(e,W),je(e)&&Oe(e);gt.clear()}function Ie(e){K(e,e.v+1)}function cn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,a=(o&A)===0;if(a&&k(l,t),(o&x)!==0){var f=l;z?.delete(f),(o&be)===0&&(o&P&&(l.f|=be),cn(f,W,n))}else if(a){var u=l;(o&ie)!==0&&ee!==null&&ee.add(u),n!==null?n.push(u):_t(u)}}}function Ce(e){if(typeof e!="object"||e===null||ft in e)return e;const t=jt(e);if(t!==Qn&&t!==er)return e;var n=new Map,r=Jn(e),i=te(0),s=ge,l=o=>{if(ge===s)return o();var a=b,f=ge;R(null),Cn(s);var u=o();return R(a),Cn(f),u};return r&&n.set("length",te(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&vr();var u=n.get(a);return u===void 0?l(()=>{var h=te(f.value);return n.set(a,h),h}):K(u,f.value,!0),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0){if(a in o){const u=l(()=>te(S));n.set(a,u),Ie(i)}}else K(f,S),Ie(i);return!0},get(o,a,f){if(a===ft)return e;var u=n.get(a),h=a in o;if(u===void 0&&(!h||Ee(o,a)?.writable)&&(u=l(()=>{var v=Ce(h?o[a]:S),d=te(v);return d}),n.set(a,u)),u!==void 0){var c=m(u);return c===S?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=m(u))}else if(f===void 0){var h=n.get(a),c=h?.v;if(h!==void 0&&c!==S)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===ft)return!0;var f=n.get(a),u=f!==void 0&&f.v!==S||Reflect.has(o,a);if(f!==void 0||_!==null&&(!u||Ee(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?Ce(o[a]):S,v=te(c);return v}),n.set(a,f));var h=m(f);if(h===S)return!1}return u},set(o,a,f,u){var h=n.get(a),c=a in o;if(r&&a==="length")for(var v=f;v<h.v;v+=1){var d=n.get(v+"");d!==void 0?K(d,S):v in o&&(d=l(()=>te(S)),n.set(v+"",d))}if(h===void 0)(!c||Ee(o,a)?.writable)&&(h=l(()=>te(void 0)),K(h,Ce(f)),n.set(a,h));else{c=h.v!==S;var w=l(()=>Ce(f));K(h,w)}var T=Reflect.getOwnPropertyDescriptor(o,a);if(T?.set&&T.set.call(u,f),!c){if(r&&typeof a=="string"){var D=n.get("length"),p=Number(a);Number.isInteger(p)&&p>=D.v&&K(D,p+1)}Ie(i)}return!0},ownKeys(o){m(i);var a=Reflect.ownKeys(o).filter(h=>{var c=n.get(h);return c===void 0||c.v!==S});for(var[f,u]of n)u.v!==S&&!(f in o)&&a.push(f);return a},setPrototypeOf(){br()}})}var dn,hn,vn,bn;function wt(){if(dn===void 0){dn=window,hn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;vn=Ee(t,"firstChild").get,bn=Ee(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 de(e=""){return document.createTextNode(e)}function Re(e){return vn.call(e)}function ne(e){return bn.call(e)}function yt(e,t){if(!y)return Re(e);var n=Re(g);return n===null&&(n=g.appendChild(de())),J(n),n}function _n(e,t=!1){if(!y){var n=Re(e);return n instanceof Comment&&n.data===""?ne(n):n}if(t){if(g?.nodeType!==ut){var r=de();return g?.before(r),J(r),r}pn(g)}return g}function $t(e,t=1,n=!1){let r=y?g:e;for(var i;t--;)i=r,r=ne(r);if(!y)return r;if(n){if(r?.nodeType!==ut){var s=de();return r===null?i?.after(s):r.before(s),J(s),s}pn(r)}return J(r),r}function Br(e){e.textContent=""}function Hr(){return!1}function kt(e,t,n){return document.createElementNS(Ft,e,void 0)}function pn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ut;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Et(e){var t=b,n=_;R(null),F(null);try{return e()}finally{R(t),F(n)}}function qr(e){_===null&&(b===null&&cr(),ur()),he&&fr()}function zr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function X(e,t){var n=_;n!==null&&(n.f&G)!==0&&(e|=G);var r={ctx:I,deps:null,nodes:null,f:e|A|P,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&xe)!==0)Se!==null?Se.push(r):Q.ensure().schedule(r);else if(t!==null){try{Oe(r)}catch(l){throw C(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ve)===0&&(i=i.first,(e&ie)!==0&&(e&Te)!==0&&i!==null&&(i.f|=Te))}if(i!==null&&(i.parent=n,n!==null&&zr(i,n),b!==null&&(b.f&x)!==0&&(e&se)===0)){var s=b;(s.effects??=[]).push(i)}return r}function xt(){return b!==null&&!V}function mn(e){const t=X(Ue,null);return k(t,E),t.teardown=e,t}function Vr(e){qr();var t=_.f,n=!b&&(t&U)!==0&&(t&oe)===0;if(n){var r=I;(r.e??=[]).push(e)}else return gn(e)}function gn(e){return X(xe|ir,e)}function Yr(e){Q.ensure();const t=X(se|ve,e);return()=>{C(t)}}function Ur(e){Q.ensure();const t=X(se|ve,e);return(n={})=>new Promise(r=>{n.outro?Fe(t,()=>{C(t),r(void 0)}):(C(t),r(void 0))})}function Wr(e){return X(xe,e)}function Gr(e){return X(at|ve,e)}function wn(e,t=0){return X(Ue|t,e)}function Qe(e,t=[],n=[],r=[]){Or(r,t,n,i=>{X(Ue,()=>e(...i.map(m)))})}function yn(e,t=0){var n=X(ie|t,e);return n}function re(e){return X(U|ve,e)}function $n(e){var t=e.teardown;if(t!==null){const n=he,r=b;Nn(!0),R(null);try{t.call(null)}finally{Nn(n),R(r)}}}function Tt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Et(()=>{i.abort(Z)});var r=n.next;(n.f&se)!==0?n.parent=null:C(n,t),n=r}}function Jr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&C(t),t=n}}function C(e,t=!0){var n=!1;(t||(e.f&rr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Kr(e.nodes.start,e.nodes.end),n=!0),k(e,zt),Tt(e,t&&!n),Be(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();$n(e),e.f^=zt,e.f|=q;var i=e.parent;i!==null&&i.first!==null&&kn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Kr(e,t){for(;e!==null;){var n=e===t?null:ne(e);e.remove(),e=n}}function kn(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 Fe(e,t,n=!0){var r=[];En(e,r,!0);var i=()=>{n&&C(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function En(e,t,n){if((e.f&G)===0){e.f^=G;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&Te)!==0||(i.f&U)!==0&&(e.f&ie)!==0;En(i,t,l?n:!1),i=s}}}function Xr(e){xn(e,!0)}function xn(e,t){if((e.f&G)!==0){e.f^=G,(e.f&E)===0&&(k(e,A),Q.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Te)!==0||(n.f&U)!==0;xn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function Tn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ne(n);t.append(n),n=i}}let et=!1,he=!1;function Nn(e){he=e}let b=null,V=!1;function R(e){b=e}let _=null;function F(e){_=e}let j=null;function Sn(e){b!==null&&(j===null?j=[e]:j.push(e))}let O=null,M=0,B=null;function Zr(e){B=e}let An=1,me=0,ge=me;function Cn(e){ge=e}function Rn(){return++An}function je(e){var t=e.f;if((t&A)!==0)return!0;if(t&x&&(e.f&=~be),(t&W)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(je(s)&&an(s),s.wv>e.wv)return!0}(t&P)!==0&&z===null&&k(e,E)}return!1}function On(e,t,n=!0){var r=e.reactions;if(r!==null&&!(j!==null&&ke.call(j,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&x)!==0?On(s,t,!1):t===s&&(n?k(s,A):(s.f&E)!==0&&k(s,W),_t(s))}}function Ln(e){var t=O,n=M,r=B,i=b,s=j,l=I,o=V,a=ge,f=e.f;O=null,M=0,B=null,b=(f&(U|se))===0?e:null,j=null,Ne(e.ctx),V=!1,ge=++me,e.ac!==null&&(Et(()=>{e.ac.abort(Z)}),e.ac=null);try{e.f|=lt;var u=e.fn,h=u();e.f|=oe;var c=e.deps,v=$?.is_fork;if(O!==null){var d;if(v||Be(e,M),c!==null&&M>0)for(c.length=M+O.length,d=0;d<O.length;d++)c[M+d]=O[d];else e.deps=c=O;if(xt()&&(e.f&P)!==0)for(d=M;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!v&&c!==null&&M<c.length&&(Be(e,M),c.length=M);if(Jt()&&B!==null&&!V&&c!==null&&(e.f&(x|W|A))===0)for(d=0;d<B.length;d++)On(B[d],e);if(i!==null&&i!==e){if(me++,i.deps!==null)for(let w=0;w<n;w+=1)i.deps[w].rv=me;if(t!==null)for(const w of t)w.rv=me;B!==null&&(r===null?r=B:r.push(...B))}return(e.f&le)!==0&&(e.f^=le),h}catch(w){return Xt(w)}finally{e.f^=lt,O=t,M=n,B=r,b=i,j=s,Ne(l),V=o,ge=a}}function Qr(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())}}if(n===null&&(t.f&x)!==0&&(O===null||!ke.call(O,t))){var s=t;(s.f&P)!==0&&(s.f^=P,s.f&=~be),ht(s),Ir(s),Be(s,0)}}function Be(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Qr(e,n[r])}function Oe(e){var t=e.f;if((t&q)===0){k(e,E);var n=_,r=et;_=e,et=!0;try{(t&(ie|qt))!==0?Jr(e):Tt(e),$n(e);var i=Ln(e);e.teardown=typeof i=="function"?i:null,e.wv=An;var s;Gn&&kr&&(e.f&A)!==0&&e.deps}finally{et=r,_=n}}}function m(e){var t=e.f,n=(t&x)!==0;if(b!==null&&!V){var r=_!==null&&(_.f&q)!==0;if(!r&&(j===null||!ke.call(j,e))){var i=b.deps;if((b.f&lt)!==0)e.rv<me&&(e.rv=me,O===null&&i!==null&&i[M]===e?M++:O===null?O=[e]:O.push(e));else{(b.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[b]:ke.call(s,b)||s.push(b)}}}if(he&&ce.has(e))return ce.get(e);if(n){var l=e;if(he){var o=l.v;return((l.f&E)===0&&l.reactions!==null||Dn(l))&&(o=mt(l)),ce.set(l,o),o}var a=(l.f&P)===0&&!V&&b!==null&&(et||(b.f&P)!==0),f=(l.f&oe)===0;je(l)&&(a&&(l.f|=P),an(l)),a&&!f&&(fn(l),Mn(l))}if(z?.has(e))return z.get(e);if((e.f&le)!==0)throw e.v;return e.v}function Mn(e){if(e.f|=P,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&P)===0&&(fn(t),Mn(t))}function Dn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&x)!==0&&Dn(t))return!0;return!1}function ei(e){var t=V;try{return V=!0,e()}finally{V=t}}const He=Symbol("events"),Pn=new Set,Nt=new Set;function ti(e,t,n,r={}){function i(s){if(r.capture||St.call(t,s),!s.cancelBubble)return Et(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?pe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function In(e,t,n,r,i){var s={capture:r,passive:i},l=ti(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&mn(()=>{t.removeEventListener(e,l,s)})}function tt(e,t,n){(t[He]??={})[e]=n}function ni(e){for(var t=0;t<e.length;t++)Pn.add(e[t]);for(var n of Nt)n(e)}let Fn=null;function St(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Fn=e;var l=0,o=Fn===e&&e[He];if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e[He]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){Ye(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=b,h=_;R(null),F(null);try{for(var c,v=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var w=s[He]?.[r];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(T){c?v.push(T):c=T}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let T of v)queueMicrotask(()=>{throw T});throw c}}finally{e[He]=t,delete e.currentTarget,R(u),F(h)}}}const ri=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ii(e){return ri?.createHTML(e)??e}function si(e){var t=kt("template");return t.innerHTML=ii(e.replaceAll("<!>","<!---->")),t.content}function Le(e,t){var n=_;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function qe(e,t){var n=(t&Un)!==0,r=(t&Wn)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return Le(g,null),g;i===void 0&&(i=si(s?e:"<!>"+e),n||(i=Re(i)));var l=r||hn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Re(l),a=l.lastChild;Le(o,a)}else Le(l,l);return l}}function oi(){if(y)return Le(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),n=de();return e.append(t,n),Le(t,n),e}function we(e,t){if(y){var n=_;((n.f&oe)===0||n.nodes.end===null)&&(n.nodes.end=g),ct();return}e!==null&&e.before(t)}const li=["touchstart","touchmove"];function ai(e){return li.includes(e)}function fi(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function jn(e,t){return Bn(e,t)}function ui(e,t){wt(),t.intro=t.intro??!1;const n=t.target,r=y,i=g;try{for(var s=Re(n);s&&(s.nodeType!==We||s.data!==Mt);)s=ne(s);if(!s)throw $e;ae(!0),J(s);const l=Bn(e,{...t,anchor:s});return ae(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==$e&&console.warn("Failed to hydrate: ",l),t.recover===!1&&hr(),wt(),Br(n),ae(!1),jn(e,t)}finally{ae(r),J(i)}}const nt=new Map;function Bn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){wt();var a=void 0,f=Ur(()=>{var u=n??t.appendChild(de());Cr(u,{pending:()=>{}},v=>{Wt({});var d=I;if(s&&(d.c=s),i&&(r.$$events=i),y&&Le(v,null),a=e(v,r)||{},y&&(_.nodes.end=g,g===null||g.nodeType!==We||g.data!==It))throw Ge(),$e;Gt()},o);var h=new Set,c=v=>{for(var d=0;d<v.length;d++){var w=v[d];if(!h.has(w)){h.add(w);var T=ai(w);for(const L of[t,document]){var D=nt.get(L);D===void 0&&(D=new Map,nt.set(L,D));var p=D.get(w);p===void 0?(L.addEventListener(w,St,{passive:T}),D.set(w,1)):D.set(w,p+1)}}}};return c(Xn(Pn)),Nt.add(c),()=>{for(var v of h)for(const T of[t,document]){var d=nt.get(T),w=d.get(v);--w==0?(T.removeEventListener(v,St),d.delete(v),d.size===0&&nt.delete(T)):d.set(v,w)}Nt.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return At.set(a,f),a}let At=new WeakMap;function ci(e,t){const n=At.get(e);return n?(At.delete(e),n(t)):Promise.resolve()}class di{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)Xr(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(C(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Tn(l,f),f.append(de()),this.#t.set(s,{effect:l,fragment:f})}else C(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Fe(l,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(C(i.effect),this.#t.delete(r))};ensure(t,n){var r=$,i=Hr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=de();s.append(l),this.#t.set(t,{effect:re(()=>n(l)),fragment:s})}else this.#n.set(t,re(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,a]of this.#n)o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of this.#t)o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else y&&(this.anchor=g),this.#r(r)}}function Ct(e,t,n=!1){var r;y&&(r=g,ct());var i=new di(e),s=n?Te:0;function l(o,a){if(y){var f=wr(r);if(o!==parseInt(f.substring(1))){var u=Yt();J(u),i.anchor=u,ae(!1),i.ensure(o,a),ae(!0);return}}i.ensure(o,a)}yn(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},s)}function hi(e,t){Wr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=kt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function vi(e,t,n){var r=""+e;return r}function bi(e,t,n,r,i,s){var l=e.__className;if(y||l!==n||l===void 0){var o=vi(n);(!y||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}const _i=Symbol("is custom element"),pi=Symbol("is html"),mi=lr?"link":"LINK";function gi(e,t,n,r){var i=wi(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===mi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[or]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Hn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function rt(e,t,n){var r=b,i=_;let s=y;y&&ae(!1),R(null),F(null);try{t!=="style"&&(Rt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Hn(e).includes(t):n&&typeof n=="object")?e[t]=n:gi(e,t,n==null?n:String(n))}finally{R(r),F(i),s&&ae(!0)}}function wi(e){return e.__attributes??={[_i]:e.nodeName.includes("-"),[pi]:e.namespaceURI===Ft}}var Rt=new Map;function Hn(e){var t=e.getAttribute("is")||e.nodeName,n=Rt.get(t);if(n)return n;Rt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Zn(i);for(var l in r)r[l].set&&n.push(l);i=jt(i)}return n}function ze(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=l());var a;a=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var f=!1,u=pt(()=>(f=!1,a())),h=_;return(function(c,v){if(arguments.length>0){const d=v?m(u):c;return K(u,d),f=!0,i!==void 0&&(i=d),c}return he&&f||(h.f&q)!==0?u.v:m(u)})}function yi(e){return new $i(e)}class $i{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=Fr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return m(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===sr?!0:(m(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return K(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?ui:jn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ae(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Ye(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ci(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let qn;typeof HTMLElement=="function"&&(qn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const 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=kt("slot");r!=="default"&&(s.name=r),we(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ki(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]=it(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=yi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Yr(()=>{wn(()=>{this.$$r=!0;for(const r of Ve(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=it(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]=it(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 Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function it(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 ki(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ei(e,t,n,r,i,s){let l=class extends qn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ve(t).forEach(o=>{Ye(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=it(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=Ee(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),r.forEach(o=>{Ye(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const xi={version:"0.66.1"};var ye={},zn;function Ti(){if(zn)return ye;zn=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.LanguageTranslator=void 0,ye.getChildStyleToPass=e,ye.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||l===void 0)&&l.length))for(var a=function(c){var v=i?.filter(function(d){return d.name===c&&d.defaultValue!==r[c]});v&&(o+="".concat(c,":").concat(r[c],";"))},f=0,u=Object.keys(r);f<u.length;f++){var h=u[f];a(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}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 l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}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,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var a="",f=r.getDefaultLang();if(!l||f!==l){var u=s?.[f];u?.[i]&&(a=u[i])}return a},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return ye.LanguageTranslator=n,ye}var Ni=Ti(),Si=qe('<button class="btn btn-primary svelte-67k34i">Indietro</button>'),Ai=qe('<button class="btn btn-primary svelte-67k34i" disabled="">Indietro</button>'),Ci=qe('<button class="btn btn-primary svelte-67k34i">Salva</button>'),Ri=qe('<button class="btn btn-primary svelte-67k34i">Avanti</button>'),Oi=qe('<hb-form></hb-form> <div class="svelte-67k34i"><span class="svelte-67k34i"><span class="btn btn-secondary svelte-67k34i"> </span> <!> <!></span></div>',3);const Li={hash:"svelte-67k34i",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");
3
3
  /*!
4
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2021 The Bootstrap Authors
@@ -108,5 +108,5 @@ button.svelte-67k34i {margin:0;font-family:inherit;font-size:inherit;line-height
108
108
  @media (min-width: 1200px) {
109
109
  }
110
110
  @media print {
111
- }:host {font-family:"Roboto", sans-serif;}`};function An(e,t){Ft(t,!0),zr(e,ci);function n(b,O){t.$$host.dispatchEvent(new CustomEvent(b,{detail:O}))}si.addComponent({repoName:"@htmlbricks/hb-form",version:ri.version});let r=qe(t,"steps"),i=qe(t,"schemes"),s=qe(t,"submitstep",7,"no"),o=qe(t,"id",7,""),a=qe(t,"step",7,1),l=Q(xe([])),f=_r(()=>g(l)?.length?g(l).length:typeof r()=="string"?Number(r()):r()||r()===0?r():1);kr(()=>{i()&&typeof i()=="string"&&(V(l,JSON.parse(i()).map(b=>({schema:b,valid:!1})),!0),i([])),s()!=="yes"&&s("no")});function c(b){if(!g(l))return console.error("Schemes not found");const O=g(l)[Number(a())-1];console.info("schemeUpdate",JSON.stringify(O),b,Number(a()));for(const j of Object.keys(b)){const Ae=O.schema.find(rt=>rt.id===j);Ae&&(console.info("setting value",Ae,b[j]),Ae.value=b[j])}O.valid=b._valid,s()==="yes"&&s("no"),n("update",{step:Number(a()),scheme:O,valid:O.valid})}function h(){console.info("submitFunnel",Number(a()),g(f)),g(f)===Number(a())?n("submit",{schemes:g(l),steps:g(f),step:Number(a())}):u(Number(a())+1),s("no")}function u(b){console.info("setStep",b),a(b)}var d={get steps(){return r()},set steps(b){r(b),Ee()},get schemes(){return i()},set schemes(b){i(b),Ee()},get submitstep(){return s()},set submitstep(b="no"){s(b),Ee()},get id(){return o()},set id(b=""){o(b),Ee()},get step(){return a()},set step(b=1){a(b),Ee()}},p=Ir(),B=en(p);{var re=b=>{var O=ui(),j=en(O);Ze(()=>tt(j,"id",`scheme-${Number(a())}-${g(f)}`)),Ze(()=>tt(j,"schema",JSON.stringify(g(l)[Number(a())-1].schema))),Ze(()=>tt(j,"submitted",s())),tt(j,"hide_submit","yes"),Gr(j,1,"svelte-67k34i");var Ae=gt(j,2),rt=mt(Ae),xt=mt(rt),di=mt(xt);dt(xt);var Cn=gt(xt,2);{var hi=$=>{var U=oi();U.__click=()=>u(Number(a())-1),be($,U)},vi=$=>{var U=ai();U.__click=()=>u(Number(a())-1),be($,U)};kt(Cn,$=>{Number(a())>1?$(hi):$(vi,!1)})}var _i=gt(Cn,2);{var bi=$=>{var U=li();U.__click=()=>{s("yes"),h()},be($,U)},pi=$=>{var U=fi();U.__click=()=>{s("yes"),h()},be($,U)};kt(_i,$=>{g(f)===Number(a())?$(bi):$(pi,!1)})}dt(rt),dt(Ae),Ze($=>Ur(di,`${$??""}/${g(f)??""}`),[()=>Number(a())]),$n("submit",j,$=>h()),$n("update",j,$=>c($.detail)),be(b,O)};kt(B,b=>{i()&&typeof g(l)=="object"&&g(l).length&&g(l)[Number(a())-1]&&b(re)})}return be(e,p),jt(d)}Fr(["click"]),customElements.define("hb-funnel",ni(An,{steps:{},schemes:{},submitstep:{},id:{},step:{}},[],[],!0)),Nt.Component=An,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})})(this.funnel=this.funnel||{});
111
+ }:host {font-family:"Roboto", sans-serif;}`};function Vn(e,t){Wt(t,!0),hi(e,Li);function n(p,L){t.$$host.dispatchEvent(new CustomEvent(p,{detail:L}))}Ni.addComponent({repoName:"@htmlbricks/hb-form",version:xi.version});let r=ze(t,"steps"),i=ze(t,"schemes"),s=ze(t,"submitstep",7,"no"),l=ze(t,"id",7,""),o=ze(t,"step",7,1),a=te(Ce([])),f=Xe(()=>m(a)?.length?m(a).length:typeof r()=="string"?Number(r()):r()||r()===0?r():1);Vr(()=>{i()&&typeof i()=="string"&&(K(a,JSON.parse(i()).map(p=>({schema:p,valid:!1})),!0),i([])),s()!=="yes"&&s("no")});function u(p){if(!m(a))return console.error("Schemes not found");const L=m(a)[Number(o())-1];console.info("schemeUpdate",JSON.stringify(L),p,Number(o()));for(const H of Object.keys(p)){const Me=L.schema.find(st=>st.id===H);Me&&(console.info("setting value",Me,p[H]),Me.value=p[H])}L.valid=p._valid,s()==="yes"&&s("no"),n("update",{step:Number(o()),scheme:L,valid:L.valid})}function h(){console.info("submitFunnel",Number(o()),m(f)),m(f)===Number(o())?n("submit",{schemes:m(a),steps:m(f),step:Number(o())}):c(Number(o())+1),s("no")}function c(p){console.info("setStep",p),o(p)}var v={get steps(){return r()},set steps(p){r(p),Ae()},get schemes(){return i()},set schemes(p){i(p),Ae()},get submitstep(){return s()},set submitstep(p="no"){s(p),Ae()},get id(){return l()},set id(p=""){l(p),Ae()},get step(){return o()},set step(p=1){o(p),Ae()}},d=oi(),w=_n(d);{var T=p=>{var L=Oi(),H=_n(L);Qe(()=>rt(H,"id",`scheme-${Number(o())}-${m(f)}`)),Qe(()=>rt(H,"schema",JSON.stringify(m(a)[Number(o())-1].schema))),Qe(()=>rt(H,"submitted",s())),rt(H,"hide_submit","yes"),bi(H,1,"svelte-67k34i");var Me=$t(H,2),st=yt(Me),Ot=yt(st),Mi=yt(Ot);dt(Ot);var Yn=$t(Ot,2);{var Di=N=>{var Y=Si();tt("click",Y,()=>c(Number(o())-1)),we(N,Y)},Pi=Xe(()=>Number(o())>1),Ii=N=>{var Y=Ai();tt("click",Y,()=>c(Number(o())-1)),we(N,Y)};Ct(Yn,N=>{m(Pi)?N(Di):N(Ii,-1)})}var Fi=$t(Yn,2);{var ji=N=>{var Y=Ci();tt("click",Y,()=>{s("yes"),h()}),we(N,Y)},Bi=Xe(()=>m(f)===Number(o())),Hi=N=>{var Y=Ri();tt("click",Y,()=>{s("yes"),h()}),we(N,Y)};Ct(Fi,N=>{m(Bi)?N(ji):N(Hi,-1)})}dt(st),dt(Me),Qe(N=>fi(Mi,`${N??""}/${m(f)??""}`),[()=>Number(o())]),In("submit",H,N=>h()),In("update",H,N=>u(N.detail)),we(p,L)},D=Xe(()=>i()&&typeof m(a)=="object"&&m(a).length&&m(a)[Number(o())-1]);Ct(w,p=>{m(D)&&p(T)})}return we(e,d),Gt(v)}ni(["click"]),customElements.define("hb-funnel",Ei(Vn,{steps:{},schemes:{},submitstep:{},id:{},step:{}},[],[],{mode:"open"})),Lt.Component=Vn,Object.defineProperty(Lt,Symbol.toStringTag,{value:"Module"})})(this.funnel=this.funnel||{});
112
112
  //# sourceMappingURL=main.iife.js.map