@htmlbricks/hb-messages-list 0.65.23 → 0.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,12 +1,12 @@
1
- (function(se){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const cn=1,fn=2,un=16,hn=1,yn=4,wn=8,_n=16,kn=1,jn=2,de="[",br="[!",Or="]",Vt={},z=Symbol(),An="http://www.w3.org/1999/xhtml",zr=!1;var me=Array.isArray,Mn=Array.prototype.indexOf,Pr=Array.from,cr=Object.keys,fr=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,$n=Object.getOwnPropertyDescriptors,En=Object.prototype,In=Array.prototype,pe=Object.getPrototypeOf,xe=Object.isExtensible;function Tn(t){for(var r=0;r<t.length;r++)t[r]()}function ve(){var t,r,e=new Promise((n,i)=>{t=n,r=i});return{promise:e,resolve:t,reject:r}}const D=2,Gr=4,Lr=8,yt=16,wt=32,It=64,ur=128,pt=512,P=1024,Q=2048,_t=4096,K=8192,kt=16384,hr=32768,Xt=65536,ge=1<<17,Yr=1<<18,Bt=1<<19,Nn=1<<20,Ot=32768,Fr=1<<21,Zr=1<<22,Tt=1<<23,yr=Symbol("$state"),be=Symbol("legacy props"),Rn=Symbol(""),Kt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Hr=3,zt=8;function Cn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Sn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Dn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Bn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function On(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Pn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Gn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Fn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function wr(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Zn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let _=!1;function xt(t){_=t}let k;function F(t){if(t===null)throw wr(),Vt;return k=t}function _r(){return F(lt(k))}function $(t){if(_){if(lt(k)!==null)throw wr(),Vt;k=t}}function Hn(t=1){if(_){for(var r=t,e=k;r--;)e=lt(e);k=e}}function kr(t=!0){for(var r=0,e=k;;){if(e.nodeType===zt){var n=e.data;if(n===Or){if(r===0)return e;r-=1}else(n===de||n===br)&&(r+=1)}var i=lt(e);t&&e.remove(),e=i}}function ce(t){if(!t||t.nodeType!==zt)throw wr(),Vt;return t.data}function fe(t){return t===this.v}function Un(t,r){return t!=t?r==r:t!==r||t!==null&&typeof t=="object"||typeof t=="function"}function ue(t){return!Un(t,this.v)}let Wn=!1,nt=null;function tr(t){nt=t}function he(t,r=!1,e){nt={p:nt,i:!1,c:null,e:null,s:t,x:null,l:null}}function ye(t){var r=nt,e=r.e;if(e!==null){r.e=null;for(var n of e)Ye(n)}return t!==void 0&&(r.x=t),r.i=!0,nt=r.p,t??{}}function we(){return!0}let Pt=[];function _e(){var t=Pt;Pt=[],Tn(t)}function Ur(t){if(Pt.length===0&&!lr){var r=Pt;queueMicrotask(()=>{r===Pt&&_e()})}Pt.push(t)}function Jn(){for(;Pt.length>0;)_e()}function ke(t){var r=j;if(r===null)return y.f|=Tt,t;if((r.f&hr)===0){if((r.f&ur)===0)throw t;r.b.error(t)}else rr(t,r)}function rr(t,r){for(;r!==null;){if((r.f&ur)!==0)try{r.b.error(t);return}catch(e){t=e}r=r.parent}throw t}const jr=new Set;let R=null,ot=null,it=[],Ar=null,Wr=!1,lr=!1;class vt{committed=!1;current=new Map;previous=new Map;#r=new Set;#t=new Set;#e=0;#n=0;#s=null;#i=[];#o=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(r){it=[],this.apply();var e={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of r)this.#a(n,e);this.is_fork||this.#m(),this.is_deferred()?(this.#l(e.effects),this.#l(e.render_effects),this.#l(e.block_effects)):(R=null,Ae(e.render_effects),Ae(e.effects),this.#s?.resolve()),ot=null}#a(r,e){r.f^=P;for(var n=r.first;n!==null;){var i=n.f,o=(i&(wt|It))!==0,a=o&&(i&P)!==0,l=a||(i&K)!==0||this.skipped_effects.has(n);if((n.f&ur)!==0&&n.b?.is_pending()&&(e={parent:e,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){o?n.f^=P:(i&Gr)!==0?e.effects.push(n):pr(n)&&((n.f&yt)!==0&&e.block_effects.push(n),xr(n));var s=n.first;if(s!==null){n=s;continue}}var d=n.parent;for(n=n.next;n===null&&d!==null;)d===e.effect&&(this.#l(e.effects),this.#l(e.render_effects),this.#l(e.block_effects),e=e.parent),n=d.next,d=d.parent}}#l(r){for(const e of r)((e.f&Q)!==0?this.#i:this.#o).push(e),this.#d(e.deps),G(e,P)}#d(r){if(r!==null)for(const e of r)(e.f&D)===0||(e.f&Ot)===0||(e.f^=Ot,this.#d(e.deps))}capture(r,e){this.previous.has(r)||this.previous.set(r,e),(r.f&Tt)===0&&(this.current.set(r,r.v),ot?.set(r,r.v))}activate(){R=this,this.apply()}deactivate(){R===this&&(R=null,ot=null)}flush(){if(this.activate(),it.length>0){if(je(),R!==null&&R!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const r of this.#t)r(this);this.#t.clear()}#m(){if(this.#n===0){for(const r of this.#r)r();this.#r.clear()}this.#e===0&&this.#p()}#p(){if(jr.size>1){this.previous.clear();var r=ot,e=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of jr){if(o===this){e=!1;continue}const a=[];for(const[s,d]of this.current){if(o.current.has(s))if(e&&d!==o.current.get(s))o.current.set(s,d);else continue;a.push(s)}if(a.length===0)continue;const l=[...o.current.keys()].filter(s=>!this.current.has(s));if(l.length>0){var i=it;it=[];const s=new Set,d=new Map;for(const p of a)Me(p,l,s,d);if(it.length>0){R=o,o.apply();for(const p of it)o.#a(p,n);o.deactivate()}it=i}}R=null,ot=r}this.committed=!0,jr.delete(this)}increment(r){this.#e+=1,r&&(this.#n+=1)}decrement(r){this.#e-=1,r&&(this.#n-=1),this.revive()}revive(){for(const r of this.#i)G(r,Q),Gt(r);for(const r of this.#o)G(r,_t),Gt(r);this.#i=[],this.#o=[],this.flush()}oncommit(r){this.#r.add(r)}ondiscard(r){this.#t.add(r)}settled(){return(this.#s??=ve()).promise}static ensure(){if(R===null){const r=R=new vt;jr.add(R),lr||vt.enqueue(()=>{R===r&&r.flush()})}return R}static enqueue(r){Ur(r)}apply(){}}function er(t){var r=lr;lr=!0;try{for(var e;;){if(Jn(),it.length===0&&(R?.flush(),it.length===0))return Ar=null,e;je()}}finally{lr=r}}function je(){var t=Rt;Wr=!0;var r=null;try{var e=0;for(Tr(!0);it.length>0;){var n=vt.ensure();if(e++>1e3){var i,o;qn()}n.process(it),Nt.clear()}}finally{Wr=!1,Tr(t),Ar=null}}function qn(){try{On()}catch(t){rr(t,Ar)}}let jt=null;function Ae(t){var r=t.length;if(r!==0){for(var e=0;e<r;){var n=t[e++];if((n.f&(kt|K))===0&&pr(n)&&(jt=new Set,xr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Ue(n):n.fn=null),jt?.size>0)){Nt.clear();for(const i of jt){if((i.f&(kt|K))!==0)continue;const o=[i];let a=i.parent;for(;a!==null;)jt.has(a)&&(jt.delete(a),o.push(a)),a=a.parent;for(let l=o.length-1;l>=0;l--){const s=o[l];(s.f&(kt|K))===0&&xr(s)}}jt.clear()}}jt=null}}function Me(t,r,e,n){if(!e.has(t)&&(e.add(t),t.reactions!==null))for(const i of t.reactions){const o=i.f;(o&D)!==0?Me(i,r,e,n):(o&(Zr|yt))!==0&&(o&Q)===0&&$e(i,r,n)&&(G(i,Q),Gt(i))}}function $e(t,r,e){const n=e.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const i of t.deps){if(r.includes(i))return!0;if((i.f&D)!==0&&$e(i,r,e))return e.set(i,!0),!0}return e.set(t,!1),!1}function Gt(t){for(var r=Ar=t;r.parent!==null;){r=r.parent;var e=r.f;if(Wr&&r===j&&(e&yt)!==0&&(e&Yr)===0)return;if((e&(It|wt))!==0){if((e&P)===0)return;r.f^=P}}it.push(r)}function Qn(t){let r=0,e=Lt(0),n;return()=>{Er()&&(c(e),Fe(()=>(r===0&&(n=an(()=>t(()=>dr(e)))),r+=1,()=>{Ur(()=>{r-=1,r===0&&(n?.(),n=void 0,dr(e))})})))}}var Vn=Xt|Bt|ur;function Xn(t,r,e){new Kn(t,r,e)}class Kn{parent;#r=!1;#t;#e=_?k:null;#n;#s;#i;#o=null;#a=null;#l=null;#d=null;#m=null;#p=0;#x=0;#g=!1;#v=null;#h=Qn(()=>(this.#v=Lt(this.#p),()=>{this.#v=null}));constructor(r,e,n){this.#t=r,this.#n=e,this.#s=n,this.parent=j.b,this.#r=!!this.#n.pending,this.#i=Ir(()=>{if(j.b=this,_){const o=this.#e;_r(),o.nodeType===zt&&o.data===br?this.#w():this.#y()}else{var i=this.#f();try{this.#o=st(()=>n(i))}catch(o){this.error(o)}this.#x>0?this.#c():this.#r=!1}return()=>{this.#m?.remove()}},Vn),_&&(this.#t=k)}#y(){try{this.#o=st(()=>this.#s(this.#t))}catch(r){this.error(r)}this.#r=!1}#w(){const r=this.#n.pending;r&&(this.#a=st(()=>r(this.#t)),vt.enqueue(()=>{var e=this.#f();this.#o=this.#b(()=>(vt.ensure(),st(()=>this.#s(e)))),this.#x>0?this.#c():(nr(this.#a,()=>{this.#a=null}),this.#r=!1)}))}#f(){var r=this.#t;return this.#r&&(this.#m=at(),this.#t.before(this.#m),r=this.#m),r}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#b(r){var e=j,n=y,i=nt;ut(this.#i),V(this.#i),tr(this.#i.ctx);try{return r()}catch(o){return ke(o),null}finally{ut(e),V(n),tr(i)}}#c(){const r=this.#n.pending;this.#o!==null&&(this.#d=document.createDocumentFragment(),this.#d.append(this.#m),qe(this.#o,this.#d)),this.#a===null&&(this.#a=st(()=>r(this.#t)))}#u(r){if(!this.has_pending_snippet()){this.parent&&this.parent.#u(r);return}this.#x+=r,this.#x===0&&(this.#r=!1,this.#a&&nr(this.#a,()=>{this.#a=null}),this.#d&&(this.#t.before(this.#d),this.#d=null))}update_pending_count(r){this.#u(r),this.#p+=r,this.#v&&sr(this.#v,this.#p)}get_effect_pending(){return this.#h(),c(this.#v)}error(r){var e=this.#n.onerror;let n=this.#n.failed;if(this.#g||!e&&!n)throw r;this.#o&&(H(this.#o),this.#o=null),this.#a&&(H(this.#a),this.#a=null),this.#l&&(H(this.#l),this.#l=null),_&&(F(this.#e),Hn(),F(kr()));var i=!1,o=!1;const a=()=>{if(i){Zn();return}i=!0,o&&Fn(),vt.ensure(),this.#p=0,this.#l!==null&&nr(this.#l,()=>{this.#l=null}),this.#r=this.has_pending_snippet(),this.#o=this.#b(()=>(this.#g=!1,st(()=>this.#s(this.#t)))),this.#x>0?this.#c():this.#r=!1};var l=y;try{V(null),o=!0,e?.(r,a),o=!1}catch(s){rr(s,this.#i&&this.#i.parent)}finally{V(l)}n&&Ur(()=>{this.#l=this.#b(()=>{vt.ensure(),this.#g=!0;try{return st(()=>{n(this.#t,()=>r,()=>a)})}catch(s){return rr(s,this.#i.parent),null}finally{this.#g=!1}})})}}function to(t,r){return r}function ro(t,r,e){for(var n=[],i=r.length,o=0;o<i;o++)te(r[o].e,n,!0);We(n,()=>{var a=n.length===0&&e!==null;if(a){var l=e,s=l.parentNode;Pe(s),s.append(l),t.items.clear(),gt(t,r[0].prev,r[i-1].next)}for(var d=0;d<i;d++){var p=r[d];a||(t.items.delete(p.k),gt(t,p.prev,p.next)),H(p.e,!a)}t.first===r[0]&&(t.first=r[0].prev)})}function Ee(t,r,e,n,i,o=null){var a=t,l=new Map,s=null;_&&_r();var d=null,p=Ie(()=>{var u=e();return me(u)?u:u==null?[]:Pr(u)}),g,x=!0;function b(){eo(v,g,a,r,n),d!==null&&(g.length===0?(d.fragment?(a.before(d.fragment),d.fragment=null):re(d.effect),m.first=d.effect):nr(d.effect,()=>{d=null}))}var m=Ir(()=>{g=c(p);var u=g.length;let S=!1;if(_){var A=ce(a)===br;A!==(u===0)&&(a=kr(),F(a),xt(!1),S=!0)}for(var C=new Set,Y=R,mt=null,ht=Ge(),W=0;W<u;W+=1){_&&k.nodeType===zt&&k.data===Or&&(a=k,S=!0,xt(!1));var Ct=g[W],St=n(Ct,W),X=x?null:l.get(St);X?(sr(X.v,Ct),X.i=W,ht&&Y.skipped_effects.delete(X.e)):(X=no(x?a:null,mt,Ct,St,W,i,r,e),x&&(X.o=!0,mt===null?s=X:mt.next=X,mt=X),l.set(St,X)),C.add(St)}if(u===0&&o&&!d)if(x)d={fragment:null,effect:st(()=>o(a))};else{var Dr=document.createDocumentFragment(),Br=at();Dr.append(Br),d={fragment:Dr,effect:st(()=>o(Br))}}if(_&&u>0&&F(kr()),!x)if(ht){for(const[oe,ie]of l)C.has(oe)||Y.skipped_effects.add(ie.e);Y.oncommit(b),Y.ondiscard(()=>{})}else b();S&&xt(!0),c(p)}),v={effect:m,items:l,first:s};x=!1,_&&(a=k)}function eo(t,r,e,n,i){var o=r.length,a=t.items,l=t.first,s,d=null,p=[],g=[],x,b,m,v;for(v=0;v<o;v+=1){if(x=r[v],b=i(x,v),m=a.get(b),t.first??=m,!m.o){m.o=!0;var u=d?d.next:l;gt(t,d,m),gt(t,m,u),Jr(m,u,e),d=m,p=[],g=[],l=d.next;continue}if((m.e.f&K)!==0&&re(m.e),m!==l){if(s!==void 0&&s.has(m)){if(p.length<g.length){var S=g[0],A;d=S.prev;var C=p[0],Y=p[p.length-1];for(A=0;A<p.length;A+=1)Jr(p[A],S,e);for(A=0;A<g.length;A+=1)s.delete(g[A]);gt(t,C.prev,Y.next),gt(t,d,C),gt(t,Y,S),l=S,d=Y,v-=1,p=[],g=[]}else s.delete(m),Jr(m,l,e),gt(t,m.prev,m.next),gt(t,m,d===null?t.first:d.next),gt(t,d,m),d=m;continue}for(p=[],g=[];l!==null&&l.k!==b;)(l.e.f&K)===0&&(s??=new Set).add(l),g.push(l),l=l.next;if(l===null)continue;m=l}p.push(m),d=m,l=m.next}if(l!==null||s!==void 0){for(var mt=s===void 0?[]:Pr(s);l!==null;)(l.e.f&K)===0&&mt.push(l),l=l.next;var ht=mt.length;if(ht>0){var W=null;ro(t,mt,W)}}}function no(t,r,e,n,i,o,a,l){var s=(a&cn)!==0,d=(a&un)===0,p=s?d?Ce(e,!1,!1):Lt(e):e,g=(a&fn)===0?i:Lt(i),x={i:g,v:p,k:n,a:null,e:null,o:!1,prev:r,next:null};try{if(t===null){var b=document.createDocumentFragment();b.append(t=at())}return x.e=st(()=>o(t,p,g,l)),r!==null&&(r.next=x),x}finally{}}function Jr(t,r,e){for(var n=t.next?t.next.e.nodes_start:e,i=r?r.e.nodes_start:e,o=t.e.nodes_start;o!==null&&o!==n;){var a=lt(o);i.before(o),o=a}}function gt(t,r,e){r===null?(t.first=e,t.effect.first=e&&e.e):(r.e.next&&(r.e.next.prev=null),r.next=e,r.e.next=e&&e.e),e===null?t.effect.last=r&&r.e:(e.e.prev&&(e.e.prev.next=null),e.prev=r,e.e.prev=r&&r.e)}function oo(t,r,e,n){const i=$r;if(e.length===0&&t.length===0){n(r.map(i));return}var o=R,a=j,l=io();function s(){Promise.all(e.map(d=>ao(d))).then(d=>{l();try{n([...r.map(i),...d])}catch(p){(a.f&kt)===0&&rr(p,a)}o?.deactivate(),Mr()}).catch(d=>{rr(d,a)})}t.length>0?Promise.all(t).then(()=>{l();try{return s()}finally{o?.deactivate(),Mr()}}):s()}function io(){var t=j,r=y,e=nt,n=R;return function(o=!0){ut(t),V(r),tr(e),o&&n?.activate()}}function Mr(){ut(null),V(null),tr(null)}function $r(t){var r=D|Q,e=y!==null&&(y.f&D)!==0?y:null;return j!==null&&(j.f|=Bt),{ctx:nt,deps:null,effects:null,equals:fe,f:r,fn:t,reactions:null,rv:0,v:z,wv:0,parent:e??j,ac:null}}function ao(t,r){let e=j;e===null&&Cn();var n=e.b,i=void 0,o=Lt(z),a=!y,l=new Map;return fo(()=>{var s=ve();i=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).then(()=>{d===R&&d.committed&&d.deactivate(),Mr()})}catch(x){s.reject(x),Mr()}var d=R;if(a){var p=!n.is_pending();n.update_pending_count(1),d.increment(p),l.get(d)?.reject(Kt),l.delete(d),l.set(d,s)}const g=(x,b=void 0)=>{if(d.activate(),b)b!==Kt&&(o.f|=Tt,sr(o,b));else{(o.f&Tt)!==0&&(o.f^=Tt),sr(o,x);for(const[m,v]of l){if(l.delete(m),m===d)break;v.reject(Kt)}}a&&(n.update_pending_count(-1),d.decrement(p))};s.promise.then(g,x=>g(null,x||"unknown"))}),vo(()=>{for(const s of l.values())s.reject(Kt)}),new Promise(s=>{function d(p){function g(){p===i?s(o):d(i)}p.then(g,g)}d(i)})}function lo(t){const r=$r(t);return Ve(r),r}function Ie(t){const r=$r(t);return r.equals=ue,r}function Te(t){var r=t.effects;if(r!==null){t.effects=null;for(var e=0;e<r.length;e+=1)H(r[e])}}function so(t){for(var r=t.parent;r!==null;){if((r.f&D)===0)return(r.f&kt)===0?r:null;r=r.parent}return null}function qr(t){var r,e=j;ut(so(t));try{t.f&=~Ot,Te(t),r=en(t)}finally{ut(e)}return r}function Ne(t){var r=qr(t);if(t.equals(r)||(R?.is_fork||(t.v=r),t.wv=tn()),!Zt)if(ot!==null)Er()&&ot.set(t,r);else{var e=(t.f&pt)===0?_t:P;G(t,e)}}let Qr=new Set;const Nt=new Map;let Re=!1;function Lt(t,r){var e={f:0,v:t,reactions:null,equals:fe,rv:0,wv:0};return e}function At(t,r){const e=Lt(t);return Ve(e),e}function Ce(t,r=!1,e=!0){const n=Lt(t);return r||(n.equals=ue),n}function Mt(t,r,e=!1){y!==null&&(!ft||(y.f&ge)!==0)&&we()&&(y.f&(D|yt|Zr|ge))!==0&&!$t?.includes(t)&&Yn();let n=e?Yt(r):r;return sr(t,n)}function sr(t,r){if(!t.equals(r)){var e=t.v;Zt?Nt.set(t,r):Nt.set(t,e),t.v=r;var n=vt.ensure();n.capture(t,e),(t.f&D)!==0&&((t.f&Q)!==0&&qr(t),G(t,(t.f&pt)!==0?P:_t)),t.wv=tn(),Se(t,Q),j!==null&&(j.f&P)!==0&&(j.f&(wt|It))===0&&(dt===null?yo([t]):dt.push(t)),!n.is_fork&&Qr.size>0&&!Re&&mo()}return r}function mo(){Re=!1;var t=Rt;Tr(!0);const r=Array.from(Qr);try{for(const e of r)(e.f&P)!==0&&G(e,_t),pr(e)&&xr(e)}finally{Tr(t)}Qr.clear()}function dr(t){Mt(t,t.v+1)}function Se(t,r){var e=t.reactions;if(e!==null)for(var n=e.length,i=0;i<n;i++){var o=e[i],a=o.f,l=(a&Q)===0;if(l&&G(o,r),(a&D)!==0){var s=o;ot?.delete(s),(a&Ot)===0&&(a&pt&&(o.f|=Ot),Se(s,_t))}else l&&((a&yt)!==0&&jt!==null&&jt.add(o),Gt(o))}}function Yt(t){if(typeof t!="object"||t===null||yr in t)return t;const r=pe(t);if(r!==En&&r!==In)return t;var e=new Map,n=me(t),i=At(0),o=Ht,a=l=>{if(Ht===o)return l();var s=y,d=Ht;V(null),Ke(o);var p=l();return V(s),Ke(d),p};return n&&e.set("length",At(t.length)),new Proxy(t,{defineProperty(l,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Gn();var p=e.get(s);return p===void 0?p=a(()=>{var g=At(d.value);return e.set(s,g),g}):Mt(p,d.value,!0),!0},deleteProperty(l,s){var d=e.get(s);if(d===void 0){if(s in l){const p=a(()=>At(z));e.set(s,p),dr(i)}}else Mt(d,z),dr(i);return!0},get(l,s,d){if(s===yr)return t;var p=e.get(s),g=s in l;if(p===void 0&&(!g||Dt(l,s)?.writable)&&(p=a(()=>{var b=Yt(g?l[s]:z),m=At(b);return m}),e.set(s,p)),p!==void 0){var x=c(p);return x===z?void 0:x}return Reflect.get(l,s,d)},getOwnPropertyDescriptor(l,s){var d=Reflect.getOwnPropertyDescriptor(l,s);if(d&&"value"in d){var p=e.get(s);p&&(d.value=c(p))}else if(d===void 0){var g=e.get(s),x=g?.v;if(g!==void 0&&x!==z)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return d},has(l,s){if(s===yr)return!0;var d=e.get(s),p=d!==void 0&&d.v!==z||Reflect.has(l,s);if(d!==void 0||j!==null&&(!p||Dt(l,s)?.writable)){d===void 0&&(d=a(()=>{var x=p?Yt(l[s]):z,b=At(x);return b}),e.set(s,d));var g=c(d);if(g===z)return!1}return p},set(l,s,d,p){var g=e.get(s),x=s in l;if(n&&s==="length")for(var b=d;b<g.v;b+=1){var m=e.get(b+"");m!==void 0?Mt(m,z):b in l&&(m=a(()=>At(z)),e.set(b+"",m))}if(g===void 0)(!x||Dt(l,s)?.writable)&&(g=a(()=>At(void 0)),Mt(g,Yt(d)),e.set(s,g));else{x=g.v!==z;var v=a(()=>Yt(d));Mt(g,v)}var u=Reflect.getOwnPropertyDescriptor(l,s);if(u?.set&&u.set.call(p,d),!x){if(n&&typeof s=="string"){var S=e.get("length"),A=Number(s);Number.isInteger(A)&&A>=S.v&&Mt(S,A+1)}dr(i)}return!0},ownKeys(l){c(i);var s=Reflect.ownKeys(l).filter(g=>{var x=e.get(g);return x===void 0||x.v!==z});for(var[d,p]of e)p.v!==z&&!(d in l)&&s.push(d);return s},setPrototypeOf(){Ln()}})}var De,Be,Oe,ze;function Vr(){if(De===void 0){De=window,Be=/Firefox/.test(navigator.userAgent);var t=Element.prototype,r=Node.prototype,e=Text.prototype;Oe=Dt(r,"firstChild").get,ze=Dt(r,"nextSibling").get,xe(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),xe(e)&&(e.__t=void 0)}}function at(t=""){return document.createTextNode(t)}function Ft(t){return Oe.call(t)}function lt(t){return ze.call(t)}function E(t,r){if(!_)return Ft(t);var e=Ft(k);if(e===null)e=k.appendChild(at());else if(r&&e.nodeType!==Hr){var n=at();return e?.before(n),F(n),n}return F(e),e}function Xr(t,r=!1){if(!_){var e=Ft(t);return e instanceof Comment&&e.data===""?lt(e):e}if(r&&k?.nodeType!==Hr){var n=at();return k?.before(n),F(n),n}return k}function bt(t,r=1,e=!1){let n=_?k:t;for(var i;r--;)i=n,n=lt(n);if(!_)return n;if(e&&n?.nodeType!==Hr){var o=at();return n===null?i?.after(o):n.before(o),F(o),o}return F(n),n}function Pe(t){t.textContent=""}function Ge(){return!1}function Le(t){var r=y,e=j;V(null),ut(null);try{return t()}finally{V(r),ut(e)}}function po(t){j===null&&(y===null&&Bn(),Dn()),Zt&&Sn()}function xo(t,r){var e=r.last;e===null?r.last=r.first=t:(e.next=t,t.prev=e,r.last=t)}function ct(t,r,e){var n=j;n!==null&&(n.f&K)!==0&&(t|=K);var i={ctx:nt,deps:null,nodes_start:null,nodes_end:null,f:t|Q|pt,first:null,fn:r,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(e)try{xr(i),i.f|=hr}catch(l){throw H(i),l}else r!==null&&Gt(i);var o=i;if(e&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Bt)===0&&(o=o.first,(t&yt)!==0&&(t&Xt)!==0&&o!==null&&(o.f|=Xt)),o!==null&&(o.parent=n,n!==null&&xo(o,n),y!==null&&(y.f&D)!==0&&(t&It)===0)){var a=y;(a.effects??=[]).push(o)}return i}function Er(){return y!==null&&!ft}function vo(t){const r=ct(Lr,null,!1);return G(r,P),r.teardown=t,r}function Kr(t){po();var r=j.f,e=!y&&(r&wt)!==0&&(r&hr)===0;if(e){var n=nt;(n.e??=[]).push(t)}else return Ye(t)}function Ye(t){return ct(Gr|Nn,t,!1)}function go(t){vt.ensure();const r=ct(It|Bt,t,!0);return()=>{H(r)}}function bo(t){vt.ensure();const r=ct(It|Bt,t,!0);return(e={})=>new Promise(n=>{e.outro?nr(r,()=>{H(r),n(void 0)}):(H(r),n(void 0))})}function co(t){return ct(Gr,t,!1)}function fo(t){return ct(Zr|Bt,t,!0)}function Fe(t,r=0){return ct(Lr|r,t,!0)}function Z(t,r=[],e=[],n=[]){oo(n,r,e,i=>{ct(Lr,()=>t(...i.map(c)),!0)})}function Ir(t,r=0){var e=ct(yt|r,t,!0);return e}function st(t){return ct(wt|Bt,t,!0)}function Ze(t){var r=t.teardown;if(r!==null){const e=Zt,n=y;Qe(!0),V(null);try{r.call(null)}finally{Qe(e),V(n)}}}function He(t,r=!1){var e=t.first;for(t.first=t.last=null;e!==null;){const i=e.ac;i!==null&&Le(()=>{i.abort(Kt)});var n=e.next;(e.f&It)!==0?e.parent=null:H(e,r),e=n}}function uo(t){for(var r=t.first;r!==null;){var e=r.next;(r.f&wt)===0&&H(r),r=e}}function H(t,r=!0){var e=!1;(r||(t.f&Yr)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(ho(t.nodes_start,t.nodes_end),e=!0),He(t,r&&!e),Nr(t,0),G(t,kt);var n=t.transitions;if(n!==null)for(const o of n)o.stop();Ze(t);var i=t.parent;i!==null&&i.first!==null&&Ue(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function ho(t,r){for(;t!==null;){var e=t===r?null:lt(t);t.remove(),t=e}}function Ue(t){var r=t.parent,e=t.prev,n=t.next;e!==null&&(e.next=n),n!==null&&(n.prev=e),r!==null&&(r.first===t&&(r.first=n),r.last===t&&(r.last=e))}function nr(t,r,e=!0){var n=[];te(t,n,!0),We(n,()=>{e&&H(t),r&&r()})}function We(t,r){var e=t.length;if(e>0){var n=()=>--e||r();for(var i of t)i.out(n)}else r()}function te(t,r,e){if((t.f&K)===0){if(t.f^=K,t.transitions!==null)for(const a of t.transitions)(a.is_global||e)&&r.push(a);for(var n=t.first;n!==null;){var i=n.next,o=(n.f&Xt)!==0||(n.f&wt)!==0&&(t.f&yt)!==0;te(n,r,o?e:!1),n=i}}}function re(t){Je(t,!0)}function Je(t,r){if((t.f&K)!==0){t.f^=K,(t.f&P)===0&&(G(t,Q),Gt(t));for(var e=t.first;e!==null;){var n=e.next,i=(e.f&Xt)!==0||(e.f&wt)!==0;Je(e,i?r:!1),e=n}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&o.in()}}function qe(t,r){for(var e=t.nodes_start,n=t.nodes_end;e!==null;){var i=e===n?null:lt(e);r.append(e),e=i}}let Rt=!1;function Tr(t){Rt=t}let Zt=!1;function Qe(t){Zt=t}let y=null,ft=!1;function V(t){y=t}let j=null;function ut(t){j=t}let $t=null;function Ve(t){y!==null&&($t===null?$t=[t]:$t.push(t))}let U=null,tt=0,dt=null;function yo(t){dt=t}let Xe=1,mr=0,Ht=mr;function Ke(t){Ht=t}function tn(){return++Xe}function pr(t){var r=t.f;if((r&Q)!==0)return!0;if(r&D&&(t.f&=~Ot),(r&_t)!==0){var e=t.deps;if(e!==null)for(var n=e.length,i=0;i<n;i++){var o=e[i];if(pr(o)&&Ne(o),o.wv>t.wv)return!0}(r&pt)!==0&&ot===null&&G(t,P)}return!1}function rn(t,r,e=!0){var n=t.reactions;if(n!==null&&!$t?.includes(t))for(var i=0;i<n.length;i++){var o=n[i];(o.f&D)!==0?rn(o,r,!1):r===o&&(e?G(o,Q):(o.f&P)!==0&&G(o,_t),Gt(o))}}function en(t){var r=U,e=tt,n=dt,i=y,o=$t,a=nt,l=ft,s=Ht,d=t.f;U=null,tt=0,dt=null,y=(d&(wt|It))===0?t:null,$t=null,tr(t.ctx),ft=!1,Ht=++mr,t.ac!==null&&(Le(()=>{t.ac.abort(Kt)}),t.ac=null);try{t.f|=Fr;var p=t.fn,g=p(),x=t.deps;if(U!==null){var b;if(Nr(t,tt),x!==null&&tt>0)for(x.length=tt+U.length,b=0;b<U.length;b++)x[tt+b]=U[b];else t.deps=x=U;if(Rt&&Er()&&(t.f&pt)!==0)for(b=tt;b<x.length;b++)(x[b].reactions??=[]).push(t)}else x!==null&&tt<x.length&&(Nr(t,tt),x.length=tt);if(we()&&dt!==null&&!ft&&x!==null&&(t.f&(D|_t|Q))===0)for(b=0;b<dt.length;b++)rn(dt[b],t);return i!==null&&i!==t&&(mr++,dt!==null&&(n===null?n=dt:n.push(...dt))),(t.f&Tt)!==0&&(t.f^=Tt),g}catch(m){return ke(m)}finally{t.f^=Fr,U=r,tt=e,dt=n,y=i,$t=o,tr(a),ft=l,Ht=s}}function wo(t,r){let e=r.reactions;if(e!==null){var n=Mn.call(e,t);if(n!==-1){var i=e.length-1;i===0?e=r.reactions=null:(e[n]=e[i],e.pop())}}e===null&&(r.f&D)!==0&&(U===null||!U.includes(r))&&(G(r,_t),(r.f&pt)!==0&&(r.f^=pt,r.f&=~Ot),Te(r),Nr(r,0))}function Nr(t,r){var e=t.deps;if(e!==null)for(var n=r;n<e.length;n++)wo(t,e[n])}function xr(t){var r=t.f;if((r&kt)===0){G(t,P);var e=j,n=Rt;j=t,Rt=!0;try{(r&yt)!==0?uo(t):He(t),Ze(t);var i=en(t);t.teardown=typeof i=="function"?i:null,t.wv=Xe;var o;zr&&Wn&&(t.f&Q)!==0&&t.deps}finally{Rt=n,j=e}}}function c(t){var r=t.f,e=(r&D)!==0;if(y!==null&&!ft){var n=j!==null&&(j.f&kt)!==0;if(!n&&!$t?.includes(t)){var i=y.deps;if((y.f&Fr)!==0)t.rv<mr&&(t.rv=mr,U===null&&i!==null&&i[tt]===t?tt++:U===null?U=[t]:U.includes(t)||U.push(t));else{(y.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[y]:o.includes(y)||o.push(y)}}}if(Zt){if(Nt.has(t))return Nt.get(t);if(e){var a=t,l=a.v;return((a.f&P)===0&&a.reactions!==null||on(a))&&(l=qr(a)),Nt.set(a,l),l}}else e&&!ot?.has(t)&&(a=t,pr(a)&&Ne(a),Rt&&Er()&&(a.f&pt)===0&&nn(a));if(ot?.has(t))return ot.get(t);if((t.f&Tt)!==0)throw t.v;return t.v}function nn(t){if(t.deps!==null){t.f^=pt;for(const r of t.deps)(r.reactions??=[]).push(t),(r.f&D)!==0&&(r.f&pt)===0&&nn(r)}}function on(t){if(t.v===z)return!0;if(t.deps===null)return!1;for(const r of t.deps)if(Nt.has(r)||(r.f&D)!==0&&on(r))return!0;return!1}function an(t){var r=ft;try{return ft=!0,t()}finally{ft=r}}const _o=-7169;function G(t,r){t.f=t.f&_o|r}const ln=new Set,ee=new Set;function ko(t){for(var r=0;r<t.length;r++)ln.add(t[r]);for(var e of ee)e(t)}let sn=null;function Rr(t){var r=this,e=r.ownerDocument,n=t.type,i=t.composedPath?.()||[],o=i[0]||t.target;sn=t;var a=0,l=sn===t&&t.__root;if(l){var s=i.indexOf(l);if(s!==-1&&(r===document||r===window)){t.__root=r;return}var d=i.indexOf(r);if(d===-1)return;s<=d&&(a=s)}if(o=i[a]||t.target,o!==r){fr(t,"currentTarget",{configurable:!0,get(){return o||e}});var p=y,g=j;V(null),ut(null);try{for(var x,b=[];o!==null;){var m=o.assignedSlot||o.parentNode||o.host||null;try{var v=o["__"+n];v!=null&&(!o.disabled||t.target===o)&&v.call(o,t)}catch(u){x?b.push(u):x=u}if(t.cancelBubble||m===r||m===null)break;o=m}if(x){for(let u of b)queueMicrotask(()=>{throw u});throw x}}finally{t.__root=r,delete t.currentTarget,V(p),ut(g)}}}function jo(t){var r=document.createElement("template");return r.innerHTML=t.replaceAll("<!>","<!---->"),r.content}function or(t,r){var e=j;e.nodes_start===null&&(e.nodes_start=t,e.nodes_end=r)}function N(t,r){var e=(r&kn)!==0,n=(r&jn)!==0,i,o=!t.startsWith("<!>");return()=>{if(_)return or(k,null),k;i===void 0&&(i=jo(o?t:"<!>"+t),e||(i=Ft(i)));var a=n||Be?document.importNode(i,!0):i.cloneNode(!0);if(e){var l=Ft(a),s=a.lastChild;or(l,s)}else or(a,a);return a}}function dn(){if(_)return or(k,null),k;var t=document.createDocumentFragment(),r=document.createComment(""),e=at();return t.append(r,e),or(r,e),t}function I(t,r){if(_){var e=j;((e.f&hr)===0||e.nodes_end===null)&&(e.nodes_end=k),_r();return}t!==null&&t.before(r)}const Ao=["touchstart","touchmove"];function Mo(t){return Ao.includes(t)}function Et(t,r){var e=r==null?"":typeof r=="object"?r+"":r;e!==(t.__t??=t.nodeValue)&&(t.__t=e,t.nodeValue=e+"")}function mn(t,r){return pn(t,r)}function $o(t,r){Vr(),r.intro=r.intro??!1;const e=r.target,n=_,i=k;try{for(var o=Ft(e);o&&(o.nodeType!==zt||o.data!==de);)o=lt(o);if(!o)throw Vt;xt(!0),F(o);const a=pn(t,{...r,anchor:o});return xt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Vt&&console.warn("Failed to hydrate: ",a),r.recover===!1&&zn(),Vr(),Pe(e),xt(!1),mn(t,r)}finally{xt(n),F(i)}}const ir=new Map;function pn(t,{target:r,anchor:e,props:n={},events:i,context:o,intro:a=!0}){Vr();var l=new Set,s=g=>{for(var x=0;x<g.length;x++){var b=g[x];if(!l.has(b)){l.add(b);var m=Mo(b);r.addEventListener(b,Rr,{passive:m});var v=ir.get(b);v===void 0?(document.addEventListener(b,Rr,{passive:m}),ir.set(b,1)):ir.set(b,v+1)}}};s(Pr(ln)),ee.add(s);var d=void 0,p=bo(()=>{var g=e??r.appendChild(at());return Xn(g,{pending:()=>{}},x=>{if(o){he({});var b=nt;b.c=o}if(i&&(n.$$events=i),_&&or(x,null),d=t(x,n)||{},_&&(j.nodes_end=k,k===null||k.nodeType!==zt||k.data!==Or))throw wr(),Vt;o&&ye()}),()=>{for(var x of l){r.removeEventListener(x,Rr);var b=ir.get(x);--b===0?(document.removeEventListener(x,Rr),ir.delete(x)):ir.set(x,b)}ee.delete(s),g!==e&&g.parentNode?.removeChild(g)}});return ne.set(d,p),d}let ne=new WeakMap;function Eo(t,r){const e=ne.get(t);return e?(ne.delete(t),e(r)):Promise.resolve()}class Io{anchor;#r=new Map;#t=new Map;#e=new Map;#n=new Set;#s=!0;constructor(r,e=!0){this.anchor=r,this.#s=e}#i=()=>{var r=R;if(this.#r.has(r)){var e=this.#r.get(r),n=this.#t.get(e);if(n)re(n),this.#n.delete(e);else{var i=this.#e.get(e);i&&(this.#t.set(e,i.effect),this.#e.delete(e),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[o,a]of this.#r){if(this.#r.delete(o),o===r)break;const l=this.#e.get(a);l&&(H(l.effect),this.#e.delete(a))}for(const[o,a]of this.#t){if(o===e||this.#n.has(o))continue;const l=()=>{if(Array.from(this.#r.values()).includes(o)){var d=document.createDocumentFragment();qe(a,d),d.append(at()),this.#e.set(o,{effect:a,fragment:d})}else H(a);this.#n.delete(o),this.#t.delete(o)};this.#s||!n?(this.#n.add(o),nr(a,l,!1)):l()}}};#o=r=>{this.#r.delete(r);const e=Array.from(this.#r.values());for(const[n,i]of this.#e)e.includes(n)||(H(i.effect),this.#e.delete(n))};ensure(r,e){var n=R,i=Ge();if(e&&!this.#t.has(r)&&!this.#e.has(r))if(i){var o=document.createDocumentFragment(),a=at();o.append(a),this.#e.set(r,{effect:st(()=>e(a)),fragment:o})}else this.#t.set(r,st(()=>e(this.anchor)));if(this.#r.set(n,r),i){for(const[l,s]of this.#t)l===r?n.skipped_effects.delete(s):n.skipped_effects.add(s);for(const[l,s]of this.#e)l===r?n.skipped_effects.delete(s.effect):n.skipped_effects.add(s.effect);n.oncommit(this.#i),n.ondiscard(this.#o)}else _&&(this.anchor=k),this.#i()}}function L(t,r,e=!1){_&&_r();var n=new Io(t),i=e?Xt:0;function o(a,l){if(_){const d=ce(t)===br;if(a===d){var s=kr();F(s),n.anchor=s,xt(!1),n.ensure(a,l),xt(!0);return}}n.ensure(a,l)}Ir(()=>{var a=!1;r((l,s=!0)=>{a=!0,o(s,l)}),a||o(!1,null)},i)}function To(t,r){let e=null,n=_;var i;if(_){e=k;for(var o=Ft(document.head);o!==null&&(o.nodeType!==zt||o.data!==t);)o=lt(o);if(o===null)xt(!1);else{var a=lt(o);o.remove(),F(a)}}_||(i=document.head.appendChild(at()));try{Ir(()=>r(i),Yr)}finally{n&&(xt(!0),F(e))}}function No(t,r){co(()=>{var e=t.getRootNode(),n=e.host?e:e.head??e.ownerDocument.head;if(!n.querySelector("#"+r.hash)){const i=document.createElement("style");i.id=r.hash,i.textContent=r.code,n.appendChild(i)}})}function Ro(t,r,e){var n=t==null?"":""+t;return n=n?n+" "+r:r,n===""?null:n}function Ut(t,r,e,n,i,o){var a=t.__className;if(_||a!==e||a===void 0){var l=Ro(e,n);(!_||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=e}return o}const Co=Symbol("is custom element"),So=Symbol("is html");function ar(t,r,e,n){var i=Do(t);_&&(i[r]=t.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&t.nodeName==="LINK")||i[r]!==(i[r]=e)&&(r==="loading"&&(t[Rn]=e),e==null?t.removeAttribute(r):typeof e!="string"&&Bo(t).includes(r)?t[r]=e:t.setAttribute(r,e))}function Do(t){return t.__attributes??={[Co]:t.nodeName.includes("-"),[So]:t.namespaceURI===An}}var xn=new Map;function Bo(t){var r=t.getAttribute("is")||t.nodeName,e=xn.get(r);if(e)return e;xn.set(r,e=[]);for(var n,i=t,o=Element.prototype;o!==i;){n=$n(i);for(var a in n)n[a].set&&e.push(a);i=pe(i)}return e}let Cr=!1;function Oo(t){var r=Cr;try{return Cr=!1,[t(),Cr]}finally{Cr=r}}function vr(t,r,e,n){var i=(e&wn)!==0,o=(e&_n)!==0,a=n,l=!0,s=()=>(l&&(l=!1,a=o?an(n):n),a),d;if(i){var p=yr in t||be in t;d=Dt(t,r)?.set??(p&&r in t?A=>t[r]=A:void 0)}var g,x=!1;i?[g,x]=Oo(()=>t[r]):g=t[r],g===void 0&&n!==void 0&&(g=s(),d&&(Pn(),d(g)));var b;if(b=()=>{var A=t[r];return A===void 0?s():(l=!0,A)},(e&yn)===0)return b;if(d){var m=t.$$legacy;return(function(A,C){return arguments.length>0?((!C||m||x)&&d(C?b():A),A):b()})}var v=!1,u=((e&hn)!==0?$r:Ie)(()=>(v=!1,b()));i&&c(u);var S=j;return(function(A,C){if(arguments.length>0){const Y=C?c(u):i?Yt(A):A;return Mt(u,Y),v=!0,a!==void 0&&(a=Y),A}return Zt&&v||(S.f&kt)!==0?u.v:c(u)})}function zo(t){return new Po(t)}class Po{#r;#t;constructor(r){var e=new Map,n=(o,a)=>{var l=Ce(a,!1,!1);return e.set(o,l),l};const i=new Proxy({...r.props||{},$$events:{}},{get(o,a){return c(e.get(a)??n(a,Reflect.get(o,a)))},has(o,a){return a===be?!0:(c(e.get(a)??n(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,l){return Mt(e.get(a)??n(a,l),l),Reflect.set(o,a,l)}});this.#t=(r.hydrate?$o:mn)(r.component,{target:r.target,anchor:r.anchor,props:i,context:r.context,intro:r.intro??!1,recover:r.recover}),(!r?.props?.$$host||r.sync===!1)&&er(),this.#r=i.$$events;for(const o of Object.keys(this.#t))o==="$set"||o==="$destroy"||o==="$on"||fr(this,o,{get(){return this.#t[o]},set(a){this.#t[o]=a},enumerable:!0});this.#t.$set=o=>{Object.assign(i,o)},this.#t.$destroy=()=>{Eo(this.#t)}}$set(r){this.#t.$set(r)}$on(r,e){this.#r[r]=this.#r[r]||[];const n=(...i)=>e.call(this,...i);return this.#r[r].push(n),()=>{this.#r[r]=this.#r[r].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}let vn;typeof HTMLElement=="function"&&(vn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,r,e){super(),this.$$ctor=t,this.$$s=r,e&&this.attachShadow({mode:"open"})}addEventListener(t,r,e){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,e)}removeEventListener(t,r,e){if(super.removeEventListener(t,r,e),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return i=>{const o=document.createElement("slot");n!=="default"&&(o.name=n),I(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},e=Go(this);for(const n of this.$$s)n in e&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Sr(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=zo({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=go(()=>{Fe(()=>{this.$$r=!0;for(const n of cr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Sr(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 o=this.$$c.$on(n,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(t,r,e){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Sr(t,e,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return cr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Sr(t,r,e,n){const i=e[t]?.type;if(r=i==="Boolean"&&typeof r!="boolean"?r!=null:r,!n||!e[t])return r;if(n==="toAttribute")switch(i){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r??null;default:return r}else switch(i){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function Go(t){const r={};return t.childNodes.forEach(e=>{r[e.slot||"default"]=!0}),r}function Lo(t,r,e,n,i,o){let a=class extends vn{constructor(){super(t,e,i),this.$$p_d=r}static get observedAttributes(){return cr(r).map(l=>(r[l].attribute||l).toLowerCase())}};return cr(r).forEach(l=>{fr(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(s){s=Sr(l,s,r),this.$$d[l]=s;var d=this.$$c;if(d){var p=Dt(d,l)?.get;p?d[l]=s:d.$set({[l]:s})}}})}),n.forEach(l=>{fr(a.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=a,a}var Wt={},gn;function Yo(){if(gn)return Wt;gn=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.LanguageTranslator=void 0,Wt.getChildStyleToPass=t,Wt.addComponent=r;function t(n,i){var o,a,l="";try{if(n&&i?.length&&(!((o=Object.keys(n))===null||o===void 0)&&o.length)&&(!((a=i?.filter(function(x){return Object.keys(n).includes(x.name)}))===null||a===void 0)&&a.length))for(var s=function(x){var b=i?.filter(function(m){return m.name===x&&m.defaultValue!==n[x]});b&&(l+="".concat(x,":").concat(n[x],";"))},d=0,p=Object.keys(n);d<p.length;d++){var g=p[d];s(g)}}catch(x){console.error("error getting child style to pass",x)}finally{return l}}function r(n){var i,o=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!o)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(o+"-script"))try{var l=document.createElement("script");if(l.id=o+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var s=o.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(o.replace(s+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(d){console.warn(d)}}var e=(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,o){return n.getDictionaryWord(i,this.dictionary,o||this.lang)},n.prototype.translateDate=function(i,o,a){return n.formatDate(i,o,a||this.lang)},n.getDefaultLang=function(){var i,o,a,l="en";return navigator?.languages&&(!((a=(o=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||o===void 0?void 0:o.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(i,o,a){var l;if(!i)throw new Error("no wordKey provided");if(!o)throw new Error("no dictionary provided");if(a&&(!((l=o[a])===null||l===void 0)&&l[i]))return o[a][i];var s="",d=n.getDefaultLang();if(!a||d!==a){var p=o?.[d];p?.[i]&&(s=p[i])}return s},n.formatDate=function(i,o,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||n.getDefaultLang(),o);return l.format(i)},n})();return Wt.LanguageTranslator=e,Wt}Yo();var Fo=N('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1d5xrrt"/>'),Zo=N('<div class="author-name-spacer me-2 svelte-1d5xrrt"></div>'),Ho=N('<div class="author-name-spacer ms-2 svelte-1d5xrrt"></div>'),Uo=N('<div><!> <div class="author-name-content flex-grow-1 svelte-1d5xrrt"><span> </span></div> <!></div>'),Wo=N('<span class="badge bg-primary position-absolute top-0 end-0 translate-middle rounded-pill svelte-1d5xrrt">AI</span>'),Jo=N('<div class="avatar-container position-relative svelte-1d5xrrt"><img class="rounded-circle svelte-1d5xrrt" width="40" height="40"/> <!></div>'),qo=N('<div class="avatar-spacer svelte-1d5xrrt"></div>'),Qo=N('<div class="message-avatar me-2 svelte-1d5xrrt"><!></div>'),Vo=N('<div class="code-header d-flex justify-content-between align-items-center mb-2 svelte-1d5xrrt"><span class="badge bg-secondary svelte-1d5xrrt"> </span></div>'),Xo=N('<div class="code-block svelte-1d5xrrt"><!> <pre class="bg-dark text-light p-3 rounded-2 mb-0 svelte-1d5xrrt"><code class="svelte-1d5xrrt"> </code></pre></div>'),Ko=N('<div class="message-text svelte-1d5xrrt"> </div>'),ti=N('<div><div part="message-body" class="message-body svelte-1d5xrrt"><!></div></div>'),ri=N('<div class="code-header d-flex justify-content-between align-items-center mb-2 svelte-1d5xrrt"><span class="badge bg-secondary svelte-1d5xrrt"> </span></div>'),ei=N('<div class="code-block svelte-1d5xrrt"><!> <pre class="bg-dark text-light p-3 rounded-2 mb-0 svelte-1d5xrrt"><code class="svelte-1d5xrrt"> </code></pre></div>'),ni=N('<div class="message-text svelte-1d5xrrt"> </div>'),oi=N('<div part="message" class="message-bubble bg-secondary-subtle border rounded-3 p-3 shadow-sm svelte-1d5xrrt"><div part="message-body" class="message-body svelte-1d5xrrt"><!></div></div>'),ii=N('<button class="btn btn-sm btn-outline-secondary rounded-circle p-1 svelte-1d5xrrt"><i></i></button>'),ai=N('<div part="message-timestamp" class="message-timestamp ms-2 svelte-1d5xrrt"> </div>'),li=N("<div><!> <!></div>"),si=N('<div><div part="message-timestamp" class="message-timestamp svelte-1d5xrrt"> </div></div>'),di=N('<img alt="You" class="rounded-circle svelte-1d5xrrt" width="40" height="40"/>'),mi=N('<div class="avatar-spacer svelte-1d5xrrt"></div>'),pi=N('<div class="message-avatar ms-2 svelte-1d5xrrt"><!></div>'),xi=N('<!> <div><!> <div class="message-content position-relative svelte-1d5xrrt"><!> <!></div> <!></div>',1);const vi={hash:"svelte-1d5xrrt",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(se){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const fn=1,cn=2,un=16,hn=1,yn=4,wn=8,_n=16,kn=1,jn=2,de="[",br="[!",Or="]",Ut={},z=Symbol(),An="http://www.w3.org/1999/xhtml",zr=!1;var me=Array.isArray,Mn=Array.prototype.indexOf,Pr=Array.from,fr=Object.keys,cr=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,$n=Object.getOwnPropertyDescriptors,En=Object.prototype,Tn=Array.prototype,pe=Object.getPrototypeOf,xe=Object.isExtensible;function In(t){for(var r=0;r<t.length;r++)t[r]()}function ve(){var t,r,e=new Promise((n,i)=>{t=n,r=i});return{promise:e,resolve:t,reject:r}}const D=2,Gr=4,Lr=8,yt=16,wt=32,Et=64,ur=128,pt=512,P=1024,U=2048,_t=4096,K=8192,kt=16384,hr=32768,Vt=65536,ge=1<<17,Yr=1<<18,Bt=1<<19,Nn=1<<20,Ot=32768,Fr=1<<21,Zr=1<<22,Tt=1<<23,yr=Symbol("$state"),be=Symbol("legacy props"),Rn=Symbol(""),Xt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Hr=3,zt=8;function Cn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Sn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Dn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Bn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function On(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Pn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Gn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Fn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function wr(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Zn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let _=!1;function xt(t){_=t}let k;function F(t){if(t===null)throw wr(),Ut;return k=t}function _r(){return F(lt(k))}function $(t){if(_){if(lt(k)!==null)throw wr(),Ut;k=t}}function Hn(t=1){if(_){for(var r=t,e=k;r--;)e=lt(e);k=e}}function kr(t=!0){for(var r=0,e=k;;){if(e.nodeType===zt){var n=e.data;if(n===Or){if(r===0)return e;r-=1}else(n===de||n===br)&&(r+=1)}var i=lt(e);t&&e.remove(),e=i}}function fe(t){if(!t||t.nodeType!==zt)throw wr(),Ut;return t.data}function ce(t){return t===this.v}function Wn(t,r){return t!=t?r==r:t!==r||t!==null&&typeof t=="object"||typeof t=="function"}function ue(t){return!Wn(t,this.v)}let Jn=!1,nt=null;function Kt(t){nt=t}function he(t,r=!1,e){nt={p:nt,i:!1,c:null,e:null,s:t,x:null,l:null}}function ye(t){var r=nt,e=r.e;if(e!==null){r.e=null;for(var n of e)Ye(n)}return t!==void 0&&(r.x=t),r.i=!0,nt=r.p,t??{}}function we(){return!0}let Pt=[];function _e(){var t=Pt;Pt=[],In(t)}function Wr(t){if(Pt.length===0&&!lr){var r=Pt;queueMicrotask(()=>{r===Pt&&_e()})}Pt.push(t)}function qn(){for(;Pt.length>0;)_e()}function ke(t){var r=j;if(r===null)return y.f|=Tt,t;if((r.f&hr)===0){if((r.f&ur)===0)throw t;r.b.error(t)}else tr(t,r)}function tr(t,r){for(;r!==null;){if((r.f&ur)!==0)try{r.b.error(t);return}catch(e){t=e}r=r.parent}throw t}const jr=new Set;let R=null,ot=null,it=[],Ar=null,Jr=!1,lr=!1;class vt{committed=!1;current=new Map;previous=new Map;#r=new Set;#t=new Set;#e=0;#n=0;#s=null;#i=[];#o=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(r){it=[],this.apply();var e={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of r)this.#a(n,e);this.is_fork||this.#m(),this.is_deferred()?(this.#l(e.effects),this.#l(e.render_effects),this.#l(e.block_effects)):(R=null,Ae(e.render_effects),Ae(e.effects),this.#s?.resolve()),ot=null}#a(r,e){r.f^=P;for(var n=r.first;n!==null;){var i=n.f,o=(i&(wt|Et))!==0,a=o&&(i&P)!==0,l=a||(i&K)!==0||this.skipped_effects.has(n);if((n.f&ur)!==0&&n.b?.is_pending()&&(e={parent:e,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){o?n.f^=P:(i&Gr)!==0?e.effects.push(n):pr(n)&&((n.f&yt)!==0&&e.block_effects.push(n),xr(n));var s=n.first;if(s!==null){n=s;continue}}var d=n.parent;for(n=n.next;n===null&&d!==null;)d===e.effect&&(this.#l(e.effects),this.#l(e.render_effects),this.#l(e.block_effects),e=e.parent),n=d.next,d=d.parent}}#l(r){for(const e of r)((e.f&U)!==0?this.#i:this.#o).push(e),this.#d(e.deps),G(e,P)}#d(r){if(r!==null)for(const e of r)(e.f&D)===0||(e.f&Ot)===0||(e.f^=Ot,this.#d(e.deps))}capture(r,e){this.previous.has(r)||this.previous.set(r,e),(r.f&Tt)===0&&(this.current.set(r,r.v),ot?.set(r,r.v))}activate(){R=this,this.apply()}deactivate(){R===this&&(R=null,ot=null)}flush(){if(this.activate(),it.length>0){if(je(),R!==null&&R!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const r of this.#t)r(this);this.#t.clear()}#m(){if(this.#n===0){for(const r of this.#r)r();this.#r.clear()}this.#e===0&&this.#p()}#p(){if(jr.size>1){this.previous.clear();var r=ot,e=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of jr){if(o===this){e=!1;continue}const a=[];for(const[s,d]of this.current){if(o.current.has(s))if(e&&d!==o.current.get(s))o.current.set(s,d);else continue;a.push(s)}if(a.length===0)continue;const l=[...o.current.keys()].filter(s=>!this.current.has(s));if(l.length>0){var i=it;it=[];const s=new Set,d=new Map;for(const p of a)Me(p,l,s,d);if(it.length>0){R=o,o.apply();for(const p of it)o.#a(p,n);o.deactivate()}it=i}}R=null,ot=r}this.committed=!0,jr.delete(this)}increment(r){this.#e+=1,r&&(this.#n+=1)}decrement(r){this.#e-=1,r&&(this.#n-=1),this.revive()}revive(){for(const r of this.#i)G(r,U),Gt(r);for(const r of this.#o)G(r,_t),Gt(r);this.#i=[],this.#o=[],this.flush()}oncommit(r){this.#r.add(r)}ondiscard(r){this.#t.add(r)}settled(){return(this.#s??=ve()).promise}static ensure(){if(R===null){const r=R=new vt;jr.add(R),lr||vt.enqueue(()=>{R===r&&r.flush()})}return R}static enqueue(r){Wr(r)}apply(){}}function rr(t){var r=lr;lr=!0;try{for(var e;;){if(qn(),it.length===0&&(R?.flush(),it.length===0))return Ar=null,e;je()}}finally{lr=r}}function je(){var t=Rt;Jr=!0;var r=null;try{var e=0;for(Ir(!0);it.length>0;){var n=vt.ensure();if(e++>1e3){var i,o;Qn()}n.process(it),It.clear()}}finally{Jr=!1,Ir(t),Ar=null}}function Qn(){try{On()}catch(t){tr(t,Ar)}}let jt=null;function Ae(t){var r=t.length;if(r!==0){for(var e=0;e<r;){var n=t[e++];if((n.f&(kt|K))===0&&pr(n)&&(jt=new Set,xr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?We(n):n.fn=null),jt?.size>0)){It.clear();for(const i of jt){if((i.f&(kt|K))!==0)continue;const o=[i];let a=i.parent;for(;a!==null;)jt.has(a)&&(jt.delete(a),o.push(a)),a=a.parent;for(let l=o.length-1;l>=0;l--){const s=o[l];(s.f&(kt|K))===0&&xr(s)}}jt.clear()}}jt=null}}function Me(t,r,e,n){if(!e.has(t)&&(e.add(t),t.reactions!==null))for(const i of t.reactions){const o=i.f;(o&D)!==0?Me(i,r,e,n):(o&(Zr|yt))!==0&&(o&U)===0&&$e(i,r,n)&&(G(i,U),Gt(i))}}function $e(t,r,e){const n=e.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const i of t.deps){if(r.includes(i))return!0;if((i.f&D)!==0&&$e(i,r,e))return e.set(i,!0),!0}return e.set(t,!1),!1}function Gt(t){for(var r=Ar=t;r.parent!==null;){r=r.parent;var e=r.f;if(Jr&&r===j&&(e&yt)!==0&&(e&Yr)===0)return;if((e&(Et|wt))!==0){if((e&P)===0)return;r.f^=P}}it.push(r)}function Un(t){let r=0,e=Lt(0),n;return()=>{Er()&&(f(e),Fe(()=>(r===0&&(n=an(()=>t(()=>dr(e)))),r+=1,()=>{Wr(()=>{r-=1,r===0&&(n?.(),n=void 0,dr(e))})})))}}var Vn=Vt|Bt|ur;function Xn(t,r,e){new Kn(t,r,e)}class Kn{parent;#r=!1;#t;#e=_?k:null;#n;#s;#i;#o=null;#a=null;#l=null;#d=null;#m=null;#p=0;#x=0;#g=!1;#v=null;#h=Un(()=>(this.#v=Lt(this.#p),()=>{this.#v=null}));constructor(r,e,n){this.#t=r,this.#n=e,this.#s=n,this.parent=j.b,this.#r=!!this.#n.pending,this.#i=Tr(()=>{if(j.b=this,_){const o=this.#e;_r(),o.nodeType===zt&&o.data===br?this.#w():this.#y()}else{var i=this.#c();try{this.#o=st(()=>n(i))}catch(o){this.error(o)}this.#x>0?this.#f():this.#r=!1}return()=>{this.#m?.remove()}},Vn),_&&(this.#t=k)}#y(){try{this.#o=st(()=>this.#s(this.#t))}catch(r){this.error(r)}this.#r=!1}#w(){const r=this.#n.pending;r&&(this.#a=st(()=>r(this.#t)),vt.enqueue(()=>{var e=this.#c();this.#o=this.#b(()=>(vt.ensure(),st(()=>this.#s(e)))),this.#x>0?this.#f():(nr(this.#a,()=>{this.#a=null}),this.#r=!1)}))}#c(){var r=this.#t;return this.#r&&(this.#m=at(),this.#t.before(this.#m),r=this.#m),r}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#b(r){var e=j,n=y,i=nt;ut(this.#i),V(this.#i),Kt(this.#i.ctx);try{return r()}catch(o){return ke(o),null}finally{ut(e),V(n),Kt(i)}}#f(){const r=this.#n.pending;this.#o!==null&&(this.#d=document.createDocumentFragment(),this.#d.append(this.#m),Qe(this.#o,this.#d)),this.#a===null&&(this.#a=st(()=>r(this.#t)))}#u(r){if(!this.has_pending_snippet()){this.parent&&this.parent.#u(r);return}this.#x+=r,this.#x===0&&(this.#r=!1,this.#a&&nr(this.#a,()=>{this.#a=null}),this.#d&&(this.#t.before(this.#d),this.#d=null))}update_pending_count(r){this.#u(r),this.#p+=r,this.#v&&sr(this.#v,this.#p)}get_effect_pending(){return this.#h(),f(this.#v)}error(r){var e=this.#n.onerror;let n=this.#n.failed;if(this.#g||!e&&!n)throw r;this.#o&&(H(this.#o),this.#o=null),this.#a&&(H(this.#a),this.#a=null),this.#l&&(H(this.#l),this.#l=null),_&&(F(this.#e),Hn(),F(kr()));var i=!1,o=!1;const a=()=>{if(i){Zn();return}i=!0,o&&Fn(),vt.ensure(),this.#p=0,this.#l!==null&&nr(this.#l,()=>{this.#l=null}),this.#r=this.has_pending_snippet(),this.#o=this.#b(()=>(this.#g=!1,st(()=>this.#s(this.#t)))),this.#x>0?this.#f():this.#r=!1};var l=y;try{V(null),o=!0,e?.(r,a),o=!1}catch(s){tr(s,this.#i&&this.#i.parent)}finally{V(l)}n&&Wr(()=>{this.#l=this.#b(()=>{vt.ensure(),this.#g=!0;try{return st(()=>{n(this.#t,()=>r,()=>a)})}catch(s){return tr(s,this.#i.parent),null}finally{this.#g=!1}})})}}function to(t,r){return r}function ro(t,r,e){for(var n=[],i=r.length,o=0;o<i;o++)te(r[o].e,n,!0);Je(n,()=>{var a=n.length===0&&e!==null;if(a){var l=e,s=l.parentNode;Pe(s),s.append(l),t.items.clear(),gt(t,r[0].prev,r[i-1].next)}for(var d=0;d<i;d++){var p=r[d];a||(t.items.delete(p.k),gt(t,p.prev,p.next)),H(p.e,!a)}t.first===r[0]&&(t.first=r[0].prev)})}function Ee(t,r,e,n,i,o=null){var a=t,l=new Map,s=null;_&&_r();var d=null,p=Te(()=>{var u=e();return me(u)?u:u==null?[]:Pr(u)}),g,x=!0;function b(){eo(v,g,a,r,n),d!==null&&(g.length===0?(d.fragment?(a.before(d.fragment),d.fragment=null):re(d.effect),m.first=d.effect):nr(d.effect,()=>{d=null}))}var m=Tr(()=>{g=f(p);var u=g.length;let S=!1;if(_){var A=fe(a)===br;A!==(u===0)&&(a=kr(),F(a),xt(!1),S=!0)}for(var C=new Set,Y=R,mt=null,ht=Ge(),J=0;J<u;J+=1){_&&k.nodeType===zt&&k.data===Or&&(a=k,S=!0,xt(!1));var Ct=g[J],St=n(Ct,J),X=x?null:l.get(St);X?(sr(X.v,Ct),X.i=J,ht&&Y.skipped_effects.delete(X.e)):(X=no(x?a:null,mt,Ct,St,J,i,r,e),x&&(X.o=!0,mt===null?s=X:mt.next=X,mt=X),l.set(St,X)),C.add(St)}if(u===0&&o&&!d)if(x)d={fragment:null,effect:st(()=>o(a))};else{var Dr=document.createDocumentFragment(),Br=at();Dr.append(Br),d={fragment:Dr,effect:st(()=>o(Br))}}if(_&&u>0&&F(kr()),!x)if(ht){for(const[oe,ie]of l)C.has(oe)||Y.skipped_effects.add(ie.e);Y.oncommit(b),Y.ondiscard(()=>{})}else b();S&&xt(!0),f(p)}),v={effect:m,items:l,first:s};x=!1,_&&(a=k)}function eo(t,r,e,n,i){var o=r.length,a=t.items,l=t.first,s,d=null,p=[],g=[],x,b,m,v;for(v=0;v<o;v+=1){if(x=r[v],b=i(x,v),m=a.get(b),t.first??=m,!m.o){m.o=!0;var u=d?d.next:l;gt(t,d,m),gt(t,m,u),qr(m,u,e),d=m,p=[],g=[],l=d.next;continue}if((m.e.f&K)!==0&&re(m.e),m!==l){if(s!==void 0&&s.has(m)){if(p.length<g.length){var S=g[0],A;d=S.prev;var C=p[0],Y=p[p.length-1];for(A=0;A<p.length;A+=1)qr(p[A],S,e);for(A=0;A<g.length;A+=1)s.delete(g[A]);gt(t,C.prev,Y.next),gt(t,d,C),gt(t,Y,S),l=S,d=Y,v-=1,p=[],g=[]}else s.delete(m),qr(m,l,e),gt(t,m.prev,m.next),gt(t,m,d===null?t.first:d.next),gt(t,d,m),d=m;continue}for(p=[],g=[];l!==null&&l.k!==b;)(l.e.f&K)===0&&(s??=new Set).add(l),g.push(l),l=l.next;if(l===null)continue;m=l}p.push(m),d=m,l=m.next}if(l!==null||s!==void 0){for(var mt=s===void 0?[]:Pr(s);l!==null;)(l.e.f&K)===0&&mt.push(l),l=l.next;var ht=mt.length;if(ht>0){var J=null;ro(t,mt,J)}}}function no(t,r,e,n,i,o,a,l){var s=(a&fn)!==0,d=(a&un)===0,p=s?d?Ce(e,!1,!1):Lt(e):e,g=(a&cn)===0?i:Lt(i),x={i:g,v:p,k:n,a:null,e:null,o:!1,prev:r,next:null};try{if(t===null){var b=document.createDocumentFragment();b.append(t=at())}return x.e=st(()=>o(t,p,g,l)),r!==null&&(r.next=x),x}finally{}}function qr(t,r,e){for(var n=t.next?t.next.e.nodes_start:e,i=r?r.e.nodes_start:e,o=t.e.nodes_start;o!==null&&o!==n;){var a=lt(o);i.before(o),o=a}}function gt(t,r,e){r===null?(t.first=e,t.effect.first=e&&e.e):(r.e.next&&(r.e.next.prev=null),r.next=e,r.e.next=e&&e.e),e===null?t.effect.last=r&&r.e:(e.e.prev&&(e.e.prev.next=null),e.prev=r,e.e.prev=r&&r.e)}function oo(t,r,e,n){const i=$r;if(e.length===0&&t.length===0){n(r.map(i));return}var o=R,a=j,l=io();function s(){Promise.all(e.map(d=>ao(d))).then(d=>{l();try{n([...r.map(i),...d])}catch(p){(a.f&kt)===0&&tr(p,a)}o?.deactivate(),Mr()}).catch(d=>{tr(d,a)})}t.length>0?Promise.all(t).then(()=>{l();try{return s()}finally{o?.deactivate(),Mr()}}):s()}function io(){var t=j,r=y,e=nt,n=R;return function(o=!0){ut(t),V(r),Kt(e),o&&n?.activate()}}function Mr(){ut(null),V(null),Kt(null)}function $r(t){var r=D|U,e=y!==null&&(y.f&D)!==0?y:null;return j!==null&&(j.f|=Bt),{ctx:nt,deps:null,effects:null,equals:ce,f:r,fn:t,reactions:null,rv:0,v:z,wv:0,parent:e??j,ac:null}}function ao(t,r){let e=j;e===null&&Cn();var n=e.b,i=void 0,o=Lt(z),a=!y,l=new Map;return co(()=>{var s=ve();i=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).then(()=>{d===R&&d.committed&&d.deactivate(),Mr()})}catch(x){s.reject(x),Mr()}var d=R;if(a){var p=!n.is_pending();n.update_pending_count(1),d.increment(p),l.get(d)?.reject(Xt),l.delete(d),l.set(d,s)}const g=(x,b=void 0)=>{if(d.activate(),b)b!==Xt&&(o.f|=Tt,sr(o,b));else{(o.f&Tt)!==0&&(o.f^=Tt),sr(o,x);for(const[m,v]of l){if(l.delete(m),m===d)break;v.reject(Xt)}}a&&(n.update_pending_count(-1),d.decrement(p))};s.promise.then(g,x=>g(null,x||"unknown"))}),vo(()=>{for(const s of l.values())s.reject(Xt)}),new Promise(s=>{function d(p){function g(){p===i?s(o):d(i)}p.then(g,g)}d(i)})}function lo(t){const r=$r(t);return Ve(r),r}function Te(t){const r=$r(t);return r.equals=ue,r}function Ie(t){var r=t.effects;if(r!==null){t.effects=null;for(var e=0;e<r.length;e+=1)H(r[e])}}function so(t){for(var r=t.parent;r!==null;){if((r.f&D)===0)return(r.f&kt)===0?r:null;r=r.parent}return null}function Qr(t){var r,e=j;ut(so(t));try{t.f&=~Ot,Ie(t),r=en(t)}finally{ut(e)}return r}function Ne(t){var r=Qr(t);if(t.equals(r)||(R?.is_fork||(t.v=r),t.wv=tn()),!Ft)if(ot!==null)Er()&&ot.set(t,r);else{var e=(t.f&pt)===0?_t:P;G(t,e)}}let Ur=new Set;const It=new Map;let Re=!1;function Lt(t,r){var e={f:0,v:t,reactions:null,equals:ce,rv:0,wv:0};return e}function Nt(t,r){const e=Lt(t);return Ve(e),e}function Ce(t,r=!1,e=!0){const n=Lt(t);return r||(n.equals=ue),n}function At(t,r,e=!1){y!==null&&(!ct||(y.f&ge)!==0)&&we()&&(y.f&(D|yt|Zr|ge))!==0&&!Mt?.includes(t)&&Yn();let n=e?er(r):r;return sr(t,n)}function sr(t,r){if(!t.equals(r)){var e=t.v;Ft?It.set(t,r):It.set(t,e),t.v=r;var n=vt.ensure();n.capture(t,e),(t.f&D)!==0&&((t.f&U)!==0&&Qr(t),G(t,(t.f&pt)!==0?P:_t)),t.wv=tn(),Se(t,U),j!==null&&(j.f&P)!==0&&(j.f&(wt|Et))===0&&(dt===null?yo([t]):dt.push(t)),!n.is_fork&&Ur.size>0&&!Re&&mo()}return r}function mo(){Re=!1;var t=Rt;Ir(!0);const r=Array.from(Ur);try{for(const e of r)(e.f&P)!==0&&G(e,_t),pr(e)&&xr(e)}finally{Ir(t)}Ur.clear()}function dr(t){At(t,t.v+1)}function Se(t,r){var e=t.reactions;if(e!==null)for(var n=e.length,i=0;i<n;i++){var o=e[i],a=o.f,l=(a&U)===0;if(l&&G(o,r),(a&D)!==0){var s=o;ot?.delete(s),(a&Ot)===0&&(a&pt&&(o.f|=Ot),Se(s,_t))}else l&&((a&yt)!==0&&jt!==null&&jt.add(o),Gt(o))}}function er(t){if(typeof t!="object"||t===null||yr in t)return t;const r=pe(t);if(r!==En&&r!==Tn)return t;var e=new Map,n=me(t),i=Nt(0),o=Zt,a=l=>{if(Zt===o)return l();var s=y,d=Zt;V(null),Ke(o);var p=l();return V(s),Ke(d),p};return n&&e.set("length",Nt(t.length)),new Proxy(t,{defineProperty(l,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Gn();var p=e.get(s);return p===void 0?p=a(()=>{var g=Nt(d.value);return e.set(s,g),g}):At(p,d.value,!0),!0},deleteProperty(l,s){var d=e.get(s);if(d===void 0){if(s in l){const p=a(()=>Nt(z));e.set(s,p),dr(i)}}else At(d,z),dr(i);return!0},get(l,s,d){if(s===yr)return t;var p=e.get(s),g=s in l;if(p===void 0&&(!g||Dt(l,s)?.writable)&&(p=a(()=>{var b=er(g?l[s]:z),m=Nt(b);return m}),e.set(s,p)),p!==void 0){var x=f(p);return x===z?void 0:x}return Reflect.get(l,s,d)},getOwnPropertyDescriptor(l,s){var d=Reflect.getOwnPropertyDescriptor(l,s);if(d&&"value"in d){var p=e.get(s);p&&(d.value=f(p))}else if(d===void 0){var g=e.get(s),x=g?.v;if(g!==void 0&&x!==z)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return d},has(l,s){if(s===yr)return!0;var d=e.get(s),p=d!==void 0&&d.v!==z||Reflect.has(l,s);if(d!==void 0||j!==null&&(!p||Dt(l,s)?.writable)){d===void 0&&(d=a(()=>{var x=p?er(l[s]):z,b=Nt(x);return b}),e.set(s,d));var g=f(d);if(g===z)return!1}return p},set(l,s,d,p){var g=e.get(s),x=s in l;if(n&&s==="length")for(var b=d;b<g.v;b+=1){var m=e.get(b+"");m!==void 0?At(m,z):b in l&&(m=a(()=>Nt(z)),e.set(b+"",m))}if(g===void 0)(!x||Dt(l,s)?.writable)&&(g=a(()=>Nt(void 0)),At(g,er(d)),e.set(s,g));else{x=g.v!==z;var v=a(()=>er(d));At(g,v)}var u=Reflect.getOwnPropertyDescriptor(l,s);if(u?.set&&u.set.call(p,d),!x){if(n&&typeof s=="string"){var S=e.get("length"),A=Number(s);Number.isInteger(A)&&A>=S.v&&At(S,A+1)}dr(i)}return!0},ownKeys(l){f(i);var s=Reflect.ownKeys(l).filter(g=>{var x=e.get(g);return x===void 0||x.v!==z});for(var[d,p]of e)p.v!==z&&!(d in l)&&s.push(d);return s},setPrototypeOf(){Ln()}})}var De,Be,Oe,ze;function Vr(){if(De===void 0){De=window,Be=/Firefox/.test(navigator.userAgent);var t=Element.prototype,r=Node.prototype,e=Text.prototype;Oe=Dt(r,"firstChild").get,ze=Dt(r,"nextSibling").get,xe(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),xe(e)&&(e.__t=void 0)}}function at(t=""){return document.createTextNode(t)}function Yt(t){return Oe.call(t)}function lt(t){return ze.call(t)}function E(t,r){if(!_)return Yt(t);var e=Yt(k);if(e===null)e=k.appendChild(at());else if(r&&e.nodeType!==Hr){var n=at();return e?.before(n),F(n),n}return F(e),e}function Xr(t,r=!1){if(!_){var e=Yt(t);return e instanceof Comment&&e.data===""?lt(e):e}if(r&&k?.nodeType!==Hr){var n=at();return k?.before(n),F(n),n}return k}function bt(t,r=1,e=!1){let n=_?k:t;for(var i;r--;)i=n,n=lt(n);if(!_)return n;if(e&&n?.nodeType!==Hr){var o=at();return n===null?i?.after(o):n.before(o),F(o),o}return F(n),n}function Pe(t){t.textContent=""}function Ge(){return!1}function Le(t){var r=y,e=j;V(null),ut(null);try{return t()}finally{V(r),ut(e)}}function po(t){j===null&&(y===null&&Bn(),Dn()),Ft&&Sn()}function xo(t,r){var e=r.last;e===null?r.last=r.first=t:(e.next=t,t.prev=e,r.last=t)}function ft(t,r,e){var n=j;n!==null&&(n.f&K)!==0&&(t|=K);var i={ctx:nt,deps:null,nodes_start:null,nodes_end:null,f:t|U|pt,first:null,fn:r,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(e)try{xr(i),i.f|=hr}catch(l){throw H(i),l}else r!==null&&Gt(i);var o=i;if(e&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Bt)===0&&(o=o.first,(t&yt)!==0&&(t&Vt)!==0&&o!==null&&(o.f|=Vt)),o!==null&&(o.parent=n,n!==null&&xo(o,n),y!==null&&(y.f&D)!==0&&(t&Et)===0)){var a=y;(a.effects??=[]).push(o)}return i}function Er(){return y!==null&&!ct}function vo(t){const r=ft(Lr,null,!1);return G(r,P),r.teardown=t,r}function Kr(t){po();var r=j.f,e=!y&&(r&wt)!==0&&(r&hr)===0;if(e){var n=nt;(n.e??=[]).push(t)}else return Ye(t)}function Ye(t){return ft(Gr|Nn,t,!1)}function go(t){vt.ensure();const r=ft(Et|Bt,t,!0);return()=>{H(r)}}function bo(t){vt.ensure();const r=ft(Et|Bt,t,!0);return(e={})=>new Promise(n=>{e.outro?nr(r,()=>{H(r),n(void 0)}):(H(r),n(void 0))})}function fo(t){return ft(Gr,t,!1)}function co(t){return ft(Zr|Bt,t,!0)}function Fe(t,r=0){return ft(Lr|r,t,!0)}function Z(t,r=[],e=[],n=[]){oo(n,r,e,i=>{ft(Lr,()=>t(...i.map(f)),!0)})}function Tr(t,r=0){var e=ft(yt|r,t,!0);return e}function st(t){return ft(wt|Bt,t,!0)}function Ze(t){var r=t.teardown;if(r!==null){const e=Ft,n=y;Ue(!0),V(null);try{r.call(null)}finally{Ue(e),V(n)}}}function He(t,r=!1){var e=t.first;for(t.first=t.last=null;e!==null;){const i=e.ac;i!==null&&Le(()=>{i.abort(Xt)});var n=e.next;(e.f&Et)!==0?e.parent=null:H(e,r),e=n}}function uo(t){for(var r=t.first;r!==null;){var e=r.next;(r.f&wt)===0&&H(r),r=e}}function H(t,r=!0){var e=!1;(r||(t.f&Yr)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(ho(t.nodes_start,t.nodes_end),e=!0),He(t,r&&!e),Nr(t,0),G(t,kt);var n=t.transitions;if(n!==null)for(const o of n)o.stop();Ze(t);var i=t.parent;i!==null&&i.first!==null&&We(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function ho(t,r){for(;t!==null;){var e=t===r?null:lt(t);t.remove(),t=e}}function We(t){var r=t.parent,e=t.prev,n=t.next;e!==null&&(e.next=n),n!==null&&(n.prev=e),r!==null&&(r.first===t&&(r.first=n),r.last===t&&(r.last=e))}function nr(t,r,e=!0){var n=[];te(t,n,!0),Je(n,()=>{e&&H(t),r&&r()})}function Je(t,r){var e=t.length;if(e>0){var n=()=>--e||r();for(var i of t)i.out(n)}else r()}function te(t,r,e){if((t.f&K)===0){if(t.f^=K,t.transitions!==null)for(const a of t.transitions)(a.is_global||e)&&r.push(a);for(var n=t.first;n!==null;){var i=n.next,o=(n.f&Vt)!==0||(n.f&wt)!==0&&(t.f&yt)!==0;te(n,r,o?e:!1),n=i}}}function re(t){qe(t,!0)}function qe(t,r){if((t.f&K)!==0){t.f^=K,(t.f&P)===0&&(G(t,U),Gt(t));for(var e=t.first;e!==null;){var n=e.next,i=(e.f&Vt)!==0||(e.f&wt)!==0;qe(e,i?r:!1),e=n}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&o.in()}}function Qe(t,r){for(var e=t.nodes_start,n=t.nodes_end;e!==null;){var i=e===n?null:lt(e);r.append(e),e=i}}let Rt=!1;function Ir(t){Rt=t}let Ft=!1;function Ue(t){Ft=t}let y=null,ct=!1;function V(t){y=t}let j=null;function ut(t){j=t}let Mt=null;function Ve(t){y!==null&&(Mt===null?Mt=[t]:Mt.push(t))}let W=null,tt=0,dt=null;function yo(t){dt=t}let Xe=1,mr=0,Zt=mr;function Ke(t){Zt=t}function tn(){return++Xe}function pr(t){var r=t.f;if((r&U)!==0)return!0;if(r&D&&(t.f&=~Ot),(r&_t)!==0){var e=t.deps;if(e!==null)for(var n=e.length,i=0;i<n;i++){var o=e[i];if(pr(o)&&Ne(o),o.wv>t.wv)return!0}(r&pt)!==0&&ot===null&&G(t,P)}return!1}function rn(t,r,e=!0){var n=t.reactions;if(n!==null&&!Mt?.includes(t))for(var i=0;i<n.length;i++){var o=n[i];(o.f&D)!==0?rn(o,r,!1):r===o&&(e?G(o,U):(o.f&P)!==0&&G(o,_t),Gt(o))}}function en(t){var r=W,e=tt,n=dt,i=y,o=Mt,a=nt,l=ct,s=Zt,d=t.f;W=null,tt=0,dt=null,y=(d&(wt|Et))===0?t:null,Mt=null,Kt(t.ctx),ct=!1,Zt=++mr,t.ac!==null&&(Le(()=>{t.ac.abort(Xt)}),t.ac=null);try{t.f|=Fr;var p=t.fn,g=p(),x=t.deps;if(W!==null){var b;if(Nr(t,tt),x!==null&&tt>0)for(x.length=tt+W.length,b=0;b<W.length;b++)x[tt+b]=W[b];else t.deps=x=W;if(Rt&&Er()&&(t.f&pt)!==0)for(b=tt;b<x.length;b++)(x[b].reactions??=[]).push(t)}else x!==null&&tt<x.length&&(Nr(t,tt),x.length=tt);if(we()&&dt!==null&&!ct&&x!==null&&(t.f&(D|_t|U))===0)for(b=0;b<dt.length;b++)rn(dt[b],t);return i!==null&&i!==t&&(mr++,dt!==null&&(n===null?n=dt:n.push(...dt))),(t.f&Tt)!==0&&(t.f^=Tt),g}catch(m){return ke(m)}finally{t.f^=Fr,W=r,tt=e,dt=n,y=i,Mt=o,Kt(a),ct=l,Zt=s}}function wo(t,r){let e=r.reactions;if(e!==null){var n=Mn.call(e,t);if(n!==-1){var i=e.length-1;i===0?e=r.reactions=null:(e[n]=e[i],e.pop())}}e===null&&(r.f&D)!==0&&(W===null||!W.includes(r))&&(G(r,_t),(r.f&pt)!==0&&(r.f^=pt,r.f&=~Ot),Ie(r),Nr(r,0))}function Nr(t,r){var e=t.deps;if(e!==null)for(var n=r;n<e.length;n++)wo(t,e[n])}function xr(t){var r=t.f;if((r&kt)===0){G(t,P);var e=j,n=Rt;j=t,Rt=!0;try{(r&yt)!==0?uo(t):He(t),Ze(t);var i=en(t);t.teardown=typeof i=="function"?i:null,t.wv=Xe;var o;zr&&Jn&&(t.f&U)!==0&&t.deps}finally{Rt=n,j=e}}}function f(t){var r=t.f,e=(r&D)!==0;if(y!==null&&!ct){var n=j!==null&&(j.f&kt)!==0;if(!n&&!Mt?.includes(t)){var i=y.deps;if((y.f&Fr)!==0)t.rv<mr&&(t.rv=mr,W===null&&i!==null&&i[tt]===t?tt++:W===null?W=[t]:W.includes(t)||W.push(t));else{(y.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[y]:o.includes(y)||o.push(y)}}}if(Ft){if(It.has(t))return It.get(t);if(e){var a=t,l=a.v;return((a.f&P)===0&&a.reactions!==null||on(a))&&(l=Qr(a)),It.set(a,l),l}}else e&&!ot?.has(t)&&(a=t,pr(a)&&Ne(a),Rt&&Er()&&(a.f&pt)===0&&nn(a));if(ot?.has(t))return ot.get(t);if((t.f&Tt)!==0)throw t.v;return t.v}function nn(t){if(t.deps!==null){t.f^=pt;for(const r of t.deps)(r.reactions??=[]).push(t),(r.f&D)!==0&&(r.f&pt)===0&&nn(r)}}function on(t){if(t.v===z)return!0;if(t.deps===null)return!1;for(const r of t.deps)if(It.has(r)||(r.f&D)!==0&&on(r))return!0;return!1}function an(t){var r=ct;try{return ct=!0,t()}finally{ct=r}}const _o=-7169;function G(t,r){t.f=t.f&_o|r}const ln=new Set,ee=new Set;function ko(t){for(var r=0;r<t.length;r++)ln.add(t[r]);for(var e of ee)e(t)}let sn=null;function Rr(t){var r=this,e=r.ownerDocument,n=t.type,i=t.composedPath?.()||[],o=i[0]||t.target;sn=t;var a=0,l=sn===t&&t.__root;if(l){var s=i.indexOf(l);if(s!==-1&&(r===document||r===window)){t.__root=r;return}var d=i.indexOf(r);if(d===-1)return;s<=d&&(a=s)}if(o=i[a]||t.target,o!==r){cr(t,"currentTarget",{configurable:!0,get(){return o||e}});var p=y,g=j;V(null),ut(null);try{for(var x,b=[];o!==null;){var m=o.assignedSlot||o.parentNode||o.host||null;try{var v=o["__"+n];v!=null&&(!o.disabled||t.target===o)&&v.call(o,t)}catch(u){x?b.push(u):x=u}if(t.cancelBubble||m===r||m===null)break;o=m}if(x){for(let u of b)queueMicrotask(()=>{throw u});throw x}}finally{t.__root=r,delete t.currentTarget,V(p),ut(g)}}}function jo(t){var r=document.createElement("template");return r.innerHTML=t.replaceAll("<!>","<!---->"),r.content}function or(t,r){var e=j;e.nodes_start===null&&(e.nodes_start=t,e.nodes_end=r)}function N(t,r){var e=(r&kn)!==0,n=(r&jn)!==0,i,o=!t.startsWith("<!>");return()=>{if(_)return or(k,null),k;i===void 0&&(i=jo(o?t:"<!>"+t),e||(i=Yt(i)));var a=n||Be?document.importNode(i,!0):i.cloneNode(!0);if(e){var l=Yt(a),s=a.lastChild;or(l,s)}else or(a,a);return a}}function dn(){if(_)return or(k,null),k;var t=document.createDocumentFragment(),r=document.createComment(""),e=at();return t.append(r,e),or(r,e),t}function T(t,r){if(_){var e=j;((e.f&hr)===0||e.nodes_end===null)&&(e.nodes_end=k),_r();return}t!==null&&t.before(r)}const Ao=["touchstart","touchmove"];function Mo(t){return Ao.includes(t)}function $t(t,r){var e=r==null?"":typeof r=="object"?r+"":r;e!==(t.__t??=t.nodeValue)&&(t.__t=e,t.nodeValue=e+"")}function mn(t,r){return pn(t,r)}function $o(t,r){Vr(),r.intro=r.intro??!1;const e=r.target,n=_,i=k;try{for(var o=Yt(e);o&&(o.nodeType!==zt||o.data!==de);)o=lt(o);if(!o)throw Ut;xt(!0),F(o);const a=pn(t,{...r,anchor:o});return xt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ut&&console.warn("Failed to hydrate: ",a),r.recover===!1&&zn(),Vr(),Pe(e),xt(!1),mn(t,r)}finally{xt(n),F(i)}}const ir=new Map;function pn(t,{target:r,anchor:e,props:n={},events:i,context:o,intro:a=!0}){Vr();var l=new Set,s=g=>{for(var x=0;x<g.length;x++){var b=g[x];if(!l.has(b)){l.add(b);var m=Mo(b);r.addEventListener(b,Rr,{passive:m});var v=ir.get(b);v===void 0?(document.addEventListener(b,Rr,{passive:m}),ir.set(b,1)):ir.set(b,v+1)}}};s(Pr(ln)),ee.add(s);var d=void 0,p=bo(()=>{var g=e??r.appendChild(at());return Xn(g,{pending:()=>{}},x=>{if(o){he({});var b=nt;b.c=o}if(i&&(n.$$events=i),_&&or(x,null),d=t(x,n)||{},_&&(j.nodes_end=k,k===null||k.nodeType!==zt||k.data!==Or))throw wr(),Ut;o&&ye()}),()=>{for(var x of l){r.removeEventListener(x,Rr);var b=ir.get(x);--b===0?(document.removeEventListener(x,Rr),ir.delete(x)):ir.set(x,b)}ee.delete(s),g!==e&&g.parentNode?.removeChild(g)}});return ne.set(d,p),d}let ne=new WeakMap;function Eo(t,r){const e=ne.get(t);return e?(ne.delete(t),e(r)):Promise.resolve()}class To{anchor;#r=new Map;#t=new Map;#e=new Map;#n=new Set;#s=!0;constructor(r,e=!0){this.anchor=r,this.#s=e}#i=()=>{var r=R;if(this.#r.has(r)){var e=this.#r.get(r),n=this.#t.get(e);if(n)re(n),this.#n.delete(e);else{var i=this.#e.get(e);i&&(this.#t.set(e,i.effect),this.#e.delete(e),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[o,a]of this.#r){if(this.#r.delete(o),o===r)break;const l=this.#e.get(a);l&&(H(l.effect),this.#e.delete(a))}for(const[o,a]of this.#t){if(o===e||this.#n.has(o))continue;const l=()=>{if(Array.from(this.#r.values()).includes(o)){var d=document.createDocumentFragment();Qe(a,d),d.append(at()),this.#e.set(o,{effect:a,fragment:d})}else H(a);this.#n.delete(o),this.#t.delete(o)};this.#s||!n?(this.#n.add(o),nr(a,l,!1)):l()}}};#o=r=>{this.#r.delete(r);const e=Array.from(this.#r.values());for(const[n,i]of this.#e)e.includes(n)||(H(i.effect),this.#e.delete(n))};ensure(r,e){var n=R,i=Ge();if(e&&!this.#t.has(r)&&!this.#e.has(r))if(i){var o=document.createDocumentFragment(),a=at();o.append(a),this.#e.set(r,{effect:st(()=>e(a)),fragment:o})}else this.#t.set(r,st(()=>e(this.anchor)));if(this.#r.set(n,r),i){for(const[l,s]of this.#t)l===r?n.skipped_effects.delete(s):n.skipped_effects.add(s);for(const[l,s]of this.#e)l===r?n.skipped_effects.delete(s.effect):n.skipped_effects.add(s.effect);n.oncommit(this.#i),n.ondiscard(this.#o)}else _&&(this.anchor=k),this.#i()}}function L(t,r,e=!1){_&&_r();var n=new To(t),i=e?Vt:0;function o(a,l){if(_){const d=fe(t)===br;if(a===d){var s=kr();F(s),n.anchor=s,xt(!1),n.ensure(a,l),xt(!0);return}}n.ensure(a,l)}Tr(()=>{var a=!1;r((l,s=!0)=>{a=!0,o(s,l)}),a||o(!1,null)},i)}function Io(t,r){let e=null,n=_;var i;if(_){e=k;for(var o=Yt(document.head);o!==null&&(o.nodeType!==zt||o.data!==t);)o=lt(o);if(o===null)xt(!1);else{var a=lt(o);o.remove(),F(a)}}_||(i=document.head.appendChild(at()));try{Tr(()=>r(i),Yr)}finally{n&&(xt(!0),F(e))}}function No(t,r){fo(()=>{var e=t.getRootNode(),n=e.host?e:e.head??e.ownerDocument.head;if(!n.querySelector("#"+r.hash)){const i=document.createElement("style");i.id=r.hash,i.textContent=r.code,n.appendChild(i)}})}function Ro(t,r,e){var n=t==null?"":""+t;return n=n?n+" "+r:r,n===""?null:n}function Ht(t,r,e,n,i,o){var a=t.__className;if(_||a!==e||a===void 0){var l=Ro(e,n);(!_||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=e}return o}const Co=Symbol("is custom element"),So=Symbol("is html");function ar(t,r,e,n){var i=Do(t);_&&(i[r]=t.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&t.nodeName==="LINK")||i[r]!==(i[r]=e)&&(r==="loading"&&(t[Rn]=e),e==null?t.removeAttribute(r):typeof e!="string"&&Bo(t).includes(r)?t[r]=e:t.setAttribute(r,e))}function Do(t){return t.__attributes??={[Co]:t.nodeName.includes("-"),[So]:t.namespaceURI===An}}var xn=new Map;function Bo(t){var r=t.getAttribute("is")||t.nodeName,e=xn.get(r);if(e)return e;xn.set(r,e=[]);for(var n,i=t,o=Element.prototype;o!==i;){n=$n(i);for(var a in n)n[a].set&&e.push(a);i=pe(i)}return e}let Cr=!1;function Oo(t){var r=Cr;try{return Cr=!1,[t(),Cr]}finally{Cr=r}}function vr(t,r,e,n){var i=(e&wn)!==0,o=(e&_n)!==0,a=n,l=!0,s=()=>(l&&(l=!1,a=o?an(n):n),a),d;if(i){var p=yr in t||be in t;d=Dt(t,r)?.set??(p&&r in t?A=>t[r]=A:void 0)}var g,x=!1;i?[g,x]=Oo(()=>t[r]):g=t[r],g===void 0&&n!==void 0&&(g=s(),d&&(Pn(),d(g)));var b;if(b=()=>{var A=t[r];return A===void 0?s():(l=!0,A)},(e&yn)===0)return b;if(d){var m=t.$$legacy;return(function(A,C){return arguments.length>0?((!C||m||x)&&d(C?b():A),A):b()})}var v=!1,u=((e&hn)!==0?$r:Te)(()=>(v=!1,b()));i&&f(u);var S=j;return(function(A,C){if(arguments.length>0){const Y=C?f(u):i?er(A):A;return At(u,Y),v=!0,a!==void 0&&(a=Y),A}return Ft&&v||(S.f&kt)!==0?u.v:f(u)})}function zo(t){return new Po(t)}class Po{#r;#t;constructor(r){var e=new Map,n=(o,a)=>{var l=Ce(a,!1,!1);return e.set(o,l),l};const i=new Proxy({...r.props||{},$$events:{}},{get(o,a){return f(e.get(a)??n(a,Reflect.get(o,a)))},has(o,a){return a===be?!0:(f(e.get(a)??n(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,l){return At(e.get(a)??n(a,l),l),Reflect.set(o,a,l)}});this.#t=(r.hydrate?$o:mn)(r.component,{target:r.target,anchor:r.anchor,props:i,context:r.context,intro:r.intro??!1,recover:r.recover}),(!r?.props?.$$host||r.sync===!1)&&rr(),this.#r=i.$$events;for(const o of Object.keys(this.#t))o==="$set"||o==="$destroy"||o==="$on"||cr(this,o,{get(){return this.#t[o]},set(a){this.#t[o]=a},enumerable:!0});this.#t.$set=o=>{Object.assign(i,o)},this.#t.$destroy=()=>{Eo(this.#t)}}$set(r){this.#t.$set(r)}$on(r,e){this.#r[r]=this.#r[r]||[];const n=(...i)=>e.call(this,...i);return this.#r[r].push(n),()=>{this.#r[r]=this.#r[r].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}let vn;typeof HTMLElement=="function"&&(vn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,r,e){super(),this.$$ctor=t,this.$$s=r,e&&this.attachShadow({mode:"open"})}addEventListener(t,r,e){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,e)}removeEventListener(t,r,e){if(super.removeEventListener(t,r,e),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return i=>{const o=document.createElement("slot");n!=="default"&&(o.name=n),T(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},e=Go(this);for(const n of this.$$s)n in e&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Sr(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=zo({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=go(()=>{Fe(()=>{this.$$r=!0;for(const n of fr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Sr(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 o=this.$$c.$on(n,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(t,r,e){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Sr(t,e,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return fr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Sr(t,r,e,n){const i=e[t]?.type;if(r=i==="Boolean"&&typeof r!="boolean"?r!=null:r,!n||!e[t])return r;if(n==="toAttribute")switch(i){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r??null;default:return r}else switch(i){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function Go(t){const r={};return t.childNodes.forEach(e=>{r[e.slot||"default"]=!0}),r}function Lo(t,r,e,n,i,o){let a=class extends vn{constructor(){super(t,e,i),this.$$p_d=r}static get observedAttributes(){return fr(r).map(l=>(r[l].attribute||l).toLowerCase())}};return fr(r).forEach(l=>{cr(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(s){s=Sr(l,s,r),this.$$d[l]=s;var d=this.$$c;if(d){var p=Dt(d,l)?.get;p?d[l]=s:d.$set({[l]:s})}}})}),n.forEach(l=>{cr(a.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=a,a}var Wt={},gn;function Yo(){if(gn)return Wt;gn=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.LanguageTranslator=void 0,Wt.getChildStyleToPass=t,Wt.addComponent=r;function t(n,i){var o,a,l="";try{if(n&&i?.length&&(!((o=Object.keys(n))===null||o===void 0)&&o.length)&&(!((a=i?.filter(function(x){return Object.keys(n).includes(x.name)}))===null||a===void 0)&&a.length))for(var s=function(x){var b=i?.filter(function(m){return m.name===x&&m.defaultValue!==n[x]});b&&(l+="".concat(x,":").concat(n[x],";"))},d=0,p=Object.keys(n);d<p.length;d++){var g=p[d];s(g)}}catch(x){console.error("error getting child style to pass",x)}finally{return l}}function r(n){var i,o=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!o)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(o+"-script"))try{var l=document.createElement("script");if(l.id=o+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var s=o.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(o.replace(s+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(d){console.warn(d)}}var e=(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,o){return n.getDictionaryWord(i,this.dictionary,o||this.lang)},n.prototype.translateDate=function(i,o,a){return n.formatDate(i,o,a||this.lang)},n.getDefaultLang=function(){var i,o,a,l="en";return navigator?.languages&&(!((a=(o=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||o===void 0?void 0:o.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(i,o,a){var l;if(!i)throw new Error("no wordKey provided");if(!o)throw new Error("no dictionary provided");if(a&&(!((l=o[a])===null||l===void 0)&&l[i]))return o[a][i];var s="",d=n.getDefaultLang();if(!a||d!==a){var p=o?.[d];p?.[i]&&(s=p[i])}return s},n.formatDate=function(i,o,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||n.getDefaultLang(),o);return l.format(i)},n})();return Wt.LanguageTranslator=e,Wt}Yo();var Fo=N('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1d5xrrt"/>'),Zo=N('<div class="author-name-spacer me-2 svelte-1d5xrrt"></div>'),Ho=N('<div class="author-name-spacer ms-2 svelte-1d5xrrt"></div>'),Wo=N('<div><!> <div class="author-name-content flex-grow-1 svelte-1d5xrrt"><span> </span></div> <!></div>'),Jo=N('<span class="badge bg-primary position-absolute top-0 end-0 translate-middle rounded-pill svelte-1d5xrrt">AI</span>'),qo=N('<div class="avatar-container position-relative svelte-1d5xrrt"><img class="rounded-circle svelte-1d5xrrt" width="40" height="40"/> <!></div>'),Qo=N('<div class="avatar-spacer svelte-1d5xrrt"></div>'),Uo=N('<div class="message-avatar me-2 svelte-1d5xrrt"><!></div>'),Vo=N('<div class="code-header d-flex justify-content-between align-items-center mb-2 svelte-1d5xrrt"><span class="badge bg-secondary svelte-1d5xrrt"> </span></div>'),Xo=N('<div class="code-block svelte-1d5xrrt"><!> <pre class="bg-dark text-light p-3 rounded-2 mb-0 svelte-1d5xrrt"><code class="svelte-1d5xrrt"> </code></pre></div>'),Ko=N('<div class="message-text svelte-1d5xrrt"> </div>'),ti=N('<div><div part="message-body" class="message-body svelte-1d5xrrt"><!></div></div>'),ri=N('<div class="code-header d-flex justify-content-between align-items-center mb-2 svelte-1d5xrrt"><span class="badge bg-secondary svelte-1d5xrrt"> </span></div>'),ei=N('<div class="code-block svelte-1d5xrrt"><!> <pre class="bg-dark text-light p-3 rounded-2 mb-0 svelte-1d5xrrt"><code class="svelte-1d5xrrt"> </code></pre></div>'),ni=N('<div class="message-text svelte-1d5xrrt"> </div>'),oi=N('<div part="message" class="message-bubble bg-secondary-subtle border rounded-3 p-3 shadow-sm svelte-1d5xrrt"><div part="message-body" class="message-body svelte-1d5xrrt"><!></div></div>'),ii=N('<button class="btn btn-sm btn-outline-secondary rounded-circle p-1 svelte-1d5xrrt"><i></i></button>'),ai=N('<div part="message-timestamp" class="message-timestamp ms-2 svelte-1d5xrrt"> </div>'),li=N("<div><!> <!></div>"),si=N('<div><div part="message-timestamp" class="message-timestamp svelte-1d5xrrt"> </div></div>'),di=N('<img alt="You" class="rounded-circle svelte-1d5xrrt" width="40" height="40"/>'),mi=N('<div class="avatar-spacer svelte-1d5xrrt"></div>'),pi=N('<div class="message-avatar ms-2 svelte-1d5xrrt"><!></div>'),xi=N('<!> <div><!> <div class="message-content position-relative svelte-1d5xrrt"><!> <!></div> <!></div>',1);const vi={hash:"svelte-1d5xrrt",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");
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
- */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-1d5xrrt,
9
+ */.svelte-1d5xrrt,
10
10
  .svelte-1d5xrrt::before,
11
11
  .svelte-1d5xrrt::after {box-sizing:border-box;}
12
12
  @media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
@@ -179,5 +179,5 @@ button.svelte-1d5xrrt {margin:0;font-family:inherit;font-size:inherit;line-heigh
179
179
  @media print {.d-print-inline.svelte-1d5xrrt {display:inline !important;}.d-print-inline-block.svelte-1d5xrrt {display:inline-block !important;}.d-print-block.svelte-1d5xrrt {display:block !important;}.d-print-grid.svelte-1d5xrrt {display:grid !important;}.d-print-inline-grid.svelte-1d5xrrt {display:inline-grid !important;}.d-print-table.svelte-1d5xrrt {display:table !important;}.d-print-table-row.svelte-1d5xrrt {display:table-row !important;}.d-print-table-cell.svelte-1d5xrrt {display:table-cell !important;}.d-print-flex.svelte-1d5xrrt {display:flex !important;}.d-print-inline-flex.svelte-1d5xrrt {display:inline-flex !important;}.d-print-none.svelte-1d5xrrt {display:none !important;}
180
180
  }:host {font-family:"Roboto", sans-serif;width:100%;padding:1rem;max-height:600px;}:host .message-wrapper.svelte-1d5xrrt:hover .message-bubble:where(.svelte-1d5xrrt) {box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);}:host .author-name-wrapper.svelte-1d5xrrt {width:100%;align-items:center;}:host .author-name-wrapper.svelte-1d5xrrt .author-name-spacer:where(.svelte-1d5xrrt) {flex-shrink:0;width:40px;}:host .author-name-wrapper.svelte-1d5xrrt .author-name-content:where(.svelte-1d5xrrt) span:where(.svelte-1d5xrrt) {font-size:1.1rem;line-height:1.2;display:block;padding:0.25rem 0.5rem;border-radius:0.25rem;}:host .author-name-wrapper.d-flex.justify-content-end.svelte-1d5xrrt .author-name-content:where(.svelte-1d5xrrt) {text-align:right;}:host .author-name-wrapper.d-flex.justify-content-start.svelte-1d5xrrt .author-name-content:where(.svelte-1d5xrrt) {text-align:left;}:host .message-bubble.svelte-1d5xrrt {position:relative;word-wrap:break-word;}:host .message-bubble.bg-primary.svelte-1d5xrrt {background:linear-gradient(135deg, #007bff 0%, #0056b3 100%);}:host .message-bubble.bg-light.svelte-1d5xrrt {background-color:#f8f9fa;border:1px solid #dee2e6;}:host .message-bubble.bg-secondary-subtle.svelte-1d5xrrt {background-color:#f8f9fa;border:1px solid #dee2e6;color:inherit;}:host .code-block.svelte-1d5xrrt pre:where(.svelte-1d5xrrt) {background-color:#1e1e1e;border:1px solid #333;font-family:"Monaco", "Menlo", "Ubuntu Mono", monospace;font-size:0.875rem;overflow-x:auto;}:host .code-block.svelte-1d5xrrt pre:where(.svelte-1d5xrrt) code:where(.svelte-1d5xrrt) {color:#d4d4d4;}:host .message-actions.svelte-1d5xrrt button:where(.svelte-1d5xrrt) {backdrop-filter:blur(4px);border:1px solid rgba(255, 255, 255, 0.2);background-color:rgba(255, 255, 255, 0.9);width:24px;height:24px;font-size:10px;}:host .message-actions.svelte-1d5xrrt button:where(.svelte-1d5xrrt):hover {transform:scale(1.1);box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);background-color:rgb(255, 255, 255);}:host .avatar-container.svelte-1d5xrrt .badge:where(.svelte-1d5xrrt) {font-size:8px;padding:2px 4px;line-height:1;}:host .avatar-spacer.svelte-1d5xrrt {width:40px;}:host .message-timestamp.svelte-1d5xrrt {font-size:0.75rem;color:#6c757d;line-height:1;display:flex;align-items:center;white-space:nowrap;}:host .message-timestamp-only.svelte-1d5xrrt .message-timestamp:where(.svelte-1d5xrrt) {font-size:0.75rem;color:#6c757d;line-height:1;display:flex;align-items:center;white-space:nowrap;}
181
181
  @media (max-width: 768px) {:host .message-bubble.svelte-1d5xrrt {max-width:85%;}:host .message-actions.svelte-1d5xrrt {margin-top:0.5rem;}
182
- }`};function bn(t,r){he(r,!0),No(t,vi);function e(m,v){r.$$host.dispatchEvent(new CustomEvent(m,{detail:v}))}const n={showTimestamp:!0,showActions:!0,showAvatar:!0,showName:!0,bubbles:!1};let i=vr(r,"id",7,""),o=vr(r,"messages",7),a=vr(r,"authors",7),l=vr(r,"options",7,n),s=vr(r,"actions",23,()=>[]);function d(m=!1){return m?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzYzNjZGMCIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzZDNzU3NyIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg=="}let p=lo(()=>!o()||!a()?[]:o()?.filter?.(v=>a()?.find?.(u=>u?.id&&v?.authorId&&u.id===v.authorId)?.id)?.map?.((v,u)=>{const S=a()?.find?.(X=>X.id===v.authorId),A=new Date(v.timestamp).toDateString()===new Date().toDateString(),C=new Date(v.timestamp),Y=C.toLocaleTimeString().split(":")[0]+":"+C.toLocaleTimeString().split(":")[1],mt=C.toLocaleString().split(" ")[0]+" "+C.toLocaleTimeString().split(":")[0]+":"+C.toLocaleTimeString().split(":")[1],ht=A?Y:mt,W=u>0?o()[u-1]:null,Ct=!!(W&&W.authorId===v.authorId&&new Date(v.timestamp).getTime()-new Date(W.timestamp).getTime()<3e5),St=!!(l().showAvatar&&(!Ct||u===0));return{...v,author:S,dateString:ht,showAvatar:St,isConsecutive:Ct}})||[]);Yt({}),Kr(()=>{if(typeof o()=="string")try{o(JSON.parse(o()))}catch(m){console.error("error parsing messages",m)}if(typeof s()=="string")try{s(JSON.parse(s()))}catch(m){console.error("error parsing actions",m)}}),Kr(()=>{if(typeof l()=="string")try{l(JSON.parse(l())),l({...n,...l()})}catch(m){console.error("error parsing options",m)}}),Kr(()=>{if(typeof a()=="string")try{a(JSON.parse(a()))}catch(m){console.error("error parsing authors",m)}});var g={get id(){return i()},set id(m=""){i(m),er()},get messages(){return o()},set messages(m){o(m),er()},get authors(){return a()},set authors(m){a(m),er()},get options(){return l()},set options(m=n){l(m),er()},get actions(){return s()},set actions(m=[]){s(m),er()}},x=dn();To("1d5xrrt",m=>{var v=Fo();I(m,v)});var b=Xr(x);return Ee(b,17,()=>c(p),m=>m.id,(m,v)=>{var u=xi(),S=Xr(u);{var A=T=>{var M=Uo(),B=E(M);{var rt=et=>{var q=Zo();I(et,q)};L(B,et=>{!c(v).author.me&&l().showAvatar&&et(rt)})}var O=bt(B,2),w=E(O),f=E(w,!0);$(w),$(O);var h=bt(O,2);{var J=et=>{var q=Ho();I(et,q)};L(h,et=>{c(v).author.me&&l().showAvatar&&et(J)})}$(M),Z(()=>{Ut(M,1,`author-name-wrapper d-flex ${c(v).author.me?"justify-content-end":"justify-content-start"} mb-1 w-100`,"svelte-1d5xrrt"),Ut(w,1,`fw-semibold ${c(v).author.me?"text-secondary":"text-primary"}`,"svelte-1d5xrrt"),Et(f,c(v).author.me?"You":c(v).author.name)}),I(T,M)};L(S,T=>{l().showName&&T(A)})}var C=bt(S,2),Y=E(C);{var mt=T=>{var M=Qo(),B=E(M);{var rt=w=>{var f=Jo(),h=E(f),J=bt(h,2);{var et=q=>{var Jt=Wo();I(q,Jt)};L(J,q=>{c(v).author.isAI&&q(et)})}$(f),Z(q=>{ar(h,"src",q),ar(h,"alt",c(v).author.name)},[()=>c(v).author.avatar||d(c(v).author.isAI)]),I(w,f)},O=w=>{var f=qo();I(w,f)};L(B,w=>{c(v).showAvatar?w(rt):w(O,!1)})}$(M),I(T,M)};L(Y,T=>{!c(v).author.me&&l().showAvatar&&T(mt)})}var ht=bt(Y,2),W=E(ht);{var Ct=T=>{var M=ti(),B=E(M),rt=E(B);{var O=f=>{var h=Xo(),J=E(h);{var et=qt=>{var Qt=Vo(),gr=E(Qt),le=E(gr,!0);$(gr),$(Qt),Z(()=>Et(le,c(v).language)),I(qt,Qt)};L(J,qt=>{c(v).language&&qt(et)})}var q=bt(J,2),Jt=E(q),ae=E(Jt,!0);$(Jt),$(q),$(h),Z(()=>Et(ae,c(v).text)),I(f,h)},w=f=>{var h=Ko(),J=E(h,!0);$(h),Z(()=>Et(J,c(v).text)),I(f,h)};L(rt,f=>{c(v).type==="code"?f(O):f(w,!1)})}$(B),$(M),Z(()=>{ar(M,"part",`message-bubble-${c(v).author.me?"me":"them"}`),Ut(M,1,`message-bubble ${c(v).author.me?"bg-primary text-white":"bg-light border"} rounded-3 p-3 shadow-sm`,"svelte-1d5xrrt")}),I(T,M)},St=T=>{var M=oi(),B=E(M),rt=E(B);{var O=f=>{var h=ei(),J=E(h);{var et=qt=>{var Qt=ri(),gr=E(Qt),le=E(gr,!0);$(gr),$(Qt),Z(()=>Et(le,c(v).language)),I(qt,Qt)};L(J,qt=>{c(v).language&&qt(et)})}var q=bt(J,2),Jt=E(q),ae=E(Jt,!0);$(Jt),$(q),$(h),Z(()=>Et(ae,c(v).text)),I(f,h)},w=f=>{var h=ni(),J=E(h,!0);$(h),Z(()=>Et(J,c(v).text)),I(f,h)};L(rt,f=>{c(v).type==="code"?f(O):f(w,!1)})}$(B),$(M),I(T,M)};L(W,T=>{l().bubbles?T(Ct):T(St,!1)})}var X=bt(W,2);{var Dr=T=>{var M=li(),B=E(M);Ee(B,17,s,to,(w,f)=>{var h=ii();h.__click=()=>e("action",{messageId:c(v).id,action:c(f).name});var J=E(h);$(h),Z(()=>{ar(h,"title",c(f).name),ar(h,"aria-label",c(f).name),Ut(J,1,`bi bi-${c(f).icon??""}`,"svelte-1d5xrrt")}),I(w,h)});var rt=bt(B,2);{var O=w=>{var f=ai(),h=E(f,!0);$(f),Z(()=>Et(h,c(v).dateString)),I(w,f)};L(rt,w=>{l().showTimestamp&&w(O)})}$(M),Z(()=>Ut(M,1,`message-actions d-flex gap-1 ${c(v).author.me?"justify-content-end":"justify-content-start"} mt-2`,"svelte-1d5xrrt")),I(T,M)},Br=T=>{var M=dn(),B=Xr(M);{var rt=O=>{var w=si(),f=E(w),h=E(f,!0);$(f),$(w),Z(()=>{Ut(w,1,`message-timestamp-only d-flex ${c(v).author.me?"justify-content-end":"justify-content-start"} mt-1`,"svelte-1d5xrrt"),Et(h,c(v).dateString)}),I(O,w)};L(B,O=>{l().showTimestamp&&O(rt)},!0)}I(T,M)};L(X,T=>{s()?.length?T(Dr):T(Br,!1)})}$(ht);var oe=bt(ht,2);{var ie=T=>{var M=pi(),B=E(M);{var rt=w=>{var f=di();Z(h=>ar(f,"src",h),[()=>c(v).author.avatar||d(!1)]),I(w,f)},O=w=>{var f=mi();I(w,f)};L(B,w=>{c(v).showAvatar?w(rt):w(O,!1)})}$(M),I(T,M)};L(oe,T=>{c(v).author.me&&l().showAvatar&&T(ie)})}$(C),Z(()=>Ut(C,1,`message-wrapper d-flex ${c(v).author.me?"justify-content-end":"justify-content-start"} mb-3 w-100`,"svelte-1d5xrrt")),I(m,u)}),I(t,x),ye(g)}ko(["click"]),customElements.define("hb-messages-list",Lo(bn,{id:{},messages:{},authors:{},options:{},actions:{}},[],[],!0)),se.Component=bn,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})})(this["messages-list"]=this["messages-list"]||{});
182
+ }`};function bn(t,r){he(r,!0),No(t,vi);function e(m,v){r.$$host.dispatchEvent(new CustomEvent(m,{detail:v}))}const n={showTimestamp:!0,showActions:!0,showAvatar:!0,showName:!0,bubbles:!1};let i=vr(r,"id",7,""),o=vr(r,"messages",7),a=vr(r,"authors",7),l=vr(r,"options",7,n),s=vr(r,"actions",23,()=>[]);function d(m=!1){return m?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzYzNjZGMCIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzZDNzU3NyIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg=="}let p=lo(()=>!o()||!a()?[]:o()?.filter?.(v=>a()?.find?.(u=>u?.id&&v?.authorId&&u.id===v.authorId)?.id)?.map?.((v,u)=>{const S=a()?.find?.(X=>X.id===v.authorId),A=new Date(v.timestamp).toDateString()===new Date().toDateString(),C=new Date(v.timestamp),Y=C.toLocaleTimeString().split(":")[0]+":"+C.toLocaleTimeString().split(":")[1],mt=C.toLocaleString().split(" ")[0]+" "+C.toLocaleTimeString().split(":")[0]+":"+C.toLocaleTimeString().split(":")[1],ht=A?Y:mt,J=u>0?o()[u-1]:null,Ct=!!(J&&J.authorId===v.authorId&&new Date(v.timestamp).getTime()-new Date(J.timestamp).getTime()<3e5),St=!!(l().showAvatar&&(!Ct||u===0));return{...v,author:S,dateString:ht,showAvatar:St,isConsecutive:Ct}})||[]);Kr(()=>{if(typeof o()=="string")try{o(JSON.parse(o()))}catch(m){console.error("error parsing messages",m)}if(typeof s()=="string")try{s(JSON.parse(s()))}catch(m){console.error("error parsing actions",m)}}),Kr(()=>{if(typeof l()=="string")try{l(JSON.parse(l())),l({...n,...l()})}catch(m){console.error("error parsing options",m)}}),Kr(()=>{if(typeof a()=="string")try{a(JSON.parse(a()))}catch(m){console.error("error parsing authors",m)}});var g={get id(){return i()},set id(m=""){i(m),rr()},get messages(){return o()},set messages(m){o(m),rr()},get authors(){return a()},set authors(m){a(m),rr()},get options(){return l()},set options(m=n){l(m),rr()},get actions(){return s()},set actions(m=[]){s(m),rr()}},x=dn();Io("1d5xrrt",m=>{var v=Fo();T(m,v)});var b=Xr(x);return Ee(b,17,()=>f(p),m=>m.id,(m,v)=>{var u=xi(),S=Xr(u);{var A=I=>{var M=Wo(),B=E(M);{var rt=et=>{var Q=Zo();T(et,Q)};L(B,et=>{!f(v).author.me&&l().showAvatar&&et(rt)})}var O=bt(B,2),w=E(O),c=E(w,!0);$(w),$(O);var h=bt(O,2);{var q=et=>{var Q=Ho();T(et,Q)};L(h,et=>{f(v).author.me&&l().showAvatar&&et(q)})}$(M),Z(()=>{Ht(M,1,`author-name-wrapper d-flex ${f(v).author.me?"justify-content-end":"justify-content-start"} mb-1 w-100`,"svelte-1d5xrrt"),Ht(w,1,`fw-semibold ${f(v).author.me?"text-secondary":"text-primary"}`,"svelte-1d5xrrt"),$t(c,f(v).author.me?"You":f(v).author.name)}),T(I,M)};L(S,I=>{l().showName&&I(A)})}var C=bt(S,2),Y=E(C);{var mt=I=>{var M=Uo(),B=E(M);{var rt=w=>{var c=qo(),h=E(c),q=bt(h,2);{var et=Q=>{var Jt=Jo();T(Q,Jt)};L(q,Q=>{f(v).author.isAI&&Q(et)})}$(c),Z(Q=>{ar(h,"src",Q),ar(h,"alt",f(v).author.name)},[()=>f(v).author.avatar||d(f(v).author.isAI)]),T(w,c)},O=w=>{var c=Qo();T(w,c)};L(B,w=>{f(v).showAvatar?w(rt):w(O,!1)})}$(M),T(I,M)};L(Y,I=>{!f(v).author.me&&l().showAvatar&&I(mt)})}var ht=bt(Y,2),J=E(ht);{var Ct=I=>{var M=ti(),B=E(M),rt=E(B);{var O=c=>{var h=Xo(),q=E(h);{var et=qt=>{var Qt=Vo(),gr=E(Qt),le=E(gr,!0);$(gr),$(Qt),Z(()=>$t(le,f(v).language)),T(qt,Qt)};L(q,qt=>{f(v).language&&qt(et)})}var Q=bt(q,2),Jt=E(Q),ae=E(Jt,!0);$(Jt),$(Q),$(h),Z(()=>$t(ae,f(v).text)),T(c,h)},w=c=>{var h=Ko(),q=E(h,!0);$(h),Z(()=>$t(q,f(v).text)),T(c,h)};L(rt,c=>{f(v).type==="code"?c(O):c(w,!1)})}$(B),$(M),Z(()=>{ar(M,"part",`message-bubble-${f(v).author.me?"me":"them"}`),Ht(M,1,`message-bubble ${f(v).author.me?"bg-primary text-white":"bg-light border"} rounded-3 p-3 shadow-sm`,"svelte-1d5xrrt")}),T(I,M)},St=I=>{var M=oi(),B=E(M),rt=E(B);{var O=c=>{var h=ei(),q=E(h);{var et=qt=>{var Qt=ri(),gr=E(Qt),le=E(gr,!0);$(gr),$(Qt),Z(()=>$t(le,f(v).language)),T(qt,Qt)};L(q,qt=>{f(v).language&&qt(et)})}var Q=bt(q,2),Jt=E(Q),ae=E(Jt,!0);$(Jt),$(Q),$(h),Z(()=>$t(ae,f(v).text)),T(c,h)},w=c=>{var h=ni(),q=E(h,!0);$(h),Z(()=>$t(q,f(v).text)),T(c,h)};L(rt,c=>{f(v).type==="code"?c(O):c(w,!1)})}$(B),$(M),T(I,M)};L(J,I=>{l().bubbles?I(Ct):I(St,!1)})}var X=bt(J,2);{var Dr=I=>{var M=li(),B=E(M);Ee(B,17,s,to,(w,c)=>{var h=ii();h.__click=()=>e("action",{messageId:f(v).id,action:f(c).name});var q=E(h);$(h),Z(()=>{ar(h,"title",f(c).name),ar(h,"aria-label",f(c).name),Ht(q,1,`bi bi-${f(c).icon??""}`,"svelte-1d5xrrt")}),T(w,h)});var rt=bt(B,2);{var O=w=>{var c=ai(),h=E(c,!0);$(c),Z(()=>$t(h,f(v).dateString)),T(w,c)};L(rt,w=>{l().showTimestamp&&w(O)})}$(M),Z(()=>Ht(M,1,`message-actions d-flex gap-1 ${f(v).author.me?"justify-content-end":"justify-content-start"} mt-2`,"svelte-1d5xrrt")),T(I,M)},Br=I=>{var M=dn(),B=Xr(M);{var rt=O=>{var w=si(),c=E(w),h=E(c,!0);$(c),$(w),Z(()=>{Ht(w,1,`message-timestamp-only d-flex ${f(v).author.me?"justify-content-end":"justify-content-start"} mt-1`,"svelte-1d5xrrt"),$t(h,f(v).dateString)}),T(O,w)};L(B,O=>{l().showTimestamp&&O(rt)},!0)}T(I,M)};L(X,I=>{s()?.length?I(Dr):I(Br,!1)})}$(ht);var oe=bt(ht,2);{var ie=I=>{var M=pi(),B=E(M);{var rt=w=>{var c=di();Z(h=>ar(c,"src",h),[()=>f(v).author.avatar||d(!1)]),T(w,c)},O=w=>{var c=mi();T(w,c)};L(B,w=>{f(v).showAvatar?w(rt):w(O,!1)})}$(M),T(I,M)};L(oe,I=>{f(v).author.me&&l().showAvatar&&I(ie)})}$(C),Z(()=>Ht(C,1,`message-wrapper d-flex ${f(v).author.me?"justify-content-end":"justify-content-start"} mb-3 w-100`,"svelte-1d5xrrt")),T(m,u)}),T(t,x),ye(g)}ko(["click"]),customElements.define("hb-messages-list",Lo(bn,{id:{},messages:{},authors:{},options:{},actions:{}},[],[],!0)),se.Component=bn,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})})(this["messages-list"]=this["messages-list"]||{});
183
183
  //# sourceMappingURL=main.iife.js.map