@htmlbricks/hb-site-slideshow 0.66.3 → 0.66.4

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(hn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const kr=1,Sr=2,Ar=16,Nr=1,Cr=2,dn="[",Dt="[!",vn="[?",Pt="]",ze={},O=Symbol(),_n="http://www.w3.org/1999/xhtml",Rr=!1;var pn=Array.isArray,Or=Array.prototype.indexOf,He=Array.prototype.includes,ht=Array.from,dt=Object.keys,vt=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,Mr=Object.getOwnPropertyDescriptors,Dr=Object.prototype,Pr=Array.prototype,gn=Object.getPrototypeOf,mn=Object.isExtensible;const Lr=()=>{};function Ir(e){for(var t=0;t<e.length;t++)e[t]()}function wn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const C=2,qe=4,_t=8,bn=1<<24,ge=16,X=32,me=64,Lt=128,B=512,A=1024,M=2048,te=4096,F=8192,Y=16384,we=32768,yn=1<<25,Be=65536,$n=1<<17,Fr=1<<18,Ne=1<<19,jr=1<<20,ce=1<<25,Ce=65536,It=1<<21,Ft=1<<22,be=1<<23,jt=Symbol("$state"),zr=Symbol("legacy props"),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ke=3,Xe=8;function Hr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Vr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function qr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Br(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Yr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ur(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Wr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Gr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Jr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Kr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Xr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function pt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Zr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function de(e){$=e}let b;function L(e){if(e===null)throw pt(),ze;return b=e}function Ze(){return L(ie(b))}function ne(e){if($){if(ie(b)!==null)throw pt(),ze;b=e}}function Qr(e=1){if($){for(var t=e,n=b;t--;)n=ie(n);b=n}}function gt(e=!0){for(var t=0,n=b;;){if(n.nodeType===Xe){var r=n.data;if(r===Pt){if(t===0)return n;t-=1}else(r===dn||r===Dt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ie(n);e&&n.remove(),n=i}}function En(e){if(!e||e.nodeType!==Xe)throw pt(),ze;return e.data}function xn(e){return e===this.v}function ei(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Tn(e){return!ei(e,this.v)}let ti=!1,U=null;function Ye(e){U=e}function kn(e,t=!1,n){U={p:U,i:!1,c:null,e:null,s:e,x:null,r:w,l:null}}function Sn(e){var t=U,n=t.e;if(n!==null){t.e=null;for(var r of n)Qn(r)}return e!==void 0&&(t.x=e),t.i=!0,U=t.p,e??{}}function An(){return!0}let Re=[];function Nn(){var e=Re;Re=[],Ir(e)}function Oe(e){if(Re.length===0&&!Qe){var t=Re;queueMicrotask(()=>{t===Re&&Nn()})}Re.push(e)}function ni(){for(;Re.length>0;)Nn()}function Cn(e){var t=w;if(t===null)return m.f|=be,e;if((t.f&we)===0&&(t.f&qe)===0)throw e;ye(e,t)}function ye(e,t){for(;t!==null;){if((t.f&Lt)!==0){if((t.f&we)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const ri=-7169;function k(e,t){e.f=e.f&ri|t}function zt(e){(e.f&B)!==0||e.deps===null?k(e,A):k(e,te)}function Rn(e){if(e!==null)for(const t of e)(t.f&C)===0||(t.f&Ce)===0||(t.f^=Ce,Rn(t.deps))}function On(e,t,n){(e.f&M)!==0?t.add(e):(e.f&te)!==0&&n.add(e),Rn(e.deps),k(e,A)}const $e=new Set;let x=null,Z=null,Ht=null,Qe=!1,Vt=!1,Ue=null,mt=null;var Mn=0;let ii=1;class ve{id=ii++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){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,M),this.schedule(r);for(r of n.m)k(r,te),this.schedule(r)}}#d(){if(Mn++>1e3&&($e.delete(this),si()),!this.#h()){for(const l of this.#l)this.#o.delete(l),k(l,M),this.schedule(l);for(const l of this.#o)k(l,te),this.schedule(l)}const t=this.#r;this.#r=[],this.apply();var n=Ue=[],r=[],i=mt=[];for(const l of t)try{this.#u(l,n,r)}catch(f){throw Fn(l),f}if(x=null,i.length>0){var s=ve.ensure();for(const l of i)s.schedule(l)}if(Ue=null,mt=null,this.#h()||this.#v()){this.#_(r),this.#_(n);for(const[l,f]of this.#a)In(l,f)}else{this.#t.size===0&&$e.delete(this),this.#l.clear(),this.#o.clear();for(const l of this.#e)l(this);this.#e.clear(),Dn(r),Dn(n),this.#s?.resolve()}var o=x;if(this.#r.length>0){const l=o??=this;l.#r.push(...this.#r.filter(f=>!l.#r.includes(f)))}o!==null&&($e.add(o),o.#d()),$e.has(this)||this.#p()}#u(t,n,r){t.f^=A;for(var i=t.first;i!==null;){var s=i.f,o=(s&(X|me))!==0,l=o&&(s&A)!==0,f=l||(s&F)!==0||this.#a.has(i);if(!f&&i.fn!==null){o?i.f^=A:(s&qe)!==0?n.push(i):it(i)&&((s&ge)!==0&&this.#o.add(i),Je(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)On(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==O&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&be)===0&&(this.current.set(t,[t.v,r]),Z?.set(t,t.v))}activate(){x=this}deactivate(){x=null,Z=null}flush(){try{Vt=!0,x=this,this.#d()}finally{Mn=0,Ht=null,Ue=null,mt=null,Vt=!1,x=null,Z=null,Ee.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),$e.delete(this)}#p(){for(const a of $e){var t=a.id<this.id,n=[];for(const[u,[d,c]]of this.current){if(a.current.has(u)){var r=a.current.get(u)[0];if(t&&d!==r)a.current.set(u,[d,c]);else continue}n.push(u)}var i=[...a.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&a.discard();else if(n.length>0){a.activate();var s=new Set,o=new Map;for(var l of n)Pn(l,i,s,o);if(a.#r.length>0){a.apply();for(var f of a.#r)a.#u(f,[],[]);a.#r=[]}a.deactivate()}}for(const a of $e)a.#f.has(this)&&(a.#f.delete(this),a.#f.size===0&&!a.#h()&&(a.activate(),a.#d()))}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,Oe(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=wn()).promise}static ensure(){if(x===null){const t=x=new ve;Vt||($e.add(x),Qe||Oe(()=>{x===t&&t.flush()}))}return x}apply(){{Z=null;return}}schedule(t){if(Ht=t,t.b?.is_pending&&(t.f&(qe|_t|bn))!==0&&(t.f&we)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Ue!==null&&n===w&&(m===null||(m.f&C)===0))return;if((r&(me|X))!==0){if((r&A)===0)return;n.f^=A}}this.#r.push(n)}}function et(e){var t=Qe;Qe=!0;try{for(var n;;){if(ni(),x===null)return n;x.flush()}}finally{Qe=t}}function si(){try{Ur()}catch(e){ye(e,Ht)}}let _e=null;function Dn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Y|F))===0&&it(r)&&(_e=new Set,Je(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&nr(r),_e?.size>0)){Ee.clear();for(const i of _e){if((i.f&(Y|F))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)_e.has(o)&&(_e.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];(f.f&(Y|F))===0&&Je(f)}}_e.clear()}}_e=null}}function Pn(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&C)!==0?Pn(i,t,n,r):(s&(Ft|ge))!==0&&(s&M)===0&&Ln(i,t,r)&&(k(i,M),qt(i))}}function Ln(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(He.call(t,i))return!0;if((i.f&C)!==0&&Ln(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function qt(e){x.schedule(e)}function In(e,t){if(!((e.f&X)!==0&&(e.f&A)!==0)){(e.f&M)!==0?t.d.push(e):(e.f&te)!==0&&t.m.push(e),k(e,A);for(var n=e.first;n!==null;)In(n,t),n=n.next}}function Fn(e){k(e,A);for(var t=e.first;t!==null;)Fn(t),t=t.next}function li(e){let t=0,n=Me(0),r;return()=>{Jt()&&(v(n),er(()=>(t===0&&(r=Ni(()=>e(()=>tt(n)))),t+=1,()=>{Oe(()=>{t-=1,t===0&&(r?.(),r=void 0,tt(n))})})))}}var oi=Be|Ne;function ai(e,t,n,r){new fi(e,t,n,r)}class fi{parent;is_pending=!1;transform_error;#e;#n=$?b:null;#t;#i;#s;#r=null;#l=null;#o=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=li(()=>(this.#u=Me(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var o=w;o.b=this,o.f|=Lt,r(s)},this.parent=w.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=Kt(()=>{if($){const s=this.#n;Ze();const o=s.data===Dt;if(s.data.startsWith(vn)){const f=JSON.parse(s.data.slice(vn.length));this.#y(f)}else o?this.#$():this.#p()}else this.#w()},oi),$&&(this.#e=b)}#p(){try{this.#r=W(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#o=W(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=W(()=>t(this.#e)),Oe(()=>{var n=this.#a=document.createDocumentFragment(),r=j();n.append(r),this.#r=this.#m(()=>W(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#a=null,De(this.#l,()=>{this.#l=null}),this.#g(x))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=W(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Qt(this.#r,t);const n=this.#t.pending;this.#l=W(()=>n(this.#e))}else this.#g(x)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){On(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=w,r=m,i=U;oe(this.#s),G(this.#s),Ye(this.#s.ctx);try{return ve.ensure(),t()}catch(s){return Cn(s),null}finally{oe(n),G(r),Ye(i)}}#b(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t,n);return}this.#f+=t,this.#f===0&&(this.#g(n),this.#l&&De(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#b(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,Oe(()=>{this.#h=!1,this.#u&&We(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),v(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(P(this.#r),this.#r=null),this.#l&&(P(this.#l),this.#l=null),this.#o&&(P(this.#o),this.#o=null),$&&(L(this.#n),Qr(),L(gt()));var i=!1,s=!1;const o=()=>{if(i){Zr();return}i=!0,s&&Xr(),this.#o!==null&&De(this.#o,()=>{this.#o=null}),this.#m(()=>{this.#w()})},l=f=>{try{s=!0,n?.(f,o),s=!1}catch(a){ye(a,this.#s&&this.#s.parent)}r&&(this.#o=this.#m(()=>{try{return W(()=>{var a=w;a.b=this,a.f|=Lt,r(this.#e,()=>f,()=>o)})}catch(a){return ye(a,this.#s.parent),null}}))};Oe(()=>{var f;try{f=this.transform_error(t)}catch(a){ye(a,this.#s&&this.#s.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(l,a=>ye(a,this.#s&&this.#s.parent)):l(f)})}}function ui(e,t,n,r){const i=bt;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=w,l=ci(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function a(c){l();try{r(c)}catch(_){(o.f&Y)===0&&ye(_,o)}wt()}if(n.length===0){f.then(()=>a(t.map(i)));return}var u=jn();function d(){Promise.all(n.map(c=>hi(c))).then(c=>a([...t.map(i),...c])).catch(c=>ye(c,o)).finally(()=>u())}f?f.then(()=>{l(),d(),wt()}):d()}function ci(){var e=w,t=m,n=U,r=x;return function(s=!0){oe(e),G(t),Ye(n),s&&(e.f&Y)===0&&(r?.activate(),r?.apply())}}function wt(e=!0){oe(null),G(null),Ye(null),e&&x?.deactivate()}function jn(){var e=w,t=e.b,n=x,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 bt(e){var t=C|M,n=m!==null&&(m.f&C)!==0?m:null;return w!==null&&(w.f|=Ne),{ctx:U,deps:null,effects:null,equals:xn,f:t,fn:e,reactions:null,rv:0,v:O,wv:0,parent:n??w,ac:null}}function hi(e,t,n){let r=w;r===null&&Hr();var i=void 0,s=Me(O),o=!m,l=new Map;return xi(()=>{var f=w,a=wn();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally(wt)}catch(_){a.reject(_),wt()}var u=x;if(o){if((f.f&we)!==0)var d=jn();if(r.b.is_rendered())l.get(u)?.reject(he),l.delete(u);else{for(const _ of l.values())_.reject(he);l.clear()}l.set(u,a)}const c=(_,h=void 0)=>{if(d){var g=h===he;d(g)}if(!(h===he||(f.f&Y)!==0)){if(u.activate(),h)s.f|=be,We(s,h);else{(s.f&be)!==0&&(s.f^=be),We(s,_);for(const[E,y]of l){if(l.delete(E),E===u)break;y.reject(he)}}u.deactivate()}};a.promise.then(c,_=>c(null,_||"unknown"))}),Xn(()=>{for(const f of l.values())f.reject(he)}),new Promise(f=>{function a(u){function d(){u===i?f(s):a(i)}u.then(d,d)}a(i)})}function yt(e){const t=bt(e);return lr(t),t}function di(e){const t=bt(e);return t.equals=Tn,t}function vi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)P(t[n])}}function _i(e){for(var t=e.parent;t!==null;){if((t.f&C)===0)return(t.f&Y)===0?t:null;t=t.parent}return null}function Bt(e){var t,n=w;oe(_i(e));try{e.f&=~Ce,vi(e),t=cr(e)}finally{oe(n)}return t}function zn(e){var t=e.v,n=Bt(e);if(!e.equals(n)&&(e.wv=fr(),(!x?.is_fork||e.deps===null)&&(e.v=n,x?.capture(e,t,!0),e.deps===null))){k(e,A);return}xe||(Z!==null?(Jt()||x?.is_fork)&&Z.set(e,n):zt(e))}function pi(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=Lr,t.ac=null,st(t,0),Xt(t))}function Hn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Je(t)}let Yt=new Set;const Ee=new Map;let Vn=!1;function Me(e,t){var n={f:0,v:e,reactions:null,equals:xn,rv:0,wv:0};return n}function re(e,t){const n=Me(e);return lr(n),n}function qn(e,t=!1,n=!0){const r=Me(e);return t||(r.equals=Tn),r}function S(e,t,n=!1){m!==null&&(!Q||(m.f&$n)!==0)&&An()&&(m.f&(C|ge|Ft|$n))!==0&&(J===null||!He.call(J,e))&&Kr();let r=n?nt(t):t;return We(e,r,mt)}function We(e,t,n=null){if(!e.equals(t)){var r=e.v;xe?Ee.set(e,t):Ee.set(e,r),e.v=t;var i=ve.ensure();if(i.capture(e,r),(e.f&C)!==0){const s=e;(e.f&M)!==0&&Bt(s),Z===null&&zt(s)}e.wv=fr(),Bn(e,M,n),w!==null&&(w.f&A)!==0&&(w.f&(X|me))===0&&(K===null?Si([e]):K.push(e)),!i.is_fork&&Yt.size>0&&!Vn&&gi()}return t}function gi(){Vn=!1;for(const e of Yt)(e.f&A)!==0&&k(e,te),it(e)&&Je(e);Yt.clear()}function mi(e,t=1){var n=v(e),r=t===1?n++:n--;return S(e,n),r}function tt(e){S(e,e.v+1)}function Bn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,f=(l&M)===0;if(f&&k(o,t),(l&C)!==0){var a=o;Z?.delete(a),(l&Ce)===0&&(l&B&&(o.f|=Ce),Bn(a,te,n))}else if(f){var u=o;(l&ge)!==0&&_e!==null&&_e.add(u),n!==null?n.push(u):qt(u)}}}function nt(e){if(typeof e!="object"||e===null||jt in e)return e;const t=gn(e);if(t!==Dr&&t!==Pr)return e;var n=new Map,r=pn(e),i=re(0),s=Le,o=l=>{if(Le===s)return l();var f=m,a=Le;G(null),ar(s);var u=l();return G(f),ar(a),u};return r&&n.set("length",re(e.length)),new Proxy(e,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Gr();var u=n.get(f);return u===void 0?o(()=>{var d=re(a.value);return n.set(f,d),d}):S(u,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const u=o(()=>re(O));n.set(f,u),tt(i)}}else S(a,O),tt(i);return!0},get(l,f,a){if(f===jt)return e;var u=n.get(f),d=f in l;if(u===void 0&&(!d||Ve(l,f)?.writable)&&(u=o(()=>{var _=nt(d?l[f]:O),h=re(_);return h}),n.set(f,u)),u!==void 0){var c=v(u);return c===O?void 0:c}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var u=n.get(f);u&&(a.value=v(u))}else if(a===void 0){var d=n.get(f),c=d?.v;if(d!==void 0&&c!==O)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,f){if(f===jt)return!0;var a=n.get(f),u=a!==void 0&&a.v!==O||Reflect.has(l,f);if(a!==void 0||w!==null&&(!u||Ve(l,f)?.writable)){a===void 0&&(a=o(()=>{var c=u?nt(l[f]):O,_=re(c);return _}),n.set(f,a));var d=v(a);if(d===O)return!1}return u},set(l,f,a,u){var d=n.get(f),c=f in l;if(r&&f==="length")for(var _=a;_<d.v;_+=1){var h=n.get(_+"");h!==void 0?S(h,O):_ in l&&(h=o(()=>re(O)),n.set(_+"",h))}if(d===void 0)(!c||Ve(l,f)?.writable)&&(d=o(()=>re(void 0)),S(d,nt(a)),n.set(f,d));else{c=d.v!==O;var g=o(()=>nt(a));S(d,g)}var E=Reflect.getOwnPropertyDescriptor(l,f);if(E?.set&&E.set.call(u,a),!c){if(r&&typeof f=="string"){var y=n.get("length"),T=Number(f);Number.isInteger(T)&&T>=y.v&&S(y,T+1)}tt(i)}return!0},ownKeys(l){v(i);var f=Reflect.ownKeys(l).filter(d=>{var c=n.get(d);return c===void 0||c.v!==O});for(var[a,u]of n)u.v!==O&&!(a in l)&&f.push(a);return f},setPrototypeOf(){Jr()}})}var Yn,Un,Wn,Gn;function Ut(){if(Yn===void 0){Yn=window,Un=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wn=Ve(t,"firstChild").get,Gn=Ve(t,"nextSibling").get,mn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mn(n)&&(n.__t=void 0)}}function j(e=""){return document.createTextNode(e)}function Ge(e){return Wn.call(e)}function ie(e){return Gn.call(e)}function se(e,t){if(!$)return Ge(e);var n=Ge(b);if(n===null)n=b.appendChild(j());else if(t&&n.nodeType!==Ke){var r=j();return n?.before(r),L(r),r}return t&&Et(n),L(n),n}function $t(e,t=!1){if(!$){var n=Ge(e);return n instanceof Comment&&n.data===""?ie(n):n}if(t){if(b?.nodeType!==Ke){var r=j();return b?.before(r),L(r),r}Et(b)}return b}function rt(e,t=1,n=!1){let r=$?b:e;for(var i;t--;)i=r,r=ie(r);if(!$)return r;if(n){if(r?.nodeType!==Ke){var s=j();return r===null?i?.after(s):r.before(s),L(s),s}Et(r)}return L(r),r}function Jn(e){e.textContent=""}function Kn(){return!1}function Wt(e,t,n){return document.createElementNS(_n,e,void 0)}function Et(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ke;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Gt(e){var t=m,n=w;G(null),oe(null);try{return e()}finally{G(t),oe(n)}}function wi(e){w===null&&(m===null&&Yr(),Br()),xe&&qr()}function bi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function le(e,t){var n=w;n!==null&&(n.f&F)!==0&&(e|=F);var r={ctx:U,deps:null,nodes:null,f:e|M|B,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&qe)!==0)Ue!==null?Ue.push(r):ve.ensure().schedule(r);else if(t!==null){try{Je(r)}catch(o){throw P(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Ne)===0&&(i=i.first,(e&ge)!==0&&(e&Be)!==0&&i!==null&&(i.f|=Be))}if(i!==null&&(i.parent=n,n!==null&&bi(i,n),m!==null&&(m.f&C)!==0&&(e&me)===0)){var s=m;(s.effects??=[]).push(i)}return r}function Jt(){return m!==null&&!Q}function Xn(e){const t=le(_t,null);return k(t,A),t.teardown=e,t}function Zn(e){wi();var t=w.f,n=!m&&(t&X)!==0&&(t&we)===0;if(n){var r=U;(r.e??=[]).push(e)}else return Qn(e)}function Qn(e){return le(qe|jr,e)}function yi(e){ve.ensure();const t=le(me|Ne,e);return()=>{P(t)}}function $i(e){ve.ensure();const t=le(me|Ne,e);return(n={})=>new Promise(r=>{n.outro?De(t,()=>{P(t),r(void 0)}):(P(t),r(void 0))})}function Ei(e){return le(qe,e)}function xi(e){return le(Ft|Ne,e)}function er(e,t=0){return le(_t|t,e)}function xt(e,t=[],n=[],r=[]){ui(r,t,n,i=>{le(_t,()=>e(...i.map(v)))})}function Kt(e,t=0){var n=le(ge|t,e);return n}function W(e){return le(X|Ne,e)}function tr(e){var t=e.teardown;if(t!==null){const n=xe,r=m;sr(!0),G(null);try{t.call(null)}finally{sr(n),G(r)}}}function Xt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Gt(()=>{i.abort(he)});var r=n.next;(n.f&me)!==0?n.parent=null:P(n,t),n=r}}function Ti(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&X)===0&&P(t),t=n}}function P(e,t=!0){var n=!1;(t||(e.f&Fr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ki(e.nodes.start,e.nodes.end),n=!0),k(e,yn),Xt(e,t&&!n),st(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();tr(e),e.f^=yn,e.f|=Y;var i=e.parent;i!==null&&i.first!==null&&nr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function ki(e,t){for(;e!==null;){var n=e===t?null:ie(e);e.remove(),e=n}}function nr(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=[];rr(e,r,!0);var i=()=>{n&&P(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function rr(e,t,n){if((e.f&F)===0){e.f^=F;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&Be)!==0||(i.f&X)!==0&&(e.f&ge)!==0;rr(i,t,o?n:!1),i=s}}}function Zt(e){ir(e,!0)}function ir(e,t){if((e.f&F)!==0){e.f^=F,(e.f&A)===0&&(k(e,M),ve.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Be)!==0||(n.f&X)!==0;ir(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Qt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ie(n);t.append(n),n=i}}let Tt=!1,xe=!1;function sr(e){xe=e}let m=null,Q=!1;function G(e){m=e}let w=null;function oe(e){w=e}let J=null;function lr(e){m!==null&&(J===null?J=[e]:J.push(e))}let I=null,z=0,K=null;function Si(e){K=e}let or=1,Pe=0,Le=Pe;function ar(e){Le=e}function fr(){return++or}function it(e){var t=e.f;if((t&M)!==0)return!0;if(t&C&&(e.f&=~Ce),(t&te)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(it(s)&&zn(s),s.wv>e.wv)return!0}(t&B)!==0&&Z===null&&k(e,A)}return!1}function ur(e,t,n=!0){var r=e.reactions;if(r!==null&&!(J!==null&&He.call(J,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&C)!==0?ur(s,t,!1):t===s&&(n?k(s,M):(s.f&A)!==0&&k(s,te),qt(s))}}function cr(e){var t=I,n=z,r=K,i=m,s=J,o=U,l=Q,f=Le,a=e.f;I=null,z=0,K=null,m=(a&(X|me))===0?e:null,J=null,Ye(e.ctx),Q=!1,Le=++Pe,e.ac!==null&&(Gt(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=It;var u=e.fn,d=u();e.f|=we;var c=e.deps,_=x?.is_fork;if(I!==null){var h;if(_||st(e,z),c!==null&&z>0)for(c.length=z+I.length,h=0;h<I.length;h++)c[z+h]=I[h];else e.deps=c=I;if(Jt()&&(e.f&B)!==0)for(h=z;h<c.length;h++)(c[h].reactions??=[]).push(e)}else!_&&c!==null&&z<c.length&&(st(e,z),c.length=z);if(An()&&K!==null&&!Q&&c!==null&&(e.f&(C|te|M))===0)for(h=0;h<K.length;h++)ur(K[h],e);if(i!==null&&i!==e){if(Pe++,i.deps!==null)for(let g=0;g<n;g+=1)i.deps[g].rv=Pe;if(t!==null)for(const g of t)g.rv=Pe;K!==null&&(r===null?r=K:r.push(...K))}return(e.f&be)!==0&&(e.f^=be),d}catch(g){return Cn(g)}finally{e.f^=It,I=t,z=n,K=r,m=i,J=s,Ye(o),Q=l,Le=f}}function Ai(e,t){let n=t.reactions;if(n!==null){var r=Or.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&C)!==0&&(I===null||!He.call(I,t))){var s=t;(s.f&B)!==0&&(s.f^=B,s.f&=~Ce),zt(s),pi(s),st(s,0)}}function st(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ai(e,n[r])}function Je(e){var t=e.f;if((t&Y)===0){k(e,A);var n=w,r=Tt;w=e,Tt=!0;try{(t&(ge|bn))!==0?Ti(e):Xt(e),tr(e);var i=cr(e);e.teardown=typeof i=="function"?i:null,e.wv=or;var s;Rr&&ti&&(e.f&M)!==0&&e.deps}finally{Tt=r,w=n}}}function v(e){var t=e.f,n=(t&C)!==0;if(m!==null&&!Q){var r=w!==null&&(w.f&Y)!==0;if(!r&&(J===null||!He.call(J,e))){var i=m.deps;if((m.f&It)!==0)e.rv<Pe&&(e.rv=Pe,I===null&&i!==null&&i[z]===e?z++:I===null?I=[e]:I.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:He.call(s,m)||s.push(m)}}}if(xe&&Ee.has(e))return Ee.get(e);if(n){var o=e;if(xe){var l=o.v;return((o.f&A)===0&&o.reactions!==null||dr(o))&&(l=Bt(o)),Ee.set(o,l),l}var f=(o.f&B)===0&&!Q&&m!==null&&(Tt||(m.f&B)!==0),a=(o.f&we)===0;it(o)&&(f&&(o.f|=B),zn(o)),f&&!a&&(Hn(o),hr(o))}if(Z?.has(e))return Z.get(e);if((e.f&be)!==0)throw e.v;return e.v}function hr(e){if(e.f|=B,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&C)!==0&&(t.f&B)===0&&(Hn(t),hr(t))}function dr(e){if(e.v===O)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ee.has(t)||(t.f&C)!==0&&dr(t))return!0;return!1}function Ni(e){var t=Q;try{return Q=!0,e()}finally{Q=t}}const lt=Symbol("events"),vr=new Set,en=new Set;function Ci(e,t,n,r={}){function i(s){if(r.capture||nn.call(t,s),!s.cancelBubble)return Gt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Oe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function kt(e,t,n,r,i){var s={capture:r,passive:i},o=Ci(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xn(()=>{t.removeEventListener(e,o,s)})}function tn(e,t,n){(t[lt]??={})[e]=n}function Ri(e){for(var t=0;t<e.length;t++)vr.add(e[t]);for(var n of en)n(e)}let _r=null;function nn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;_r=e;var o=0,l=_r===e&&e[lt];if(l){var f=i.indexOf(l);if(f!==-1&&(t===document||t===window)){e[lt]=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(o=f)}if(s=i[o]||e.target,s!==t){vt(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=m,d=w;G(null),oe(null);try{for(var c,_=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var g=s[lt]?.[r];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(E){c?_.push(E):c=E}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let E of _)queueMicrotask(()=>{throw E});throw c}}finally{e[lt]=t,delete e.currentTarget,G(u),oe(d)}}}const Oi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Mi(e){return Oi?.createHTML(e)??e}function Di(e){var t=Wt("template");return t.innerHTML=Mi(e.replaceAll("<!>","<!---->")),t.content}function Te(e,t){var n=w;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ot(e,t){var n=(t&Nr)!==0,r=(t&Cr)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return Te(b,null),b;i===void 0&&(i=Di(s?e:"<!>"+e),n||(i=Ge(i)));var o=r||Un?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Ge(o),f=o.lastChild;Te(l,f)}else Te(o,o);return o}}function St(e=""){if(!$){var t=j(e+"");return Te(t,t),t}var n=b;return n.nodeType!==Ke?(n.before(n=j()),L(n)):Et(n),Te(n,n),n}function rn(){if($)return Te(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),n=j();return e.append(t,n),Te(t,n),e}function H(e,t){if($){var n=w;((n.f&we)===0||n.nodes.end===null)&&(n.nodes.end=b),Ze();return}e!==null&&e.before(t)}const Pi=["touchstart","touchmove"];function Li(e){return Pi.includes(e)}function Ii(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function pr(e,t){return gr(e,t)}function Fi(e,t){Ut(),t.intro=t.intro??!1;const n=t.target,r=$,i=b;try{for(var s=Ge(n);s&&(s.nodeType!==Xe||s.data!==dn);)s=ie(s);if(!s)throw ze;de(!0),L(s);const o=gr(e,{...t,anchor:s});return de(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==ze&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Wr(),Ut(),Jn(n),de(!1),pr(e,t)}finally{de(r),L(i)}}const At=new Map;function gr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){Ut();var f=void 0,a=$i(()=>{var u=n??t.appendChild(j());ai(u,{pending:()=>{}},_=>{kn({});var h=U;if(s&&(h.c=s),i&&(r.$$events=i),$&&Te(_,null),f=e(_,r)||{},$&&(w.nodes.end=b,b===null||b.nodeType!==Xe||b.data!==Pt))throw pt(),ze;Sn()},l);var d=new Set,c=_=>{for(var h=0;h<_.length;h++){var g=_[h];if(!d.has(g)){d.add(g);var E=Li(g);for(const ae of[t,document]){var y=At.get(ae);y===void 0&&(y=new Map,At.set(ae,y));var T=y.get(g);T===void 0?(ae.addEventListener(g,nn,{passive:E}),y.set(g,1)):y.set(g,T+1)}}}};return c(ht(vr)),en.add(c),()=>{for(var _ of d)for(const E of[t,document]){var h=At.get(E),g=h.get(_);--g==0?(E.removeEventListener(_,nn),h.delete(_),h.size===0&&At.delete(E)):h.set(_,g)}en.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return sn.set(f,a),f}let sn=new WeakMap;function ji(e,t){const n=sn.get(e);return n?(sn.delete(e),n(t)):Promise.resolve()}class zi{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)Zt(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,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(P(l.effect),this.#t.delete(o))}for(const[s,o]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var a=document.createDocumentFragment();Qt(o,a),a.append(j()),this.#t.set(s,{effect:o,fragment:a})}else P(o);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),De(o,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(P(i.effect),this.#t.delete(r))};ensure(t,n){var r=x,i=Kn();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=j();s.append(o),this.#t.set(t,{effect:W(()=>n(o)),fragment:s})}else this.#n.set(t,W(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,f]of this.#n)l===t?r.unskip_effect(f):r.skip_effect(f);for(const[l,f]of this.#t)l===t?r.unskip_effect(f.effect):r.skip_effect(f.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else $&&(this.anchor=b),this.#r(r)}}function ln(e,t,n=!1){var r;$&&(r=b,Ze());var i=new zi(e),s=n?Be:0;function o(l,f){if($){var a=En(r);if(l!==parseInt(a.substring(1))){var u=gt();L(u),i.anchor=u,de(!1),i.ensure(l,f),de(!0);return}}i.ensure(l,f)}Kt(()=>{var l=!1;t((f,a=0)=>{l=!0,o(a,f)}),l||o(-1,null)},s)}function Hi(e,t,n){for(var r=[],i=t.length,s,o=t.length,l=0;l<i;l++){let d=t[l];De(d,()=>{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var c=e.outrogroups;on(e,ht(s.done)),c.delete(s),c.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var f=r.length===0&&n!==null;if(f){var a=n,u=a.parentNode;Jn(u),u.append(a),e.items.clear()}on(e,t,!f)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function on(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const o of e.pending.values())for(const l of o)r.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ce;const o=document.createDocumentFragment();Qt(s,o)}else P(t[i],n)}}var mr;function wr(e,t,n,r,i,s=null){var o=e,l=new Map;$&&Ze();var f=null,a=di(()=>{var y=n();return pn(y)?y:y==null?[]:ht(y)}),u,d=new Map,c=!0;function _(y){(E.effect.f&Y)===0&&(E.pending.delete(y),E.fallback=f,Vi(E,u,o,t,r),f!==null&&(u.length===0?(f.f&ce)===0?Zt(f):(f.f^=ce,ft(f,null,o)):De(f,()=>{f=null})))}function h(y){E.pending.delete(y)}var g=Kt(()=>{u=v(a);var y=u.length;let T=!1;if($){var ae=En(o)===Dt;ae!==(y===0)&&(o=gt(),L(o),de(!1),T=!0)}for(var fe=new Set,V=x,p=Kn(),D=0;D<y;D+=1){$&&b.nodeType===Xe&&b.data===Pt&&(o=b,T=!0,de(!1));var N=u[D],Se=r(N,D),ee=c?null:l.get(Se);ee?(ee.v&&We(ee.v,N),ee.i&&We(ee.i,D),p&&V.unskip_effect(ee.e)):(ee=qi(l,c?o:mr??=j(),N,Se,D,i,t,n),c||(ee.e.f|=ce),l.set(Se,ee)),fe.add(Se)}if(y===0&&s&&!f&&(c?f=W(()=>s(o)):(f=W(()=>s(mr??=j())),f.f|=ce)),y>fe.size&&Vr(),$&&y>0&&L(gt()),!c)if(d.set(V,fe),p){for(const[Ae,ue]of l)fe.has(Ae)||V.skip_effect(ue.e);V.oncommit(_),V.ondiscard(h)}else _(V);T&&de(!0),v(a)}),E={effect:g,items:l,pending:d,outrogroups:null,fallback:f};c=!1,$&&(o=b)}function at(e){for(;e!==null&&(e.f&X)===0;)e=e.next;return e}function Vi(e,t,n,r,i){var s=t.length,o=e.items,l=at(e.effect.first),f,a=null,u=[],d=[],c,_,h,g;for(g=0;g<s;g+=1){if(c=t[g],_=i(c,g),h=o.get(_).e,e.outrogroups!==null)for(const N of e.outrogroups)N.pending.delete(h),N.done.delete(h);if((h.f&F)!==0&&Zt(h),(h.f&ce)!==0)if(h.f^=ce,h===l)ft(h,null,n);else{var E=a?a.next:l;h===e.effect.last&&(e.effect.last=h.prev),h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),ke(e,a,h),ke(e,h,E),ft(h,E,n),a=h,u=[],d=[],l=at(a.next);continue}if(h!==l){if(f!==void 0&&f.has(h)){if(u.length<d.length){var y=d[0],T;a=y.prev;var ae=u[0],fe=u[u.length-1];for(T=0;T<u.length;T+=1)ft(u[T],y,n);for(T=0;T<d.length;T+=1)f.delete(d[T]);ke(e,ae.prev,fe.next),ke(e,a,ae),ke(e,fe,y),l=y,a=fe,g-=1,u=[],d=[]}else f.delete(h),ft(h,l,n),ke(e,h.prev,h.next),ke(e,h,a===null?e.effect.first:a.next),ke(e,a,h),a=h;continue}for(u=[],d=[];l!==null&&l!==h;)(f??=new Set).add(l),d.push(l),l=at(l.next);if(l===null)continue}(h.f&ce)===0&&u.push(h),a=h,l=at(h.next)}if(e.outrogroups!==null){for(const N of e.outrogroups)N.pending.size===0&&(on(e,ht(N.done)),e.outrogroups?.delete(N));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||f!==void 0){var V=[];if(f!==void 0)for(h of f)(h.f&F)===0&&V.push(h);for(;l!==null;)(l.f&F)===0&&l!==e.fallback&&V.push(l),l=at(l.next);var p=V.length;if(p>0){var D=null;Hi(e,V,D)}}}function qi(e,t,n,r,i,s,o,l){var f=(o&kr)!==0?(o&Ar)===0?qn(n,!1,!1):Me(n):null,a=(o&Sr)!==0?Me(i):null;return{v:f,i:a,e:W(()=>(s(t,f??n,a??i,l),()=>{e.delete(r)}))}}function ft(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ce)===0?t.nodes.start:n;r!==null;){var o=ie(r);if(s.before(r),r===i)return;r=o}}function ke(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ut(e,t,n,r,i){$&&Ze();var s=t.$$slots?.[n],o=!1;s===!0&&(s=t[n==="default"?"children":n],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>r:r)}function Bi(e){const t={};e.children&&(t.default=!0);for(const n in e.$$slots)t[n]=!0;return t}function Yi(e,t){Ei(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Wt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Ui(e,t){return e==null?null:String(e)}function an(e,t,n,r){var i=e.__style;if($||i!==t){var s=Ui(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Wi=Symbol("is custom element"),Gi=Symbol("is html");function Ji(e,t,n,r){var i=Ki(e);if($){i[t]=e.getAttribute(t);return}i[t]!==(i[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&Xi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ki(e){return e.__attributes??={[Wi]:e.nodeName.includes("-"),[Gi]:e.namespaceURI===_n}}var br=new Map;function Xi(e){var t=e.getAttribute("is")||e.nodeName,n=br.get(t);if(n)return n;br.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Mr(i);for(var o in r)r[o].set&&n.push(o);i=gn(i)}return n}function Nt(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=o());var f;f=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var a=!1,u=bt(()=>(a=!1,f())),d=w;return(function(c,_){if(arguments.length>0){const h=_?v(u):c;return S(u,h),a=!0,i!==void 0&&(i=h),c}return xe&&a||(d.f&Y)!==0?u.v:v(u)})}function Zi(e){return new Qi(e)}class Qi{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=qn(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return v(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===zr?!0:(v(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return S(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?Fi:pr)(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)&&et(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||vt(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ji(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 yr;typeof HTMLElement=="function"&&(yr=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=Wt("slot");r!=="default"&&(s.name=r),H(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=es(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]=Ct(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=Zi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=yi(()=>{er(()=>{this.$$r=!0;for(const r of dt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ct(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]=Ct(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 dt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ct(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 es(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ts(e,t,n,r,i,s){let o=class extends yr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return dt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return dt(t).forEach(l=>{vt(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Ct(l,f,t),this.$$d[l]=f;var a=this.$$c;if(a){var u=Ve(a,l)?.get;u?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{vt(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}var Ie={},$r;function ns(){if($r)return Ie;$r=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.LanguageTranslator=void 0,Ie.getChildStyleToPass=e,Ie.addComponent=t;function e(r,i){var s,o,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||o===void 0)&&o.length))for(var f=function(c){var _=i?.filter(function(h){return h.name===c&&h.defaultValue!==r[c]});_&&(l+="".concat(c,":").concat(r[c],";"))},a=0,u=Object.keys(r);a<u.length;a++){var d=u[a];f(d)}}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 o=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(o),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(o)}document.head.appendChild(l)}catch(a){console.warn(a)}}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,l="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)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,o){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((l=s[o])===null||l===void 0)&&l[i]))return s[o][i];var f="",a=r.getDefaultLang();if(!o||a!==o){var u=s?.[a];u?.[i]&&(f=u[i])}return f},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 l=new Intl.DateTimeFormat(o||r.getDefaultLang(),s);return l.format(i)},r})();return Ie.LanguageTranslator=n,Ie}ns();var rs=ot('<div class="mySlides fade svelte-hth59o"><img alt="" class="svelte-hth59o"/></div>'),is=ot('<span part="dot" class="dot svelte-hth59o"></span>'),ss=ot('<div part="caption_container" id="caption" class="svelte-hth59o"><div part="caption_content" class="text svelte-hth59o"> </div></div>'),ls=ot('<div id="cover_on_images" part="cover_on_images" class="svelte-hth59o"><!></div> <div class="slideshow-container svelte-hth59o"><div id="content" class="svelte-hth59o"><!> <span class="prev svelte-hth59o"><!></span> <span class="next svelte-hth59o"><!></span></div></div> <div id="dots" part="dots" class="svelte-hth59o"><!></div> <!>',1),os=ot('<div id="overlay" class="svelte-hth59o"><!></div>');const as={hash:"svelte-hth59o",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");.svelte-hth59o {box-sizing:border-box;}:host {font-family:"Roboto", sans-serif;position:absolute;height:100%;max-height:100%;width:100%;overflow:hidden;}#cover_on_images.svelte-hth59o {position:absolute;width:100%;height:100%;z-index:2;}#content.svelte-hth59o {width:100%;height:100%;}#overlay.svelte-hth59o {width:100%;height:100%;}
1
+ (function(cn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Er=1,Tr=2,Sr=16,kr=1,Ar=2,hn="[",Mt="[!",dn="[?",Dt="]",ze={},O=Symbol(),vn="http://www.w3.org/1999/xhtml",Nr=!1;var _n=Array.isArray,Rr=Array.prototype.indexOf,He=Array.prototype.includes,ct=Array.from,ht=Object.keys,dt=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Cr=Object.getOwnPropertyDescriptors,Or=Object.prototype,Mr=Array.prototype,pn=Object.getPrototypeOf,gn=Object.isExtensible;const Dr=()=>{};function Ir(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 R=2,Ve=4,vt=8,wn=1<<24,ge=16,X=32,me=64,It=128,B=512,A=1024,M=2048,te=4096,L=8192,Y=16384,we=32768,bn=1<<25,qe=65536,yn=1<<17,Fr=1<<18,Ne=1<<19,Pr=1<<20,ce=1<<25,Re=65536,Ft=1<<21,Pt=1<<22,be=1<<23,Lt=Symbol("$state"),Lr=Symbol("legacy props"),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ke=3,Je=8;function zr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Hr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function jr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Vr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function qr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Br(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Yr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ur(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Gr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Kr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function _t(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Jr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function de(e){$=e}let b;function F(e){if(e===null)throw _t(),ze;return b=e}function Xe(){return F(ie(b))}function ne(e){if($){if(ie(b)!==null)throw _t(),ze;b=e}}function Xr(e=1){if($){for(var t=e,n=b;t--;)n=ie(n);b=n}}function pt(e=!0){for(var t=0,n=b;;){if(n.nodeType===Je){var r=n.data;if(r===Dt){if(t===0)return n;t-=1}else(r===hn||r===Mt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ie(n);e&&n.remove(),n=i}}function $n(e){if(!e||e.nodeType!==Je)throw _t(),ze;return e.data}function xn(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 En(e){return!Zr(e,this.v)}let Qr=!1,U=null;function Be(e){U=e}function Tn(e,t=!1,n){U={p:U,i:!1,c:null,e:null,s:e,x:null,r:w,l:null}}function Sn(e){var t=U,n=t.e;if(n!==null){t.e=null;for(var r of n)Zn(r)}return e!==void 0&&(t.x=e),t.i=!0,U=t.p,e??{}}function kn(){return!0}let Ce=[];function An(){var e=Ce;Ce=[],Ir(e)}function Oe(e){if(Ce.length===0&&!Ze){var t=Ce;queueMicrotask(()=>{t===Ce&&An()})}Ce.push(e)}function ei(){for(;Ce.length>0;)An()}function Nn(e){var t=w;if(t===null)return m.f|=be,e;if((t.f&we)===0&&(t.f&Ve)===0)throw e;ye(e,t)}function ye(e,t){for(;t!==null;){if((t.f&It)!==0){if((t.f&we)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const ti=-7169;function S(e,t){e.f=e.f&ti|t}function zt(e){(e.f&B)!==0||e.deps===null?S(e,A):S(e,te)}function Rn(e){if(e!==null)for(const t of e)(t.f&R)===0||(t.f&Re)===0||(t.f^=Re,Rn(t.deps))}function Cn(e,t,n){(e.f&M)!==0?t.add(e):(e.f&te)!==0&&n.add(e),Rn(e.deps),S(e,A)}const $e=new Set;let E=null,Z=null,Ht=null,Ze=!1,jt=!1,Ye=null,gt=null;var On=0;let ni=1;class ve{id=ni++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#f=new Map;is_fork=!1;#c=!1;#a=new Set;#h(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#a)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#f.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#f.get(t);if(n){this.#f.delete(t);for(var r of n.d)S(r,M),this.schedule(r);for(r of n.m)S(r,te),this.schedule(r)}}#d(){if(On++>1e3&&($e.delete(this),ri()),!this.#h()){for(const l of this.#l)this.#o.delete(l),S(l,M),this.schedule(l);for(const l of this.#o)S(l,te),this.schedule(l)}const t=this.#r;this.#r=[],this.apply();var n=Ye=[],r=[],i=gt=[];for(const l of t)try{this.#u(l,n,r)}catch(a){throw Pn(l),a}if(E=null,i.length>0){var s=ve.ensure();for(const l of i)s.schedule(l)}if(Ye=null,gt=null,this.#h()||this.#v()){this.#_(r),this.#_(n);for(const[l,a]of this.#f)Fn(l,a)}else{this.#t.size===0&&$e.delete(this),this.#l.clear(),this.#o.clear();for(const l of this.#e)l(this);this.#e.clear(),Mn(r),Mn(n),this.#s?.resolve()}var o=E;if(this.#r.length>0){const l=o??=this;l.#r.push(...this.#r.filter(a=>!l.#r.includes(a)))}o!==null&&($e.add(o),o.#d()),$e.has(this)||this.#p()}#u(t,n,r){t.f^=A;for(var i=t.first;i!==null;){var s=i.f,o=(s&(X|me))!==0,l=o&&(s&A)!==0,a=l||(s&L)!==0||this.#f.has(i);if(!a&&i.fn!==null){o?i.f^=A:(s&Ve)!==0?n.push(i):rt(i)&&((s&ge)!==0&&this.#o.add(i),Ge(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}}}#_(t){for(var n=0;n<t.length;n+=1)Cn(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==O&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&be)===0&&(this.current.set(t,[t.v,r]),Z?.set(t,t.v))}activate(){E=this}deactivate(){E=null,Z=null}flush(){try{jt=!0,E=this,this.#d()}finally{On=0,Ht=null,Ye=null,gt=null,jt=!1,E=null,Z=null,xe.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),$e.delete(this)}#p(){for(const f of $e){var t=f.id<this.id,n=[];for(const[u,[v,h]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&v!==r)f.current.set(u,[v,h]);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,o=new Map;for(var l of n)Dn(l,i,s,o);if(f.#r.length>0){f.apply();for(var a of f.#r)f.#u(a,[],[]);f.#r=[]}f.deactivate()}}for(const f of $e)f.#a.has(this)&&(f.#a.delete(this),f.#a.size===0&&!f.#h()&&(f.activate(),f.#d()))}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,Oe(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=mn()).promise}static ensure(){if(E===null){const t=E=new ve;jt||($e.add(E),Ze||Oe(()=>{E===t&&t.flush()}))}return E}apply(){{Z=null;return}}schedule(t){if(Ht=t,t.b?.is_pending&&(t.f&(Ve|vt|wn))!==0&&(t.f&we)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Ye!==null&&n===w&&(m===null||(m.f&R)===0))return;if((r&(me|X))!==0){if((r&A)===0)return;n.f^=A}}this.#r.push(n)}}function Qe(e){var t=Ze;Ze=!0;try{for(var n;;){if(ei(),E===null)return n;E.flush()}}finally{Ze=t}}function ri(){try{Br()}catch(e){ye(e,Ht)}}let _e=null;function Mn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Y|L))===0&&rt(r)&&(_e=new Set,Ge(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&tr(r),_e?.size>0)){xe.clear();for(const i of _e){if((i.f&(Y|L))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)_e.has(o)&&(_e.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(Y|L))===0&&Ge(a)}}_e.clear()}}_e=null}}function Dn(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&R)!==0?Dn(i,t,n,r):(s&(Pt|ge))!==0&&(s&M)===0&&In(i,t,r)&&(S(i,M),Vt(i))}}function In(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(He.call(t,i))return!0;if((i.f&R)!==0&&In(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Vt(e){E.schedule(e)}function Fn(e,t){if(!((e.f&X)!==0&&(e.f&A)!==0)){(e.f&M)!==0?t.d.push(e):(e.f&te)!==0&&t.m.push(e),S(e,A);for(var n=e.first;n!==null;)Fn(n,t),n=n.next}}function Pn(e){S(e,A);for(var t=e.first;t!==null;)Pn(t),t=t.next}function ii(e){let t=0,n=Me(0),r;return()=>{Gt()&&(d(n),Qn(()=>(t===0&&(r=ki(()=>e(()=>et(n)))),t+=1,()=>{Oe(()=>{t-=1,t===0&&(r?.(),r=void 0,et(n))})})))}}var si=qe|Ne;function li(e,t,n,r){new oi(e,t,n,r)}class oi{parent;is_pending=!1;transform_error;#e;#n=$?b:null;#t;#i;#s;#r=null;#l=null;#o=null;#f=null;#c=0;#a=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=ii(()=>(this.#u=Me(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var o=w;o.b=this,o.f|=It,r(s)},this.parent=w.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=Kt(()=>{if($){const s=this.#n;Xe();const o=s.data===Mt;if(s.data.startsWith(dn)){const a=JSON.parse(s.data.slice(dn.length));this.#y(a)}else o?this.#$():this.#p()}else this.#w()},si),$&&(this.#e=b)}#p(){try{this.#r=W(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#o=W(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=W(()=>t(this.#e)),Oe(()=>{var n=this.#f=document.createDocumentFragment(),r=z();n.append(r),this.#r=this.#m(()=>W(()=>this.#i(r))),this.#a===0&&(this.#e.before(n),this.#f=null,De(this.#l,()=>{this.#l=null}),this.#g(E))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#a=0,this.#c=0,this.#r=W(()=>{this.#i(this.#e)}),this.#a>0){var t=this.#f=document.createDocumentFragment();Zt(this.#r,t);const n=this.#t.pending;this.#l=W(()=>n(this.#e))}else this.#g(E)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){Cn(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=w,r=m,i=U;oe(this.#s),G(this.#s),Be(this.#s.ctx);try{return ve.ensure(),t()}catch(s){return Nn(s),null}finally{oe(n),G(r),Be(i)}}#b(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t,n);return}this.#a+=t,this.#a===0&&(this.#g(n),this.#l&&De(this.#l,()=>{this.#l=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t,n){this.#b(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,Oe(()=>{this.#h=!1,this.#u&&Ue(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),d(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(I(this.#r),this.#r=null),this.#l&&(I(this.#l),this.#l=null),this.#o&&(I(this.#o),this.#o=null),$&&(F(this.#n),Xr(),F(pt()));var i=!1,s=!1;const o=()=>{if(i){Jr();return}i=!0,s&&Kr(),this.#o!==null&&De(this.#o,()=>{this.#o=null}),this.#m(()=>{this.#w()})},l=a=>{try{s=!0,n?.(a,o),s=!1}catch(f){ye(f,this.#s&&this.#s.parent)}r&&(this.#o=this.#m(()=>{try{return W(()=>{var f=w;f.b=this,f.f|=It,r(this.#e,()=>a,()=>o)})}catch(f){return ye(f,this.#s.parent),null}}))};Oe(()=>{var a;try{a=this.transform_error(t)}catch(f){ye(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,f=>ye(f,this.#s&&this.#s.parent)):l(a)})}}function fi(e,t,n,r){const i=wt;var s=e.filter(h=>!h.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=w,l=ai(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function f(h){l();try{r(h)}catch(_){(o.f&Y)===0&&ye(_,o)}mt()}if(n.length===0){a.then(()=>f(t.map(i)));return}var u=Ln();function v(){Promise.all(n.map(h=>ui(h))).then(h=>f([...t.map(i),...h])).catch(h=>ye(h,o)).finally(()=>u())}a?a.then(()=>{l(),v(),mt()}):v()}function ai(){var e=w,t=m,n=U,r=E;return function(s=!0){oe(e),G(t),Be(n),s&&(e.f&Y)===0&&(r?.activate(),r?.apply())}}function mt(e=!0){oe(null),G(null),Be(null),e&&E?.deactivate()}function Ln(){var e=w,t=e.b,n=E,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 wt(e){var t=R|M,n=m!==null&&(m.f&R)!==0?m:null;return w!==null&&(w.f|=Ne),{ctx:U,deps:null,effects:null,equals:xn,f:t,fn:e,reactions:null,rv:0,v:O,wv:0,parent:n??w,ac:null}}function ui(e,t,n){let r=w;r===null&&zr();var i=void 0,s=Me(O),o=!m,l=new Map;return $i(()=>{var a=w,f=mn();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(mt)}catch(_){f.reject(_),mt()}var u=E;if(o){if((a.f&we)!==0)var v=Ln();if(r.b.is_rendered())l.get(u)?.reject(he),l.delete(u);else{for(const _ of l.values())_.reject(he);l.clear()}l.set(u,f)}const h=(_,c=void 0)=>{if(v){var g=c===he;v(g)}if(!(c===he||(a.f&Y)!==0)){if(u.activate(),c)s.f|=be,Ue(s,c);else{(s.f&be)!==0&&(s.f^=be),Ue(s,_);for(const[x,y]of l){if(l.delete(x),x===u)break;y.reject(he)}}u.deactivate()}};f.promise.then(h,_=>h(null,_||"unknown"))}),Jn(()=>{for(const a of l.values())a.reject(he)}),new Promise(a=>{function f(u){function v(){u===i?a(s):f(i)}u.then(v,v)}f(i)})}function bt(e){const t=wt(e);return sr(t),t}function ci(e){const t=wt(e);return t.equals=En,t}function hi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)I(t[n])}}function di(e){for(var t=e.parent;t!==null;){if((t.f&R)===0)return(t.f&Y)===0?t:null;t=t.parent}return null}function qt(e){var t,n=w;oe(di(e));try{e.f&=~Re,hi(e),t=ur(e)}finally{oe(n)}return t}function zn(e){var t=e.v,n=qt(e);if(!e.equals(n)&&(e.wv=fr(),(!E?.is_fork||e.deps===null)&&(e.v=n,E?.capture(e,t,!0),e.deps===null))){S(e,A);return}Ee||(Z!==null?(Gt()||E?.is_fork)&&Z.set(e,n):zt(e))}function vi(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=Dr,t.ac=null,it(t,0),Jt(t))}function Hn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ge(t)}let Bt=new Set;const xe=new Map;let jn=!1;function Me(e,t){var n={f:0,v:e,reactions:null,equals:xn,rv:0,wv:0};return n}function re(e,t){const n=Me(e);return sr(n),n}function Vn(e,t=!1,n=!0){const r=Me(e);return t||(r.equals=En),r}function k(e,t,n=!1){m!==null&&(!Q||(m.f&yn)!==0)&&kn()&&(m.f&(R|ge|Pt|yn))!==0&&(K===null||!He.call(K,e))&&Gr();let r=n?tt(t):t;return Ue(e,r,gt)}function Ue(e,t,n=null){if(!e.equals(t)){var r=e.v;Ee?xe.set(e,t):xe.set(e,r),e.v=t;var i=ve.ensure();if(i.capture(e,r),(e.f&R)!==0){const s=e;(e.f&M)!==0&&qt(s),Z===null&&zt(s)}e.wv=fr(),qn(e,M,n),w!==null&&(w.f&A)!==0&&(w.f&(X|me))===0&&(J===null?Ti([e]):J.push(e)),!i.is_fork&&Bt.size>0&&!jn&&_i()}return t}function _i(){jn=!1;for(const e of Bt)(e.f&A)!==0&&S(e,te),rt(e)&&Ge(e);Bt.clear()}function pi(e,t=1){var n=d(e),r=t===1?n++:n--;return k(e,n),r}function et(e){k(e,e.v+1)}function qn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,a=(l&M)===0;if(a&&S(o,t),(l&R)!==0){var f=o;Z?.delete(f),(l&Re)===0&&(l&B&&(o.f|=Re),qn(f,te,n))}else if(a){var u=o;(l&ge)!==0&&_e!==null&&_e.add(u),n!==null?n.push(u):Vt(u)}}}function tt(e){if(typeof e!="object"||e===null||Lt in e)return e;const t=pn(e);if(t!==Or&&t!==Mr)return e;var n=new Map,r=_n(e),i=re(0),s=Fe,o=l=>{if(Fe===s)return l();var a=m,f=Fe;G(null),or(s);var u=l();return G(a),or(f),u};return r&&n.set("length",re(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Ur();var u=n.get(a);return u===void 0?o(()=>{var v=re(f.value);return n.set(a,v),v}):k(u,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const u=o(()=>re(O));n.set(a,u),et(i)}}else k(f,O),et(i);return!0},get(l,a,f){if(a===Lt)return e;var u=n.get(a),v=a in l;if(u===void 0&&(!v||je(l,a)?.writable)&&(u=o(()=>{var _=tt(v?l[a]:O),c=re(_);return c}),n.set(a,u)),u!==void 0){var h=d(u);return h===O?void 0:h}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=d(u))}else if(f===void 0){var v=n.get(a),h=v?.v;if(v!==void 0&&h!==O)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(l,a){if(a===Lt)return!0;var f=n.get(a),u=f!==void 0&&f.v!==O||Reflect.has(l,a);if(f!==void 0||w!==null&&(!u||je(l,a)?.writable)){f===void 0&&(f=o(()=>{var h=u?tt(l[a]):O,_=re(h);return _}),n.set(a,f));var v=d(f);if(v===O)return!1}return u},set(l,a,f,u){var v=n.get(a),h=a in l;if(r&&a==="length")for(var _=f;_<v.v;_+=1){var c=n.get(_+"");c!==void 0?k(c,O):_ in l&&(c=o(()=>re(O)),n.set(_+"",c))}if(v===void 0)(!h||je(l,a)?.writable)&&(v=o(()=>re(void 0)),k(v,tt(f)),n.set(a,v));else{h=v.v!==O;var g=o(()=>tt(f));k(v,g)}var x=Reflect.getOwnPropertyDescriptor(l,a);if(x?.set&&x.set.call(u,f),!h){if(r&&typeof a=="string"){var y=n.get("length"),T=Number(a);Number.isInteger(T)&&T>=y.v&&k(y,T+1)}et(i)}return!0},ownKeys(l){d(i);var a=Reflect.ownKeys(l).filter(v=>{var h=n.get(v);return h===void 0||h.v!==O});for(var[f,u]of n)u.v!==O&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Wr()}})}var Bn,Yn,Un,Wn;function Yt(){if(Bn===void 0){Bn=window,Yn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Un=je(t,"firstChild").get,Wn=je(t,"nextSibling").get,gn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),gn(n)&&(n.__t=void 0)}}function z(e=""){return document.createTextNode(e)}function We(e){return Un.call(e)}function ie(e){return Wn.call(e)}function se(e,t){if(!$)return We(e);var n=We(b);if(n===null)n=b.appendChild(z());else if(t&&n.nodeType!==Ke){var r=z();return n?.before(r),F(r),r}return t&&$t(n),F(n),n}function yt(e,t=!1){if(!$){var n=We(e);return n instanceof Comment&&n.data===""?ie(n):n}if(t){if(b?.nodeType!==Ke){var r=z();return b?.before(r),F(r),r}$t(b)}return b}function nt(e,t=1,n=!1){let r=$?b:e;for(var i;t--;)i=r,r=ie(r);if(!$)return r;if(n){if(r?.nodeType!==Ke){var s=z();return r===null?i?.after(s):r.before(s),F(s),s}$t(r)}return F(r),r}function Gn(e){e.textContent=""}function Kn(){return!1}function Ut(e,t,n){return document.createElementNS(vn,e,void 0)}function $t(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ke;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Wt(e){var t=m,n=w;G(null),oe(null);try{return e()}finally{G(t),oe(n)}}function gi(e){w===null&&(m===null&&qr(),Vr()),Ee&&jr()}function mi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function le(e,t){var n=w;n!==null&&(n.f&L)!==0&&(e|=L);var r={ctx:U,deps:null,nodes:null,f:e|M|B,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&Ve)!==0)Ye!==null?Ye.push(r):ve.ensure().schedule(r);else if(t!==null){try{Ge(r)}catch(o){throw I(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Ne)===0&&(i=i.first,(e&ge)!==0&&(e&qe)!==0&&i!==null&&(i.f|=qe))}if(i!==null&&(i.parent=n,n!==null&&mi(i,n),m!==null&&(m.f&R)!==0&&(e&me)===0)){var s=m;(s.effects??=[]).push(i)}return r}function Gt(){return m!==null&&!Q}function Jn(e){const t=le(vt,null);return S(t,A),t.teardown=e,t}function Xn(e){gi();var t=w.f,n=!m&&(t&X)!==0&&(t&we)===0;if(n){var r=U;(r.e??=[]).push(e)}else return Zn(e)}function Zn(e){return le(Ve|Pr,e)}function wi(e){ve.ensure();const t=le(me|Ne,e);return()=>{I(t)}}function bi(e){ve.ensure();const t=le(me|Ne,e);return(n={})=>new Promise(r=>{n.outro?De(t,()=>{I(t),r(void 0)}):(I(t),r(void 0))})}function yi(e){return le(Ve,e)}function $i(e){return le(Pt|Ne,e)}function Qn(e,t=0){return le(vt|t,e)}function xt(e,t=[],n=[],r=[]){fi(r,t,n,i=>{le(vt,()=>e(...i.map(d)))})}function Kt(e,t=0){var n=le(ge|t,e);return n}function W(e){return le(X|Ne,e)}function er(e){var t=e.teardown;if(t!==null){const n=Ee,r=m;ir(!0),G(null);try{t.call(null)}finally{ir(n),G(r)}}}function Jt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Wt(()=>{i.abort(he)});var r=n.next;(n.f&me)!==0?n.parent=null:I(n,t),n=r}}function xi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&X)===0&&I(t),t=n}}function I(e,t=!0){var n=!1;(t||(e.f&Fr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ei(e.nodes.start,e.nodes.end),n=!0),S(e,bn),Jt(e,t&&!n),it(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();er(e),e.f^=bn,e.f|=Y;var i=e.parent;i!==null&&i.first!==null&&tr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Ei(e,t){for(;e!==null;){var n=e===t?null:ie(e);e.remove(),e=n}}function tr(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=[];nr(e,r,!0);var i=()=>{n&&I(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function nr(e,t,n){if((e.f&L)===0){e.f^=L;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&qe)!==0||(i.f&X)!==0&&(e.f&ge)!==0;nr(i,t,o?n:!1),i=s}}}function Xt(e){rr(e,!0)}function rr(e,t){if((e.f&L)!==0){e.f^=L,(e.f&A)===0&&(S(e,M),ve.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&qe)!==0||(n.f&X)!==0;rr(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Zt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ie(n);t.append(n),n=i}}let Et=!1,Ee=!1;function ir(e){Ee=e}let m=null,Q=!1;function G(e){m=e}let w=null;function oe(e){w=e}let K=null;function sr(e){m!==null&&(K===null?K=[e]:K.push(e))}let P=null,H=0,J=null;function Ti(e){J=e}let lr=1,Ie=0,Fe=Ie;function or(e){Fe=e}function fr(){return++lr}function rt(e){var t=e.f;if((t&M)!==0)return!0;if(t&R&&(e.f&=~Re),(t&te)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(rt(s)&&zn(s),s.wv>e.wv)return!0}(t&B)!==0&&Z===null&&S(e,A)}return!1}function ar(e,t,n=!0){var r=e.reactions;if(r!==null&&!(K!==null&&He.call(K,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&R)!==0?ar(s,t,!1):t===s&&(n?S(s,M):(s.f&A)!==0&&S(s,te),Vt(s))}}function ur(e){var t=P,n=H,r=J,i=m,s=K,o=U,l=Q,a=Fe,f=e.f;P=null,H=0,J=null,m=(f&(X|me))===0?e:null,K=null,Be(e.ctx),Q=!1,Fe=++Ie,e.ac!==null&&(Wt(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=Ft;var u=e.fn,v=u();e.f|=we;var h=e.deps,_=E?.is_fork;if(P!==null){var c;if(_||it(e,H),h!==null&&H>0)for(h.length=H+P.length,c=0;c<P.length;c++)h[H+c]=P[c];else e.deps=h=P;if(Gt()&&(e.f&B)!==0)for(c=H;c<h.length;c++)(h[c].reactions??=[]).push(e)}else!_&&h!==null&&H<h.length&&(it(e,H),h.length=H);if(kn()&&J!==null&&!Q&&h!==null&&(e.f&(R|te|M))===0)for(c=0;c<J.length;c++)ar(J[c],e);if(i!==null&&i!==e){if(Ie++,i.deps!==null)for(let g=0;g<n;g+=1)i.deps[g].rv=Ie;if(t!==null)for(const g of t)g.rv=Ie;J!==null&&(r===null?r=J:r.push(...J))}return(e.f&be)!==0&&(e.f^=be),v}catch(g){return Nn(g)}finally{e.f^=Ft,P=t,H=n,J=r,m=i,K=s,Be(o),Q=l,Fe=a}}function Si(e,t){let n=t.reactions;if(n!==null){var r=Rr.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&R)!==0&&(P===null||!He.call(P,t))){var s=t;(s.f&B)!==0&&(s.f^=B,s.f&=~Re),zt(s),vi(s),it(s,0)}}function it(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Si(e,n[r])}function Ge(e){var t=e.f;if((t&Y)===0){S(e,A);var n=w,r=Et;w=e,Et=!0;try{(t&(ge|wn))!==0?xi(e):Jt(e),er(e);var i=ur(e);e.teardown=typeof i=="function"?i:null,e.wv=lr;var s;Nr&&Qr&&(e.f&M)!==0&&e.deps}finally{Et=r,w=n}}}function d(e){var t=e.f,n=(t&R)!==0;if(m!==null&&!Q){var r=w!==null&&(w.f&Y)!==0;if(!r&&(K===null||!He.call(K,e))){var i=m.deps;if((m.f&Ft)!==0)e.rv<Ie&&(e.rv=Ie,P===null&&i!==null&&i[H]===e?H++:P===null?P=[e]:P.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:He.call(s,m)||s.push(m)}}}if(Ee&&xe.has(e))return xe.get(e);if(n){var o=e;if(Ee){var l=o.v;return((o.f&A)===0&&o.reactions!==null||hr(o))&&(l=qt(o)),xe.set(o,l),l}var a=(o.f&B)===0&&!Q&&m!==null&&(Et||(m.f&B)!==0),f=(o.f&we)===0;rt(o)&&(a&&(o.f|=B),zn(o)),a&&!f&&(Hn(o),cr(o))}if(Z?.has(e))return Z.get(e);if((e.f&be)!==0)throw e.v;return e.v}function cr(e){if(e.f|=B,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&R)!==0&&(t.f&B)===0&&(Hn(t),cr(t))}function hr(e){if(e.v===O)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(xe.has(t)||(t.f&R)!==0&&hr(t))return!0;return!1}function ki(e){var t=Q;try{return Q=!0,e()}finally{Q=t}}const st=Symbol("events"),dr=new Set,Qt=new Set;function Ai(e,t,n,r={}){function i(s){if(r.capture||tn.call(t,s),!s.cancelBubble)return Wt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Oe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Tt(e,t,n,r,i){var s={capture:r,passive:i},o=Ai(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Jn(()=>{t.removeEventListener(e,o,s)})}function en(e,t,n){(t[st]??={})[e]=n}function Ni(e){for(var t=0;t<e.length;t++)dr.add(e[t]);for(var n of Qt)n(e)}let vr=null;function tn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;vr=e;var o=0,l=vr===e&&e[st];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[st]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){dt(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=m,v=w;G(null),oe(null);try{for(var h,_=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var g=s[st]?.[r];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(x){h?_.push(x):h=x}if(e.cancelBubble||c===t||c===null)break;s=c}if(h){for(let x of _)queueMicrotask(()=>{throw x});throw h}}finally{e[st]=t,delete e.currentTarget,G(u),oe(v)}}}const Ri=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Ci(e){return Ri?.createHTML(e)??e}function Oi(e){var t=Ut("template");return t.innerHTML=Ci(e.replaceAll("<!>","<!---->")),t.content}function Te(e,t){var n=w;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function lt(e,t){var n=(t&kr)!==0,r=(t&Ar)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return Te(b,null),b;i===void 0&&(i=Oi(s?e:"<!>"+e),n||(i=We(i)));var o=r||Yn?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=We(o),a=o.lastChild;Te(l,a)}else Te(o,o);return o}}function St(e=""){if(!$){var t=z(e+"");return Te(t,t),t}var n=b;return n.nodeType!==Ke?(n.before(n=z()),F(n)):$t(n),Te(n,n),n}function nn(){if($)return Te(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),n=z();return e.append(t,n),Te(t,n),e}function j(e,t){if($){var n=w;((n.f&we)===0||n.nodes.end===null)&&(n.nodes.end=b),Xe();return}e!==null&&e.before(t)}const Mi=["touchstart","touchmove"];function Di(e){return Mi.includes(e)}function Ii(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function _r(e,t){return pr(e,t)}function Fi(e,t){Yt(),t.intro=t.intro??!1;const n=t.target,r=$,i=b;try{for(var s=We(n);s&&(s.nodeType!==Je||s.data!==hn);)s=ie(s);if(!s)throw ze;de(!0),F(s);const o=pr(e,{...t,anchor:s});return de(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==ze&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Yr(),Yt(),Gn(n),de(!1),_r(e,t)}finally{de(r),F(i)}}const kt=new Map;function pr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){Yt();var a=void 0,f=bi(()=>{var u=n??t.appendChild(z());li(u,{pending:()=>{}},_=>{Tn({});var c=U;if(s&&(c.c=s),i&&(r.$$events=i),$&&Te(_,null),a=e(_,r)||{},$&&(w.nodes.end=b,b===null||b.nodeType!==Je||b.data!==Dt))throw _t(),ze;Sn()},l);var v=new Set,h=_=>{for(var c=0;c<_.length;c++){var g=_[c];if(!v.has(g)){v.add(g);var x=Di(g);for(const fe of[t,document]){var y=kt.get(fe);y===void 0&&(y=new Map,kt.set(fe,y));var T=y.get(g);T===void 0?(fe.addEventListener(g,tn,{passive:x}),y.set(g,1)):y.set(g,T+1)}}}};return h(ct(dr)),Qt.add(h),()=>{for(var _ of v)for(const x of[t,document]){var c=kt.get(x),g=c.get(_);--g==0?(x.removeEventListener(_,tn),c.delete(_),c.size===0&&kt.delete(x)):c.set(_,g)}Qt.delete(h),u!==n&&u.parentNode?.removeChild(u)}});return rn.set(a,f),a}let rn=new WeakMap;function Pi(e,t){const n=rn.get(e);return n?(rn.delete(e),n(t)):Promise.resolve()}class Li{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)Xt(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,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(I(l.effect),this.#t.delete(o))}for(const[s,o]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Zt(o,f),f.append(z()),this.#t.set(s,{effect:o,fragment:f})}else I(o);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),De(o,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(I(i.effect),this.#t.delete(r))};ensure(t,n){var r=E,i=Kn();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=z();s.append(o),this.#t.set(t,{effect:W(()=>n(o)),fragment:s})}else this.#n.set(t,W(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,a]of this.#n)l===t?r.unskip_effect(a):r.skip_effect(a);for(const[l,a]of this.#t)l===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else $&&(this.anchor=b),this.#r(r)}}function sn(e,t,n=!1){var r;$&&(r=b,Xe());var i=new Li(e),s=n?qe:0;function o(l,a){if($){var f=$n(r);if(l!==parseInt(f.substring(1))){var u=pt();F(u),i.anchor=u,de(!1),i.ensure(l,a),de(!0);return}}i.ensure(l,a)}Kt(()=>{var l=!1;t((a,f=0)=>{l=!0,o(f,a)}),l||o(-1,null)},s)}function zi(e,t,n){for(var r=[],i=t.length,s,o=t.length,l=0;l<i;l++){let v=t[l];De(v,()=>{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var h=e.outrogroups;ln(e,ct(s.done)),h.delete(s),h.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var a=r.length===0&&n!==null;if(a){var f=n,u=f.parentNode;Gn(u),u.append(f),e.items.clear()}ln(e,t,!a)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function ln(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const o of e.pending.values())for(const l of o)r.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ce;const o=document.createDocumentFragment();Zt(s,o)}else I(t[i],n)}}var gr;function mr(e,t,n,r,i,s=null){var o=e,l=new Map;$&&Xe();var a=null,f=ci(()=>{var y=n();return _n(y)?y:y==null?[]:ct(y)}),u,v=new Map,h=!0;function _(y){(x.effect.f&Y)===0&&(x.pending.delete(y),x.fallback=a,Hi(x,u,o,t,r),a!==null&&(u.length===0?(a.f&ce)===0?Xt(a):(a.f^=ce,ft(a,null,o)):De(a,()=>{a=null})))}function c(y){x.pending.delete(y)}var g=Kt(()=>{u=d(f);var y=u.length;let T=!1;if($){var fe=$n(o)===Mt;fe!==(y===0)&&(o=pt(),F(o),de(!1),T=!0)}for(var ae=new Set,V=E,p=Kn(),D=0;D<y;D+=1){$&&b.nodeType===Je&&b.data===Dt&&(o=b,T=!0,de(!1));var N=u[D],ke=r(N,D),ee=h?null:l.get(ke);ee?(ee.v&&Ue(ee.v,N),ee.i&&Ue(ee.i,D),p&&V.unskip_effect(ee.e)):(ee=ji(l,h?o:gr??=z(),N,ke,D,i,t,n),h||(ee.e.f|=ce),l.set(ke,ee)),ae.add(ke)}if(y===0&&s&&!a&&(h?a=W(()=>s(o)):(a=W(()=>s(gr??=z())),a.f|=ce)),y>ae.size&&Hr(),$&&y>0&&F(pt()),!h)if(v.set(V,ae),p){for(const[Ae,ue]of l)ae.has(Ae)||V.skip_effect(ue.e);V.oncommit(_),V.ondiscard(c)}else _(V);T&&de(!0),d(f)}),x={effect:g,items:l,pending:v,outrogroups:null,fallback:a};h=!1,$&&(o=b)}function ot(e){for(;e!==null&&(e.f&X)===0;)e=e.next;return e}function Hi(e,t,n,r,i){var s=t.length,o=e.items,l=ot(e.effect.first),a,f=null,u=[],v=[],h,_,c,g;for(g=0;g<s;g+=1){if(h=t[g],_=i(h,g),c=o.get(_).e,e.outrogroups!==null)for(const N of e.outrogroups)N.pending.delete(c),N.done.delete(c);if((c.f&L)!==0&&Xt(c),(c.f&ce)!==0)if(c.f^=ce,c===l)ft(c,null,n);else{var x=f?f.next:l;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),Se(e,f,c),Se(e,c,x),ft(c,x,n),f=c,u=[],v=[],l=ot(f.next);continue}if(c!==l){if(a!==void 0&&a.has(c)){if(u.length<v.length){var y=v[0],T;f=y.prev;var fe=u[0],ae=u[u.length-1];for(T=0;T<u.length;T+=1)ft(u[T],y,n);for(T=0;T<v.length;T+=1)a.delete(v[T]);Se(e,fe.prev,ae.next),Se(e,f,fe),Se(e,ae,y),l=y,f=ae,g-=1,u=[],v=[]}else a.delete(c),ft(c,l,n),Se(e,c.prev,c.next),Se(e,c,f===null?e.effect.first:f.next),Se(e,f,c),f=c;continue}for(u=[],v=[];l!==null&&l!==c;)(a??=new Set).add(l),v.push(l),l=ot(l.next);if(l===null)continue}(c.f&ce)===0&&u.push(c),f=c,l=ot(c.next)}if(e.outrogroups!==null){for(const N of e.outrogroups)N.pending.size===0&&(ln(e,ct(N.done)),e.outrogroups?.delete(N));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||a!==void 0){var V=[];if(a!==void 0)for(c of a)(c.f&L)===0&&V.push(c);for(;l!==null;)(l.f&L)===0&&l!==e.fallback&&V.push(l),l=ot(l.next);var p=V.length;if(p>0){var D=null;zi(e,V,D)}}}function ji(e,t,n,r,i,s,o,l){var a=(o&Er)!==0?(o&Sr)===0?Vn(n,!1,!1):Me(n):null,f=(o&Tr)!==0?Me(i):null;return{v:a,i:f,e:W(()=>(s(t,a??n,f??i,l),()=>{e.delete(r)}))}}function ft(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ce)===0?t.nodes.start:n;r!==null;){var o=ie(r);if(s.before(r),r===i)return;r=o}}function Se(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function at(e,t,n,r,i){$&&Xe();var s=t.$$slots?.[n],o=!1;s===!0&&(s=t[n==="default"?"children":n],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>r:r)}function Vi(e){const t={};e.children&&(t.default=!0);for(const n in e.$$slots)t[n]=!0;return t}function qi(e,t){yi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Ut("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Bi(e,t){return e==null?null:String(e)}function on(e,t,n,r){var i=e.__style;if($||i!==t){var s=Bi(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Yi=Symbol("is custom element"),Ui=Symbol("is html");function Wi(e,t,n,r){var i=Gi(e);if($){i[t]=e.getAttribute(t);return}i[t]!==(i[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&Ki(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Gi(e){return e.__attributes??={[Yi]:e.nodeName.includes("-"),[Ui]:e.namespaceURI===vn}}var wr=new Map;function Ki(e){var t=e.getAttribute("is")||e.nodeName,n=wr.get(t);if(n)return n;wr.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Cr(i);for(var o in r)r[o].set&&n.push(o);i=pn(i)}return n}function At(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=o());var a;a=()=>{var h=e[t];return h===void 0?o():(s=!0,h)};var f=!1,u=wt(()=>(f=!1,a())),v=w;return(function(h,_){if(arguments.length>0){const c=_?d(u):h;return k(u,c),f=!0,i!==void 0&&(i=c),h}return Ee&&f||(v.f&Y)!==0?u.v:d(u)})}function Ji(e){return new Xi(e)}class Xi{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=Vn(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return d(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===Lr?!0:(d(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return k(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?Fi:_r)(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)&&Qe(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||dt(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Pi(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 br;typeof HTMLElement=="function"&&(br=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=Ut("slot");r!=="default"&&(s.name=r),j(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Zi(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=Ji({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=wi(()=>{Qn(()=>{this.$$r=!0;for(const r of ht(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 ht(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 Zi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Qi(e,t,n,r,i,s){let o=class extends br{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return ht(t).map(l=>(t[l].attribute||l).toLowerCase())}};return ht(t).forEach(l=>{dt(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Nt(l,a,t),this.$$d[l]=a;var f=this.$$c;if(f){var u=je(f,l)?.get;u?f[l]=a:f.$set({[l]:a})}}})}),r.forEach(l=>{dt(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}var es=lt('<div class="mySlides fade svelte-hth59o"><img alt="" class="svelte-hth59o"/></div>'),ts=lt('<span part="dot" class="dot svelte-hth59o"></span>'),ns=lt('<div part="caption_container" id="caption" class="svelte-hth59o"><div part="caption_content" class="text svelte-hth59o"> </div></div>'),rs=lt('<div id="cover_on_images" part="cover_on_images" class="svelte-hth59o"><!></div> <div class="slideshow-container svelte-hth59o"><div id="content" class="svelte-hth59o"><!> <span class="prev svelte-hth59o"><!></span> <span class="next svelte-hth59o"><!></span></div></div> <div id="dots" part="dots" class="svelte-hth59o"><!></div> <!>',1),is=lt('<div id="overlay" class="svelte-hth59o"><!></div>');const ss={hash:"svelte-hth59o",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");.svelte-hth59o {box-sizing:border-box;}:host {font-family:"Roboto", sans-serif;position:absolute;height:100%;max-height:100%;width:100%;overflow:hidden;}#cover_on_images.svelte-hth59o {position:absolute;width:100%;height:100%;z-index:2;}#content.svelte-hth59o {width:100%;height:100%;}#overlay.svelte-hth59o {width:100%;height:100%;}
3
3
  /* Slideshow container */.slideshow-container.svelte-hth59o {max-width:100%;max-height:100%;position:relative;margin:auto;width:100%;height:100%;display:block;}
4
4
  /* Hide the images by default */.mySlides.svelte-hth59o {display:none;width:100%;height:100%;max-width:100%;max-height:100%;}img.svelte-hth59o {max-width:100%;max-height:100%;width:100%;height:100%;object-fit:cover;}#dots.svelte-hth59o {margin-bottom:10px;text-align:center;position:relative;bottom:50px;z-index:3;}
5
5
  /* Next & previous buttons */.prev.svelte-hth59o,
@@ -20,5 +20,5 @@
20
20
  to {
21
21
  opacity: 1;
22
22
  }
23
- }`};function Er(e,t){const n=Bi(t);kn(t,!0),Yi(e,as);function r(p,D){t.$$host.dispatchEvent(new CustomEvent(p,{detail:D}))}let i=Nt(t,"id",7,""),s=Nt(t,"data"),o=Nt(t,"index",7,0),l=Nt(t,"timer"),f=re(!1),a=re(0),u;const d=yt(()=>!!n.overlay),c=yt(()=>{let p=s();if(typeof s()=="string")try{p=JSON.parse(s())}catch(N){return console.error("error parsing data",N),[]}return p?.length?p.filter(N=>N?.href).map((N,Se)=>({...N,index:N.index??Se})):[]}),_=yt(()=>{let p=o();return typeof o()=="string"&&(p=Number(o())),!p||p<0||p>v(c).length-1?0:p});Zn(()=>{S(a,v(_),!0)});const h=yt(()=>{if(!l())return;let p=l();return typeof l()=="string"&&(p=Number(l())),p<100?100:p});Zn(()=>{if(console.log(v(d),"overlayed"),v(h)&&v(c).length>0)return console.log("activate timer",v(h)),u&&clearInterval(u),u=setInterval(()=>{v(f)||(console.log("debug timer"),v(a)+1>v(c).length-1?S(a,0):mi(a),r("changeSlide",{index:v(a)}))},v(h)),()=>{u&&(clearInterval(u),u=void 0)}});function g(p){v(a)+p>v(c).length-1||v(a)+p<0?v(a)+p>v(c).length-1?S(a,0):S(a,v(c).length-1):S(a,v(a)+p),r("changeSlide",{index:v(a)})}function E(p){v(a)+p>v(c).length||v(a)+p<0?console.warn("Slide index out of range"):(S(a,p,!0),r("changeSlide",{index:v(a)}))}var y={get id(){return i()},set id(p=""){i(p),et()},get data(){return s()},set data(p){s(p),et()},get index(){return o()},set index(p=0){o(p),et()},get timer(){return l()},set timer(p){l(p),et()}},T=rn(),ae=$t(T);{var fe=p=>{var D=rn(),N=$t(D);{var Se=Ae=>{var ue=ls(),ct=$t(ue),fn=se(ct);ut(fn,t,"cover_on_images",{},null),ne(ct);var Fe=rt(ct,2),xr=se(Fe),Tr=se(xr);wr(Tr,17,()=>v(c),R=>R.index+R.href,(R,q)=>{var pe=rs(),je=se(pe);ne(pe),xt(()=>{an(pe,v(q).index===v(a)?"display:block;":"display:none;"),Ji(je,"src",v(q).href)}),H(R,pe)});var Rt=rt(Tr,2),fs=se(Rt);ut(fs,t,"prev",{},R=>{var q=St("❮");H(R,q)}),ne(Rt);var un=rt(Rt,2),us=se(un);ut(us,t,"next",{},R=>{var q=St("❯");H(R,q)}),ne(un),ne(xr),ne(Fe);var Ot=rt(Fe,2),cs=se(Ot);ut(cs,t,"dots",{},R=>{var q=rn(),pe=$t(q);wr(pe,17,()=>v(c),je=>je.index,(je,Mt)=>{var cn=is();xt(()=>an(cn,v(Mt).index===v(a)?"background-color: #717171;":"")),tn("click",cn,()=>{(v(Mt).index||v(Mt).index===0)&&E(v(Mt).index)}),H(je,cn)}),H(R,q)}),ne(Ot);var hs=rt(Ot,2);{var ds=R=>{var q=ss(),pe=se(q),je=se(pe,!0);ne(pe),ne(q),xt(()=>Ii(je,v(c)[v(a)].caption)),H(R,q)};ln(hs,R=>{v(c)?.[v(a)]?.caption&&R(ds)})}xt(R=>an(Ot,R),[()=>v(c)?.find?.(R=>R.caption)?"bottom: 100px;":""]),kt("mouseenter",Fe,()=>{S(f,!0),r("onHover",{index:v(a),hover:v(f)})}),kt("mouseleave",Fe,()=>{S(f,!1),r("onHover",{index:v(a),hover:v(f)})}),tn("click",Rt,()=>g(-1)),tn("click",un,()=>g(1)),H(Ae,ue)},ee=Ae=>{var ue=os(),ct=se(ue);ut(ct,t,"overlay",{},fn=>{var Fe=St("overlay");H(fn,Fe)}),ne(ue),kt("mouseenter",ue,()=>{S(f,!0)}),kt("mouseleave",ue,()=>{S(f,!1),r("onHover",{index:v(a),hover:v(f)})}),H(Ae,ue)};ln(N,Ae=>{!v(d)||!v(f)?Ae(Se):Ae(ee,-1)})}H(p,D)},V=p=>{var D=St("no image provided as data");H(p,D)};ln(ae,p=>{v(c)?.length?p(fe):p(V,-1)})}return H(e,T),Sn(y)}Ri(["click"]),customElements.define("hb-site-slideshow",ts(Er,{id:{},data:{},index:{},timer:{}},["cover_on_images","prev","next","dots","overlay"],[],{mode:"open"})),hn.Component=Er,Object.defineProperty(hn,Symbol.toStringTag,{value:"Module"})})(this["site-slideshow"]=this["site-slideshow"]||{});
23
+ }`};function yr(e,t){const n=Vi(t);Tn(t,!0),qi(e,ss);function r(p,D){t.$$host.dispatchEvent(new CustomEvent(p,{detail:D}))}let i=At(t,"id",7,""),s=At(t,"data"),o=At(t,"index",7,0),l=At(t,"timer"),a=re(!1),f=re(0),u;const v=bt(()=>!!n.overlay),h=bt(()=>{let p=s();if(typeof s()=="string")try{p=JSON.parse(s())}catch(N){return console.error("error parsing data",N),[]}return p?.length?p.filter(N=>N?.href).map((N,ke)=>({...N,index:N.index??ke})):[]}),_=bt(()=>{let p=o();return typeof o()=="string"&&(p=Number(o())),!p||p<0||p>d(h).length-1?0:p});Xn(()=>{k(f,d(_),!0)});const c=bt(()=>{if(!l())return;let p=l();return typeof l()=="string"&&(p=Number(l())),p<100?100:p});Xn(()=>{if(console.log(d(v),"overlayed"),d(c)&&d(h).length>0)return console.log("activate timer",d(c)),u&&clearInterval(u),u=setInterval(()=>{d(a)||(console.log("debug timer"),d(f)+1>d(h).length-1?k(f,0):pi(f),r("changeSlide",{index:d(f)}))},d(c)),()=>{u&&(clearInterval(u),u=void 0)}});function g(p){d(f)+p>d(h).length-1||d(f)+p<0?d(f)+p>d(h).length-1?k(f,0):k(f,d(h).length-1):k(f,d(f)+p),r("changeSlide",{index:d(f)})}function x(p){d(f)+p>d(h).length||d(f)+p<0?console.warn("Slide index out of range"):(k(f,p,!0),r("changeSlide",{index:d(f)}))}var y={get id(){return i()},set id(p=""){i(p),Qe()},get data(){return s()},set data(p){s(p),Qe()},get index(){return o()},set index(p=0){o(p),Qe()},get timer(){return l()},set timer(p){l(p),Qe()}},T=nn(),fe=yt(T);{var ae=p=>{var D=nn(),N=yt(D);{var ke=Ae=>{var ue=rs(),ut=yt(ue),fn=se(ut);at(fn,t,"cover_on_images",{},null),ne(ut);var Pe=nt(ut,2),$r=se(Pe),xr=se($r);mr(xr,17,()=>d(h),C=>C.index+C.href,(C,q)=>{var pe=es(),Le=se(pe);ne(pe),xt(()=>{on(pe,d(q).index===d(f)?"display:block;":"display:none;"),Wi(Le,"src",d(q).href)}),j(C,pe)});var Rt=nt(xr,2),ls=se(Rt);at(ls,t,"prev",{},C=>{var q=St("❮");j(C,q)}),ne(Rt);var an=nt(Rt,2),os=se(an);at(os,t,"next",{},C=>{var q=St("❯");j(C,q)}),ne(an),ne($r),ne(Pe);var Ct=nt(Pe,2),fs=se(Ct);at(fs,t,"dots",{},C=>{var q=nn(),pe=yt(q);mr(pe,17,()=>d(h),Le=>Le.index,(Le,Ot)=>{var un=ts();xt(()=>on(un,d(Ot).index===d(f)?"background-color: #717171;":"")),en("click",un,()=>{(d(Ot).index||d(Ot).index===0)&&x(d(Ot).index)}),j(Le,un)}),j(C,q)}),ne(Ct);var as=nt(Ct,2);{var us=C=>{var q=ns(),pe=se(q),Le=se(pe,!0);ne(pe),ne(q),xt(()=>Ii(Le,d(h)[d(f)].caption)),j(C,q)};sn(as,C=>{d(h)?.[d(f)]?.caption&&C(us)})}xt(C=>on(Ct,C),[()=>d(h)?.find?.(C=>C.caption)?"bottom: 100px;":""]),Tt("mouseenter",Pe,()=>{k(a,!0),r("onHover",{index:d(f),hover:d(a)})}),Tt("mouseleave",Pe,()=>{k(a,!1),r("onHover",{index:d(f),hover:d(a)})}),en("click",Rt,()=>g(-1)),en("click",an,()=>g(1)),j(Ae,ue)},ee=Ae=>{var ue=is(),ut=se(ue);at(ut,t,"overlay",{},fn=>{var Pe=St("overlay");j(fn,Pe)}),ne(ue),Tt("mouseenter",ue,()=>{k(a,!0)}),Tt("mouseleave",ue,()=>{k(a,!1),r("onHover",{index:d(f),hover:d(a)})}),j(Ae,ue)};sn(N,Ae=>{!d(v)||!d(a)?Ae(ke):Ae(ee,-1)})}j(p,D)},V=p=>{var D=St("no image provided as data");j(p,D)};sn(fe,p=>{d(h)?.length?p(ae):p(V,-1)})}return j(e,T),Sn(y)}Ni(["click"]),customElements.define("hb-site-slideshow",Qi(yr,{id:{},data:{},index:{},timer:{}},["cover_on_images","prev","next","dots","overlay"],[],{mode:"open"})),cn.Component=yr,Object.defineProperty(cn,Symbol.toStringTag,{value:"Module"})})(this["site-slideshow"]=this["site-slideshow"]||{});
24
24
  //# sourceMappingURL=main.iife.js.map