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