@htmlbricks/hb-vertical-img-txt-archive 0.50.0 → 0.60.0

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,4 @@
1
- var Kn=Object.defineProperty;var yr=T=>{throw TypeError(T)};var Jn=(T,A,x)=>A in T?Kn(T,A,{enumerable:!0,configurable:!0,writable:!0,value:x}):T[A]=x;var U=(T,A,x)=>Jn(T,typeof A!="symbol"?A+"":A,x),Er=(T,A,x)=>A.has(T)||yr("Cannot "+x);var D=(T,A,x)=>(Er(T,A,"read from private field"),x?x.call(T):A.get(T)),Et=(T,A,x)=>A.has(T)?yr("Cannot add the same private member more than once"):A instanceof WeakSet?A.add(T):A.set(T,x),bt=(T,A,x,Ce)=>(Er(T,A,"write to private field"),Ce?Ce.call(T,x):A.set(T,x),x);(function(T){"use strict";var ne,H;const A="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(A);const x=1,Ce=2,br=16,Tr=2,Tt="[",et="[!",tt="]",Te={},I=Symbol(),rt=!1,Y=2,Rt=4,ke=8,nt=16,J=32,ve=64,Ie=128,F=256,Pe=512,S=1024,Z=2048,_e=4096,Q=8192,De=16384,Rr=32768,it=65536,Ar=1<<19,At=1<<20,lt=Symbol("$state"),Or=Symbol("legacy props"),Nr=Symbol("");var st=Array.isArray,xr=Array.prototype.indexOf,ut=Array.from,Le=Object.keys,Me=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyDescriptors,Cr=Object.prototype,kr=Array.prototype,Ot=Object.getPrototypeOf;function Ir(e){for(var t=0;t<e.length;t++)e[t]()}let qe=!1,at=[];function Nt(){qe=!1;const e=at.slice();at=[],Ir(e)}function Pr(e){qe||(qe=!0,queueMicrotask(Nt)),at.push(e)}function Dr(){qe&&Nt()}function xt(e){return e===this.v}function Lr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function St(e){return!Lr(e,this.v)}function Mr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function qr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function jr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Hr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Br(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Gr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ur=!1;function j(e,t){var r={f:0,v:e,reactions:null,equals:xt,rv:0,wv:0};return r}function ft(e){return zr(j(e))}function ot(e,t=!1){const r=j(e);return t||(r.equals=St),r}function zr(e){return w!==null&&!W&&w.f&Y&&(X===null?Qr([e]):X.push(e)),e}function C(e,t){return w!==null&&!W&&ur()&&w.f&(Y|nt)&&(X===null||!X.includes(e))&&Gr(),Ct(e,t)}function Ct(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Ut(),kt(e,Z),m!==null&&m.f&S&&!(m.f&(J|ve))&&(te===null?en([e]):te.push(e))),t}function kt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var l=r[i],s=l.f;s&Z||(K(l,t),s&(S|F)&&(s&Y?kt(l,_e):Ge(l)))}}function ct(e){var t=Y|Z,r=w!==null&&w.f&Y?w:null;return m===null||r!==null&&r.f&F?t|=F:m.f|=At,{ctx:M,deps:null,effects:null,equals:xt,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??m}}function Wr(e){const t=ct(e);return t.equals=St,t}function It(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)re(t[r])}}function Xr(e){for(var t=e.parent;t!==null;){if(!(t.f&Y))return t;t=t.parent}return null}function Kr(e){var t,r=m;se(Xr(e));try{It(e),t=Wt(e)}finally{se(r)}return t}function Pt(e){var t=Kr(e),r=(ue||e.f&F)&&e.deps!==null?_e:S;K(e,r),e.equals(t)||(e.v=t,e.wv=Ut())}function vt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let R=!1;function ee(e){R=e}let b;function B(e){if(e===null)throw vt(),Te;return b=e}function Fe(){return B(ie(b))}function he(e){if(R){if(ie(b)!==null)throw vt(),Te;b=e}}function _t(){for(var e=0,t=b;;){if(t.nodeType===8){var r=t.data;if(r===tt){if(e===0)return t;e-=1}else(r===Tt||r===et)&&(e+=1)}var n=ie(t);t.remove(),t=n}}function z(e,t=null,r){if(typeof e!="object"||e===null||lt in e)return e;const n=Ot(e);if(n!==Cr&&n!==kr)return e;var i=new Map,l=st(e),s=j(0);l&&i.set("length",j(e.length));var o;return new Proxy(e,{defineProperty(c,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Yr();var v=i.get(f);return v===void 0?(v=j(a.value),i.set(f,v)):C(v,z(a.value,o)),!0},deleteProperty(c,f){var a=i.get(f);if(a===void 0)f in c&&i.set(f,j(I));else{if(l&&typeof f=="string"){var v=i.get("length"),u=Number(f);Number.isInteger(u)&&u<v.v&&C(v,u)}C(a,I),Dt(s)}return!0},get(c,f,a){var d;if(f===lt)return e;var v=i.get(f),u=f in c;if(v===void 0&&(!u||(d=de(c,f))!=null&&d.writable)&&(v=j(z(u?c[f]:I,o)),i.set(f,v)),v!==void 0){var _=O(v);return _===I?void 0:_}return Reflect.get(c,f,a)},getOwnPropertyDescriptor(c,f){var a=Reflect.getOwnPropertyDescriptor(c,f);if(a&&"value"in a){var v=i.get(f);v&&(a.value=O(v))}else if(a===void 0){var u=i.get(f),_=u==null?void 0:u.v;if(u!==void 0&&_!==I)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return a},has(c,f){var _;if(f===lt)return!0;var a=i.get(f),v=a!==void 0&&a.v!==I||Reflect.has(c,f);if(a!==void 0||m!==null&&(!v||(_=de(c,f))!=null&&_.writable)){a===void 0&&(a=j(v?z(c[f],o):I),i.set(f,a));var u=O(a);if(u===I)return!1}return v},set(c,f,a,v){var N;var u=i.get(f),_=f in c;if(l&&f==="length")for(var d=a;d<u.v;d+=1){var h=i.get(d+"");h!==void 0?C(h,I):d in c&&(h=j(I),i.set(d+"",h))}u===void 0?(!_||(N=de(c,f))!=null&&N.writable)&&(u=j(void 0),C(u,z(a,o)),i.set(f,u)):(_=u.v!==I,C(u,z(a,o)));var E=Reflect.getOwnPropertyDescriptor(c,f);if(E!=null&&E.set&&E.set.call(v,a),!_){if(l&&typeof f=="string"){var p=i.get("length"),g=Number(f);Number.isInteger(g)&&g>=p.v&&C(p,g+1)}Dt(s)}return!0},ownKeys(c){O(s);var f=Reflect.ownKeys(c).filter(u=>{var _=i.get(u);return _===void 0||_.v!==I});for(var[a,v]of i)v.v!==I&&!(a in c)&&f.push(a);return f},setPrototypeOf(){Br()}})}function Dt(e,t=1){C(e,e.v+t)}var Lt,Mt,qt,Ft;function dt(){if(Lt===void 0){Lt=window,Mt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;qt=de(t,"firstChild").get,Ft=de(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function pe(e=""){return document.createTextNode(e)}function $e(e){return qt.call(e)}function ie(e){return Ft.call(e)}function Re(e,t){if(!R)return $e(e);var r=$e(b);if(r===null)r=b.appendChild(pe());else if(t&&r.nodeType!==3){var n=pe();return r==null||r.before(n),B(n),n}return B(r),r}function Jr(e,t){if(!R){var r=$e(e);return r instanceof Comment&&r.data===""?ie(r):r}return b}function jt(e,t=1,r=!1){let n=R?b:e;for(var i;t--;)i=n,n=ie(n);if(!R)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=pe();return n===null?i==null||i.after(s):n.before(s),B(s),s}return B(n),n}function Ht(e){e.textContent=""}const Yt=0,Zr=1;let je=!1,He=Yt,Ae=!1,Oe=null,ge=!1,ht=!1;function Bt(e){ge=e}function Vt(e){ht=e}let oe=[],me=0,Zn=[],w=null,W=!1;function le(e){w=e}let m=null;function se(e){m=e}let X=null;function Qr(e){X=e}let k=null,L=0,te=null;function en(e){te=e}let Gt=1,Ye=0,ue=!1;function Ut(){return++Gt}function Ne(e){var v;var t=e.f;if(t&Z)return!0;if(t&_e){var r=e.deps,n=(t&F)!==0;if(r!==null){var i,l,s=(t&Pe)!==0,o=n&&m!==null&&!ue,c=r.length;if(s||o){var f=e,a=f.parent;for(i=0;i<c;i++)l=r[i],(s||!((v=l==null?void 0:l.reactions)!=null&&v.includes(f)))&&(l.reactions??(l.reactions=[])).push(f);s&&(f.f^=Pe),o&&a!==null&&!(a.f&F)&&(f.f^=F)}for(i=0;i<c;i++)if(l=r[i],Ne(l)&&Pt(l),l.wv>e.wv)return!0}(!n||m!==null&&!ue)&&K(e,S)}return!1}function tn(e,t){for(var r=t;r!==null;){if(r.f&Ie)try{r.fn(e);return}catch{r.f^=Ie}r=r.parent}throw je=!1,e}function rn(e){return(e.f&De)===0&&(e.parent===null||(e.parent.f&Ie)===0)}function Be(e,t,r,n){if(je){if(r===null&&(je=!1),rn(t))throw e;return}r!==null&&(je=!0);{tn(e,t);return}}function zt(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];l.f&Y?zt(l,t,!1):t===l&&(r?K(l,Z):l.f&S&&K(l,_e),Ge(l))}}function Wt(e){var _;var t=k,r=L,n=te,i=w,l=ue,s=X,o=M,c=W,f=e.f;k=null,L=0,te=null,w=f&(J|ve)?null:e,ue=(f&F)!==0&&(!ge||i===null||c),X=null,ir(e.ctx),W=!1,Ye++;try{var a=(0,e.fn)(),v=e.deps;if(k!==null){var u;if(Ve(e,L),v!==null&&L>0)for(v.length=L+k.length,u=0;u<k.length;u++)v[L+u]=k[u];else e.deps=v=k;if(!ue)for(u=L;u<v.length;u++)((_=v[u]).reactions??(_.reactions=[])).push(e)}else v!==null&&L<v.length&&(Ve(e,L),v.length=L);if(ur()&&te!==null&&!W&&v!==null&&!(e.f&(Y|_e|Z)))for(u=0;u<te.length;u++)zt(te[u],e);return i!==null&&Ye++,a}finally{k=t,L=r,te=n,w=i,ue=l,X=s,ir(o),W=c}}function nn(e,t){let r=t.reactions;if(r!==null){var n=xr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&t.f&Y&&(k===null||!k.includes(t))&&(K(t,_e),t.f&(F|Pe)||(t.f^=Pe),It(t),Ve(t,0))}function Ve(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)nn(e,r[n])}function pt(e){var t=e.f;if(!(t&De)){K(e,S);var r=m,n=M;m=e;try{t&nt?$n(e):er(e),Qt(e);var i=Wt(e);e.teardown=typeof i=="function"?i:null,e.wv=Gt;var l=e.deps,s;rt&&Ur&&e.f&Z}catch(o){Be(o,e,r,n||e.ctx)}finally{m=r}}}function Xt(){if(me>1e3){me=0;try{jr()}catch(e){if(Oe!==null)Be(e,Oe,null);else throw e}}me++}function Kt(e){var t=e.length;if(t!==0){Xt();var r=ge;ge=!0;try{for(var n=0;n<t;n++){var i=e[n];i.f&S||(i.f^=S);var l=un(i);ln(l)}}finally{ge=r}}}function ln(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];if(!(n.f&(De|Q)))try{Ne(n)&&(pt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?tr(n):n.fn=null))}catch(i){Be(i,n,null,n.ctx)}}}function sn(){if(Ae=!1,me>1001)return;const e=oe;oe=[],Kt(e),Ae||(me=0,Oe=null)}function Ge(e){He===Yt&&(Ae||(Ae=!0,queueMicrotask(sn))),Oe=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ve|J)){if(!(r&S))return;t.f^=S}}oe.push(t)}function un(e){var t=[],r=e.first;e:for(;r!==null;){var n=r.f,i=(n&J)!==0,l=i&&(n&S)!==0,s=r.next;if(!l&&!(n&Q)){if(n&Rt)t.push(r);else if(i)r.f^=S;else{var o=w;try{w=r,Ne(r)&&pt(r)}catch(a){Be(a,r,null,r.ctx)}finally{w=o}}var c=r.first;if(c!==null){r=c;continue}}if(s===null){let a=r.parent;for(;a!==null;){if(e===a)break e;var f=a.next;if(f!==null){r=f;continue e}a=a.parent}}r=s}return t}function we(e){var t=He,r=oe;try{Xt();const i=[];He=Zr,oe=i,Ae=!1,Kt(r);var n=e==null?void 0:e();return Dr(),(oe.length>0||i.length>0)&&we(),me=0,Oe=null,n}finally{He=t,oe=r}}function O(e){var t=e.f,r=(t&Y)!==0;if(w!==null&&!W){X!==null&&X.includes(e)&&Vr();var n=w.deps;e.rv<Ye&&(e.rv=Ye,k===null&&n!==null&&n[L]===e?L++:k===null?k=[e]:(!ue||!k.includes(e))&&k.push(e))}else if(r&&e.deps===null&&e.effects===null){var i=e,l=i.parent;l!==null&&!(l.f&F)&&(i.f^=F)}return r&&(i=e,Ne(i)&&Pt(i)),e.v}function an(e){var t=W;try{return W=!0,e()}finally{W=t}}const fn=-7169;function K(e,t){e.f=e.f&fn|t}function on(e){m===null&&w===null&&Fr(),w!==null&&w.f&F&&m===null&&qr(),ht&&Mr()}function cn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ce(e,t,r,n=!0){var i=(e&ve)!==0,l=m,s={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|Z,first:null,fn:t,last:null,next:null,parent:i?null:l,prev:null,teardown:null,transitions:null,wv:0};if(r){var o=ge;try{Bt(!0),pt(s),s.f|=Rr}catch(a){throw re(s),a}finally{Bt(o)}}else t!==null&&Ge(s);var c=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&(At|Ie))===0;if(!c&&!i&&n&&(l!==null&&cn(s,l),w!==null&&w.f&Y)){var f=w;(f.effects??(f.effects=[])).push(s)}return s}function vn(e){const t=ce(ke,null,!1);return K(t,S),t.teardown=e,t}function _n(e){on();var t=m!==null&&(m.f&J)!==0&&M!==null&&!M.m;if(t){var r=M;(r.e??(r.e=[])).push({fn:e,effect:m,reaction:w})}else{var n=Jt(e);return n}}function dn(e){const t=ce(ve,e,!0);return()=>{re(t)}}function hn(e){const t=ce(ve,e,!0);return(r={})=>new Promise(n=>{r.outro?Ue(t,()=>{re(t),n(void 0)}):(re(t),n(void 0))})}function Jt(e){return ce(Rt,e,!1)}function pn(e){return ce(ke,e,!0)}function Zt(e,t=[],r=ct){const n=t.map(r);return $t(()=>e(...n.map(O)))}function $t(e,t=0){return ce(ke|nt|t,e,!0)}function xe(e,t=!0){return ce(ke|J,e,!0,t)}function Qt(e){var t=e.teardown;if(t!==null){const r=ht,n=w;Vt(!0),le(null);try{t.call(null)}finally{Vt(r),le(n)}}}function er(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var n=r.next;re(r,t),r=n}}function $n(e){for(var t=e.first;t!==null;){var r=t.next;t.f&J||re(t),t=r}}function re(e,t=!0){var r=!1;if((t||e.f&Ar)&&e.nodes_start!==null){for(var n=e.nodes_start,i=e.nodes_end;n!==null;){var l=n===i?null:ie(n);n.remove(),n=l}r=!0}er(e,t&&!r),Ve(e,0),K(e,De);var s=e.transitions;if(s!==null)for(const c of s)c.stop();Qt(e);var o=e.parent;o!==null&&o.first!==null&&tr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function tr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ue(e,t){var r=[];gt(e,r,!0),rr(r,()=>{re(e),t&&t()})}function rr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function gt(e,t,r){if(!(e.f&Q)){if(e.f^=Q,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,l=(n.f&it)!==0||(n.f&J)!==0;gt(n,t,l?r:!1),n=i}}}function ze(e){nr(e,!0)}function nr(e,t){if(e.f&Q){e.f^=Q,e.f&S||(e.f^=S),Ne(e)&&(K(e,Z),Ge(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&it)!==0||(r.f&J)!==0;nr(r,i?t:!1),r=n}if(e.transitions!==null)for(const l of e.transitions)(l.is_global||t)&&l.in()}}let M=null;function ir(e){M=e}function lr(e,t=!1,r){M={p:M,c:null,e:null,m:!1,s:e,x:null,l:null}}function sr(e){const t=M;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=m,n=w;t.e=null;try{for(var i=0;i<s.length;i++){var l=s[i];se(l.effect),le(l.reaction),Jt(l.fn)}}finally{se(r),le(n)}}M=t.p,t.m=!0}return e||{}}function ur(){return!0}const gn=["touchstart","touchmove"];function mn(e){return gn.includes(e)}function wn(e,t,r,n=!0){n&&r();for(var i of t)e.addEventListener(i,r);vn(()=>{for(var l of t)e.removeEventListener(l,r)})}function yn(e){var t=w,r=m;le(null),se(null);try{return e()}finally{le(t),se(r)}}const En=new Set,ar=new Set;function We(e){var g;var t=this,r=t.ownerDocument,n=e.type,i=((g=e.composedPath)==null?void 0:g.call(e))||[],l=i[0]||e.target,s=0,o=e.__root;if(o){var c=i.indexOf(o);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;c<=f&&(s=c)}if(l=i[s]||e.target,l!==t){Me(e,"currentTarget",{configurable:!0,get(){return l||r}});var a=w,v=m;le(null),se(null);try{for(var u,_=[];l!==null;){var d=l.assignedSlot||l.parentNode||l.host||null;try{var h=l["__"+n];if(h!==void 0&&!l.disabled)if(st(h)){var[E,...p]=h;E.apply(l,[e,...p])}else h.call(l,e)}catch(N){u?_.push(N):u=N}if(e.cancelBubble||d===t||d===null)break;l=d}if(u){for(let N of _)queueMicrotask(()=>{throw N});throw u}}finally{e.__root=t,delete e.currentTarget,le(a),se(v)}}}function bn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Se(e,t){var r=m;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function fr(e,t){var r=(t&Tr)!==0,n,i=!e.startsWith("<!>");return()=>{if(R)return Se(b,null),b;n===void 0&&(n=bn(i?e:"<!>"+e),n=$e(n));var l=r||Mt?document.importNode(n,!0):n.cloneNode(!0);return Se(l,l),l}}function Tn(){if(R)return Se(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),r=pe();return e.append(t,r),Se(t,r),e}function Xe(e,t){if(R){m.nodes_end=b,Fe();return}e!==null&&e.before(t)}function or(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function cr(e,t){return vr(e,t)}function Rn(e,t){dt(),t.intro=t.intro??!1;const r=t.target,n=R,i=b;try{for(var l=$e(r);l&&(l.nodeType!==8||l.data!==Tt);)l=ie(l);if(!l)throw Te;ee(!0),B(l),Fe();const s=vr(e,{...t,anchor:l});if(b===null||b.nodeType!==8||b.data!==tt)throw vt(),Te;return ee(!1),s}catch(s){if(s===Te)return t.recover===!1&&Hr(),dt(),Ht(r),ee(!1),cr(e,t);throw s}finally{ee(n),B(i)}}const ye=new Map;function vr(e,{target:t,anchor:r,props:n={},events:i,context:l,intro:s=!0}){dt();var o=new Set,c=v=>{for(var u=0;u<v.length;u++){var _=v[u];if(!o.has(_)){o.add(_);var d=mn(_);t.addEventListener(_,We,{passive:d});var h=ye.get(_);h===void 0?(document.addEventListener(_,We,{passive:d}),ye.set(_,1)):ye.set(_,h+1)}}};c(ut(En)),ar.add(c);var f=void 0,a=hn(()=>{var v=r??t.appendChild(pe());return xe(()=>{if(l){lr({});var u=M;u.c=l}i&&(n.$$events=i),R&&Se(v,null),f=e(v,n)||{},R&&(m.nodes_end=b),l&&sr()}),()=>{var d;for(var u of o){t.removeEventListener(u,We);var _=ye.get(u);--_===0?(document.removeEventListener(u,We),ye.delete(u)):ye.set(u,_)}ar.delete(c),v!==r&&((d=v.parentNode)==null||d.removeChild(v))}});return mt.set(f,a),f}let mt=new WeakMap;function An(e,t){const r=mt.get(e);return r?(mt.delete(e),r(t)):Promise.resolve()}function On(e,t,r=!1){R&&Fe();var n=e,i=null,l=null,s=I,o=r?it:0,c=!1;const f=(v,u=!0)=>{c=!0,a(u,v)},a=(v,u)=>{if(s===(s=v))return;let _=!1;if(R){const d=n.data===et;!!s===d&&(n=_t(),B(n),ee(!1),_=!0)}s?(i?ze(i):u&&(i=xe(()=>u(n))),l&&Ue(l,()=>{l=null})):(l?ze(l):u&&(l=xe(()=>u(n))),i&&Ue(i,()=>{i=null})),_&&ee(!0)};$t(()=>{c=!1,t(f),c||a(null,null)},o),R&&(n=b)}function Nn(e,t,r,n){for(var i=[],l=t.length,s=0;s<l;s++)gt(t[s].e,i,!0);var o=l>0&&i.length===0&&r!==null;if(o){var c=r.parentNode;Ht(c),c.append(r),n.clear(),ae(e,t[0].prev,t[l-1].next)}rr(i,()=>{for(var f=0;f<l;f++){var a=t[f];o||(n.delete(a.k),ae(e,a.prev,a.next)),re(a.e,!o)}})}function xn(e,t,r,n,i,l=null){var s=e,o={items:new Map,first:null};{var c=e;s=R?B($e(c)):c.appendChild(pe())}R&&Fe();var f=null,a=!1,v=Wr(()=>{var u=r();return st(u)?u:u==null?[]:ut(u)});$t(()=>{var u=O(v),_=u.length;if(a&&_===0)return;a=_===0;let d=!1;if(R){var h=s.data===et;h!==(_===0)&&(s=_t(),B(s),ee(!1),d=!0)}if(R){for(var E=null,p,g=0;g<_;g++){if(b.nodeType===8&&b.data===tt){s=b,d=!0,ee(!1);break}var N=u[g],P=n(N,g);p=_r(b,o,E,null,N,P,g,i,t,r),o.items.set(P,p),E=p}_>0&&B(_t())}R||Sn(u,o,s,i,t,n,r),l!==null&&(_===0?f?ze(f):f=xe(()=>l(s)):f!==null&&Ue(f,()=>{f=null})),d&&ee(!0),O(v)}),R&&(s=b)}function Sn(e,t,r,n,i,l,s){var o=e.length,c=t.items,f=t.first,a=f,v,u=null,_=[],d=[],h,E,p,g;for(g=0;g<o;g+=1){if(h=e[g],E=l(h,g),p=c.get(E),p===void 0){var N=a?a.e.nodes_start:r;u=_r(N,t,u,u===null?t.first:u.next,h,E,g,n,i,s),c.set(E,u),_=[],d=[],a=u.next;continue}if(Cn(p,h,g),p.e.f&Q&&ze(p.e),p!==a){if(v!==void 0&&v.has(p)){if(_.length<d.length){var P=d[0],q;u=P.prev;var fe=_[0],V=_[_.length-1];for(q=0;q<_.length;q+=1)dr(_[q],P,r);for(q=0;q<d.length;q+=1)v.delete(d[q]);ae(t,fe.prev,V.next),ae(t,u,fe),ae(t,V,P),a=P,u=V,g-=1,_=[],d=[]}else v.delete(p),dr(p,a,r),ae(t,p.prev,p.next),ae(t,p,u===null?t.first:u.next),ae(t,u,p),u=p;continue}for(_=[],d=[];a!==null&&a.k!==E;)a.e.f&Q||(v??(v=new Set)).add(a),d.push(a),a=a.next;if(a===null)continue;p=a}_.push(p),u=p,a=p.next}if(a!==null||v!==void 0){for(var be=v===void 0?[]:ut(v);a!==null;)a.e.f&Q||be.push(a),a=a.next;var Ze=be.length;if(Ze>0){var Qe=o===0?r:null;Nn(t,be,Qe,c)}}m.first=t.first&&t.first.e,m.last=u&&u.e}function Cn(e,t,r,n){Ct(e.v,t),e.i=r}function _r(e,t,r,n,i,l,s,o,c,f){var a=(c&x)!==0,v=(c&br)===0,u=a?v?ot(i):j(i):i,_=c&Ce?j(s):s,d={i:_,v:u,k:l,a:null,e:null,prev:r,next:n};try{return d.e=xe(()=>o(e,u,_,f),R),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?t.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function dr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,l=e.e.nodes_start;l!==n;){var s=ie(l);i.before(l),l=s}}function ae(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function kn(e,t){Pr(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function wt(e,t,r,n){var i=e.__attributes??(e.__attributes={});R&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Nr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&In(e).includes(t)?e[t]=r:e.setAttribute(t,r))}var hr=new Map;function In(e){var t=hr.get(e.nodeName);if(t)return t;hr.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=Sr(n);for(var l in r)r[l].set&&t.push(l);n=Ot(n)}return t}function Pn(e,t){wn(window,["resize"],()=>yn(()=>t(window[e])))}function Ke(e,t,r,n){var i;i=e[t];var l=n,s=!0,o=!1,c=()=>(o=!0,s&&(s=!1,l=n),l);i===void 0&&n!==void 0&&(i=c());var f;f=()=>{var _=e[t];return _===void 0?c():(s=!0,o=!1,_)};var a=!1,v=ot(i),u=ct(()=>{var _=f(),d=O(v);return a?(a=!1,d):v.v=_});return function(_,d){if(arguments.length>0){const h=d?O(u):_;return u.equals(h)||(a=!0,C(v,h),o&&l!==void 0&&(l=h),an(()=>O(u))),_}return O(u)}}function Dn(e){return new Ln(e)}class Ln{constructor(t){Et(this,ne);Et(this,H);var l;var r=new Map,n=(s,o)=>{var c=ot(o);return r.set(s,c),c};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return O(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Or?!0:(O(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,c){return C(r.get(o)??n(o,c),c),Reflect.set(s,o,c)}});bt(this,H,(t.hydrate?Rn:cr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&we(),bt(this,ne,i.$$events);for(const s of Object.keys(D(this,H)))s==="$set"||s==="$destroy"||s==="$on"||Me(this,s,{get(){return D(this,H)[s]},set(o){D(this,H)[s]=o},enumerable:!0});D(this,H).$set=s=>{Object.assign(i,s)},D(this,H).$destroy=()=>{An(D(this,H))}}$set(t){D(this,H).$set(t)}$on(t,r){D(this,ne)[t]=D(this,ne)[t]||[];const n=(...i)=>r.call(this,...i);return D(this,ne)[t].push(n),()=>{D(this,ne)[t]=D(this,ne)[t].filter(i=>i!==n)}}$destroy(){D(this,H).$destroy()}}ne=new WeakMap,H=new WeakMap;let pr;typeof HTMLElement=="function"&&(pr=class extends HTMLElement{constructor(t,r,n){super();U(this,"$$ctor");U(this,"$$s");U(this,"$$c");U(this,"$$cn",!1);U(this,"$$d",{});U(this,"$$r",!1);U(this,"$$p_d",{});U(this,"$$l",{});U(this,"$$l_u",new Map);U(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return l=>{const s=document.createElement("slot");i!=="default"&&(s.name=i),Xe(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Mn(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const l=this.$$g_p(i.name);l in this.$$d||(this.$$d[l]=Je(l,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Dn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=dn(()=>{pn(()=>{var i;this.$$r=!0;for(const l of Le(this.$$c)){if(!((i=this.$$p_d[l])!=null&&i.reflect))continue;this.$$d[l]=this.$$c[l];const s=Je(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const i in this.$$l)for(const l of this.$$l[i]){const s=this.$$c.$on(i,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Je(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Le(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Je(e,t,r,n){var l;const i=(l=r[e])==null?void 0:l.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Mn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function qn(e,t,r,n,i,l){let s=class extends pr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Le(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Le(t).forEach(o=>{Me(s.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){var v;c=Je(o,c,t),this.$$d[o]=c;var f=this.$$c;if(f){var a=(v=de(f,o))==null?void 0:v.get;a?f[o]=c:f.$set({[o]:c})}}})}),n.forEach(o=>{Me(s.prototype,o,{get(){var c;return(c=this.$$c)==null?void 0:c[o]}})}),e.element=s,s}function Fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ee={},yt,$r;function jn(){if($r)return yt;$r=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,c=`
2
- `,f="/",a="*",v="",u="comment",_="declaration";yt=function(h,E){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];E=E||{};var p=1,g=1;function N(y){var $=y.match(t);$&&(p+=$.length);var G=y.lastIndexOf(c);g=~G?y.length-G:g+y.length}function P(){var y={line:p,column:g};return function($){return $.position=new q(y),be(),$}}function q(y){this.start=y,this.end={line:p,column:g},this.source=E.source}q.prototype.content=h;function fe(y){var $=new Error(E.source+":"+p+":"+g+": "+y);if($.reason=y,$.filename=E.source,$.line=p,$.column=g,$.source=h,!E.silent)throw $}function V(y){var $=y.exec(h);if($){var G=$[0];return N(G),h=h.slice(G.length),$}}function be(){V(r)}function Ze(y){var $;for(y=y||[];$=Qe();)$!==!1&&y.push($);return y}function Qe(){var y=P();if(!(f!=h.charAt(0)||a!=h.charAt(1))){for(var $=2;v!=h.charAt($)&&(a!=h.charAt($)||f!=h.charAt($+1));)++$;if($+=2,v===h.charAt($-1))return fe("End of comment missing");var G=h.slice(2,$-2);return g+=2,N(G),h=h.slice($),g+=2,y({type:u,comment:G})}}function zn(){var y=P(),$=V(n);if($){if(Qe(),!V(i))return fe("property missing ':'");var G=V(l),Xn=y({type:_,property:d($[0].replace(e,v)),value:G?d(G[0].replace(e,v)):v});return V(s),Xn}}function Wn(){var y=[];Ze(y);for(var $;$=zn();)$!==!1&&(y.push($),Ze(y));return y}return be(),Wn()};function d(h){return h?h.replace(o,v):v}return yt}var gr;function Hn(){if(gr)return Ee;gr=1;var e=Ee&&Ee.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=r;var t=e(jn());function r(n,i){var l=null;if(!n||typeof n!="string")return l;var s=(0,t.default)(n),o=typeof i=="function";return s.forEach(function(c){if(c.type==="declaration"){var f=c.property,a=c.value;o?i(f,a,c):a&&(l=l||{},l[f]=a)}}),l}return Ee}var Yn=Hn();const mr=Fn(Yn),Bn=mr.default||mr;var Vn=fr('<div class="collection_item svelte-gh74cd" part="item"><div class="collection_item_image"><img part="image" class="svelte-gh74cd"></div> <div class="collection_item_text"><h3 part="title"> </h3> <p part="text"> </p></div></div>'),Gn=fr('<div id="collection_container" part="container" class="svelte-gh74cd"></div>');const Un={hash:"svelte-gh74cd",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-gh74cd {display:grid;justify-content:space-between;grid-gap:20px;}.collection_item.svelte-gh74cd {max-width:100%;}img.svelte-gh74cd {width:100%;height:100%;object-fit:cover;}'};function wr(e,t){lr(t,!0),kn(e,Un);let r=Ke(t,"id",7,""),n=Ke(t,"style"),i=Ke(t,"size"),l=Ke(t,"collection"),s=ft(0),o=ft(5),c=ft(z({}));_n(()=>{var _;if(n()&&C(c,z(Bn(n()))),typeof l()=="string")try{l(JSON.parse(l()))}catch(d){console.error("error parsing collection",d)}let u=0;if((_=l())!=null&&_.length&&l().forEach(d=>{d.index=u++}),i())typeof i()=="string"&&i(Number(i())),C(o,z(i()));else if(l()){const d=Math.round(O(s)/250);C(o,z(d<l().length?d:l().length))}else C(o,5)});var f=Tn(),a=Jr(f);{var v=u=>{var _=Gn();xn(_,21,l,d=>d.index,(d,h)=>{var E=Vn(),p=Re(E),g=Re(p);he(p);var N=jt(p,2),P=Re(N),q=Re(P,!0);he(P);var fe=jt(P,2),V=Re(fe,!0);he(fe),he(N),he(E),Zt(()=>{wt(g,"src",O(h).image),wt(g,"alt",O(h).title),or(q,O(h).title),or(V,O(h).text)}),Xe(d,E)}),he(_),Zt(()=>wt(_,"style",`grid-template-columns: repeat(${O(o)||5}, auto)`)),Xe(u,_)};On(a,u=>{var _;(_=l())!=null&&_.length&&u(v)})}return Pn("innerWidth",u=>C(s,z(u))),Xe(e,f),sr({get id(){return r()},set id(u=""){r(u),we()},get style(){return n()},set style(u){n(u),we()},get size(){return i()},set size(u){i(u),we()},get collection(){return l()},set collection(u){l(u),we()}})}customElements.define("hb-vertical-img-txt-archive",qn(wr,{id:{},style:{},size:{},collection:{}},[],[],!0)),T.Component=wr,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})})(this["vertical-img-txt-archive"]=this["vertical-img-txt-archive"]||{});
1
+ (function(Nt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const jr=1,qr=2,Yr=16,Hr=2,Ct="[",Qe="[!",et="]",we={},O=Symbol(),Ur="http://www.w3.org/1999/xhtml",kt=!1;var tt=Array.isArray,Vr=Array.prototype.indexOf,rt=Array.from,je=Object.keys,Ee=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,Br=Object.getOwnPropertyDescriptors,Gr=Object.prototype,Wr=Array.prototype,Pt=Object.getPrototypeOf,It=Object.isExtensible;function Mt(e){for(var t=0;t<e.length;t++)e[t]()}function Xr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const D=2,nt=4,it=8,be=16,Q=32,re=64,Dt=128,j=256,qe=512,C=1024,q=2048,ne=4096,V=8192,oe=16384,st=32768,lt=65536,Lt=1<<17,Kr=1<<18,Te=1<<19,zr=1<<20,ut=1<<21,ft=1<<22,ce=1<<23,at=Symbol("$state"),Jr=Symbol("legacy props"),Zr=Symbol(""),ot=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ft=3,Ie=8;function Qr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function en(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function tn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function rn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function nn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function sn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ln(){throw new Error("https://svelte.dev/e/hydration_failed")}function un(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function an(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ye(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let S=!1;function ee(e){S=e}let A;function B(e){if(e===null)throw Ye(),we;return A=e}function He(){return B(le(A))}function Se(e){if(S){if(le(A)!==null)throw Ye(),we;A=e}}function ct(){for(var e=0,t=A;;){if(t.nodeType===Ie){var r=t.data;if(r===et){if(e===0)return t;e-=1}else(r===Ct||r===Qe)&&(e+=1)}var n=le(t);t.remove(),t=n}}function jt(e){if(!e||e.nodeType!==Ie)throw Ye(),we;return e.data}function qt(e){return e===this.v}function on(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yt(e){return!on(e,this.v)}let cn=!1,G=null;function Ue(e){G=e}function Ht(e,t=!1,r){G={p:G,c:null,e:null,s:e,x:null,l:null}}function Ut(e){var t=G,r=t.e;if(r!==null){t.e=null;for(var n of r)fr(n)}return e!==void 0&&(t.x=e),G=t.p,e??{}}function Vt(){return!0}const vn=new WeakMap;function hn(e){var t=$;if(t===null)return w.f|=ce,e;if((t.f&st)===0){if((t.f&Dt)===0)throw!t.parent&&e instanceof Error&&Bt(e),e;t.b.error(e)}else vt(e,t)}function vt(e,t){for(;t!==null;){if((t.f&Dt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Bt(e),e}function Bt(e){const t=vn.get(e);t&&(Ee(e,"message",{value:t.message}),Ee(e,"stack",{value:t.stack}))}let ht=[],dt=[];function dn(){var e=ht;ht=[],Mt(e)}function _n(){var e=dt;dt=[],Mt(e)}function pn(){ht.length>0&&dn(),dt.length>0&&_n()}function gn(){const e=$.b;return e===null&&Qr(),e}function _t(e){var t=D|q,r=w!==null&&(w.f&D)!==0?w:null;return $===null||r!==null&&(r.f&j)!==0?t|=j:$.f|=Te,{ctx:G,deps:null,effects:null,equals:qt,f:t,fn:e,reactions:null,rv:0,v:O,wv:0,parent:r??$,ac:null}}function mn(e,t){let r=$;r===null&&en();var n=r.b,i=void 0,s=Me(O),l=null,f=!w;return Pn(()=>{try{var u=e();l&&Promise.resolve(u).catch(()=>{})}catch(h){u=Promise.reject(h)}var a=()=>u;i=l?.then(a,a)??Promise.resolve(u),l=i;var o=x,d=n.is_pending();f&&(n.update_pending_count(1),d||o.increment());const c=(h,v=void 0)=>{l=null,d||o.activate(),v?v!==ot&&(s.f|=ce,We(s,v)):((s.f&ce)!==0&&(s.f^=ce),We(s,h)),f&&(n.update_pending_count(-1),d||o.decrement()),Xt()};if(i.then(c,h=>c(null,h||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(u=>{function a(o){function d(){o===i?u(s):a(i)}o.then(d,d)}a(i)})}function $n(e){const t=_t(e);return t.equals=Yt,t}function Gt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)K(t[r])}}function wn(e){for(var t=e.parent;t!==null;){if((t.f&D)===0)return t;t=t.parent}return null}function pt(e){var t,r=$;ue(wn(e));try{Gt(e),t=yr(e)}finally{ue(r)}return t}function Wt(e){var t=pt(e);if(e.equals(t)||(e.v=t,e.wv=wr()),!_e){var r=(fe||(e.f&j)!==0)&&e.deps!==null?ne:C;I(e,r)}}function En(e,t,r){const n=_t;if(t.length===0){r(e.map(n));return}var i=x,s=$,l=yn(),f=gn();Promise.all(t.map(u=>mn(u))).then(u=>{i?.activate(),l();try{r([...e.map(n),...u])}catch(a){(s.f&oe)===0&&vt(a,s)}i?.deactivate(),Xt()}).catch(u=>{f.error(u)})}function yn(){var e=$,t=w,r=G,n=x;return function(){ue(e),z(t),Ue(r),n?.activate()}}function Xt(){ue(null),z(null),Ue(null)}const gt=new Set;let x=null,Kt=new Set,Ve=[];function zt(){const e=Ve.shift();Ve.length>0&&queueMicrotask(zt),e()}let ve=[],Be=null,mt=!1,Ge=!1;class he{current=new Map;#t=new Map;#e=new Set;#r=0;#a=null;#o=!1;#i=[];#l=[];#s=[];#n=[];#u=[];#c=[];#v=[];skipped_effects=new Set;process(t){ve=[];for(const i of t)this.#d(i);if(this.#i.length===0&&this.#r===0){this.#h();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#u=[],x=null,Zt(r),Zt(n),x===null?x=this:gt.delete(this),this.#a?.resolve()}else this.#f(this.#s),this.#f(this.#n),this.#f(this.#u);for(const i of this.#i)Ce(i);for(const i of this.#l)Ce(i);this.#i=[],this.#l=[]}#d(t){t.f^=C;for(var r=t.first;r!==null;){var n=r.f,i=(n&(Q|re))!==0,s=i&&(n&C)!==0,l=s||(n&V)!==0||this.skipped_effects.has(r);if(!l&&r.fn!==null){if(i)r.f^=C;else if((n&nt)!==0)this.#n.push(r);else if((n&C)===0)if((n&ft)!==0){var f=r.b?.is_pending()?this.#l:this.#i;f.push(r)}else Xe(r)&&((r.f&be)!==0&&this.#u.push(r),Ce(r));var u=r.first;if(u!==null){r=u;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)r=a.next,a=a.parent}}#f(t){for(const r of t)((r.f&q)!==0?this.#c:this.#v).push(r),I(r,C);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){x=this}deactivate(){x=null;for(const t of Kt)if(Kt.delete(t),t(),x!==null)break}neuter(){this.#o=!0}flush(){ve.length>0?Jt():this.#h(),x===this&&(this.#r===0&&gt.delete(this),this.deactivate())}#h(){if(!this.#o)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)I(t,q),Ae(t);for(const t of this.#v)I(t,ne),Ae(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#a??=Xr()).promise}static ensure(){if(x===null){const t=x=new he;gt.add(x),Ge||he.enqueue(()=>{x===t&&t.flush()})}return x}static enqueue(t){Ve.length===0&&queueMicrotask(zt),Ve.unshift(t)}}function $t(e){var t=Ge;Ge=!0;try{for(var r;;){if(pn(),ve.length===0&&(x?.flush(),ve.length===0))return Be=null,r;Jt()}}finally{Ge=t}}function Jt(){var e=Ne;mt=!0;try{var t=0;for(pr(!0);ve.length>0;){var r=he.ensure();if(t++>1e3){var n,i;bn()}r.process(ve),ie.clear()}}finally{mt=!1,pr(e),Be=null}}function bn(){try{sn()}catch(e){vt(e,Be)}}let de=null;function Zt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(oe|V))===0&&Xe(n)&&(de=[],Ce(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?hr(n):n.fn=null),de?.length>0)){ie.clear();for(const i of de)Ce(i);de=[]}}de=null}}function Ae(e){for(var t=Be=e;t.parent!==null;){t=t.parent;var r=t.f;if(mt&&t===$&&(r&be)!==0)return;if((r&(re|Q))!==0){if((r&C)===0)return;t.f^=C}}ve.push(t)}const ie=new Map;function Me(e,t){var r={f:0,v:e,reactions:null,equals:qt,rv:0,wv:0};return r}function W(e,t){const r=Me(e);return Ln(r),r}function Qt(e,t=!1,r=!0){const n=Me(e);return t||(n.equals=Yt),n}function Y(e,t,r=!1){w!==null&&(!pe||(w.f&Lt)!==0)&&Vt()&&(w.f&(D|be|ft|Lt))!==0&&!te?.includes(e)&&an();let n=r?Re(t):t;return We(e,n)}function We(e,t){if(!e.equals(t)){var r=e.v;_e?ie.set(e,t):ie.set(e,r),e.v=t;var n=he.ensure();n.capture(e,r),(e.f&D)!==0&&((e.f&q)!==0&&pt(e),I(e,(e.f&j)===0?C:ne)),e.wv=wr(),er(e,q),$!==null&&($.f&C)!==0&&($.f&(Q|re))===0&&(H===null?Fn([e]):H.push(e))}return t}function wt(e){Y(e,e.v+1)}function er(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],l=s.f,f=(l&q)===0;f&&I(s,t),(l&D)!==0?er(s,ne):f&&((l&be)!==0&&de!==null&&de.push(s),Ae(s))}}function Re(e){if(typeof e!="object"||e===null||at in e)return e;const t=Pt(e);if(t!==Gr&&t!==Wr)return e;var r=new Map,n=tt(e),i=W(0),s=ge,l=f=>{if(ge===s)return f();var u=w,a=ge;z(null),$r(s);var o=f();return z(u),$r(a),o};return n&&r.set("length",W(e.length)),new Proxy(e,{defineProperty(f,u,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&un();var o=r.get(u);return o===void 0?o=l(()=>{var d=W(a.value);return r.set(u,d),d}):Y(o,a.value,!0),!0},deleteProperty(f,u){var a=r.get(u);if(a===void 0){if(u in f){const o=l(()=>W(O));r.set(u,o),wt(i)}}else Y(a,O),wt(i);return!0},get(f,u,a){if(u===at)return e;var o=r.get(u),d=u in f;if(o===void 0&&(!d||ye(f,u)?.writable)&&(o=l(()=>{var h=Re(d?f[u]:O),v=W(h);return v}),r.set(u,o)),o!==void 0){var c=N(o);return c===O?void 0:c}return Reflect.get(f,u,a)},getOwnPropertyDescriptor(f,u){var a=Reflect.getOwnPropertyDescriptor(f,u);if(a&&"value"in a){var o=r.get(u);o&&(a.value=N(o))}else if(a===void 0){var d=r.get(u),c=d?.v;if(d!==void 0&&c!==O)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(f,u){if(u===at)return!0;var a=r.get(u),o=a!==void 0&&a.v!==O||Reflect.has(f,u);if(a!==void 0||$!==null&&(!o||ye(f,u)?.writable)){a===void 0&&(a=l(()=>{var c=o?Re(f[u]):O,h=W(c);return h}),r.set(u,a));var d=N(a);if(d===O)return!1}return o},set(f,u,a,o){var d=r.get(u),c=u in f;if(n&&u==="length")for(var h=a;h<d.v;h+=1){var v=r.get(h+"");v!==void 0?Y(v,O):h in f&&(v=l(()=>W(O)),r.set(h+"",v))}if(d===void 0)(!c||ye(f,u)?.writable)&&(d=l(()=>W(void 0)),Y(d,Re(a)),r.set(u,d));else{c=d.v!==O;var _=l(()=>Re(a));Y(d,_)}var p=Reflect.getOwnPropertyDescriptor(f,u);if(p?.set&&p.set.call(o,a),!c){if(n&&typeof u=="string"){var b=r.get("length"),m=Number(u);Number.isInteger(m)&&m>=b.v&&Y(b,m+1)}wt(i)}return!0},ownKeys(f){N(i);var u=Reflect.ownKeys(f).filter(d=>{var c=r.get(d);return c===void 0||c.v!==O});for(var[a,o]of r)o.v!==O&&!(a in f)&&u.push(a);return u},setPrototypeOf(){fn()}})}var tr,rr,nr,ir;function Et(){if(tr===void 0){tr=window,rr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;nr=ye(t,"firstChild").get,ir=ye(t,"nextSibling").get,It(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),It(r)&&(r.__t=void 0)}}function se(e=""){return document.createTextNode(e)}function xe(e){return nr.call(e)}function le(e){return ir.call(e)}function De(e,t){if(!S)return xe(e);var r=xe(A);if(r===null)r=A.appendChild(se());else if(t&&r.nodeType!==Ft){var n=se();return r?.before(n),B(n),n}return B(r),r}function Tn(e,t){if(!S){var r=xe(e);return r instanceof Comment&&r.data===""?le(r):r}return A}function sr(e,t=1,r=!1){let n=S?A:e;for(var i;t--;)i=n,n=le(n);if(!S)return n;if(r&&n?.nodeType!==Ft){var s=se();return n===null?i?.after(s):n.before(s),B(s),s}return B(n),n}function lr(e){e.textContent=""}function ur(){return!1}function Sn(e,t,r,n=!0){n&&r();for(var i of t)e.addEventListener(i,r);xn(()=>{for(var s of t)e.removeEventListener(s,r)})}function yt(e){var t=w,r=$;z(null),ue(null);try{return e()}finally{z(t),ue(r)}}function An(e){$===null&&w===null&&nn(),w!==null&&(w.f&j)!==0&&$===null&&rn(),_e&&tn()}function Rn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function X(e,t,r,n=!0){var i=$;i!==null&&(i.f&V)!==0&&(e|=V);var s={ctx:G,deps:null,nodes_start:null,nodes_end:null,f:e|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(r)try{Ce(s),s.f|=st}catch(u){throw K(s),u}else t!==null&&Ae(s);if(n){var l=s;if(r&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&Te)===0&&(l=l.first),l!==null&&(l.parent=i,i!==null&&Rn(l,i),w!==null&&(w.f&D)!==0&&(e&re)===0)){var f=w;(f.effects??=[]).push(l)}}return s}function xn(e){const t=X(it,null,!1);return I(t,C),t.teardown=e,t}function On(e){An();var t=$.f,r=!w&&(t&Q)!==0&&(t&st)===0;if(r){var n=G;(n.e??=[]).push(e)}else return fr(e)}function fr(e){return X(nt|zr,e,!1)}function Nn(e){he.ensure();const t=X(re|Te,e,!0);return()=>{K(t)}}function Cn(e){he.ensure();const t=X(re|Te,e,!0);return(r={})=>new Promise(n=>{r.outro?bt(t,()=>{K(t),n(void 0)}):(K(t),n(void 0))})}function kn(e){return X(nt,e,!1)}function Pn(e){return X(ft|Te,e,!0)}function In(e,t=0){return X(it|t,e,!0)}function ar(e,t=[],r=[]){En(t,r,n=>{X(it,()=>e(...n.map(N)),!0)})}function or(e,t=0){var r=X(be|t,e,!0);return r}function Oe(e,t=!0){return X(Q|Te,e,!0,t)}function cr(e){var t=e.teardown;if(t!==null){const r=_e,n=w;gr(!0),z(null);try{t.call(null)}finally{gr(r),z(n)}}}function vr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&yt(()=>{i.abort(ot)});var n=r.next;(r.f&re)!==0?r.parent=null:K(r,t),r=n}}function Mn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Q)===0&&K(t),t=r}}function K(e,t=!0){var r=!1;(t||(e.f&Kr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Dn(e.nodes_start,e.nodes_end),r=!0),vr(e,t&&!r),Ke(e,0),I(e,oe);var n=e.transitions;if(n!==null)for(const s of n)s.stop();cr(e);var i=e.parent;i!==null&&i.first!==null&&hr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Dn(e,t){for(;e!==null;){var r=e===t?null:le(e);e.remove(),e=r}}function hr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function bt(e,t){var r=[];Tt(e,r,!0),dr(r,()=>{K(e),t&&t()})}function dr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Tt(e,t,r){if((e.f&V)===0){if(e.f^=V,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&lt)!==0||(n.f&Q)!==0;Tt(n,t,s?r:!1),n=i}}}function St(e){_r(e,!0)}function _r(e,t){if((e.f&V)!==0){e.f^=V,(e.f&C)===0&&(I(e,q),Ae(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&lt)!==0||(r.f&Q)!==0;_r(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Ne=!1;function pr(e){Ne=e}let _e=!1;function gr(e){_e=e}let w=null,pe=!1;function z(e){w=e}let $=null;function ue(e){$=e}let te=null;function Ln(e){w!==null&&(te===null?te=[e]:te.push(e))}let P=null,L=0,H=null;function Fn(e){H=e}let mr=1,Le=0,ge=Le;function $r(e){ge=e}let fe=!1;function wr(){return++mr}function Xe(e){var t=e.f;if((t&q)!==0)return!0;if((t&ne)!==0){var r=e.deps,n=(t&j)!==0;if(r!==null){var i,s,l=(t&qe)!==0,f=n&&$!==null&&!fe,u=r.length;if((l||f)&&($===null||($.f&oe)===0)){var a=e,o=a.parent;for(i=0;i<u;i++)s=r[i],(l||!s?.reactions?.includes(a))&&(s.reactions??=[]).push(a);l&&(a.f^=qe),f&&o!==null&&(o.f&j)===0&&(a.f^=j)}for(i=0;i<u;i++)if(s=r[i],Xe(s)&&Wt(s),s.wv>e.wv)return!0}(!n||$!==null&&!fe)&&I(e,C)}return!1}function Er(e,t,r=!0){var n=e.reactions;if(n!==null&&!te?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&D)!==0?Er(s,t,!1):t===s&&(r?I(s,q):(s.f&C)!==0&&I(s,ne),Ae(s))}}function yr(e){var t=P,r=L,n=H,i=w,s=fe,l=te,f=G,u=pe,a=ge,o=e.f;P=null,L=0,H=null,fe=(o&j)!==0&&(pe||!Ne||w===null),w=(o&(Q|re))===0?e:null,te=null,Ue(e.ctx),pe=!1,ge=++Le,e.ac!==null&&(yt(()=>{e.ac.abort(ot)}),e.ac=null);try{e.f|=ut;var d=e.fn,c=d(),h=e.deps;if(P!==null){var v;if(Ke(e,L),h!==null&&L>0)for(h.length=L+P.length,v=0;v<P.length;v++)h[L+v]=P[v];else e.deps=h=P;if(!fe||(o&D)!==0&&e.reactions!==null)for(v=L;v<h.length;v++)(h[v].reactions??=[]).push(e)}else h!==null&&L<h.length&&(Ke(e,L),h.length=L);if(Vt()&&H!==null&&!pe&&h!==null&&(e.f&(D|ne|q))===0)for(v=0;v<H.length;v++)Er(H[v],e);return i!==null&&i!==e&&(Le++,H!==null&&(n===null?n=H:n.push(...H))),(e.f&ce)!==0&&(e.f^=ce),c}catch(_){return hn(_)}finally{e.f^=ut,P=t,L=r,H=n,w=i,fe=s,te=l,Ue(f),pe=u,ge=a}}function jn(e,t){let r=t.reactions;if(r!==null){var n=Vr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&D)!==0&&(P===null||!P.includes(t))&&(I(t,ne),(t.f&(j|qe))===0&&(t.f^=qe),Gt(t),Ke(t,0))}function Ke(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)jn(e,r[n])}function Ce(e){var t=e.f;if((t&oe)===0){I(e,C);var r=$,n=Ne;$=e,Ne=!0;try{(t&be)!==0?Mn(e):vr(e),cr(e);var i=yr(e);e.teardown=typeof i=="function"?i:null,e.wv=mr;var s;kt&&cn&&(e.f&q)!==0&&e.deps}finally{Ne=n,$=r}}}function N(e){var t=e.f,r=(t&D)!==0;if(w!==null&&!pe){var n=$!==null&&($.f&oe)!==0;if(!n&&!te?.includes(e)){var i=w.deps;if((w.f&ut)!==0)e.rv<Le&&(e.rv=Le,P===null&&i!==null&&i[L]===e?L++:P===null?P=[e]:(!fe||!P.includes(e))&&P.push(e));else{(w.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[w]:s.includes(w)||s.push(w)}}}else if(r&&e.deps===null&&e.effects===null){var l=e,f=l.parent;f!==null&&(f.f&j)===0&&(l.f^=j)}if(_e){if(ie.has(e))return ie.get(e);if(r){l=e;var u=l.v;return((l.f&C)===0&&l.reactions!==null||br(l))&&(u=pt(l)),ie.set(l,u),u}}else r&&(l=e,Xe(l)&&Wt(l));if((e.f&ce)!==0)throw e.v;return e.v}function br(e){if(e.v===O)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ie.has(t)||(t.f&D)!==0&&br(t))return!0;return!1}const qn=-7169;function I(e,t){e.f=e.f&qn|t}const Yn=new Set,Tr=new Set;let Sr=null;function ze(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Sr=e;var l=0,f=Sr===e&&e.__root;if(f){var u=i.indexOf(f);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;u<=a&&(l=u)}if(s=i[l]||e.target,s!==t){Ee(e,"currentTarget",{configurable:!0,get(){return s||r}});var o=w,d=$;z(null),ue(null);try{for(var c,h=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+n];if(_!=null&&(!s.disabled||e.target===s))if(tt(_)){var[p,...b]=_;p.apply(s,[e,...b])}else _.call(s,e)}catch(m){c?h.push(m):c=m}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let m of h)queueMicrotask(()=>{throw m});throw c}}finally{e.__root=t,delete e.currentTarget,z(o),ue(d)}}}function Hn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Fe(e,t){var r=$;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Ar(e,t){var r=(t&Hr)!==0,n,i=!e.startsWith("<!>");return()=>{if(S)return Fe(A,null),A;n===void 0&&(n=Hn(i?e:"<!>"+e),n=xe(n));var s=r||rr?document.importNode(n,!0):n.cloneNode(!0);return Fe(s,s),s}}function Un(){if(S)return Fe(A,null),A;var e=document.createDocumentFragment(),t=document.createComment(""),r=se();return e.append(t,r),Fe(t,r),e}function Je(e,t){if(S){$.nodes_end=A,He();return}e!==null&&e.before(t)}const Vn=["touchstart","touchmove"];function Bn(e){return Vn.includes(e)}function Rr(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xr(e,t){return Or(e,t)}function Gn(e,t){Et(),t.intro=t.intro??!1;const r=t.target,n=S,i=A;try{for(var s=xe(r);s&&(s.nodeType!==Ie||s.data!==Ct);)s=le(s);if(!s)throw we;ee(!0),B(s),He();const l=Or(e,{...t,anchor:s});if(A===null||A.nodeType!==Ie||A.data!==et)throw Ye(),we;return ee(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(f=>f.startsWith("https://svelte.dev/e/")))throw l;return l!==we&&console.warn("Failed to hydrate: ",l),t.recover===!1&&ln(),Et(),lr(r),ee(!1),xr(e,t)}finally{ee(n),B(i)}}const ke=new Map;function Or(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:l=!0}){Et();var f=new Set,u=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!f.has(h)){f.add(h);var v=Bn(h);t.addEventListener(h,ze,{passive:v});var _=ke.get(h);_===void 0?(document.addEventListener(h,ze,{passive:v}),ke.set(h,1)):ke.set(h,_+1)}}};u(rt(Yn)),Tr.add(u);var a=void 0,o=Cn(()=>{var d=r??t.appendChild(se());return Oe(()=>{if(s){Ht({});var c=G;c.c=s}i&&(n.$$events=i),S&&Fe(d,null),a=e(d,n)||{},S&&($.nodes_end=A),s&&Ut()}),()=>{for(var c of f){t.removeEventListener(c,ze);var h=ke.get(c);--h===0?(document.removeEventListener(c,ze),ke.delete(c)):ke.set(c,h)}Tr.delete(u),d!==r&&d.parentNode?.removeChild(d)}});return At.set(a,o),a}let At=new WeakMap;function Wn(e,t){const r=At.get(e);return r?(At.delete(e),r(t)):Promise.resolve()}function Xn(e,t,r=!1){S&&He();var n=e,i=null,s=null,l=O,f=r?lt:0,u=!1;const a=(h,v=!0)=>{u=!0,c(v,h)};var o=null;function d(){o!==null&&(o.lastChild.remove(),n.before(o),o=null);var h=l?i:s,v=l?s:i;h&&St(h),v&&bt(v,()=>{l?s=null:i=null})}const c=(h,v)=>{if(l===(l=h))return;let _=!1;if(S){const T=jt(n)===Qe;!!l===T&&(n=ct(),B(n),ee(!1),_=!0)}var p=ur(),b=n;if(p&&(o=document.createDocumentFragment(),o.append(b=se())),l?i??=v&&Oe(()=>v(b)):s??=v&&Oe(()=>v(b)),p){var m=x,E=l?i:s,R=l?s:i;E&&m.skipped_effects.delete(E),R&&m.skipped_effects.add(R),m.add_callback(d)}else d();_&&ee(!0)};or(()=>{u=!1,t(a),u||c(null,null)},f),S&&(n=A)}function Kn(e,t,r){for(var n=e.items,i=[],s=t.length,l=0;l<s;l++)Tt(t[l].e,i,!0);var f=s>0&&i.length===0&&r!==null;if(f){var u=r.parentNode;lr(u),u.append(r),n.clear(),J(e,t[0].prev,t[s-1].next)}dr(i,()=>{for(var a=0;a<s;a++){var o=t[a];f||(n.delete(o.k),J(e,o.prev,o.next)),K(o.e,!f)}})}function zn(e,t,r,n,i,s=null){var l=e,f={flags:t,items:new Map,first:null};{var u=e;l=S?B(xe(u)):u.appendChild(se())}S&&He();var a=null,o=!1,d=new Map,c=$n(()=>{var p=r();return tt(p)?p:p==null?[]:rt(p)}),h,v;function _(){Jn(v,h,f,d,l,i,t,n,r),s!==null&&(h.length===0?a?St(a):a=Oe(()=>s(l)):a!==null&&bt(a,()=>{a=null}))}or(()=>{v??=$,h=N(c);var p=h.length;if(o&&p===0)return;o=p===0;let b=!1;if(S){var m=jt(l)===Qe;m!==(p===0)&&(l=ct(),B(l),ee(!1),b=!0)}if(S){for(var E=null,R,T=0;T<p;T++){if(A.nodeType===Ie&&A.data===et){l=A,b=!0,ee(!1);break}var U=h[T],k=n(U,T);R=Rt(A,f,E,null,U,k,T,i,t,r),f.items.set(k,R),E=R}p>0&&B(ct())}if(S)p===0&&s&&(a=Oe(()=>s(l)));else if(ur()){var Z=new Set,M=x;for(T=0;T<p;T+=1){U=h[T],k=n(U,T);var ae=f.items.get(k)??d.get(k);ae?Nr(ae,U,T):(R=Rt(null,f,null,null,U,k,T,i,t,r,!0),d.set(k,R)),Z.add(k)}for(const[me,$e]of f.items)Z.has(me)||M.skipped_effects.add($e.e);M.add_callback(_)}else _();b&&ee(!0),N(c)}),S&&(l=A)}function Jn(e,t,r,n,i,s,l,f,u){var a=t.length,o=r.items,d=r.first,c=d,h,v=null,_=[],p=[],b,m,E,R;for(R=0;R<a;R+=1){if(b=t[R],m=f(b,R),E=o.get(m),E===void 0){var T=n.get(m);if(T!==void 0){n.delete(m),o.set(m,T);var U=v?v.next:c;J(r,v,T),J(r,T,U),xt(T,U,i),v=T}else{var k=c?c.e.nodes_start:i;v=Rt(k,r,v,v===null?r.first:v.next,b,m,R,s,l,u)}o.set(m,v),_=[],p=[],c=v.next;continue}if(Nr(E,b,R),(E.e.f&V)!==0&&St(E.e),E!==c){if(h!==void 0&&h.has(E)){if(_.length<p.length){var Z=p[0],M;v=Z.prev;var ae=_[0],me=_[_.length-1];for(M=0;M<_.length;M+=1)xt(_[M],Z,i);for(M=0;M<p.length;M+=1)h.delete(p[M]);J(r,ae.prev,me.next),J(r,v,ae),J(r,me,Z),c=Z,v=me,R-=1,_=[],p=[]}else h.delete(E),xt(E,c,i),J(r,E.prev,E.next),J(r,E,v===null?r.first:v.next),J(r,v,E),v=E;continue}for(_=[],p=[];c!==null&&c.k!==m;)(c.e.f&V)===0&&(h??=new Set).add(c),p.push(c),c=c.next;if(c===null)continue;E=c}_.push(E),v=E,c=E.next}if(c!==null||h!==void 0){for(var $e=h===void 0?[]:rt(h);c!==null;)(c.e.f&V)===0&&$e.push(c),c=c.next;var y=$e.length;if(y>0){var g=a===0?i:null;Kn(r,$e,g)}}e.first=r.first&&r.first.e,e.last=v&&v.e;for(var F of n.values())K(F.e);n.clear()}function Nr(e,t,r,n){We(e.v,t),e.i=r}function Rt(e,t,r,n,i,s,l,f,u,a,o){var d=(u&jr)!==0,c=(u&Yr)===0,h=d?c?Qt(i,!1,!1):Me(i):i,v=(u&qr)===0?l:Me(l),_={i:v,v:h,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var p=document.createDocumentFragment();p.append(e=se())}return _.e=Oe(()=>f(e,h,v,a),S),_.e.prev=r&&r.e,_.e.next=n&&n.e,r===null?o||(t.first=_):(r.next=_,r.e.next=_.e),n!==null&&(n.prev=_,n.e.prev=_.e),_}finally{}}function xt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var l=le(s);i.before(s),s=l}}function J(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Zn(e,t){kn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Qn(e,t){return e==null?null:String(e)}function ei(e,t,r,n){var i=e.__style;if(S||i!==t){var s=Qn(t);(!S||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const ti=Symbol("is custom element"),ri=Symbol("is html");function Cr(e,t,r,n){var i=ni(e);S&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Zr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ii(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ni(e){return e.__attributes??={[ti]:e.nodeName.includes("-"),[ri]:e.namespaceURI===Ur}}var kr=new Map;function ii(e){var t=e.getAttribute("is")||e.nodeName,r=kr.get(t);if(r)return r;kr.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Br(i);for(var l in n)n[l].set&&r.push(l);i=Pt(i)}return r}function si(e,t){Sn(window,["resize"],()=>yt(()=>t(window[e])))}function Pr(e,t,r,n){var i=n,s=!0,l=()=>(s&&(s=!1,i=n),i),f;f=e[t],f===void 0&&n!==void 0&&(f=l());var u;u=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var a=!1,o=_t(()=>(a=!1,u())),d=$;return(function(c,h){if(arguments.length>0){const v=h?N(o):c;return Y(o,v),a=!0,i!==void 0&&(i=v),c}return _e&&a||(d.f&oe)!==0?o.v:N(o)})}function li(e){return new ui(e)}class ui{#t;#e;constructor(t){var r=new Map,n=(s,l)=>{var f=Qt(l,!1,!1);return r.set(s,f),f};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return N(r.get(l)??n(l,Reflect.get(s,l)))},has(s,l){return l===Jr?!0:(N(r.get(l)??n(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,f){return Y(r.get(l)??n(l,f),f),Reflect.set(s,l,f)}});this.#e=(t.hydrate?Gn:xr)(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)&&$t(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ee(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=()=>{Wn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let Ir;typeof HTMLElement=="function"&&(Ir=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),Je(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=fi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Ze(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=li({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Nn(()=>{In(()=>{this.$$r=!0;for(const n of je(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ze(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ze(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return je(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ze(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function fi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ai(e,t,r,n,i,s){let l=class extends Ir{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return je(t).map(f=>(t[f].attribute||f).toLowerCase())}};return je(t).forEach(f=>{Ee(l.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(u){u=Ze(f,u,t),this.$$d[f]=u;var a=this.$$c;if(a){var o=ye(a,f)?.get;o?a[f]=u:a.$set({[f]:u})}}})}),n.forEach(f=>{Ee(l.prototype,f,{get(){return this.$$c?.[f]}})}),e.element=l,l}function oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe={},Ot,Mr;function ci(){if(Mr)return Ot;Mr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,f=/^\s+|\s+$/g,u=`
3
+ `,a="/",o="*",d="",c="comment",h="declaration";Ot=function(_,p){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];p=p||{};var b=1,m=1;function E(y){var g=y.match(t);g&&(b+=g.length);var F=y.lastIndexOf(u);m=~F?y.length-F:m+y.length}function R(){var y={line:b,column:m};return function(g){return g.position=new T(y),Z(),g}}function T(y){this.start=y,this.end={line:b,column:m},this.source=p.source}T.prototype.content=_;function U(y){var g=new Error(p.source+":"+b+":"+m+": "+y);if(g.reason=y,g.filename=p.source,g.line=b,g.column=m,g.source=_,!p.silent)throw g}function k(y){var g=y.exec(_);if(g){var F=g[0];return E(F),_=_.slice(F.length),g}}function Z(){k(r)}function M(y){var g;for(y=y||[];g=ae();)g!==!1&&y.push(g);return y}function ae(){var y=R();if(!(a!=_.charAt(0)||o!=_.charAt(1))){for(var g=2;d!=_.charAt(g)&&(o!=_.charAt(g)||a!=_.charAt(g+1));)++g;if(g+=2,d===_.charAt(g-1))return U("End of comment missing");var F=_.slice(2,g-2);return m+=2,E(F),_=_.slice(g),m+=2,y({type:c,comment:F})}}function me(){var y=R(),g=k(n);if(g){if(ae(),!k(i))return U("property missing ':'");var F=k(s),gi=y({type:h,property:v(g[0].replace(e,d)),value:F?v(F[0].replace(e,d)):d});return k(l),gi}}function $e(){var y=[];M(y);for(var g;g=me();)g!==!1&&(y.push(g),M(y));return y}return Z(),$e()};function v(_){return _?_.replace(f,d):d}return Ot}var Dr;function vi(){if(Dr)return Pe;Dr=1;var e=Pe&&Pe.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=r;var t=e(ci());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var l=(0,t.default)(n),f=typeof i=="function";return l.forEach(function(u){if(u.type==="declaration"){var a=u.property,o=u.value;f?i(a,o,u):o&&(s=s||{},s[a]=o)}}),s}return Pe}var hi=vi();const Lr=oi(hi);Lr.default;var di=Ar('<div class="collection_item svelte-gh74cd" part="item"><div class="collection_item_image"><img part="image" class="svelte-gh74cd"/></div> <div class="collection_item_text"><h3 part="title"> </h3> <p part="text"> </p></div></div>'),_i=Ar('<div id="collection_container" part="container" class="svelte-gh74cd"></div>');const pi={hash:"svelte-gh74cd",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-gh74cd {display:grid;justify-content:space-between;grid-gap:20px;}.collection_item.svelte-gh74cd {max-width:100%;}img.svelte-gh74cd {width:100%;height:100%;object-fit:cover;}'};function Fr(e,t){Ht(t,!0),Zn(e,pi);let r=Pr(t,"id",7,""),n=Pr(t,"collection"),i=W(0),s=W(5);Re({}),On(()=>{if(typeof n()=="string")try{n(JSON.parse(n()))}catch(d){console.error("error parsing collection",d)}let o=0;if(n()?.length&&n().forEach(d=>{d.index=o++}),n()){const d=Math.round(N(i)/250);Y(s,d<n().length?d:n().length,!0)}else Y(s,5)});var l={get id(){return r()},set id(o=""){r(o),$t()},get collection(){return n()},set collection(o){n(o),$t()}},f=Un(),u=Tn(f);{var a=o=>{var d=_i();zn(d,21,n,c=>c.index,(c,h)=>{var v=di(),_=De(v),p=De(_);Se(_);var b=sr(_,2),m=De(b),E=De(m,!0);Se(m);var R=sr(m,2),T=De(R,!0);Se(R),Se(b),Se(v),ar(()=>{Cr(p,"src",N(h).image),Cr(p,"alt",N(h).title),Rr(E,N(h).title),Rr(T,N(h).text)}),Je(c,v)}),Se(d),ar(()=>ei(d,`grid-template-columns: repeat(${N(s)||5}, auto)`)),Je(o,d)};Xn(u,o=>{n()?.length&&o(a)})}return si("innerWidth",o=>Y(i,o,!0)),Je(e,f),Ut(l)}customElements.define("hb-vertical-img-txt-archive",ai(Fr,{id:{},collection:{}},[],[],!0)),Nt.Component=Fr,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})})(this["vertical-img-txt-archive"]=this["vertical-img-txt-archive"]||{});
3
4
  //# sourceMappingURL=main.iife.js.map