@htmlbricks/hb-sidebar-cards-navigator 0.50.0-alpha.13 → 0.50.0-alpha.14

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
- var yi=Object.defineProperty;var Br=R=>{throw TypeError(R)};var bi=(R,S,x)=>S in R?yi(R,S,{enumerable:!0,configurable:!0,writable:!0,value:x}):R[S]=x;var Q=(R,S,x)=>bi(R,typeof S!="symbol"?S+"":S,x),Vr=(R,S,x)=>S.has(R)||Br("Cannot "+x);var q=(R,S,x)=>(Vr(R,S,"read from private field"),x?x.call(R):S.get(R)),kt=(R,S,x)=>S.has(R)?Br("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(R):S.set(R,x),Lt=(R,S,x,Ee)=>(Vr(R,S,"write to private field"),Ee?Ee.call(R,x):S.set(R,x),x);(function(R){"use strict";var oe,X;const S="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(S);const x=1,Ee=2,Dt=4,Gr=8,Ur=16,Wr=1,Xr=4,Kr=8,Jr=16,zr=1,Zr=2,lt="[",at="[!",ut="]",Re={},M=Symbol(),ft=!1,K=2,Mt=4,Me=8,ot=16,se=32,ye=64,je=128,V=256,qe=512,L=1024,le=2048,be=4096,ae=8192,Fe=16384,Qr=32768,ct=65536,jt=1<<19,qt=1<<20,He=Symbol("$state"),Ft=Symbol("legacy props"),en=Symbol("");var vt=Array.isArray,tn=Array.prototype.indexOf,_t=Array.from,Ye=Object.keys,Be=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,rn=Object.getOwnPropertyDescriptors,nn=Object.prototype,sn=Array.prototype,Ht=Object.getPrototypeOf;function ln(e){for(var t=0;t<e.length;t++)e[t]()}let Ve=!1,dt=[];function Yt(){Ve=!1;const e=dt.slice();dt=[],ln(e)}function ht(e){Ve||(Ve=!0,queueMicrotask(Yt)),dt.push(e)}function an(){Ve&&Yt()}function Bt(e){return e===this.v}function un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function $t(e){return!un(e,this.v)}function fn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function on(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function cn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function vn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function _n(){throw new Error("https://svelte.dev/e/hydration_failed")}function dn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function hn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $n(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pn(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let gn=!1;function G(e,t){var r={f:0,v:e,reactions:null,equals:Bt,rv:0,wv:0};return r}function Vt(e){return wn(G(e))}function pt(e,t=!1){const r=G(e);return t||(r.equals=$t),r}function wn(e){return O!==null&&!ee&&O.f&K&&(ne===null?An([e]):ne.push(e)),e}function F(e,t){return O!==null&&!ee&&Er()&&O.f&(K|ot)&&(ne===null||!ne.includes(e))&&mn(),mt(e,t)}function mt(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=lr(),Gt(e,le),N!==null&&N.f&L&&!(N.f&(se|ye))&&(ue===null?On([e]):ue.push(e))),t}function Gt(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var s=r[n],l=s.f;l&le||(ie(s,t),l&(L|V)&&(l&K?Gt(s,be):Ze(s)))}}function gt(e){var t=K|le,r=O!==null&&O.f&K?O:null;return N===null||r!==null&&r.f&V?t|=V:N.f|=qt,{ctx:B,deps:null,effects:null,equals:Bt,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??N}}function En(e){const t=gt(e);return t.equals=$t,t}function Ut(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)fe(t[r])}}function yn(e){for(var t=e.parent;t!==null;){if(!(t.f&K))return t;t=t.parent}return null}function bn(e){var t,r=N;re(yn(e));try{Ut(e),t=ur(e)}finally{re(r)}return t}function Wt(e){var t=bn(e),r=(de||e.f&V)&&e.deps!==null?be:L;ie(e,r),e.equals(t)||(e.v=t,e.wv=lr())}function wt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function H(e){b=e}let C;function U(e){if(e===null)throw wt(),Re;return C=e}function Ge(){return U(z(C))}function Ue(e){if(b){if(z(C)!==null)throw wt(),Re;C=e}}function Tn(e=1){if(b){for(var t=e,r=C;t--;)r=z(r);C=r}}function Et(){for(var e=0,t=C;;){if(t.nodeType===8){var r=t.data;if(r===ut){if(e===0)return t;e-=1}else(r===lt||r===at)&&(e+=1)}var i=z(t);t.remove(),t=i}}function J(e,t=null,r){if(typeof e!="object"||e===null||He in e)return e;const i=Ht(e);if(i!==nn&&i!==sn)return e;var n=new Map,s=vt(e),l=G(0);s&&n.set("length",G(e.length));var a;return new Proxy(e,{defineProperty(v,f,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&hn();var _=n.get(f);return _===void 0?(_=G(c.value),n.set(f,_)):F(_,J(c.value,a)),!0},deleteProperty(v,f){var c=n.get(f);if(c===void 0)f in v&&n.set(f,G(M));else{if(s&&typeof f=="string"){var _=n.get("length"),u=Number(f);Number.isInteger(u)&&u<_.v&&F(_,u)}F(c,M),Xt(l)}return!0},get(v,f,c){var d;if(f===He)return e;var _=n.get(f),u=f in v;if(_===void 0&&(!u||(d=pe(v,f))!=null&&d.writable)&&(_=G(J(u?v[f]:M,a)),n.set(f,_)),_!==void 0){var o=y(_);return o===M?void 0:o}return Reflect.get(v,f,c)},getOwnPropertyDescriptor(v,f){var c=Reflect.getOwnPropertyDescriptor(v,f);if(c&&"value"in c){var _=n.get(f);_&&(c.value=y(_))}else if(c===void 0){var u=n.get(f),o=u==null?void 0:u.v;if(u!==void 0&&o!==M)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return c},has(v,f){var o;if(f===He)return!0;var c=n.get(f),_=c!==void 0&&c.v!==M||Reflect.has(v,f);if(c!==void 0||N!==null&&(!_||(o=pe(v,f))!=null&&o.writable)){c===void 0&&(c=G(_?J(v[f],a):M),n.set(f,c));var u=y(c);if(u===M)return!1}return _},set(v,f,c,_){var g;var u=n.get(f),o=f in v;if(s&&f==="length")for(var d=c;d<u.v;d+=1){var h=n.get(d+"");h!==void 0?F(h,M):d in v&&(h=G(M),n.set(d+"",h))}u===void 0?(!o||(g=pe(v,f))!=null&&g.writable)&&(u=G(void 0),F(u,J(c,a)),n.set(f,u)):(o=u.v!==M,F(u,J(c,a)));var m=Reflect.getOwnPropertyDescriptor(v,f);if(m!=null&&m.set&&m.set.call(_,c),!o){if(s&&typeof f=="string"){var A=n.get("length"),p=Number(f);Number.isInteger(p)&&p>=A.v&&F(A,p+1)}Xt(l)}return!0},ownKeys(v){y(l);var f=Reflect.ownKeys(v).filter(u=>{var o=n.get(u);return o===void 0||o.v!==M});for(var[c,_]of n)_.v!==M&&!(c in v)&&f.push(c);return f},setPrototypeOf(){$n()}})}function Xt(e,t=1){F(e,e.v+t)}var Kt,Jt,zt,Zt;function yt(){if(Kt===void 0){Kt=window,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;zt=pe(t,"firstChild").get,Zt=pe(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 Se(e=""){return document.createTextNode(e)}function _e(e){return zt.call(e)}function z(e){return Zt.call(e)}function bt(e,t){if(!b)return _e(e);var r=_e(C);return r===null&&(r=C.appendChild(Se())),U(r),r}function Qt(e,t){if(!b){var r=_e(e);return r instanceof Comment&&r.data===""?z(r):r}return C}function er(e,t=1,r=!1){let i=b?C:e;for(var n;t--;)n=i,i=z(i);if(!b)return i;var s=i==null?void 0:i.nodeType;if(r&&s!==3){var l=Se();return i===null?n==null||n.after(l):i.before(l),U(l),l}return U(i),i}function tr(e){e.textContent=""}const rr=0,Nn=1;let We=!1,Xe=rr,Ie=!1,Pe=null,Te=!1,Tt=!1;function nr(e){Te=e}function ir(e){Tt=e}let me=[],Ne=0,Ti=[],O=null,ee=!1;function te(e){O=e}let N=null;function re(e){N=e}let ne=null;function An(e){ne=e}let D=null,Y=0,ue=null;function On(e){ue=e}let sr=1,Ke=0,de=!1;function lr(){return++sr}function xe(e){var _;var t=e.f;if(t&le)return!0;if(t&be){var r=e.deps,i=(t&V)!==0;if(r!==null){var n,s,l=(t&qe)!==0,a=i&&N!==null&&!de,v=r.length;if(l||a){var f=e,c=f.parent;for(n=0;n<v;n++)s=r[n],(l||!((_=s==null?void 0:s.reactions)!=null&&_.includes(f)))&&(s.reactions??(s.reactions=[])).push(f);l&&(f.f^=qe),a&&c!==null&&!(c.f&V)&&(f.f^=V)}for(n=0;n<v;n++)if(s=r[n],xe(s)&&Wt(s),s.wv>e.wv)return!0}(!i||N!==null&&!de)&&ie(e,L)}return!1}function Cn(e,t){for(var r=t;r!==null;){if(r.f&je)try{r.fn(e);return}catch{r.f^=je}r=r.parent}throw We=!1,e}function Rn(e){return(e.f&Fe)===0&&(e.parent===null||(e.parent.f&je)===0)}function Je(e,t,r,i){if(We){if(r===null&&(We=!1),Rn(t))throw e;return}r!==null&&(We=!0);{Cn(e,t);return}}function ar(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var s=i[n];s.f&K?ar(s,t,!1):t===s&&(r?ie(s,le):s.f&L&&ie(s,be),Ze(s))}}function ur(e){var o;var t=D,r=Y,i=ue,n=O,s=de,l=ne,a=B,v=ee,f=e.f;D=null,Y=0,ue=null,O=f&(se|ye)?null:e,de=(f&V)!==0&&(!Te||n===null||v),ne=null,mr(e.ctx),ee=!1,Ke++;try{var c=(0,e.fn)(),_=e.deps;if(D!==null){var u;if(ze(e,Y),_!==null&&Y>0)for(_.length=Y+D.length,u=0;u<D.length;u++)_[Y+u]=D[u];else e.deps=_=D;if(!de)for(u=Y;u<_.length;u++)((o=_[u]).reactions??(o.reactions=[])).push(e)}else _!==null&&Y<_.length&&(ze(e,Y),_.length=Y);if(Er()&&ue!==null&&!ee&&_!==null&&!(e.f&(K|be|le)))for(u=0;u<ue.length;u++)ar(ue[u],e);return n!==null&&Ke++,c}finally{D=t,Y=r,ue=i,O=n,de=s,ne=l,mr(a),ee=v}}function Sn(e,t){let r=t.reactions;if(r!==null){var i=tn.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&K&&(D===null||!D.includes(t))&&(ie(t,be),t.f&(V|qe)||(t.f^=qe),Ut(t),ze(t,0))}function ze(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Sn(e,r[i])}function Nt(e){var t=e.f;if(!(t&Fe)){ie(e,L);var r=N,i=B;N=e;try{t&ot?Yn(e):dr(e),_r(e);var n=ur(e);e.teardown=typeof n=="function"?n:null,e.wv=sr;var s=e.deps,l;ft&&gn&&e.f&le}catch(a){Je(a,e,r,i||e.ctx)}finally{N=r}}}function fr(){if(Ne>1e3){Ne=0;try{vn()}catch(e){if(Pe!==null)Je(e,Pe,null);else throw e}}Ne++}function or(e){var t=e.length;if(t!==0){fr();var r=Te;Te=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&L||(n.f^=L);var s=xn(n);In(s)}}finally{Te=r}}}function In(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(Fe|ae)))try{xe(i)&&(Nt(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?hr(i):i.fn=null))}catch(n){Je(n,i,null,i.ctx)}}}function Pn(){if(Ie=!1,Ne>1001)return;const e=me;me=[],or(e),Ie||(Ne=0,Pe=null)}function Ze(e){Xe===rr&&(Ie||(Ie=!0,queueMicrotask(Pn))),Pe=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ye|se)){if(!(r&L))return;t.f^=L}}me.push(t)}function xn(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&se)!==0,s=n&&(i&L)!==0,l=r.next;if(!s&&!(i&ae)){if(i&Mt)t.push(r);else if(n)r.f^=L;else{var a=O;try{O=r,xe(r)&&Nt(r)}catch(c){Je(c,r,null,r.ctx)}finally{O=a}}var v=r.first;if(v!==null){r=v;continue}}if(l===null){let c=r.parent;for(;c!==null;){if(e===c)break e;var f=c.next;if(f!==null){r=f;continue e}c=c.parent}}r=l}return t}function ke(e){var t=Xe,r=me;try{fr();const n=[];Xe=Nn,me=n,Ie=!1,or(r);var i=e==null?void 0:e();return an(),(me.length>0||n.length>0)&&ke(),Ne=0,Pe=null,i}finally{Xe=t,me=r}}function y(e){var t=e.f,r=(t&K)!==0;if(O!==null&&!ee){ne!==null&&ne.includes(e)&&pn();var i=O.deps;e.rv<Ke&&(e.rv=Ke,D===null&&i!==null&&i[Y]===e?Y++:D===null?D=[e]:(!de||!D.includes(e))&&D.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,s=n.parent;s!==null&&!(s.f&V)&&(n.f^=V)}return r&&(n=e,xe(n)&&Wt(n)),e.v}function cr(e){var t=ee;try{return ee=!0,e()}finally{ee=t}}const kn=-7169;function ie(e,t){e.f=e.f&kn|t}function Ln(e){N===null&&O===null&&cn(),O!==null&&O.f&V&&N===null&&on(),Tt&&fn()}function Dn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ge(e,t,r,i=!0){var n=(e&ye)!==0,s=N,l={ctx:B,deps:null,nodes_start:null,nodes_end:null,f:e|le,first:null,fn:t,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var a=Te;try{nr(!0),Nt(l),l.f|=Qr}catch(c){throw fe(l),c}finally{nr(a)}}else t!==null&&Ze(l);var v=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(qt|je))===0;if(!v&&!n&&i&&(s!==null&&Dn(l,s),O!==null&&O.f&K)){var f=O;(f.effects??(f.effects=[])).push(l)}return l}function Mn(e){const t=ge(Me,null,!1);return ie(t,L),t.teardown=e,t}function jn(e){Ln();var t=N!==null&&(N.f&se)!==0&&B!==null&&!B.m;if(t){var r=B;(r.e??(r.e=[])).push({fn:e,effect:N,reaction:O})}else{var i=vr(e);return i}}function qn(e){const t=ge(ye,e,!0);return()=>{fe(t)}}function Fn(e){const t=ge(ye,e,!0);return(r={})=>new Promise(i=>{r.outro?et(t,()=>{fe(t),i(void 0)}):(fe(t),i(void 0))})}function vr(e){return ge(Mt,e,!1)}function Hn(e){return ge(Me,e,!0)}function At(e,t=[],r=gt){const i=t.map(r);return Qe(()=>e(...i.map(y)))}function Qe(e,t=0){return ge(Me|ot|t,e,!0)}function Le(e,t=!0){return ge(Me|se,e,!0,t)}function _r(e){var t=e.teardown;if(t!==null){const r=Tt,i=O;ir(!0),te(null);try{t.call(null)}finally{ir(r),te(i)}}}function dr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;fe(r,t),r=i}}function Yn(e){for(var t=e.first;t!==null;){var r=t.next;t.f&se||fe(t),t=r}}function fe(e,t=!0){var r=!1;if((t||e.f&jt)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var s=i===n?null:z(i);i.remove(),i=s}r=!0}dr(e,t&&!r),ze(e,0),ie(e,Fe);var l=e.transitions;if(l!==null)for(const v of l)v.stop();_r(e);var a=e.parent;a!==null&&a.first!==null&&hr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function hr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function et(e,t){var r=[];Ot(e,r,!0),$r(r,()=>{fe(e),t&&t()})}function $r(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function Ot(e,t,r){if(!(e.f&ae)){if(e.f^=ae,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var n=i.next,s=(i.f&ct)!==0||(i.f&se)!==0;Ot(i,t,s?r:!1),i=n}}}function tt(e){pr(e,!0)}function pr(e,t){if(e.f&ae){e.f^=ae,e.f&L||(e.f^=L),xe(e)&&(ie(e,le),Ze(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&ct)!==0||(r.f&se)!==0;pr(r,n?t:!1),r=i}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let B=null;function mr(e){B=e}function gr(e,t=!1,r){B={p:B,c:null,e:null,m:!1,s:e,x:null,l:null}}function wr(e){const t=B;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var r=N,i=O;t.e=null;try{for(var n=0;n<l.length;n++){var s=l[n];re(s.effect),te(s.reaction),vr(s.fn)}}finally{re(r),te(i)}}B=t.p,t.m=!0}return e||{}}function Er(){return!0}const Bn=["touchstart","touchmove"];function Vn(e){return Bn.includes(e)}function Gn(e){var t=O,r=N;te(null),re(null);try{return e()}finally{te(t),re(r)}}const Un=new Set,yr=new Set;function Wn(e,t,r,i={}){function n(s){if(i.capture||De.call(t,s),!s.cancelBubble)return Gn(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ht(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function br(e,t,r,i,n){var s={capture:i,passive:n},l=Wn(e,t,r,s);(t===document.body||t===window||t===document)&&Mn(()=>{t.removeEventListener(e,l,s)})}function De(e){var p;var t=this,r=t.ownerDocument,i=e.type,n=((p=e.composedPath)==null?void 0:p.call(e))||[],s=n[0]||e.target,l=0,a=e.__root;if(a){var v=n.indexOf(a);if(v!==-1&&(t===document||t===window)){e.__root=t;return}var f=n.indexOf(t);if(f===-1)return;v<=f&&(l=v)}if(s=n[l]||e.target,s!==t){Be(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=O,_=N;te(null),re(null);try{for(var u,o=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var h=s["__"+i];if(h!==void 0&&!s.disabled)if(vt(h)){var[m,...A]=h;m.apply(s,[e,...A])}else h.call(s,e)}catch(g){u?o.push(g):u=g}if(e.cancelBubble||d===t||d===null)break;s=d}if(u){for(let g of o)queueMicrotask(()=>{throw g});throw u}}finally{e.__root=t,delete e.currentTarget,te(c),re(_)}}}let W;function Xn(){W=void 0}function Kn(e){let t=null,r=b;var i;if(b){for(t=C,W===void 0&&(W=_e(document.head));W!==null&&(W.nodeType!==8||W.data!==lt);)W=z(W);W===null?H(!1):W=U(z(W))}b||(i=document.head.appendChild(Se()));try{Qe(()=>e(i),jt)}finally{r&&(H(!0),W=C,U(t))}}function Jn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function rt(e,t){var r=N;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Ae(e,t){var r=(t&zr)!==0,i=(t&Zr)!==0,n,s=!e.startsWith("<!>");return()=>{if(b)return rt(C,null),C;n===void 0&&(n=Jn(s?e:"<!>"+e),r||(n=_e(n)));var l=i||Jt?document.importNode(n,!0):n.cloneNode(!0);if(r){var a=_e(l),v=l.lastChild;rt(a,v)}else rt(l,l);return l}}function we(e,t){if(b){N.nodes_end=C,Ge();return}e!==null&&e.before(t)}function Tr(e,t){return Nr(e,t)}function zn(e,t){yt(),t.intro=t.intro??!1;const r=t.target,i=b,n=C;try{for(var s=_e(r);s&&(s.nodeType!==8||s.data!==lt);)s=z(s);if(!s)throw Re;H(!0),U(s),Ge();const l=Nr(e,{...t,anchor:s});if(C===null||C.nodeType!==8||C.data!==ut)throw wt(),Re;return H(!1),l}catch(l){if(l===Re)return t.recover===!1&&_n(),yt(),tr(r),H(!1),Tr(e,t);throw l}finally{H(i),U(n),Xn()}}const Oe=new Map;function Nr(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:l=!0}){yt();var a=new Set,v=_=>{for(var u=0;u<_.length;u++){var o=_[u];if(!a.has(o)){a.add(o);var d=Vn(o);t.addEventListener(o,De,{passive:d});var h=Oe.get(o);h===void 0?(document.addEventListener(o,De,{passive:d}),Oe.set(o,1)):Oe.set(o,h+1)}}};v(_t(Un)),yr.add(v);var f=void 0,c=Fn(()=>{var _=r??t.appendChild(Se());return Le(()=>{if(s){gr({});var u=B;u.c=s}n&&(i.$$events=n),b&&rt(_,null),f=e(_,i)||{},b&&(N.nodes_end=C),s&&wr()}),()=>{var d;for(var u of a){t.removeEventListener(u,De);var o=Oe.get(u);--o===0?(document.removeEventListener(u,De),Oe.delete(u)):Oe.set(u,o)}yr.delete(v),_!==r&&((d=_.parentNode)==null||d.removeChild(_))}});return Ct.set(f,c),f}let Ct=new WeakMap;function Zn(e,t){const r=Ct.get(e);return r?(Ct.delete(e),r(t)):Promise.resolve()}function Ar(e,t,r=!1){b&&Ge();var i=e,n=null,s=null,l=M,a=r?ct:0,v=!1;const f=(_,u=!0)=>{v=!0,c(u,_)},c=(_,u)=>{if(l===(l=_))return;let o=!1;if(b){const d=i.data===at;!!l===d&&(i=Et(),U(i),H(!1),o=!0)}l?(n?tt(n):u&&(n=Le(()=>u(i))),s&&et(s,()=>{s=null})):(s?tt(s):u&&(s=Le(()=>u(i))),n&&et(n,()=>{n=null})),o&&H(!0)};Qe(()=>{v=!1,t(f),v||c(null,null)},a),b&&(i=C)}function Qn(e,t,r,i){for(var n=[],s=t.length,l=0;l<s;l++)Ot(t[l].e,n,!0);var a=s>0&&n.length===0&&r!==null;if(a){var v=r.parentNode;tr(v),v.append(r),i.clear(),he(e,t[0].prev,t[s-1].next)}$r(n,()=>{for(var f=0;f<s;f++){var c=t[f];a||(i.delete(c.k),he(e,c.prev,c.next)),fe(c.e,!a)}})}function Or(e,t,r,i,n,s=null){var l=e,a={items:new Map,first:null},v=(t&Dt)!==0;if(v){var f=e;l=b?U(_e(f)):f.appendChild(Se())}b&&Ge();var c=null,_=!1,u=En(()=>{var o=r();return vt(o)?o:o==null?[]:_t(o)});Qe(()=>{var o=y(u),d=o.length;if(_&&d===0)return;_=d===0;let h=!1;if(b){var m=l.data===at;m!==(d===0)&&(l=Et(),U(l),H(!1),h=!0)}if(b){for(var A=null,p,g=0;g<d;g++){if(C.nodeType===8&&C.data===ut){l=C,h=!0,H(!1);break}var $=o[g],E=i($,g);p=Cr(C,a,A,null,$,E,g,n,t,r),a.items.set(E,p),A=p}d>0&&U(Et())}b||ei(o,a,l,n,t,i,r),s!==null&&(d===0?c?tt(c):c=Le(()=>s(l)):c!==null&&et(c,()=>{c=null})),h&&H(!0),y(u)}),b&&(l=C)}function ei(e,t,r,i,n,s,l){var w,j,st,Hr;var a=(n&Gr)!==0,v=(n&(x|Ee))!==0,f=e.length,c=t.items,_=t.first,u=_,o,d=null,h,m=[],A=[],p,g,$,E;if(a)for(E=0;E<f;E+=1)p=e[E],g=s(p,E),$=c.get(g),$!==void 0&&((w=$.a)==null||w.measure(),(h??(h=new Set)).add($));for(E=0;E<f;E+=1){if(p=e[E],g=s(p,E),$=c.get(g),$===void 0){var I=u?u.e.nodes_start:r;d=Cr(I,t,d,d===null?t.first:d.next,p,g,E,i,n,l),c.set(g,d),m=[],A=[],u=d.next;continue}if(v&&ti($,p,E,n),$.e.f&ae&&(tt($.e),a&&((j=$.a)==null||j.unfix(),(h??(h=new Set)).delete($))),$!==u){if(o!==void 0&&o.has($)){if(m.length<A.length){var P=A[0],k;d=P.prev;var ce=m[0],ve=m[m.length-1];for(k=0;k<m.length;k+=1)Rr(m[k],P,r);for(k=0;k<A.length;k+=1)o.delete(A[k]);he(t,ce.prev,ve.next),he(t,d,ce),he(t,ve,P),u=P,d=ve,E-=1,m=[],A=[]}else o.delete($),Rr($,u,r),he(t,$.prev,$.next),he(t,$,d===null?t.first:d.next),he(t,d,$),d=$;continue}for(m=[],A=[];u!==null&&u.k!==g;)u.e.f&ae||(o??(o=new Set)).add(u),A.push(u),u=u.next;if(u===null)continue;$=u}m.push($),d=$,u=$.next}if(u!==null||o!==void 0){for(var Z=o===void 0?[]:_t(o);u!==null;)u.e.f&ae||Z.push(u),u=u.next;var $e=Z.length;if($e>0){var T=n&Dt&&f===0?r:null;if(a){for(E=0;E<$e;E+=1)(st=Z[E].a)==null||st.measure();for(E=0;E<$e;E+=1)(Hr=Z[E].a)==null||Hr.fix()}Qn(t,Z,T,c)}}a&&ht(()=>{var Yr;if(h!==void 0)for($ of h)(Yr=$.a)==null||Yr.apply()}),N.first=t.first&&t.first.e,N.last=d&&d.e}function ti(e,t,r,i){i&x&&mt(e.v,t),i&Ee?mt(e.i,r):e.i=r}function Cr(e,t,r,i,n,s,l,a,v,f){var c=(v&x)!==0,_=(v&Ur)===0,u=c?_?pt(n):G(n):n,o=v&Ee?G(l):l,d={i:o,v:u,k:s,a:null,e:null,prev:r,next:i};try{return d.e=Le(()=>a(e,u,o,f),b),d.e.prev=r&&r.e,d.e.next=i&&i.e,r===null?t.first=d:(r.next=d,r.e.next=d.e),i!==null&&(i.prev=d,i.e.prev=d.e),d}finally{}}function Rr(e,t,r){for(var i=e.next?e.next.e.nodes_start:r,n=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==i;){var l=z(s);n.before(s),s=l}}function he(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 ri(e,t){ht(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function Sr(e,t,r,i){var n=e.__attributes??(e.__attributes={});b&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[en]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Pr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ir(e,t,r){var i=O,n=N;let s=b;b&&H(!1),te(null),re(null);try{(Rt.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Pr(e).includes(t):r&&typeof r=="object")?e[t]=r:Sr(e,t,r==null?r:String(r))}finally{te(i),re(n),s&&H(!0)}}var Rt=new Map;function Pr(e){var t=Rt.get(e.nodeName);if(t)return t;Rt.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=rn(i);for(var s in r)r[s].set&&t.push(s);i=Ht(i)}return t}function ni(e,t,r){var i=e.__className,n=ii(t);b&&e.className===n?e.__className=n:(i!==n||b&&e.className!==n)&&(t==null?e.removeAttribute("class"):e.className=n,e.__className=n)}function ii(e,t){return(e??"")+""}let nt=!1;function si(e){var t=nt;try{return nt=!1,[e(),nt]}finally{nt=t}}function St(e,t,r,i){var E;var n=(r&Wr)!==0,s=!0,l=(r&Kr)!==0,a=(r&Jr)!==0,v=!1,f;l?[f,v]=si(()=>e[t]):f=e[t];var c=He in e||Ft in e,_=l&&(((E=pe(e,t))==null?void 0:E.set)??(c&&t in e&&(I=>e[t]=I)))||void 0,u=i,o=!0,d=!1,h=()=>(d=!0,o&&(o=!1,a?u=cr(i):u=i),u);f===void 0&&i!==void 0&&(_&&s&&dn(),f=h(),_&&_(f));var m;if(m=()=>{var I=e[t];return I===void 0?h():(o=!0,d=!1,I)},!(r&Xr))return m;if(_){var A=e.$$legacy;return function(I,P){return arguments.length>0?((!P||A||v)&&_(P?m():I),I):m()}}var p=!1,g=pt(f),$=gt(()=>{var I=m(),P=y(g);return p?(p=!1,P):g.v=I});return n||($.equals=$t),function(I,P){if(arguments.length>0){const k=P?y($):l?J(I):I;return $.equals(k)||(p=!0,F(g,k),d&&u!==void 0&&(u=k),cr(()=>y($))),I}return y($)}}function li(e){return new ai(e)}class ai{constructor(t){kt(this,oe);kt(this,X);var s;var r=new Map,i=(l,a)=>{var v=pt(a);return r.set(l,v),v};const n=new Proxy({...t.props||{},$$events:{}},{get(l,a){return y(r.get(a)??i(a,Reflect.get(l,a)))},has(l,a){return a===Ft?!0:(y(r.get(a)??i(a,Reflect.get(l,a))),Reflect.has(l,a))},set(l,a,v){return F(r.get(a)??i(a,v),v),Reflect.set(l,a,v)}});Lt(this,X,(t.hydrate?zn:Tr)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&ke(),Lt(this,oe,n.$$events);for(const l of Object.keys(q(this,X)))l==="$set"||l==="$destroy"||l==="$on"||Be(this,l,{get(){return q(this,X)[l]},set(a){q(this,X)[l]=a},enumerable:!0});q(this,X).$set=l=>{Object.assign(n,l)},q(this,X).$destroy=()=>{Zn(q(this,X))}}$set(t){q(this,X).$set(t)}$on(t,r){q(this,oe)[t]=q(this,oe)[t]||[];const i=(...n)=>r.call(this,...n);return q(this,oe)[t].push(i),()=>{q(this,oe)[t]=q(this,oe)[t].filter(n=>n!==i)}}$destroy(){q(this,X).$destroy()}}oe=new WeakMap,X=new WeakMap;let xr;typeof HTMLElement=="function"&&(xr=class extends HTMLElement{constructor(t,r,i){super();Q(this,"$$ctor");Q(this,"$$s");Q(this,"$$c");Q(this,"$$cn",!1);Q(this,"$$d",{});Q(this,"$$r",!1);Q(this,"$$p_d",{});Q(this,"$$l",{});Q(this,"$$l_u",new Map);Q(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const l=document.createElement("slot");n!=="default"&&(l.name=n),we(s,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=ui(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=it(s,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:r,$$host:this}}),this.$$me=qn(()=>{Hn(()=>{var n;this.$$r=!0;for(const s of Ye(this.$$c)){if(!((n=this.$$p_d[s])!=null&&n.reflect))continue;this.$$d[s]=this.$$c[s];const l=it(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const l=this.$$c.$on(n,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=it(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$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 Ye(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function it(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ui(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function fi(e,t,r,i,n,s){let l=class extends xr{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ye(t).forEach(a=>{Be(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(v){var _;v=it(a,v,t),this.$$d[a]=v;var f=this.$$c;if(f){var c=(_=pe(f,a))==null?void 0:_.get;c?f[a]=v:f.$set({[a]:v})}}})}),i.forEach(a=>{Be(l.prototype,a,{get(){var v;return(v=this.$$c)==null?void 0:v[a]}})}),e.element=l,l}const kr={version:"0.50.0-alpha.13"};function oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ce={},It,Lr;function ci(){if(Lr)return It;Lr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,v=`
1
+ var yi=Object.defineProperty;var Br=R=>{throw TypeError(R)};var bi=(R,S,x)=>S in R?yi(R,S,{enumerable:!0,configurable:!0,writable:!0,value:x}):R[S]=x;var Q=(R,S,x)=>bi(R,typeof S!="symbol"?S+"":S,x),Vr=(R,S,x)=>S.has(R)||Br("Cannot "+x);var q=(R,S,x)=>(Vr(R,S,"read from private field"),x?x.call(R):S.get(R)),kt=(R,S,x)=>S.has(R)?Br("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(R):S.set(R,x),Lt=(R,S,x,Ee)=>(Vr(R,S,"write to private field"),Ee?Ee.call(R,x):S.set(R,x),x);(function(R){"use strict";var oe,X;const S="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(S);const x=1,Ee=2,Dt=4,Gr=8,Ur=16,Wr=1,Xr=4,Kr=8,Jr=16,zr=1,Zr=2,lt="[",at="[!",ut="]",Re={},M=Symbol(),ft=!1,K=2,Mt=4,Me=8,ot=16,se=32,ye=64,je=128,V=256,qe=512,L=1024,le=2048,be=4096,ae=8192,Fe=16384,Qr=32768,ct=65536,jt=1<<19,qt=1<<20,He=Symbol("$state"),Ft=Symbol("legacy props"),en=Symbol("");var vt=Array.isArray,tn=Array.prototype.indexOf,_t=Array.from,Ye=Object.keys,Be=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,rn=Object.getOwnPropertyDescriptors,nn=Object.prototype,sn=Array.prototype,Ht=Object.getPrototypeOf;function ln(e){for(var t=0;t<e.length;t++)e[t]()}let Ve=!1,dt=[];function Yt(){Ve=!1;const e=dt.slice();dt=[],ln(e)}function ht(e){Ve||(Ve=!0,queueMicrotask(Yt)),dt.push(e)}function an(){Ve&&Yt()}function Bt(e){return e===this.v}function un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function $t(e){return!un(e,this.v)}function fn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function on(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function cn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function vn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function _n(){throw new Error("https://svelte.dev/e/hydration_failed")}function dn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function hn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $n(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pn(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let gn=!1;function G(e,t){var r={f:0,v:e,reactions:null,equals:Bt,rv:0,wv:0};return r}function Vt(e){return wn(G(e))}function pt(e,t=!1){const r=G(e);return t||(r.equals=$t),r}function wn(e){return O!==null&&!ee&&O.f&K&&(ne===null?An([e]):ne.push(e)),e}function F(e,t){return O!==null&&!ee&&Er()&&O.f&(K|ot)&&(ne===null||!ne.includes(e))&&mn(),mt(e,t)}function mt(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=lr(),Gt(e,le),N!==null&&N.f&L&&!(N.f&(se|ye))&&(ue===null?On([e]):ue.push(e))),t}function Gt(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var s=r[n],l=s.f;l&le||(ie(s,t),l&(L|V)&&(l&K?Gt(s,be):Ze(s)))}}function gt(e){var t=K|le,r=O!==null&&O.f&K?O:null;return N===null||r!==null&&r.f&V?t|=V:N.f|=qt,{ctx:B,deps:null,effects:null,equals:Bt,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??N}}function En(e){const t=gt(e);return t.equals=$t,t}function Ut(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)fe(t[r])}}function yn(e){for(var t=e.parent;t!==null;){if(!(t.f&K))return t;t=t.parent}return null}function bn(e){var t,r=N;re(yn(e));try{Ut(e),t=ur(e)}finally{re(r)}return t}function Wt(e){var t=bn(e),r=(de||e.f&V)&&e.deps!==null?be:L;ie(e,r),e.equals(t)||(e.v=t,e.wv=lr())}function wt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function H(e){b=e}let C;function U(e){if(e===null)throw wt(),Re;return C=e}function Ge(){return U(z(C))}function Ue(e){if(b){if(z(C)!==null)throw wt(),Re;C=e}}function Tn(e=1){if(b){for(var t=e,r=C;t--;)r=z(r);C=r}}function Et(){for(var e=0,t=C;;){if(t.nodeType===8){var r=t.data;if(r===ut){if(e===0)return t;e-=1}else(r===lt||r===at)&&(e+=1)}var i=z(t);t.remove(),t=i}}function J(e,t=null,r){if(typeof e!="object"||e===null||He in e)return e;const i=Ht(e);if(i!==nn&&i!==sn)return e;var n=new Map,s=vt(e),l=G(0);s&&n.set("length",G(e.length));var a;return new Proxy(e,{defineProperty(v,f,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&hn();var _=n.get(f);return _===void 0?(_=G(c.value),n.set(f,_)):F(_,J(c.value,a)),!0},deleteProperty(v,f){var c=n.get(f);if(c===void 0)f in v&&n.set(f,G(M));else{if(s&&typeof f=="string"){var _=n.get("length"),u=Number(f);Number.isInteger(u)&&u<_.v&&F(_,u)}F(c,M),Xt(l)}return!0},get(v,f,c){var d;if(f===He)return e;var _=n.get(f),u=f in v;if(_===void 0&&(!u||(d=pe(v,f))!=null&&d.writable)&&(_=G(J(u?v[f]:M,a)),n.set(f,_)),_!==void 0){var o=y(_);return o===M?void 0:o}return Reflect.get(v,f,c)},getOwnPropertyDescriptor(v,f){var c=Reflect.getOwnPropertyDescriptor(v,f);if(c&&"value"in c){var _=n.get(f);_&&(c.value=y(_))}else if(c===void 0){var u=n.get(f),o=u==null?void 0:u.v;if(u!==void 0&&o!==M)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return c},has(v,f){var o;if(f===He)return!0;var c=n.get(f),_=c!==void 0&&c.v!==M||Reflect.has(v,f);if(c!==void 0||N!==null&&(!_||(o=pe(v,f))!=null&&o.writable)){c===void 0&&(c=G(_?J(v[f],a):M),n.set(f,c));var u=y(c);if(u===M)return!1}return _},set(v,f,c,_){var g;var u=n.get(f),o=f in v;if(s&&f==="length")for(var d=c;d<u.v;d+=1){var h=n.get(d+"");h!==void 0?F(h,M):d in v&&(h=G(M),n.set(d+"",h))}u===void 0?(!o||(g=pe(v,f))!=null&&g.writable)&&(u=G(void 0),F(u,J(c,a)),n.set(f,u)):(o=u.v!==M,F(u,J(c,a)));var m=Reflect.getOwnPropertyDescriptor(v,f);if(m!=null&&m.set&&m.set.call(_,c),!o){if(s&&typeof f=="string"){var A=n.get("length"),p=Number(f);Number.isInteger(p)&&p>=A.v&&F(A,p+1)}Xt(l)}return!0},ownKeys(v){y(l);var f=Reflect.ownKeys(v).filter(u=>{var o=n.get(u);return o===void 0||o.v!==M});for(var[c,_]of n)_.v!==M&&!(c in v)&&f.push(c);return f},setPrototypeOf(){$n()}})}function Xt(e,t=1){F(e,e.v+t)}var Kt,Jt,zt,Zt;function yt(){if(Kt===void 0){Kt=window,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;zt=pe(t,"firstChild").get,Zt=pe(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 Se(e=""){return document.createTextNode(e)}function _e(e){return zt.call(e)}function z(e){return Zt.call(e)}function bt(e,t){if(!b)return _e(e);var r=_e(C);return r===null&&(r=C.appendChild(Se())),U(r),r}function Qt(e,t){if(!b){var r=_e(e);return r instanceof Comment&&r.data===""?z(r):r}return C}function er(e,t=1,r=!1){let i=b?C:e;for(var n;t--;)n=i,i=z(i);if(!b)return i;var s=i==null?void 0:i.nodeType;if(r&&s!==3){var l=Se();return i===null?n==null||n.after(l):i.before(l),U(l),l}return U(i),i}function tr(e){e.textContent=""}const rr=0,Nn=1;let We=!1,Xe=rr,Ie=!1,Pe=null,Te=!1,Tt=!1;function nr(e){Te=e}function ir(e){Tt=e}let me=[],Ne=0,Ti=[],O=null,ee=!1;function te(e){O=e}let N=null;function re(e){N=e}let ne=null;function An(e){ne=e}let D=null,Y=0,ue=null;function On(e){ue=e}let sr=1,Ke=0,de=!1;function lr(){return++sr}function xe(e){var _;var t=e.f;if(t&le)return!0;if(t&be){var r=e.deps,i=(t&V)!==0;if(r!==null){var n,s,l=(t&qe)!==0,a=i&&N!==null&&!de,v=r.length;if(l||a){var f=e,c=f.parent;for(n=0;n<v;n++)s=r[n],(l||!((_=s==null?void 0:s.reactions)!=null&&_.includes(f)))&&(s.reactions??(s.reactions=[])).push(f);l&&(f.f^=qe),a&&c!==null&&!(c.f&V)&&(f.f^=V)}for(n=0;n<v;n++)if(s=r[n],xe(s)&&Wt(s),s.wv>e.wv)return!0}(!i||N!==null&&!de)&&ie(e,L)}return!1}function Cn(e,t){for(var r=t;r!==null;){if(r.f&je)try{r.fn(e);return}catch{r.f^=je}r=r.parent}throw We=!1,e}function Rn(e){return(e.f&Fe)===0&&(e.parent===null||(e.parent.f&je)===0)}function Je(e,t,r,i){if(We){if(r===null&&(We=!1),Rn(t))throw e;return}r!==null&&(We=!0);{Cn(e,t);return}}function ar(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var s=i[n];s.f&K?ar(s,t,!1):t===s&&(r?ie(s,le):s.f&L&&ie(s,be),Ze(s))}}function ur(e){var o;var t=D,r=Y,i=ue,n=O,s=de,l=ne,a=B,v=ee,f=e.f;D=null,Y=0,ue=null,O=f&(se|ye)?null:e,de=(f&V)!==0&&(!Te||n===null||v),ne=null,mr(e.ctx),ee=!1,Ke++;try{var c=(0,e.fn)(),_=e.deps;if(D!==null){var u;if(ze(e,Y),_!==null&&Y>0)for(_.length=Y+D.length,u=0;u<D.length;u++)_[Y+u]=D[u];else e.deps=_=D;if(!de)for(u=Y;u<_.length;u++)((o=_[u]).reactions??(o.reactions=[])).push(e)}else _!==null&&Y<_.length&&(ze(e,Y),_.length=Y);if(Er()&&ue!==null&&!ee&&_!==null&&!(e.f&(K|be|le)))for(u=0;u<ue.length;u++)ar(ue[u],e);return n!==null&&Ke++,c}finally{D=t,Y=r,ue=i,O=n,de=s,ne=l,mr(a),ee=v}}function Sn(e,t){let r=t.reactions;if(r!==null){var i=tn.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&K&&(D===null||!D.includes(t))&&(ie(t,be),t.f&(V|qe)||(t.f^=qe),Ut(t),ze(t,0))}function ze(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Sn(e,r[i])}function Nt(e){var t=e.f;if(!(t&Fe)){ie(e,L);var r=N,i=B;N=e;try{t&ot?Yn(e):dr(e),_r(e);var n=ur(e);e.teardown=typeof n=="function"?n:null,e.wv=sr;var s=e.deps,l;ft&&gn&&e.f&le}catch(a){Je(a,e,r,i||e.ctx)}finally{N=r}}}function fr(){if(Ne>1e3){Ne=0;try{vn()}catch(e){if(Pe!==null)Je(e,Pe,null);else throw e}}Ne++}function or(e){var t=e.length;if(t!==0){fr();var r=Te;Te=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&L||(n.f^=L);var s=xn(n);In(s)}}finally{Te=r}}}function In(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(Fe|ae)))try{xe(i)&&(Nt(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?hr(i):i.fn=null))}catch(n){Je(n,i,null,i.ctx)}}}function Pn(){if(Ie=!1,Ne>1001)return;const e=me;me=[],or(e),Ie||(Ne=0,Pe=null)}function Ze(e){Xe===rr&&(Ie||(Ie=!0,queueMicrotask(Pn))),Pe=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ye|se)){if(!(r&L))return;t.f^=L}}me.push(t)}function xn(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&se)!==0,s=n&&(i&L)!==0,l=r.next;if(!s&&!(i&ae)){if(i&Mt)t.push(r);else if(n)r.f^=L;else{var a=O;try{O=r,xe(r)&&Nt(r)}catch(c){Je(c,r,null,r.ctx)}finally{O=a}}var v=r.first;if(v!==null){r=v;continue}}if(l===null){let c=r.parent;for(;c!==null;){if(e===c)break e;var f=c.next;if(f!==null){r=f;continue e}c=c.parent}}r=l}return t}function ke(e){var t=Xe,r=me;try{fr();const n=[];Xe=Nn,me=n,Ie=!1,or(r);var i=e==null?void 0:e();return an(),(me.length>0||n.length>0)&&ke(),Ne=0,Pe=null,i}finally{Xe=t,me=r}}function y(e){var t=e.f,r=(t&K)!==0;if(O!==null&&!ee){ne!==null&&ne.includes(e)&&pn();var i=O.deps;e.rv<Ke&&(e.rv=Ke,D===null&&i!==null&&i[Y]===e?Y++:D===null?D=[e]:(!de||!D.includes(e))&&D.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,s=n.parent;s!==null&&!(s.f&V)&&(n.f^=V)}return r&&(n=e,xe(n)&&Wt(n)),e.v}function cr(e){var t=ee;try{return ee=!0,e()}finally{ee=t}}const kn=-7169;function ie(e,t){e.f=e.f&kn|t}function Ln(e){N===null&&O===null&&cn(),O!==null&&O.f&V&&N===null&&on(),Tt&&fn()}function Dn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ge(e,t,r,i=!0){var n=(e&ye)!==0,s=N,l={ctx:B,deps:null,nodes_start:null,nodes_end:null,f:e|le,first:null,fn:t,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var a=Te;try{nr(!0),Nt(l),l.f|=Qr}catch(c){throw fe(l),c}finally{nr(a)}}else t!==null&&Ze(l);var v=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(qt|je))===0;if(!v&&!n&&i&&(s!==null&&Dn(l,s),O!==null&&O.f&K)){var f=O;(f.effects??(f.effects=[])).push(l)}return l}function Mn(e){const t=ge(Me,null,!1);return ie(t,L),t.teardown=e,t}function jn(e){Ln();var t=N!==null&&(N.f&se)!==0&&B!==null&&!B.m;if(t){var r=B;(r.e??(r.e=[])).push({fn:e,effect:N,reaction:O})}else{var i=vr(e);return i}}function qn(e){const t=ge(ye,e,!0);return()=>{fe(t)}}function Fn(e){const t=ge(ye,e,!0);return(r={})=>new Promise(i=>{r.outro?et(t,()=>{fe(t),i(void 0)}):(fe(t),i(void 0))})}function vr(e){return ge(Mt,e,!1)}function Hn(e){return ge(Me,e,!0)}function At(e,t=[],r=gt){const i=t.map(r);return Qe(()=>e(...i.map(y)))}function Qe(e,t=0){return ge(Me|ot|t,e,!0)}function Le(e,t=!0){return ge(Me|se,e,!0,t)}function _r(e){var t=e.teardown;if(t!==null){const r=Tt,i=O;ir(!0),te(null);try{t.call(null)}finally{ir(r),te(i)}}}function dr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;fe(r,t),r=i}}function Yn(e){for(var t=e.first;t!==null;){var r=t.next;t.f&se||fe(t),t=r}}function fe(e,t=!0){var r=!1;if((t||e.f&jt)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var s=i===n?null:z(i);i.remove(),i=s}r=!0}dr(e,t&&!r),ze(e,0),ie(e,Fe);var l=e.transitions;if(l!==null)for(const v of l)v.stop();_r(e);var a=e.parent;a!==null&&a.first!==null&&hr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function hr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function et(e,t){var r=[];Ot(e,r,!0),$r(r,()=>{fe(e),t&&t()})}function $r(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function Ot(e,t,r){if(!(e.f&ae)){if(e.f^=ae,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var n=i.next,s=(i.f&ct)!==0||(i.f&se)!==0;Ot(i,t,s?r:!1),i=n}}}function tt(e){pr(e,!0)}function pr(e,t){if(e.f&ae){e.f^=ae,e.f&L||(e.f^=L),xe(e)&&(ie(e,le),Ze(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&ct)!==0||(r.f&se)!==0;pr(r,n?t:!1),r=i}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let B=null;function mr(e){B=e}function gr(e,t=!1,r){B={p:B,c:null,e:null,m:!1,s:e,x:null,l:null}}function wr(e){const t=B;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var r=N,i=O;t.e=null;try{for(var n=0;n<l.length;n++){var s=l[n];re(s.effect),te(s.reaction),vr(s.fn)}}finally{re(r),te(i)}}B=t.p,t.m=!0}return e||{}}function Er(){return!0}const Bn=["touchstart","touchmove"];function Vn(e){return Bn.includes(e)}function Gn(e){var t=O,r=N;te(null),re(null);try{return e()}finally{te(t),re(r)}}const Un=new Set,yr=new Set;function Wn(e,t,r,i={}){function n(s){if(i.capture||De.call(t,s),!s.cancelBubble)return Gn(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ht(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function br(e,t,r,i,n){var s={capture:i,passive:n},l=Wn(e,t,r,s);(t===document.body||t===window||t===document)&&Mn(()=>{t.removeEventListener(e,l,s)})}function De(e){var p;var t=this,r=t.ownerDocument,i=e.type,n=((p=e.composedPath)==null?void 0:p.call(e))||[],s=n[0]||e.target,l=0,a=e.__root;if(a){var v=n.indexOf(a);if(v!==-1&&(t===document||t===window)){e.__root=t;return}var f=n.indexOf(t);if(f===-1)return;v<=f&&(l=v)}if(s=n[l]||e.target,s!==t){Be(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=O,_=N;te(null),re(null);try{for(var u,o=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var h=s["__"+i];if(h!==void 0&&!s.disabled)if(vt(h)){var[m,...A]=h;m.apply(s,[e,...A])}else h.call(s,e)}catch(g){u?o.push(g):u=g}if(e.cancelBubble||d===t||d===null)break;s=d}if(u){for(let g of o)queueMicrotask(()=>{throw g});throw u}}finally{e.__root=t,delete e.currentTarget,te(c),re(_)}}}let W;function Xn(){W=void 0}function Kn(e){let t=null,r=b;var i;if(b){for(t=C,W===void 0&&(W=_e(document.head));W!==null&&(W.nodeType!==8||W.data!==lt);)W=z(W);W===null?H(!1):W=U(z(W))}b||(i=document.head.appendChild(Se()));try{Qe(()=>e(i),jt)}finally{r&&(H(!0),W=C,U(t))}}function Jn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function rt(e,t){var r=N;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Ae(e,t){var r=(t&zr)!==0,i=(t&Zr)!==0,n,s=!e.startsWith("<!>");return()=>{if(b)return rt(C,null),C;n===void 0&&(n=Jn(s?e:"<!>"+e),r||(n=_e(n)));var l=i||Jt?document.importNode(n,!0):n.cloneNode(!0);if(r){var a=_e(l),v=l.lastChild;rt(a,v)}else rt(l,l);return l}}function we(e,t){if(b){N.nodes_end=C,Ge();return}e!==null&&e.before(t)}function Tr(e,t){return Nr(e,t)}function zn(e,t){yt(),t.intro=t.intro??!1;const r=t.target,i=b,n=C;try{for(var s=_e(r);s&&(s.nodeType!==8||s.data!==lt);)s=z(s);if(!s)throw Re;H(!0),U(s),Ge();const l=Nr(e,{...t,anchor:s});if(C===null||C.nodeType!==8||C.data!==ut)throw wt(),Re;return H(!1),l}catch(l){if(l===Re)return t.recover===!1&&_n(),yt(),tr(r),H(!1),Tr(e,t);throw l}finally{H(i),U(n),Xn()}}const Oe=new Map;function Nr(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:l=!0}){yt();var a=new Set,v=_=>{for(var u=0;u<_.length;u++){var o=_[u];if(!a.has(o)){a.add(o);var d=Vn(o);t.addEventListener(o,De,{passive:d});var h=Oe.get(o);h===void 0?(document.addEventListener(o,De,{passive:d}),Oe.set(o,1)):Oe.set(o,h+1)}}};v(_t(Un)),yr.add(v);var f=void 0,c=Fn(()=>{var _=r??t.appendChild(Se());return Le(()=>{if(s){gr({});var u=B;u.c=s}n&&(i.$$events=n),b&&rt(_,null),f=e(_,i)||{},b&&(N.nodes_end=C),s&&wr()}),()=>{var d;for(var u of a){t.removeEventListener(u,De);var o=Oe.get(u);--o===0?(document.removeEventListener(u,De),Oe.delete(u)):Oe.set(u,o)}yr.delete(v),_!==r&&((d=_.parentNode)==null||d.removeChild(_))}});return Ct.set(f,c),f}let Ct=new WeakMap;function Zn(e,t){const r=Ct.get(e);return r?(Ct.delete(e),r(t)):Promise.resolve()}function Ar(e,t,r=!1){b&&Ge();var i=e,n=null,s=null,l=M,a=r?ct:0,v=!1;const f=(_,u=!0)=>{v=!0,c(u,_)},c=(_,u)=>{if(l===(l=_))return;let o=!1;if(b){const d=i.data===at;!!l===d&&(i=Et(),U(i),H(!1),o=!0)}l?(n?tt(n):u&&(n=Le(()=>u(i))),s&&et(s,()=>{s=null})):(s?tt(s):u&&(s=Le(()=>u(i))),n&&et(n,()=>{n=null})),o&&H(!0)};Qe(()=>{v=!1,t(f),v||c(null,null)},a),b&&(i=C)}function Qn(e,t,r,i){for(var n=[],s=t.length,l=0;l<s;l++)Ot(t[l].e,n,!0);var a=s>0&&n.length===0&&r!==null;if(a){var v=r.parentNode;tr(v),v.append(r),i.clear(),he(e,t[0].prev,t[s-1].next)}$r(n,()=>{for(var f=0;f<s;f++){var c=t[f];a||(i.delete(c.k),he(e,c.prev,c.next)),fe(c.e,!a)}})}function Or(e,t,r,i,n,s=null){var l=e,a={items:new Map,first:null},v=(t&Dt)!==0;if(v){var f=e;l=b?U(_e(f)):f.appendChild(Se())}b&&Ge();var c=null,_=!1,u=En(()=>{var o=r();return vt(o)?o:o==null?[]:_t(o)});Qe(()=>{var o=y(u),d=o.length;if(_&&d===0)return;_=d===0;let h=!1;if(b){var m=l.data===at;m!==(d===0)&&(l=Et(),U(l),H(!1),h=!0)}if(b){for(var A=null,p,g=0;g<d;g++){if(C.nodeType===8&&C.data===ut){l=C,h=!0,H(!1);break}var $=o[g],E=i($,g);p=Cr(C,a,A,null,$,E,g,n,t,r),a.items.set(E,p),A=p}d>0&&U(Et())}b||ei(o,a,l,n,t,i,r),s!==null&&(d===0?c?tt(c):c=Le(()=>s(l)):c!==null&&et(c,()=>{c=null})),h&&H(!0),y(u)}),b&&(l=C)}function ei(e,t,r,i,n,s,l){var w,j,st,Hr;var a=(n&Gr)!==0,v=(n&(x|Ee))!==0,f=e.length,c=t.items,_=t.first,u=_,o,d=null,h,m=[],A=[],p,g,$,E;if(a)for(E=0;E<f;E+=1)p=e[E],g=s(p,E),$=c.get(g),$!==void 0&&((w=$.a)==null||w.measure(),(h??(h=new Set)).add($));for(E=0;E<f;E+=1){if(p=e[E],g=s(p,E),$=c.get(g),$===void 0){var I=u?u.e.nodes_start:r;d=Cr(I,t,d,d===null?t.first:d.next,p,g,E,i,n,l),c.set(g,d),m=[],A=[],u=d.next;continue}if(v&&ti($,p,E,n),$.e.f&ae&&(tt($.e),a&&((j=$.a)==null||j.unfix(),(h??(h=new Set)).delete($))),$!==u){if(o!==void 0&&o.has($)){if(m.length<A.length){var P=A[0],k;d=P.prev;var ce=m[0],ve=m[m.length-1];for(k=0;k<m.length;k+=1)Rr(m[k],P,r);for(k=0;k<A.length;k+=1)o.delete(A[k]);he(t,ce.prev,ve.next),he(t,d,ce),he(t,ve,P),u=P,d=ve,E-=1,m=[],A=[]}else o.delete($),Rr($,u,r),he(t,$.prev,$.next),he(t,$,d===null?t.first:d.next),he(t,d,$),d=$;continue}for(m=[],A=[];u!==null&&u.k!==g;)u.e.f&ae||(o??(o=new Set)).add(u),A.push(u),u=u.next;if(u===null)continue;$=u}m.push($),d=$,u=$.next}if(u!==null||o!==void 0){for(var Z=o===void 0?[]:_t(o);u!==null;)u.e.f&ae||Z.push(u),u=u.next;var $e=Z.length;if($e>0){var T=n&Dt&&f===0?r:null;if(a){for(E=0;E<$e;E+=1)(st=Z[E].a)==null||st.measure();for(E=0;E<$e;E+=1)(Hr=Z[E].a)==null||Hr.fix()}Qn(t,Z,T,c)}}a&&ht(()=>{var Yr;if(h!==void 0)for($ of h)(Yr=$.a)==null||Yr.apply()}),N.first=t.first&&t.first.e,N.last=d&&d.e}function ti(e,t,r,i){i&x&&mt(e.v,t),i&Ee?mt(e.i,r):e.i=r}function Cr(e,t,r,i,n,s,l,a,v,f){var c=(v&x)!==0,_=(v&Ur)===0,u=c?_?pt(n):G(n):n,o=v&Ee?G(l):l,d={i:o,v:u,k:s,a:null,e:null,prev:r,next:i};try{return d.e=Le(()=>a(e,u,o,f),b),d.e.prev=r&&r.e,d.e.next=i&&i.e,r===null?t.first=d:(r.next=d,r.e.next=d.e),i!==null&&(i.prev=d,i.e.prev=d.e),d}finally{}}function Rr(e,t,r){for(var i=e.next?e.next.e.nodes_start:r,n=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==i;){var l=z(s);n.before(s),s=l}}function he(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 ri(e,t){ht(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function Sr(e,t,r,i){var n=e.__attributes??(e.__attributes={});b&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[en]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Pr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ir(e,t,r){var i=O,n=N;let s=b;b&&H(!1),te(null),re(null);try{(Rt.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Pr(e).includes(t):r&&typeof r=="object")?e[t]=r:Sr(e,t,r==null?r:String(r))}finally{te(i),re(n),s&&H(!0)}}var Rt=new Map;function Pr(e){var t=Rt.get(e.nodeName);if(t)return t;Rt.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=rn(i);for(var s in r)r[s].set&&t.push(s);i=Ht(i)}return t}function ni(e,t,r){var i=e.__className,n=ii(t);b&&e.className===n?e.__className=n:(i!==n||b&&e.className!==n)&&(t==null?e.removeAttribute("class"):e.className=n,e.__className=n)}function ii(e,t){return(e??"")+""}let nt=!1;function si(e){var t=nt;try{return nt=!1,[e(),nt]}finally{nt=t}}function St(e,t,r,i){var E;var n=(r&Wr)!==0,s=!0,l=(r&Kr)!==0,a=(r&Jr)!==0,v=!1,f;l?[f,v]=si(()=>e[t]):f=e[t];var c=He in e||Ft in e,_=l&&(((E=pe(e,t))==null?void 0:E.set)??(c&&t in e&&(I=>e[t]=I)))||void 0,u=i,o=!0,d=!1,h=()=>(d=!0,o&&(o=!1,a?u=cr(i):u=i),u);f===void 0&&i!==void 0&&(_&&s&&dn(),f=h(),_&&_(f));var m;if(m=()=>{var I=e[t];return I===void 0?h():(o=!0,d=!1,I)},!(r&Xr))return m;if(_){var A=e.$$legacy;return function(I,P){return arguments.length>0?((!P||A||v)&&_(P?m():I),I):m()}}var p=!1,g=pt(f),$=gt(()=>{var I=m(),P=y(g);return p?(p=!1,P):g.v=I});return n||($.equals=$t),function(I,P){if(arguments.length>0){const k=P?y($):l?J(I):I;return $.equals(k)||(p=!0,F(g,k),d&&u!==void 0&&(u=k),cr(()=>y($))),I}return y($)}}function li(e){return new ai(e)}class ai{constructor(t){kt(this,oe);kt(this,X);var s;var r=new Map,i=(l,a)=>{var v=pt(a);return r.set(l,v),v};const n=new Proxy({...t.props||{},$$events:{}},{get(l,a){return y(r.get(a)??i(a,Reflect.get(l,a)))},has(l,a){return a===Ft?!0:(y(r.get(a)??i(a,Reflect.get(l,a))),Reflect.has(l,a))},set(l,a,v){return F(r.get(a)??i(a,v),v),Reflect.set(l,a,v)}});Lt(this,X,(t.hydrate?zn:Tr)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&ke(),Lt(this,oe,n.$$events);for(const l of Object.keys(q(this,X)))l==="$set"||l==="$destroy"||l==="$on"||Be(this,l,{get(){return q(this,X)[l]},set(a){q(this,X)[l]=a},enumerable:!0});q(this,X).$set=l=>{Object.assign(n,l)},q(this,X).$destroy=()=>{Zn(q(this,X))}}$set(t){q(this,X).$set(t)}$on(t,r){q(this,oe)[t]=q(this,oe)[t]||[];const i=(...n)=>r.call(this,...n);return q(this,oe)[t].push(i),()=>{q(this,oe)[t]=q(this,oe)[t].filter(n=>n!==i)}}$destroy(){q(this,X).$destroy()}}oe=new WeakMap,X=new WeakMap;let xr;typeof HTMLElement=="function"&&(xr=class extends HTMLElement{constructor(t,r,i){super();Q(this,"$$ctor");Q(this,"$$s");Q(this,"$$c");Q(this,"$$cn",!1);Q(this,"$$d",{});Q(this,"$$r",!1);Q(this,"$$p_d",{});Q(this,"$$l",{});Q(this,"$$l_u",new Map);Q(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const l=document.createElement("slot");n!=="default"&&(l.name=n),we(s,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=ui(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=it(s,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:r,$$host:this}}),this.$$me=qn(()=>{Hn(()=>{var n;this.$$r=!0;for(const s of Ye(this.$$c)){if(!((n=this.$$p_d[s])!=null&&n.reflect))continue;this.$$d[s]=this.$$c[s];const l=it(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const l=this.$$c.$on(n,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=it(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$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 Ye(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function it(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ui(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function fi(e,t,r,i,n,s){let l=class extends xr{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ye(t).forEach(a=>{Be(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(v){var _;v=it(a,v,t),this.$$d[a]=v;var f=this.$$c;if(f){var c=(_=pe(f,a))==null?void 0:_.get;c?f[a]=v:f.$set({[a]:v})}}})}),i.forEach(a=>{Be(l.prototype,a,{get(){var v;return(v=this.$$c)==null?void 0:v[a]}})}),e.element=l,l}const kr={version:"0.50.0-alpha.14"};function oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ce={},It,Lr;function ci(){if(Lr)return It;Lr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,v=`
2
2
  `,f="/",c="*",_="",u="comment",o="declaration";It=function(h,m){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];m=m||{};var A=1,p=1;function g(T){var w=T.match(t);w&&(A+=w.length);var j=T.lastIndexOf(v);p=~j?T.length-j:p+T.length}function $(){var T={line:A,column:p};return function(w){return w.position=new E(T),k(),w}}function E(T){this.start=T,this.end={line:A,column:p},this.source=m.source}E.prototype.content=h;function I(T){var w=new Error(m.source+":"+A+":"+p+": "+T);if(w.reason=T,w.filename=m.source,w.line=A,w.column=p,w.source=h,!m.silent)throw w}function P(T){var w=T.exec(h);if(w){var j=w[0];return g(j),h=h.slice(j.length),w}}function k(){P(r)}function ce(T){var w;for(T=T||[];w=ve();)w!==!1&&T.push(w);return T}function ve(){var T=$();if(!(f!=h.charAt(0)||c!=h.charAt(1))){for(var w=2;_!=h.charAt(w)&&(c!=h.charAt(w)||f!=h.charAt(w+1));)++w;if(w+=2,_===h.charAt(w-1))return I("End of comment missing");var j=h.slice(2,w-2);return p+=2,g(j),h=h.slice(w),p+=2,T({type:u,comment:j})}}function Z(){var T=$(),w=P(i);if(w){if(ve(),!P(n))return I("property missing ':'");var j=P(s),st=T({type:o,property:d(w[0].replace(e,_)),value:j?d(j[0].replace(e,_)):_});return P(l),st}}function $e(){var T=[];ce(T);for(var w;w=Z();)w!==!1&&(T.push(w),ce(T));return T}return k(),$e()};function d(h){return h?h.replace(a,_):_}return It}var Dr;function vi(){if(Dr)return Ce;Dr=1;var e=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.default=r;var t=e(ci());function r(i,n){var s=null;if(!i||typeof i!="string")return s;var l=(0,t.default)(i),a=typeof n=="function";return l.forEach(function(v){if(v.type==="declaration"){var f=v.property,c=v.value;a?n(f,c,v):c&&(s=s||{},s[f]=c)}}),s}return Ce}var _i=vi();const Mr=oi(_i),di=Mr.default||Mr;function jr(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(s=>Object.keys(e).includes(s.name)))!=null&&n.length))for(const s of Object.keys(e))(t==null?void 0:t.filter(a=>a.name===s&&a.defaultValue!==e[s]))&&(r+=`${s}:${e[s]};`);return r}function qr(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}const Pt={vars:[]},xt={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}]};var hi=Ae('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css">'),$i=Ae('<div class="sidebar-card-row"><hb-sidenav-button></hb-sidenav-button></div>',2),pi=Ae('<div class="sidebar-card-rows-container"></div>'),mi=Ae('<div class="sidebar-card-container"><!></div>'),gi=Ae('<hb-navbar><i slot="nav-switcher"></i></hb-navbar> <!>',3),wi=Ae('to be done, ref <a href="https://web.telegram.org/z/">https://web.telegram.com</a> left panel <!>',1);const Ei={hash:"svelte-isd2cr",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
3
3
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;}`};function Fr(e,t){gr(t,!0),ri(e,Ei);function r(o,d){t.$$host.dispatchEvent(new CustomEvent(o,{detail:d}))}let i=St(t,"id",7,""),n=St(t,"style",7),s=St(t,"panels",23,()=>[]),l=Vt(J({})),a=Vt(J(s().find(o=>o.main)||s().find(o=>!o.parentPanelId)));jn(()=>{if(i()||i(""),n()&&(F(l,J(di(n()))),jr(y(l),Pt==null?void 0:Pt.vars),jr(y(l),xt==null?void 0:xt.vars)),typeof s()=="string")try{s(JSON.parse(s()))}catch(o){console.error("error parsing panels",o)}});function v(o,d){var A;const h=(A=y(a))==null?void 0:A.cards.find(p=>p.id===d),m=h==null?void 0:h.rows.find(p=>p.key===o);if(m){const p=Object.assign({},y(a));delete p.cards;const g=Object.assign({},h);delete p.rows;const $={id:i(),row:m,panel:p,card:g};if(r("itemClick",$),m.switchToPanelId){const E=s().find(I=>I.id===m.switchToPanelId);E&&F(a,J(E))}}}qr({repoName:"@htmlbricks/hb-navbar",version:kr.version}),qr({repoName:"@htmlbricks/hb-sidenav-button",version:kr.version});function f(o){const d={text:o.text,key:o.key};return o.bootstrapIcon&&(d.bootstrapIcon=o.bootstrapIcon),o.badge&&(d.badge=o.badge),d}Tn();var c=wi();Kn(o=>{var d=hi();we(o,d)});var _=er(Qt(c),3);{var u=o=>{var d=gi(),h=Qt(d);At(()=>Ir(h,"companybrandname",y(a).title));var m=bt(h);Ue(h);var A=er(h,2);Or(A,17,()=>y(a).cards,p=>p.id+"_c_"+y(a).id,(p,g)=>{var $=mi(),E=bt($);{var I=P=>{var k=pi();Or(k,21,()=>y(g).rows,ce=>ce.key+"_r_"+y(g).id,(ce,ve)=>{var Z=$i(),$e=bt(Z);At(()=>Ir($e,"navlink",JSON.stringify(f(y(ve))))),Ue(Z),br("pageChange",$e,T=>{v(y(ve).key,y(g).id)}),we(ce,Z)}),Ue(k),we(P,k)};Ar(E,P=>{y(g).rows&&y(g).rows.length>0&&P(I)})}Ue($),we(p,$)}),At(()=>{Sr(m,"style",`font-weight:bold;cursor:${(y(a).parentPanelId?"pointer":"")??""}`),ni(m,`bi bi-${(y(a).parentPanelId?"arrow-left":"list")??""}`)}),br("navmenuswitch",h,p=>{var g;(g=y(a))!=null&&g.parentPanelId&&F(a,J(s().find($=>{var E;return $.id===((E=y(a))==null?void 0:E.parentPanelId)})))}),we(o,d)};Ar(_,o=>{y(a)&&o(u)})}return we(e,c),wr({get id(){return i()},set id(o=""){i(o),ke()},get style(){return n()},set style(o){n(o),ke()},get panels(){return s()},set panels(o=[]){s(o),ke()}})}customElements.define("hb-sidebar-cards-navigator",fi(Fr,{id:{},style:{},panels:{}},[],[],!0)),R.Component=Fr,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})})(this["sidebar-cards-navigator"]=this["sidebar-cards-navigator"]||{});
package/manifest.json CHANGED
@@ -476,5 +476,5 @@
476
476
  "size": {},
477
477
  "iifePath": "main.iife.js",
478
478
  "repoName": "@htmlbricks/hb-sidebar-cards-navigator",
479
- "version": "0.50.0-alpha.13"
479
+ "version": "0.50.0-alpha.14"
480
480
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-sidebar-cards-navigator",
3
- "version": "0.50.0-alpha.13",
3
+ "version": "0.50.0-alpha.14",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [