@htmlbricks/hb-messages-list 0.65.23 → 0.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +56 -56
- package/package.json +1 -1
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(pe){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Tn=1,In=2,Nn=16,Rn=1,Sn=4,Cn=8,Dn=16,zn=1,On=2,xe="[",Gr="[!",ve="[?",Pr="]",Kt={},G=Symbol(),ge="http://www.w3.org/1999/xhtml",Bn=!1;var be=Array.isArray,Gn=Array.prototype.indexOf,tr=Array.prototype.includes,_r=Array.from,kr=Object.keys,jr=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,Pn=Object.getOwnPropertyDescriptors,Ln=Object.prototype,Fn=Array.prototype,fe=Object.getPrototypeOf,ce=Object.isExtensible;const Yn=()=>{};function Zn(t){for(var r=0;r<t.length;r++)t[r]()}function ue(){var t,r,e=new Promise((n,o)=>{t=n,r=o});return{promise:e,resolve:t,reject:r}}const O=2,rr=4,Ar=8,he=1<<24,Et=16,vt=32,Tt=64,Lr=128,ot=512,z=1024,P=2048,ct=4096,X=8192,it=16384,It=32768,ye=1<<25,er=65536,we=1<<17,_e=1<<18,Nt=1<<19,Hn=1<<20,_t=1<<25,Lt=65536,Fr=1<<21,Yr=1<<22,Rt=1<<23,Mr=Symbol("$state"),ke=Symbol("legacy props"),Wn=Symbol(""),kt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Jn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),$r=3,nr=8;function Vn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Qn(t,r,e){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Un(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function qn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Kn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function to(){throw new Error("https://svelte.dev/e/hydration_failed")}function ro(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function eo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function no(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function oo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function io(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Er(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function ao(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let M=!1;function gt(t){M=t}let k;function F(t){if(t===null)throw Er(),Kt;return k=t}function Tr(){return F(st(k))}function $(t){if(M){if(st(k)!==null)throw Er(),Kt;k=t}}function lo(t=1){if(M){for(var r=t,e=k;r--;)e=st(e);k=e}}function Ir(t=!0){for(var r=0,e=k;;){if(e.nodeType===nr){var n=e.data;if(n===Pr){if(r===0)return e;r-=1}else(n===xe||n===Gr||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(r+=1)}var o=st(e);t&&e.remove(),e=o}}function je(t){if(!t||t.nodeType!==nr)throw Er(),Kt;return t.data}function Ae(t){return t===this.v}function so(t,r){return t!=t?r==r:t!==r||t!==null&&typeof t=="object"||typeof t=="function"}function Me(t){return!so(t,this.v)}let mo=!1,at=null;function or(t){at=t}function $e(t,r=!1,e){at={p:at,i:!1,c:null,e:null,s:t,x:null,r:y,l:null}}function Ee(t){var r=at,e=r.e;if(e!==null){r.e=null;for(var n of e)rn(n)}return t!==void 0&&(r.x=t),r.i=!0,at=r.p,t??{}}function Te(){return!0}let Ft=[];function Ie(){var t=Ft;Ft=[],Zn(t)}function ir(t){if(Ft.length===0&&!vr){var r=Ft;queueMicrotask(()=>{r===Ft&&Ie()})}Ft.push(t)}function po(){for(;Ft.length>0;)Ie()}function Ne(t){var r=y;if(r===null)return h.f|=Rt,t;if((r.f&It)===0&&(r.f&rr)===0)throw t;St(t,r)}function St(t,r){for(;r!==null;){if((r.f&Lr)!==0){if((r.f&It)===0)throw t;try{r.b.error(t);return}catch(e){t=e}}r=r.parent}throw t}const xo=-7169;function D(t,r){t.f=t.f&xo|r}function Zr(t){(t.f&ot)!==0||t.deps===null?D(t,z):D(t,ct)}function Re(t){if(t!==null)for(const r of t)(r.f&O)===0||(r.f&Lt)===0||(r.f^=Lt,Re(r.deps))}function Se(t,r,e){(t.f&P)!==0?r.add(t):(t.f&ct)!==0&&e.add(t),Re(t.deps),D(t,z)}let Nr=!1;function vo(t){var r=Nr;try{return Nr=!1,[t(),Nr]}finally{Nr=r}}const Ct=new Set;let I=null,bt=null,Hr=null,vr=!1,Wr=!1,ar=null,Rr=null;var Ce=0;let go=1;class jt{id=go++;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=new Map;#o=new Map;#i=null;#n=[];#a=new Set;#l=new Set;#s=new Map;is_fork=!1;#p=!1;#d=new Set;#x(){return this.is_fork||this.#o.size>0}#g(){for(const n of this.#d)for(const o of n.#o.keys()){for(var r=!1,e=o;e.parent!==null;){if(this.#s.has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1}skip_effect(r){this.#s.has(r)||this.#s.set(r,{d:[],m:[]})}unskip_effect(r){var e=this.#s.get(r);if(e){this.#s.delete(r);for(var n of e.d)D(n,P),this.schedule(n);for(n of e.m)D(n,ct),this.schedule(n)}}#v(){if(Ce++>1e3&&(Ct.delete(this),bo()),!this.#x()){for(const a of this.#a)this.#l.delete(a),D(a,P),this.schedule(a);for(const a of this.#l)D(a,ct),this.schedule(a)}const r=this.#n;this.#n=[],this.apply();var e=ar=[],n=[],o=Rr=[];for(const a of r)try{this.#m(a,e,n)}catch(s){throw Ge(a),s}if(I=null,o.length>0){var i=jt.ensure();for(const a of o)i.schedule(a)}if(ar=null,Rr=null,this.#x()||this.#g()){this.#b(n),this.#b(e);for(const[a,s]of this.#s)Be(a,s)}else{this.#r.size===0&&Ct.delete(this),this.#a.clear(),this.#l.clear();for(const a of this.#t)a(this);this.#t.clear(),De(n),De(e),this.#i?.resolve()}var l=I;if(this.#n.length>0){const a=l??=this;a.#n.push(...this.#n.filter(s=>!a.#n.includes(s)))}l!==null&&(Ct.add(l),l.#v()),Ct.has(this)||this.#f()}#m(r,e,n){r.f^=z;for(var o=r.first;o!==null;){var i=o.f,l=(i&(vt|Tt))!==0,a=l&&(i&z)!==0,s=a||(i&X)!==0||this.#s.has(o);if(!s&&o.fn!==null){l?o.f^=z:(i&rr)!==0?e.push(o):br(o)&&((i&Et)!==0&&this.#l.add(o),mr(o));var d=o.first;if(d!==null){o=d;continue}}for(;o!==null;){var p=o.next;if(p!==null){o=p;break}o=o.parent}}}#b(r){for(var e=0;e<r.length;e+=1)Se(r[e],this.#a,this.#l)}capture(r,e,n=!1){e!==G&&!this.previous.has(r)&&this.previous.set(r,e),(r.f&Rt)===0&&(this.current.set(r,[r.v,n]),bt?.set(r,r.v))}activate(){I=this}deactivate(){I=null,bt=null}flush(){try{Wr=!0,I=this,this.#v()}finally{Ce=0,Hr=null,ar=null,Rr=null,Wr=!1,I=null,bt=null,Dt.clear()}}discard(){for(const r of this.#e)r(this);this.#e.clear(),Ct.delete(this)}#f(){for(const d of Ct){var r=d.id<this.id,e=[];for(const[p,[g,v]]of this.current){if(d.current.has(p)){var n=d.current.get(p)[0];if(r&&g!==n)d.current.set(p,[g,v]);else continue}e.push(p)}var o=[...d.current.keys()].filter(p=>!this.current.has(p));if(o.length===0)r&&d.discard();else if(e.length>0){d.activate();var i=new Set,l=new Map;for(var a of e)ze(a,o,i,l);if(d.#n.length>0){d.apply();for(var s of d.#n)d.#m(s,[],[]);d.#n=[]}d.deactivate()}}for(const d of Ct)d.#d.has(this)&&(d.#d.delete(this),d.#d.size===0&&!d.#x()&&(d.activate(),d.#v()))}increment(r,e){let n=this.#r.get(e)??0;if(this.#r.set(e,n+1),r){let o=this.#o.get(e)??0;this.#o.set(e,o+1)}}decrement(r,e,n){let o=this.#r.get(e)??0;if(o===1?this.#r.delete(e):this.#r.set(e,o-1),r){let i=this.#o.get(e)??0;i===1?this.#o.delete(e):this.#o.set(e,i-1)}this.#p||n||(this.#p=!0,ir(()=>{this.#p=!1,this.flush()}))}transfer_effects(r,e){for(const n of r)this.#a.add(n);for(const n of e)this.#l.add(n);r.clear(),e.clear()}oncommit(r){this.#t.add(r)}ondiscard(r){this.#e.add(r)}settled(){return(this.#i??=ue()).promise}static ensure(){if(I===null){const r=I=new jt;Wr||(Ct.add(I),vr||ir(()=>{I===r&&r.flush()}))}return I}apply(){{bt=null;return}}schedule(r){if(Hr=r,r.b?.is_pending&&(r.f&(rr|Ar|he))!==0&&(r.f&It)===0){r.b.defer_effect(r);return}for(var e=r;e.parent!==null;){e=e.parent;var n=e.f;if(ar!==null&&e===y&&(h===null||(h.f&O)===0))return;if((n&(Tt|vt))!==0){if((n&z)===0)return;e.f^=z}}this.#n.push(e)}}function lr(t){var r=vr;vr=!0;try{for(var e;;){if(po(),I===null)return e;I.flush()}}finally{vr=r}}function bo(){try{Kn()}catch(t){St(t,Hr)}}let At=null;function De(t){var r=t.length;if(r!==0){for(var e=0;e<r;){var n=t[e++];if((n.f&(it|X))===0&&br(n)&&(At=new Set,mr(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&on(n),At?.size>0)){Dt.clear();for(const o of At){if((o.f&(it|X))!==0)continue;const i=[o];let l=o.parent;for(;l!==null;)At.has(l)&&(At.delete(l),i.push(l)),l=l.parent;for(let a=i.length-1;a>=0;a--){const s=i[a];(s.f&(it|X))===0&&mr(s)}}At.clear()}}At=null}}function ze(t,r,e,n){if(!e.has(t)&&(e.add(t),t.reactions!==null))for(const o of t.reactions){const i=o.f;(i&O)!==0?ze(o,r,e,n):(i&(Yr|Et))!==0&&(i&P)===0&&Oe(o,r,n)&&(D(o,P),Jr(o))}}function Oe(t,r,e){const n=e.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const o of t.deps){if(tr.call(r,o))return!0;if((o.f&O)!==0&&Oe(o,r,e))return e.set(o,!0),!0}return e.set(t,!1),!1}function Jr(t){I.schedule(t)}function Be(t,r){if(!((t.f&vt)!==0&&(t.f&z)!==0)){(t.f&P)!==0?r.d.push(t):(t.f&ct)!==0&&r.m.push(t),D(t,z);for(var e=t.first;e!==null;)Be(e,r),e=e.next}}function Ge(t){D(t,z);for(var r=t.first;r!==null;)Ge(r),r=r.next}function fo(t){let r=0,e=Yt(0),n;return()=>{Kr()&&(b(e),en(()=>(r===0&&(n=cn(()=>t(()=>gr(e)))),r+=1,()=>{ir(()=>{r-=1,r===0&&(n?.(),n=void 0,gr(e))})})))}}var co=er|Nt;function uo(t,r,e,n){new ho(t,r,e,n)}class ho{parent;is_pending=!1;transform_error;#t;#e=M?k:null;#r;#o;#i;#n=null;#a=null;#l=null;#s=null;#p=0;#d=0;#x=!1;#g=new Set;#v=new Set;#m=null;#b=fo(()=>(this.#m=Yt(this.#p),()=>{this.#m=null}));constructor(r,e,n,o){this.#t=r,this.#r=e,this.#o=i=>{var l=y;l.b=this,l.f|=Lr,n(i)},this.parent=y.b,this.transform_error=o??this.parent?.transform_error??(i=>i),this.#i=Dr(()=>{if(M){const i=this.#e;Tr();const l=i.data===Gr;if(i.data.startsWith(ve)){const s=JSON.parse(i.data.slice(ve.length));this.#w(s)}else l?this.#_():this.#f()}else this.#h()},co),M&&(this.#t=k)}#f(){try{this.#n=dt(()=>this.#o(this.#t))}catch(r){this.error(r)}}#w(r){const e=this.#r.failed;e&&(this.#l=dt(()=>{e(this.#t,()=>r,()=>()=>{})}))}#_(){const r=this.#r.pending;r&&(this.is_pending=!0,this.#a=dt(()=>r(this.#t)),ir(()=>{var e=this.#s=document.createDocumentFragment(),n=lt();e.append(n),this.#n=this.#u(()=>dt(()=>this.#o(n))),this.#d===0&&(this.#t.before(e),this.#s=null,Ht(this.#a,()=>{this.#a=null}),this.#c(I))}))}#h(){try{if(this.is_pending=this.has_pending_snippet(),this.#d=0,this.#p=0,this.#n=dt(()=>{this.#o(this.#t)}),this.#d>0){var r=this.#s=document.createDocumentFragment();ne(this.#n,r);const e=this.#r.pending;this.#a=dt(()=>e(this.#t))}else this.#c(I)}catch(e){this.error(e)}}#c(r){this.is_pending=!1,r.transfer_effects(this.#g,this.#v)}defer_effect(r){Se(r,this.#g,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#u(r){var e=y,n=h,o=at;yt(this.#i),mt(this.#i),or(this.#i.ctx);try{return jt.ensure(),r()}catch(i){return Ne(i),null}finally{yt(e),mt(n),or(o)}}#y(r,e){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(r,e);return}this.#d+=r,this.#d===0&&(this.#c(e),this.#a&&Ht(this.#a,()=>{this.#a=null}),this.#s&&(this.#t.before(this.#s),this.#s=null))}update_pending_count(r,e){this.#y(r,e),this.#p+=r,!(!this.#m||this.#x)&&(this.#x=!0,ir(()=>{this.#x=!1,this.#m&&sr(this.#m,this.#p)}))}get_effect_pending(){return this.#b(),b(this.#m)}error(r){var e=this.#r.onerror;let n=this.#r.failed;if(!e&&!n)throw r;this.#n&&(Z(this.#n),this.#n=null),this.#a&&(Z(this.#a),this.#a=null),this.#l&&(Z(this.#l),this.#l=null),M&&(F(this.#e),lo(),F(Ir()));var o=!1,i=!1;const l=()=>{if(o){ao();return}o=!0,i&&io(),this.#l!==null&&Ht(this.#l,()=>{this.#l=null}),this.#u(()=>{this.#h()})},a=s=>{try{i=!0,e?.(s,l),i=!1}catch(d){St(d,this.#i&&this.#i.parent)}n&&(this.#l=this.#u(()=>{try{return dt(()=>{var d=y;d.b=this,d.f|=Lr,n(this.#t,()=>s,()=>l)})}catch(d){return St(d,this.#i.parent),null}}))};ir(()=>{var s;try{s=this.transform_error(r)}catch(d){St(d,this.#i&&this.#i.parent);return}s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(a,d=>St(d,this.#i&&this.#i.parent)):a(s)})}}function yo(t,r,e,n){const o=Cr;var i=t.filter(v=>!v.settled);if(e.length===0&&i.length===0){n(r.map(o));return}var l=y,a=wo(),s=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(v=>v.promise)):null;function d(v){a();try{n(v)}catch(f){(l.f&it)===0&&St(f,l)}Sr()}if(e.length===0){s.then(()=>d(r.map(o)));return}var p=Pe();function g(){Promise.all(e.map(v=>_o(v))).then(v=>d([...r.map(o),...v])).catch(v=>St(v,l)).finally(()=>p())}s?s.then(()=>{a(),g(),Sr()}):g()}function wo(){var t=y,r=h,e=at,n=I;return function(i=!0){yt(t),mt(r),or(e),i&&(t.f&it)===0&&(n?.activate(),n?.apply())}}function Sr(t=!0){yt(null),mt(null),or(null),t&&I?.deactivate()}function Pe(){var t=y,r=t.b,e=I,n=r.is_rendered();return r.update_pending_count(1,e),e.increment(n,t),(o=!1)=>{r.update_pending_count(-1,e),e.decrement(n,t,o)}}function Cr(t){var r=O|P,e=h!==null&&(h.f&O)!==0?h:null;return y!==null&&(y.f|=Nt),{ctx:at,deps:null,effects:null,equals:Ae,f:r,fn:t,reactions:null,rv:0,v:G,wv:0,parent:e??y,ac:null}}function _o(t,r,e){let n=y;n===null&&Vn();var o=void 0,i=Yt(G),l=!h,a=new Map;return Co(()=>{var s=y,d=ue();o=d.promise;try{Promise.resolve(t()).then(d.resolve,d.reject).finally(Sr)}catch(f){d.reject(f),Sr()}var p=I;if(l){if((s.f&It)!==0)var g=Pe();if(n.b.is_rendered())a.get(p)?.reject(kt),a.delete(p);else{for(const f of a.values())f.reject(kt);a.clear()}a.set(p,d)}const v=(f,m=void 0)=>{if(g){var x=m===kt;g(x)}if(!(m===kt||(s.f&it)!==0)){if(p.activate(),m)i.f|=Rt,sr(i,m);else{(i.f&Rt)!==0&&(i.f^=Rt),sr(i,f);for(const[c,u]of a){if(a.delete(c),c===p)break;u.reject(kt)}}p.deactivate()}};d.promise.then(v,f=>v(null,f||"unknown"))}),Io(()=>{for(const s of a.values())s.reject(kt)}),new Promise(s=>{function d(p){function g(){p===o?s(i):d(o)}p.then(g,g)}d(o)})}function ko(t){const r=Cr(t);return dn(r),r}function Le(t){const r=Cr(t);return r.equals=Me,r}function jo(t){var r=t.effects;if(r!==null){t.effects=null;for(var e=0;e<r.length;e+=1)Z(r[e])}}function Ao(t){for(var r=t.parent;r!==null;){if((r.f&O)===0)return(r.f&it)===0?r:null;r=r.parent}return null}function Vr(t){var r,e=y;yt(Ao(t));try{t.f&=~Lt,jo(t),r=gn(t)}finally{yt(e)}return r}function Fe(t){var r=t.v,e=Vr(t);if(!t.equals(e)&&(t.wv=xn(),(!I?.is_fork||t.deps===null)&&(t.v=e,I?.capture(t,r,!0),t.deps===null))){D(t,z);return}Ot||(bt!==null?(Kr()||I?.is_fork)&&bt.set(t,e):Zr(t))}function Mo(t){if(t.effects!==null)for(const r of t.effects)(r.teardown||r.ac)&&(r.teardown?.(),r.ac?.abort(kt),r.teardown=Yn,r.ac=null,fr(r,0),re(r))}function Ye(t){if(t.effects!==null)for(const r of t.effects)r.teardown&&mr(r)}let Qr=new Set;const Dt=new Map;let Ze=!1;function Yt(t,r){var e={f:0,v:t,reactions:null,equals:Ae,rv:0,wv:0};return e}function zt(t,r){const e=Yt(t);return dn(e),e}function He(t,r=!1,e=!0){const n=Yt(t);return r||(n.equals=Me),n}function Mt(t,r,e=!1){h!==null&&(!ft||(h.f&we)!==0)&&Te()&&(h.f&(O|Et|Yr|we))!==0&&(pt===null||!tr.call(pt,t))&&oo();let n=e?dr(r):r;return sr(t,n,Rr)}function sr(t,r,e=null){if(!t.equals(r)){var n=t.v;Ot?Dt.set(t,r):Dt.set(t,n),t.v=r;var o=jt.ensure();if(o.capture(t,n),(t.f&O)!==0){const i=t;(t.f&P)!==0&&Vr(i),bt===null&&Zr(i)}t.wv=xn(),We(t,P,e),y!==null&&(y.f&z)!==0&&(y.f&(vt|Tt))===0&&(xt===null?Oo([t]):xt.push(t)),!o.is_fork&&Qr.size>0&&!Ze&&$o()}return r}function $o(){Ze=!1;for(const t of Qr)(t.f&z)!==0&&D(t,ct),br(t)&&mr(t);Qr.clear()}function gr(t){Mt(t,t.v+1)}function We(t,r,e){var n=t.reactions;if(n!==null)for(var o=n.length,i=0;i<o;i++){var l=n[i],a=l.f,s=(a&P)===0;if(s&&D(l,r),(a&O)!==0){var d=l;bt?.delete(d),(a&Lt)===0&&(a&ot&&(l.f|=Lt),We(d,ct,e))}else if(s){var p=l;(a&Et)!==0&&At!==null&&At.add(p),e!==null?e.push(p):Jr(p)}}}function dr(t){if(typeof t!="object"||t===null||Mr in t)return t;const r=fe(t);if(r!==Ln&&r!==Fn)return t;var e=new Map,n=be(t),o=zt(0),i=Jt,l=a=>{if(Jt===i)return a();var s=h,d=Jt;mt(null),pn(i);var p=a();return mt(s),pn(d),p};return n&&e.set("length",zt(t.length)),new Proxy(t,{defineProperty(a,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&eo();var p=e.get(s);return p===void 0?l(()=>{var g=zt(d.value);return e.set(s,g),g}):Mt(p,d.value,!0),!0},deleteProperty(a,s){var d=e.get(s);if(d===void 0){if(s in a){const p=l(()=>zt(G));e.set(s,p),gr(o)}}else Mt(d,G),gr(o);return!0},get(a,s,d){if(s===Mr)return t;var p=e.get(s),g=s in a;if(p===void 0&&(!g||Pt(a,s)?.writable)&&(p=l(()=>{var f=dr(g?a[s]:G),m=zt(f);return m}),e.set(s,p)),p!==void 0){var v=b(p);return v===G?void 0:v}return Reflect.get(a,s,d)},getOwnPropertyDescriptor(a,s){var d=Reflect.getOwnPropertyDescriptor(a,s);if(d&&"value"in d){var p=e.get(s);p&&(d.value=b(p))}else if(d===void 0){var g=e.get(s),v=g?.v;if(g!==void 0&&v!==G)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return d},has(a,s){if(s===Mr)return!0;var d=e.get(s),p=d!==void 0&&d.v!==G||Reflect.has(a,s);if(d!==void 0||y!==null&&(!p||Pt(a,s)?.writable)){d===void 0&&(d=l(()=>{var v=p?dr(a[s]):G,f=zt(v);return f}),e.set(s,d));var g=b(d);if(g===G)return!1}return p},set(a,s,d,p){var g=e.get(s),v=s in a;if(n&&s==="length")for(var f=d;f<g.v;f+=1){var m=e.get(f+"");m!==void 0?Mt(m,G):f in a&&(m=l(()=>zt(G)),e.set(f+"",m))}if(g===void 0)(!v||Pt(a,s)?.writable)&&(g=l(()=>zt(void 0)),Mt(g,dr(d)),e.set(s,g));else{v=g.v!==G;var x=l(()=>dr(d));Mt(g,x)}var c=Reflect.getOwnPropertyDescriptor(a,s);if(c?.set&&c.set.call(p,d),!v){if(n&&typeof s=="string"){var u=e.get("length"),w=Number(s);Number.isInteger(w)&&w>=u.v&&Mt(u,w+1)}gr(o)}return!0},ownKeys(a){b(o);var s=Reflect.ownKeys(a).filter(g=>{var v=e.get(g);return v===void 0||v.v!==G});for(var[d,p]of e)p.v!==G&&!(d in a)&&s.push(d);return s},setPrototypeOf(){no()}})}var Je,Ve,Qe,Ue;function Ur(){if(Je===void 0){Je=window,Ve=/Firefox/.test(navigator.userAgent);var t=Element.prototype,r=Node.prototype,e=Text.prototype;Qe=Pt(r,"firstChild").get,Ue=Pt(r,"nextSibling").get,ce(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ce(e)&&(e.__t=void 0)}}function lt(t=""){return document.createTextNode(t)}function Zt(t){return Qe.call(t)}function st(t){return Ue.call(t)}function E(t,r){if(!M)return Zt(t);var e=Zt(k);if(e===null)e=k.appendChild(lt());else if(r&&e.nodeType!==$r){var n=lt();return e?.before(n),F(n),n}return r&&Xr(e),F(e),e}function qe(t,r=!1){if(!M){var e=Zt(t);return e instanceof Comment&&e.data===""?st(e):e}if(r){if(k?.nodeType!==$r){var n=lt();return k?.before(n),F(n),n}Xr(k)}return k}function ut(t,r=1,e=!1){let n=M?k:t;for(var o;r--;)o=n,n=st(n);if(!M)return n;if(e){if(n?.nodeType!==$r){var i=lt();return n===null?o?.after(i):n.before(i),F(i),i}Xr(n)}return F(n),n}function Xe(t){t.textContent=""}function Ke(){return!1}function qr(t,r,e){return document.createElementNS(ge,t,void 0)}function Xr(t){if(t.nodeValue.length<65536)return;let r=t.nextSibling;for(;r!==null&&r.nodeType===$r;)r.remove(),t.nodeValue+=r.nodeValue,r=t.nextSibling}function tn(t){var r=h,e=y;mt(null),yt(null);try{return t()}finally{mt(r),yt(e)}}function Eo(t){y===null&&(h===null&&Xn(),qn()),Ot&&Un()}function To(t,r){var e=r.last;e===null?r.last=r.first=t:(e.next=t,t.prev=e,r.last=t)}function ht(t,r){var e=y;e!==null&&(e.f&X)!==0&&(t|=X);var n={ctx:at,deps:null,nodes:null,f:t|P|ot,first:null,fn:r,last:null,next:null,parent:e,b:e&&e.b,prev:null,teardown:null,wv:0,ac:null},o=n;if((t&rr)!==0)ar!==null?ar.push(n):jt.ensure().schedule(n);else if(r!==null){try{mr(n)}catch(l){throw Z(n),l}o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Nt)===0&&(o=o.first,(t&Et)!==0&&(t&er)!==0&&o!==null&&(o.f|=er))}if(o!==null&&(o.parent=e,e!==null&&To(o,e),h!==null&&(h.f&O)!==0&&(t&Tt)===0)){var i=h;(i.effects??=[]).push(o)}return n}function Kr(){return h!==null&&!ft}function Io(t){const r=ht(Ar,null);return D(r,z),r.teardown=t,r}function te(t){Eo();var r=y.f,e=!h&&(r&vt)!==0&&(r&It)===0;if(e){var n=at;(n.e??=[]).push(t)}else return rn(t)}function rn(t){return ht(rr|Hn,t)}function No(t){jt.ensure();const r=ht(Tt|Nt,t);return()=>{Z(r)}}function Ro(t){jt.ensure();const r=ht(Tt|Nt,t);return(e={})=>new Promise(n=>{e.outro?Ht(r,()=>{Z(r),n(void 0)}):(Z(r),n(void 0))})}function So(t){return ht(rr,t)}function Co(t){return ht(Yr|Nt,t)}function en(t,r=0){return ht(Ar|r,t)}function Y(t,r=[],e=[],n=[]){yo(n,r,e,o=>{ht(Ar,()=>t(...o.map(b)))})}function Dr(t,r=0){var e=ht(Et|r,t);return e}function dt(t){return ht(vt|Nt,t)}function nn(t){var r=t.teardown;if(r!==null){const e=Ot,n=h;sn(!0),mt(null);try{r.call(null)}finally{sn(e),mt(n)}}}function re(t,r=!1){var e=t.first;for(t.first=t.last=null;e!==null;){const o=e.ac;o!==null&&tn(()=>{o.abort(kt)});var n=e.next;(e.f&Tt)!==0?e.parent=null:Z(e,r),e=n}}function Do(t){for(var r=t.first;r!==null;){var e=r.next;(r.f&vt)===0&&Z(r),r=e}}function Z(t,r=!0){var e=!1;(r||(t.f&_e)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(zo(t.nodes.start,t.nodes.end),e=!0),D(t,ye),re(t,r&&!e),fr(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const i of n)i.stop();nn(t),t.f^=ye,t.f|=it;var o=t.parent;o!==null&&o.first!==null&&on(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function zo(t,r){for(;t!==null;){var e=t===r?null:st(t);t.remove(),t=e}}function on(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 Ht(t,r,e=!0){var n=[];an(t,n,!0);var o=()=>{e&&Z(t),r&&r()},i=n.length;if(i>0){var l=()=>--i||o();for(var a of n)a.out(l)}else o()}function an(t,r,e){if((t.f&X)===0){t.f^=X;var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)(a.is_global||e)&&r.push(a);for(var o=t.first;o!==null;){var i=o.next,l=(o.f&er)!==0||(o.f&vt)!==0&&(t.f&Et)!==0;an(o,r,l?e:!1),o=i}}}function ee(t){ln(t,!0)}function ln(t,r){if((t.f&X)!==0){t.f^=X,(t.f&z)===0&&(D(t,P),jt.ensure().schedule(t));for(var e=t.first;e!==null;){var n=e.next,o=(e.f&er)!==0||(e.f&vt)!==0;ln(e,o?r:!1),e=n}var i=t.nodes&&t.nodes.t;if(i!==null)for(const l of i)(l.is_global||r)&&l.in()}}function ne(t,r){if(t.nodes)for(var e=t.nodes.start,n=t.nodes.end;e!==null;){var o=e===n?null:st(e);r.append(e),e=o}}let zr=!1,Ot=!1;function sn(t){Ot=t}let h=null,ft=!1;function mt(t){h=t}let y=null;function yt(t){y=t}let pt=null;function dn(t){h!==null&&(pt===null?pt=[t]:pt.push(t))}let q=null,K=0,xt=null;function Oo(t){xt=t}let mn=1,Wt=0,Jt=Wt;function pn(t){Jt=t}function xn(){return++mn}function br(t){var r=t.f;if((r&P)!==0)return!0;if(r&O&&(t.f&=~Lt),(r&ct)!==0){for(var e=t.deps,n=e.length,o=0;o<n;o++){var i=e[o];if(br(i)&&Fe(i),i.wv>t.wv)return!0}(r&ot)!==0&&bt===null&&D(t,z)}return!1}function vn(t,r,e=!0){var n=t.reactions;if(n!==null&&!(pt!==null&&tr.call(pt,t)))for(var o=0;o<n.length;o++){var i=n[o];(i.f&O)!==0?vn(i,r,!1):r===i&&(e?D(i,P):(i.f&z)!==0&&D(i,ct),Jr(i))}}function gn(t){var r=q,e=K,n=xt,o=h,i=pt,l=at,a=ft,s=Jt,d=t.f;q=null,K=0,xt=null,h=(d&(vt|Tt))===0?t:null,pt=null,or(t.ctx),ft=!1,Jt=++Wt,t.ac!==null&&(tn(()=>{t.ac.abort(kt)}),t.ac=null);try{t.f|=Fr;var p=t.fn,g=p();t.f|=It;var v=t.deps,f=I?.is_fork;if(q!==null){var m;if(f||fr(t,K),v!==null&&K>0)for(v.length=K+q.length,m=0;m<q.length;m++)v[K+m]=q[m];else t.deps=v=q;if(Kr()&&(t.f&ot)!==0)for(m=K;m<v.length;m++)(v[m].reactions??=[]).push(t)}else!f&&v!==null&&K<v.length&&(fr(t,K),v.length=K);if(Te()&&xt!==null&&!ft&&v!==null&&(t.f&(O|ct|P))===0)for(m=0;m<xt.length;m++)vn(xt[m],t);if(o!==null&&o!==t){if(Wt++,o.deps!==null)for(let x=0;x<e;x+=1)o.deps[x].rv=Wt;if(r!==null)for(const x of r)x.rv=Wt;xt!==null&&(n===null?n=xt:n.push(...xt))}return(t.f&Rt)!==0&&(t.f^=Rt),g}catch(x){return Ne(x)}finally{t.f^=Fr,q=r,K=e,xt=n,h=o,pt=i,or(l),ft=a,Jt=s}}function Bo(t,r){let e=r.reactions;if(e!==null){var n=Gn.call(e,t);if(n!==-1){var o=e.length-1;o===0?e=r.reactions=null:(e[n]=e[o],e.pop())}}if(e===null&&(r.f&O)!==0&&(q===null||!tr.call(q,r))){var i=r;(i.f&ot)!==0&&(i.f^=ot,i.f&=~Lt),Zr(i),Mo(i),fr(i,0)}}function fr(t,r){var e=t.deps;if(e!==null)for(var n=r;n<e.length;n++)Bo(t,e[n])}function mr(t){var r=t.f;if((r&it)===0){D(t,z);var e=y,n=zr;y=t,zr=!0;try{(r&(Et|he))!==0?Do(t):re(t),nn(t);var o=gn(t);t.teardown=typeof o=="function"?o:null,t.wv=mn;var i;Bn&&mo&&(t.f&P)!==0&&t.deps}finally{zr=n,y=e}}}function b(t){var r=t.f,e=(r&O)!==0;if(h!==null&&!ft){var n=y!==null&&(y.f&it)!==0;if(!n&&(pt===null||!tr.call(pt,t))){var o=h.deps;if((h.f&Fr)!==0)t.rv<Wt&&(t.rv=Wt,q===null&&o!==null&&o[K]===t?K++:q===null?q=[t]:q.push(t));else{(h.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[h]:tr.call(i,h)||i.push(h)}}}if(Ot&&Dt.has(t))return Dt.get(t);if(e){var l=t;if(Ot){var a=l.v;return((l.f&z)===0&&l.reactions!==null||fn(l))&&(a=Vr(l)),Dt.set(l,a),a}var s=(l.f&ot)===0&&!ft&&h!==null&&(zr||(h.f&ot)!==0),d=(l.f&It)===0;br(l)&&(s&&(l.f|=ot),Fe(l)),s&&!d&&(Ye(l),bn(l))}if(bt?.has(t))return bt.get(t);if((t.f&Rt)!==0)throw t.v;return t.v}function bn(t){if(t.f|=ot,t.deps!==null)for(const r of t.deps)(r.reactions??=[]).push(t),(r.f&O)!==0&&(r.f&ot)===0&&(Ye(r),bn(r))}function fn(t){if(t.v===G)return!0;if(t.deps===null)return!1;for(const r of t.deps)if(Dt.has(r)||(r.f&O)!==0&&fn(r))return!0;return!1}function cn(t){var r=ft;try{return ft=!0,t()}finally{ft=r}}const cr=Symbol("events"),un=new Set,oe=new Set;function Go(t,r,e){(r[cr]??={})[t]=e}function Po(t){for(var r=0;r<t.length;r++)un.add(t[r]);for(var e of oe)e(t)}let hn=null;function yn(t){var r=this,e=r.ownerDocument,n=t.type,o=t.composedPath?.()||[],i=o[0]||t.target;hn=t;var l=0,a=hn===t&&t[cr];if(a){var s=o.indexOf(a);if(s!==-1&&(r===document||r===window)){t[cr]=r;return}var d=o.indexOf(r);if(d===-1)return;s<=d&&(l=s)}if(i=o[l]||t.target,i!==r){jr(t,"currentTarget",{configurable:!0,get(){return i||e}});var p=h,g=y;mt(null),yt(null);try{for(var v,f=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var x=i[cr]?.[n];x!=null&&(!i.disabled||t.target===i)&&x.call(i,t)}catch(c){v?f.push(c):v=c}if(t.cancelBubble||m===r||m===null)break;i=m}if(v){for(let c of f)queueMicrotask(()=>{throw c});throw v}}finally{t[cr]=r,delete t.currentTarget,mt(p),yt(g)}}}const Lo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Fo(t){return Lo?.createHTML(t)??t}function Yo(t){var r=qr("template");return r.innerHTML=Fo(t.replaceAll("<!>","<!---->")),r.content}function pr(t,r){var e=y;e.nodes===null&&(e.nodes={start:t,end:r,a:null,t:null})}function S(t,r){var e=(r&zn)!==0,n=(r&On)!==0,o,i=!t.startsWith("<!>");return()=>{if(M)return pr(k,null),k;o===void 0&&(o=Yo(i?t:"<!>"+t),e||(o=Zt(o)));var l=n||Ve?document.importNode(o,!0):o.cloneNode(!0);if(e){var a=Zt(l),s=l.lastChild;pr(a,s)}else pr(l,l);return l}}function Zo(){if(M)return pr(k,null),k;var t=document.createDocumentFragment(),r=document.createComment(""),e=lt();return t.append(r,e),pr(r,e),t}function N(t,r){if(M){var e=y;((e.f&It)===0||e.nodes.end===null)&&(e.nodes.end=k),Tr();return}t!==null&&t.before(r)}const Ho=["touchstart","touchmove"];function Wo(t){return Ho.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 wn(t,r){return _n(t,r)}function Jo(t,r){Ur(),r.intro=r.intro??!1;const e=r.target,n=M,o=k;try{for(var i=Zt(e);i&&(i.nodeType!==nr||i.data!==xe);)i=st(i);if(!i)throw Kt;gt(!0),F(i);const l=_n(t,{...r,anchor:i});return gt(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==Kt&&console.warn("Failed to hydrate: ",l),r.recover===!1&&to(),Ur(),Xe(e),gt(!1),wn(t,r)}finally{gt(n),F(o)}}const Or=new Map;function _n(t,{target:r,anchor:e,props:n={},events:o,context:i,intro:l=!0,transformError:a}){Ur();var s=void 0,d=Ro(()=>{var p=e??r.appendChild(lt());uo(p,{pending:()=>{}},f=>{$e({});var m=at;if(i&&(m.c=i),o&&(n.$$events=o),M&&pr(f,null),s=t(f,n)||{},M&&(y.nodes.end=k,k===null||k.nodeType!==nr||k.data!==Pr))throw Er(),Kt;Ee()},a);var g=new Set,v=f=>{for(var m=0;m<f.length;m++){var x=f[m];if(!g.has(x)){g.add(x);var c=Wo(x);for(const C of[r,document]){var u=Or.get(C);u===void 0&&(u=new Map,Or.set(C,u));var w=u.get(x);w===void 0?(C.addEventListener(x,yn,{passive:c}),u.set(x,1)):u.set(x,w+1)}}}};return v(_r(un)),oe.add(v),()=>{for(var f of g)for(const c of[r,document]){var m=Or.get(c),x=m.get(f);--x==0?(c.removeEventListener(f,yn),m.delete(f),m.size===0&&Or.delete(c)):m.set(f,x)}oe.delete(v),p!==e&&p.parentNode?.removeChild(p)}});return ie.set(s,d),s}let ie=new WeakMap;function Vo(t,r){const e=ie.get(t);return e?(ie.delete(t),e(r)):Promise.resolve()}class Qo{anchor;#t=new Map;#e=new Map;#r=new Map;#o=new Set;#i=!0;constructor(r,e=!0){this.anchor=r,this.#i=e}#n=r=>{if(this.#t.has(r)){var e=this.#t.get(r),n=this.#e.get(e);if(n)ee(n),this.#o.delete(e);else{var o=this.#r.get(e);o&&(this.#e.set(e,o.effect),this.#r.delete(e),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[i,l]of this.#t){if(this.#t.delete(i),i===r)break;const a=this.#r.get(l);a&&(Z(a.effect),this.#r.delete(l))}for(const[i,l]of this.#e){if(i===e||this.#o.has(i))continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var d=document.createDocumentFragment();ne(l,d),d.append(lt()),this.#r.set(i,{effect:l,fragment:d})}else Z(l);this.#o.delete(i),this.#e.delete(i)};this.#i||!n?(this.#o.add(i),Ht(l,a,!1)):a()}}};#a=r=>{this.#t.delete(r);const e=Array.from(this.#t.values());for(const[n,o]of this.#r)e.includes(n)||(Z(o.effect),this.#r.delete(n))};ensure(r,e){var n=I,o=Ke();if(e&&!this.#e.has(r)&&!this.#r.has(r))if(o){var i=document.createDocumentFragment(),l=lt();i.append(l),this.#r.set(r,{effect:dt(()=>e(l)),fragment:i})}else this.#e.set(r,dt(()=>e(this.anchor)));if(this.#t.set(n,r),o){for(const[a,s]of this.#e)a===r?n.unskip_effect(s):n.skip_effect(s);for(const[a,s]of this.#r)a===r?n.unskip_effect(s.effect):n.skip_effect(s.effect);n.oncommit(this.#n),n.ondiscard(this.#a)}else M&&(this.anchor=k),this.#n(n)}}function H(t,r,e=!1){var n;M&&(n=k,Tr());var o=new Qo(t),i=e?er:0;function l(a,s){if(M){var d=je(n);if(a!==parseInt(d.substring(1))){var p=Ir();F(p),o.anchor=p,gt(!1),o.ensure(a,s),gt(!0);return}}o.ensure(a,s)}Dr(()=>{var a=!1;r((s,d=0)=>{a=!0,l(d,s)}),a||l(-1,null)},i)}function Uo(t,r){return r}function qo(t,r,e){for(var n=[],o=r.length,i,l=r.length,a=0;a<o;a++){let g=r[a];Ht(g,()=>{if(i){if(i.pending.delete(g),i.done.add(g),i.pending.size===0){var v=t.outrogroups;ae(t,_r(i.done)),v.delete(i),v.size===0&&(t.outrogroups=null)}}else l-=1},!1)}if(l===0){var s=n.length===0&&e!==null;if(s){var d=e,p=d.parentNode;Xe(p),p.append(d),t.items.clear()}ae(t,r,!s)}else i={pending:new Set(r),done:new Set},(t.outrogroups??=new Set).add(i)}function ae(t,r,e=!0){var n;if(t.pending.size>0){n=new Set;for(const l of t.pending.values())for(const a of l)n.add(t.items.get(a).e)}for(var o=0;o<r.length;o++){var i=r[o];if(n?.has(i)){i.f|=_t;const l=document.createDocumentFragment();ne(i,l)}else Z(r[o],e)}}var kn;function jn(t,r,e,n,o,i=null){var l=t,a=new Map;M&&Tr();var s=null,d=Le(()=>{var u=e();return be(u)?u:u==null?[]:_r(u)}),p,g=new Map,v=!0;function f(u){(c.effect.f&it)===0&&(c.pending.delete(u),c.fallback=s,Xo(c,p,l,r,n),s!==null&&(p.length===0?(s.f&_t)===0?ee(s):(s.f^=_t,hr(s,null,l)):Ht(s,()=>{s=null})))}function m(u){c.pending.delete(u)}var x=Dr(()=>{p=b(d);var u=p.length;let w=!1;if(M){var C=je(l)===Gr;C!==(u===0)&&(l=Ir(),F(l),gt(!1),w=!0)}for(var L=new Set,W=I,wt=Ke(),J=0;J<u;J+=1){M&&k.nodeType===nr&&k.data===Pr&&(l=k,w=!0,gt(!1));var V=p[J],Gt=n(V,J),tt=v?null:a.get(Gt);tt?(tt.v&&sr(tt.v,V),tt.i&&sr(tt.i,J),wt&&W.unskip_effect(tt.e)):(tt=Ko(a,v?l:kn??=lt(),V,Gt,J,o,r,e),v||(tt.e.f|=_t),a.set(Gt,tt)),L.add(Gt)}if(u===0&&i&&!s&&(v?s=dt(()=>i(l)):(s=dt(()=>i(kn??=lt())),s.f|=_t)),u>L.size&&Qn(),M&&u>0&&F(Ir()),!v)if(g.set(W,L),wt){for(const[le,se]of a)L.has(le)||W.skip_effect(se.e);W.oncommit(f),W.ondiscard(m)}else f(W);w&>(!0),b(d)}),c={effect:x,items:a,pending:g,outrogroups:null,fallback:s};v=!1,M&&(l=k)}function ur(t){for(;t!==null&&(t.f&vt)===0;)t=t.next;return t}function Xo(t,r,e,n,o){var i=r.length,l=t.items,a=ur(t.effect.first),s,d=null,p=[],g=[],v,f,m,x;for(x=0;x<i;x+=1){if(v=r[x],f=o(v,x),m=l.get(f).e,t.outrogroups!==null)for(const V of t.outrogroups)V.pending.delete(m),V.done.delete(m);if((m.f&X)!==0&&ee(m),(m.f&_t)!==0)if(m.f^=_t,m===a)hr(m,null,e);else{var c=d?d.next:a;m===t.effect.last&&(t.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Bt(t,d,m),Bt(t,m,c),hr(m,c,e),d=m,p=[],g=[],a=ur(d.next);continue}if(m!==a){if(s!==void 0&&s.has(m)){if(p.length<g.length){var u=g[0],w;d=u.prev;var C=p[0],L=p[p.length-1];for(w=0;w<p.length;w+=1)hr(p[w],u,e);for(w=0;w<g.length;w+=1)s.delete(g[w]);Bt(t,C.prev,L.next),Bt(t,d,C),Bt(t,L,u),a=u,d=L,x-=1,p=[],g=[]}else s.delete(m),hr(m,a,e),Bt(t,m.prev,m.next),Bt(t,m,d===null?t.effect.first:d.next),Bt(t,d,m),d=m;continue}for(p=[],g=[];a!==null&&a!==m;)(s??=new Set).add(a),g.push(a),a=ur(a.next);if(a===null)continue}(m.f&_t)===0&&p.push(m),d=m,a=ur(m.next)}if(t.outrogroups!==null){for(const V of t.outrogroups)V.pending.size===0&&(ae(t,_r(V.done)),t.outrogroups?.delete(V));t.outrogroups.size===0&&(t.outrogroups=null)}if(a!==null||s!==void 0){var W=[];if(s!==void 0)for(m of s)(m.f&X)===0&&W.push(m);for(;a!==null;)(a.f&X)===0&&a!==t.fallback&&W.push(a),a=ur(a.next);var wt=W.length;if(wt>0){var J=null;qo(t,W,J)}}}function Ko(t,r,e,n,o,i,l,a){var s=(l&Tn)!==0?(l&Nn)===0?He(e,!1,!1):Yt(e):null,d=(l&In)!==0?Yt(o):null;return{v:s,i:d,e:dt(()=>(i(r,s??e,d??o,a),()=>{t.delete(n)}))}}function hr(t,r,e){if(t.nodes)for(var n=t.nodes.start,o=t.nodes.end,i=r&&(r.f&_t)===0?r.nodes.start:e;n!==null;){var l=st(n);if(i.before(n),n===o)return;n=l}}function Bt(t,r,e){r===null?t.effect.first=e:r.next=e,e===null?t.effect.last=r:e.prev=r}function ti(t,r){let e=null,n=M;var o;if(M){e=k;for(var i=Zt(document.head);i!==null&&(i.nodeType!==nr||i.data!==t);)i=st(i);if(i===null)gt(!1);else{var l=st(i);i.remove(),F(l)}}M||(o=document.head.appendChild(lt()));try{Dr(()=>r(o),_e|Nt)}finally{n&&(gt(!0),F(e))}}function ri(t,r){So(()=>{var e=t.getRootNode(),n=e.host?e:e.head??e.ownerDocument.head;if(!n.querySelector("#"+r.hash)){const o=qr("style");o.id=r.hash,o.textContent=r.code,n.appendChild(o)}})}function ei(t,r,e){var n=t==null?"":""+t;return n=n?n+" "+r:r,n===""?null:n}function Vt(t,r,e,n,o,i){var l=t.__className;if(M||l!==e||l===void 0){var a=ei(e,n);(!M||a!==t.getAttribute("class"))&&(a==null?t.removeAttribute("class"):t.className=a),t.__className=e}return i}const ni=Symbol("is custom element"),oi=Symbol("is html"),ii=Jn?"link":"LINK";function xr(t,r,e,n){var o=ai(t);M&&(o[r]=t.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&t.nodeName===ii)||o[r]!==(o[r]=e)&&(r==="loading"&&(t[Wn]=e),e==null?t.removeAttribute(r):typeof e!="string"&&li(t).includes(r)?t[r]=e:t.setAttribute(r,e))}function ai(t){return t.__attributes??={[ni]:t.nodeName.includes("-"),[oi]:t.namespaceURI===ge}}var An=new Map;function li(t){var r=t.getAttribute("is")||t.nodeName,e=An.get(r);if(e)return e;An.set(r,e=[]);for(var n,o=t,i=Element.prototype;i!==o;){n=Pn(o);for(var l in n)n[l].set&&e.push(l);o=fe(o)}return e}function yr(t,r,e,n){var o=(e&Cn)!==0,i=(e&Dn)!==0,l=n,a=!0,s=()=>(a&&(a=!1,l=i?cn(n):n),l);let d;if(o){var p=Mr in t||ke in t;d=Pt(t,r)?.set??(p&&r in t?w=>t[r]=w:void 0)}var g,v=!1;o?[g,v]=vo(()=>t[r]):g=t[r],g===void 0&&n!==void 0&&(g=s(),d&&(ro(),d(g)));var f;if(f=()=>{var w=t[r];return w===void 0?s():(a=!0,w)},(e&Sn)===0)return f;if(d){var m=t.$$legacy;return(function(w,C){return arguments.length>0?((!C||m||v)&&d(C?f():w),w):f()})}var x=!1,c=((e&Rn)!==0?Cr:Le)(()=>(x=!1,f()));o&&b(c);var u=y;return(function(w,C){if(arguments.length>0){const L=C?b(c):o?dr(w):w;return Mt(c,L),x=!0,l!==void 0&&(l=L),w}return Ot&&x||(u.f&it)!==0?c.v:b(c)})}function si(t){return new di(t)}class di{#t;#e;constructor(r){var e=new Map,n=(i,l)=>{var a=He(l,!1,!1);return e.set(i,a),a};const o=new Proxy({...r.props||{},$$events:{}},{get(i,l){return b(e.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===ke?!0:(b(e.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,a){return Mt(e.get(l)??n(l,a),a),Reflect.set(i,l,a)}});this.#e=(r.hydrate?Jo:wn)(r.component,{target:r.target,anchor:r.anchor,props:o,context:r.context,intro:r.intro??!1,recover:r.recover,transformError:r.transformError}),(!r?.props?.$$host||r.sync===!1)&&lr(),this.#t=o.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||jr(this,i,{get(){return this.#e[i]},set(l){this.#e[i]=l},enumerable:!0});this.#e.$set=i=>{Object.assign(o,i)},this.#e.$destroy=()=>{Vo(this.#e)}}$set(r){this.#e.$set(r)}$on(r,e){this.#t[r]=this.#t[r]||[];const n=(...o)=>e.call(this,...o);return this.#t[r].push(n),()=>{this.#t[r]=this.#t[r].filter(o=>o!==n)}}$destroy(){this.#e.$destroy()}}let Mn;typeof HTMLElement=="function"&&(Mn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,r,e){super(),this.$$ctor=t,this.$$s=r,e&&(this.$$shadowRoot=this.attachShadow(e))}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 o=>{const i=qr("slot");n!=="default"&&(i.name=n),N(o,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},e=mi(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 o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=Br(o,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=si({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=No(()=>{en(()=>{this.$$r=!0;for(const n of kr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const o=Br(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1})});for(const n in this.$$l)for(const o of this.$$l[n]){const i=this.$$c.$on(n,o);this.$$l_u.set(o,i)}this.$$l={}}}attributeChangedCallback(t,r,e){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Br(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 kr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Br(t,r,e,n){const o=e[t]?.type;if(r=o==="Boolean"&&typeof r!="boolean"?r!=null:r,!n||!e[t])return r;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function mi(t){const r={};return t.childNodes.forEach(e=>{r[e.slot||"default"]=!0}),r}function pi(t,r,e,n,o,i){let l=class extends Mn{constructor(){super(t,e,o),this.$$p_d=r}static get observedAttributes(){return kr(r).map(a=>(r[a].attribute||a).toLowerCase())}};return kr(r).forEach(a=>{jr(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(s){s=Br(a,s,r),this.$$d[a]=s;var d=this.$$c;if(d){var p=Pt(d,a)?.get;p?d[a]=s:d.$set({[a]:s})}}})}),n.forEach(a=>{jr(l.prototype,a,{get(){return this.$$c?.[a]}})}),t.element=l,l}var Qt={},$n;function xi(){if($n)return Qt;$n=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.LanguageTranslator=void 0,Qt.getChildStyleToPass=t,Qt.addComponent=r;function t(n,o){var i,l,a="";try{if(n&&o?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((l=o?.filter(function(v){return Object.keys(n).includes(v.name)}))===null||l===void 0)&&l.length))for(var s=function(v){var f=o?.filter(function(m){return m.name===v&&m.defaultValue!==n[v]});f&&(a+="".concat(v,":").concat(n[v],";"))},d=0,p=Object.keys(n);d<p.length;d++){var g=p[d];s(g)}}catch(v){console.error("error getting child style to pass",v)}finally{return a}}function r(n){var o,i=((o=n?.repoName.split("/"))===null||o===void 0?void 0:o[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var l=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var a=document.createElement("script");if(a.id=i+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(l),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var s=i.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(i.replace(s+"-",""),"/").concat(l)}document.head.appendChild(a)}catch(d){console.warn(d)}}var e=(function(){function n(o){if(this.lang="",!o?.dictionary)throw new Error("no dictionary provided");this.dictionary=o.dictionary,this.setLang(o?.lang)}return n.prototype.setLang=function(o){o||(o=n.getDefaultLang()),this.lang=o},n.prototype.translateWord=function(o,i){return n.getDictionaryWord(o,this.dictionary,i||this.lang)},n.prototype.translateDate=function(o,i,l){return n.formatDate(o,i,l||this.lang)},n.getDefaultLang=function(){var o,i,l,a="en";return navigator?.languages&&(!((l=(i=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||l===void 0)&&l.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(o,i,l){var a;if(!o)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(l&&(!((a=i[l])===null||a===void 0)&&a[o]))return i[l][o];var s="",d=n.getDefaultLang();if(!l||d!==l){var p=i?.[d];p?.[o]&&(s=p[o])}return s},n.formatDate=function(o,i,l){if(!o)throw new Error("no date provided");if(typeof o.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(l||n.getDefaultLang(),i);return a.format(o)},n})();return Qt.LanguageTranslator=e,Qt}xi();var vi=S('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1d5xrrt"/>'),gi=S('<div class="author-name-spacer me-2 svelte-1d5xrrt"></div>'),bi=S('<div class="author-name-spacer ms-2 svelte-1d5xrrt"></div>'),fi=S('<div><!> <div class="author-name-content flex-grow-1 svelte-1d5xrrt"><span> </span></div> <!></div>'),ci=S('<span class="badge bg-primary position-absolute top-0 end-0 translate-middle rounded-pill svelte-1d5xrrt">AI</span>'),ui=S('<div class="avatar-container position-relative svelte-1d5xrrt"><img class="rounded-circle svelte-1d5xrrt" width="40" height="40"/> <!></div>'),hi=S('<div class="avatar-spacer svelte-1d5xrrt"></div>'),yi=S('<div class="message-avatar me-2 svelte-1d5xrrt"><!></div>'),wi=S('<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>'),_i=S('<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>'),ki=S('<div class="message-text svelte-1d5xrrt"> </div>'),ji=S('<div><div part="message-body" class="message-body svelte-1d5xrrt"><!></div></div>'),Ai=S('<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>'),Mi=S('<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>'),$i=S('<div class="message-text svelte-1d5xrrt"> </div>'),Ei=S('<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>'),Ti=S('<button class="btn btn-sm btn-outline-secondary rounded-circle p-1 svelte-1d5xrrt"><i></i></button>'),Ii=S('<div part="message-timestamp" class="message-timestamp ms-2 svelte-1d5xrrt"> </div>'),Ni=S("<div><!> <!></div>"),Ri=S('<div><div part="message-timestamp" class="message-timestamp svelte-1d5xrrt"> </div></div>'),Si=S('<img alt="You" class="rounded-circle svelte-1d5xrrt" width="40" height="40"/>'),Ci=S('<div class="avatar-spacer svelte-1d5xrrt"></div>'),Di=S('<div class="message-avatar ms-2 svelte-1d5xrrt"><!></div>'),zi=S('<!> <div><!> <div class="message-content position-relative svelte-1d5xrrt"><!> <!></div> <!></div>',1);const Oi={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
|
-
|
|
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
|
|
182
|
+
}`};function En(t,r){$e(r,!0),ri(t,Oi);function e(m,x){r.$$host.dispatchEvent(new CustomEvent(m,{detail:x}))}const n={showTimestamp:!0,showActions:!0,showAvatar:!0,showName:!0,bubbles:!1};let o=yr(r,"id",7,""),i=yr(r,"messages",7),l=yr(r,"authors",7),a=yr(r,"options",7,n),s=yr(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=ko(()=>!i()||!l()?[]:i()?.filter?.(x=>l()?.find?.(c=>c?.id&&x?.authorId&&c.id===x.authorId)?.id)?.map?.((x,c)=>{const u=l()?.find?.(tt=>tt.id===x.authorId),w=new Date(x.timestamp).toDateString()===new Date().toDateString(),C=new Date(x.timestamp),L=C.toLocaleTimeString().split(":")[0]+":"+C.toLocaleTimeString().split(":")[1],W=C.toLocaleString().split(" ")[0]+" "+C.toLocaleTimeString().split(":")[0]+":"+C.toLocaleTimeString().split(":")[1],wt=w?L:W,J=c>0?i()[c-1]:null,V=!!(J&&J.authorId===x.authorId&&new Date(x.timestamp).getTime()-new Date(J.timestamp).getTime()<3e5),Gt=!!(a().showAvatar&&(!V||c===0));return{...x,author:u,dateString:wt,showAvatar:Gt,isConsecutive:V}})||[]);te(()=>{if(typeof i()=="string")try{i(JSON.parse(i()))}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)}}),te(()=>{if(typeof a()=="string")try{a(JSON.parse(a())),a({...n,...a()})}catch(m){console.error("error parsing options",m)}}),te(()=>{if(typeof l()=="string")try{l(JSON.parse(l()))}catch(m){console.error("error parsing authors",m)}});var g={get id(){return o()},set id(m=""){o(m),lr()},get messages(){return i()},set messages(m){i(m),lr()},get authors(){return l()},set authors(m){l(m),lr()},get options(){return a()},set options(m=n){a(m),lr()},get actions(){return s()},set actions(m=[]){s(m),lr()}},v=Zo();ti("1d5xrrt",m=>{var x=vi();N(m,x)});var f=qe(v);return jn(f,17,()=>b(p),m=>m.id,(m,x)=>{var c=zi(),u=qe(c);{var w=R=>{var j=fi(),B=E(j);{var rt=nt=>{var U=gi();N(nt,U)};H(B,nt=>{!b(x).author.me&&a().showAvatar&&nt(rt)})}var et=ut(B,2),T=E(et),_=E(T,!0);$(T),$(et);var A=ut(et,2);{var Q=nt=>{var U=bi();N(nt,U)};H(A,nt=>{b(x).author.me&&a().showAvatar&&nt(Q)})}$(j),Y(()=>{Vt(j,1,`author-name-wrapper d-flex ${b(x).author.me?"justify-content-end":"justify-content-start"} mb-1 w-100`,"svelte-1d5xrrt"),Vt(T,1,`fw-semibold ${b(x).author.me?"text-secondary":"text-primary"}`,"svelte-1d5xrrt"),$t(_,b(x).author.me?"You":b(x).author.name)}),N(R,j)};H(u,R=>{a().showName&&R(w)})}var C=ut(u,2),L=E(C);{var W=R=>{var j=yi(),B=E(j);{var rt=T=>{var _=ui(),A=E(_),Q=ut(A,2);{var nt=U=>{var Ut=ci();N(U,Ut)};H(Q,U=>{b(x).author.isAI&&U(nt)})}$(_),Y(U=>{xr(A,"src",U),xr(A,"alt",b(x).author.name)},[()=>b(x).author.avatar||d(b(x).author.isAI)]),N(T,_)},et=T=>{var _=hi();N(T,_)};H(B,T=>{b(x).showAvatar?T(rt):T(et,-1)})}$(j),N(R,j)};H(L,R=>{!b(x).author.me&&a().showAvatar&&R(W)})}var wt=ut(L,2),J=E(wt);{var V=R=>{var j=ji(),B=E(j),rt=E(B);{var et=_=>{var A=_i(),Q=E(A);{var nt=qt=>{var Xt=wi(),wr=E(Xt),me=E(wr,!0);$(wr),$(Xt),Y(()=>$t(me,b(x).language)),N(qt,Xt)};H(Q,qt=>{b(x).language&&qt(nt)})}var U=ut(Q,2),Ut=E(U),de=E(Ut,!0);$(Ut),$(U),$(A),Y(()=>$t(de,b(x).text)),N(_,A)},T=_=>{var A=ki(),Q=E(A,!0);$(A),Y(()=>$t(Q,b(x).text)),N(_,A)};H(rt,_=>{b(x).type==="code"?_(et):_(T,-1)})}$(B),$(j),Y(()=>{xr(j,"part",`message-bubble-${b(x).author.me?"me":"them"}`),Vt(j,1,`message-bubble ${b(x).author.me?"bg-primary text-white":"bg-light border"} rounded-3 p-3 shadow-sm`,"svelte-1d5xrrt")}),N(R,j)},Gt=R=>{var j=Ei(),B=E(j),rt=E(B);{var et=_=>{var A=Mi(),Q=E(A);{var nt=qt=>{var Xt=Ai(),wr=E(Xt),me=E(wr,!0);$(wr),$(Xt),Y(()=>$t(me,b(x).language)),N(qt,Xt)};H(Q,qt=>{b(x).language&&qt(nt)})}var U=ut(Q,2),Ut=E(U),de=E(Ut,!0);$(Ut),$(U),$(A),Y(()=>$t(de,b(x).text)),N(_,A)},T=_=>{var A=$i(),Q=E(A,!0);$(A),Y(()=>$t(Q,b(x).text)),N(_,A)};H(rt,_=>{b(x).type==="code"?_(et):_(T,-1)})}$(B),$(j),N(R,j)};H(J,R=>{a().bubbles?R(V):R(Gt,-1)})}var tt=ut(J,2);{var le=R=>{var j=Ni(),B=E(j);jn(B,17,s,Uo,(T,_)=>{var A=Ti(),Q=E(A);$(A),Y(()=>{xr(A,"title",b(_).name),xr(A,"aria-label",b(_).name),Vt(Q,1,`bi bi-${b(_).icon??""}`,"svelte-1d5xrrt")}),Go("click",A,()=>e("action",{messageId:b(x).id,action:b(_).name})),N(T,A)});var rt=ut(B,2);{var et=T=>{var _=Ii(),A=E(_,!0);$(_),Y(()=>$t(A,b(x).dateString)),N(T,_)};H(rt,T=>{a().showTimestamp&&T(et)})}$(j),Y(()=>Vt(j,1,`message-actions d-flex gap-1 ${b(x).author.me?"justify-content-end":"justify-content-start"} mt-2`,"svelte-1d5xrrt")),N(R,j)},se=R=>{var j=Ri(),B=E(j),rt=E(B,!0);$(B),$(j),Y(()=>{Vt(j,1,`message-timestamp-only d-flex ${b(x).author.me?"justify-content-end":"justify-content-start"} mt-1`,"svelte-1d5xrrt"),$t(rt,b(x).dateString)}),N(R,j)};H(tt,R=>{s()?.length?R(le):a().showTimestamp&&R(se,1)})}$(wt);var Bi=ut(wt,2);{var Gi=R=>{var j=Di(),B=E(j);{var rt=T=>{var _=Si();Y(A=>xr(_,"src",A),[()=>b(x).author.avatar||d(!1)]),N(T,_)},et=T=>{var _=Ci();N(T,_)};H(B,T=>{b(x).showAvatar?T(rt):T(et,-1)})}$(j),N(R,j)};H(Bi,R=>{b(x).author.me&&a().showAvatar&&R(Gi)})}$(C),Y(()=>Vt(C,1,`message-wrapper d-flex ${b(x).author.me?"justify-content-end":"justify-content-start"} mb-3 w-100`,"svelte-1d5xrrt")),N(m,c)}),N(t,v),Ee(g)}Po(["click"]),customElements.define("hb-messages-list",pi(En,{id:{},messages:{},authors:{},options:{},actions:{}},[],[],{mode:"open"})),pe.Component=En,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})})(this["messages-list"]=this["messages-list"]||{});
|
|
183
183
|
//# sourceMappingURL=main.iife.js.map
|