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