@htmlbricks/hb-messages-topics-card 0.66.3 → 0.66.5

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