@htmlbricks/hb-vertical-img-txt-archive 0.65.23 → 0.66.1

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